2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for c-ares 1.17.1.
5 # Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------------------- ##
15 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
16 ## -------------------------------- ##
18 xc_configure_preamble_ver_major='1'
19 xc_configure_preamble_ver_minor='0'
22 # Set IFS to space, tab and newline.
29 IFS="$xc_space$xc_tab$xc_newline"
32 # Set internationalization behavior variables.
43 # Some useful variables.
46 xc_msg_warn='configure: WARNING:'
47 xc_msg_abrt='Can not continue.'
48 xc_msg_err='configure: error:'
51 # Verify that 'echo' command is available, otherwise abort.
55 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
56 case "x$xc_tst_str" in # ((
61 # Try built-in echo, and fail.
62 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
68 # Verify that 'test' command is available, otherwise abort.
72 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
73 case "x$xc_tst_str" in # ((
78 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
84 # Verify that 'PATH' variable is set, otherwise abort.
88 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
89 case "x$xc_tst_str" in # ((
94 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
100 # Verify that 'expr' command is available, otherwise abort.
104 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
105 case "x$xc_tst_str" in # ((
110 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
116 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
120 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
121 | sed -e 's:unknown:success:' 2>/dev/null`
122 case "x$xc_tst_str" in # ((
127 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
133 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
137 (`echo "$xc_tst_str" 2>/dev/null \
138 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
139 case "x$xc_tst_str" in # ((
144 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
150 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
153 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
154 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
155 | tr -d "0123456789$xc_tab" 2>/dev/null`
156 case "x$xc_tst_str" in # ((
161 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
167 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
170 xc_tst_str='unknown unknown unknown unknown'
171 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
172 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
173 case "x$xc_tst_str" in # ((
178 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
184 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
188 xc_tst_str=`cat <<_EOT 2>/dev/null \
189 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194 case "x$xc_tst_str" in # ((
199 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
205 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
208 # Directory count in 'PATH' when using a colon separator.
210 xc_tst_prev_IFS=$IFS; IFS=':'
211 for xc_tst_dir in $PATH; do
213 xc_tst_dirs_col="x$xc_tst_dirs_col"
216 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
218 # Directory count in 'PATH' when using a semicolon separator.
220 xc_tst_prev_IFS=$IFS; IFS=';'
221 for xc_tst_dir in $PATH; do
223 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
226 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
228 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
229 # When both counting methods give the same result we do not want to
230 # chose one over the other, and consider auto-detection not possible.
231 if test -z "$PATH_SEPARATOR"; then
232 # Stop dead until user provides 'PATH_SEPARATOR' definition.
233 echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
237 # Separator with the greater directory count is the auto-detected one.
238 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
239 xc_tst_auto_separator=';'
241 xc_tst_auto_separator=':'
243 if test -z "$PATH_SEPARATOR"; then
244 # Simply use the auto-detected one when not already set.
245 PATH_SEPARATOR=$xc_tst_auto_separator
246 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
247 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
250 xc_PATH_SEPARATOR=$PATH_SEPARATOR
252 xc_configure_preamble_result='yes'
255 ## -------------------- ##
256 ## M4sh Initialization. ##
257 ## -------------------- ##
259 # Be more Bourne compatible
260 DUALCASE=1; export DUALCASE # for MKS sh
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in #(
281 # Printing a long string crashes Solaris 7 /usr/bin/printf.
282 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
283 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
284 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
285 # Prefer a ksh shell builtin over an external printf program on Solaris,
286 # but without wasting forks for bash or zsh.
287 if test -z "$BASH_VERSION$ZSH_VERSION" \
288 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
289 as_echo='print -r --'
290 as_echo_n='print -rn --'
291 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
292 as_echo='printf %s\n'
293 as_echo_n='printf %s'
295 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
296 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
297 as_echo_n='/usr/ucb/echo -n'
299 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
304 expr "X$arg" : "X\\(.*\\)$as_nl";
305 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
307 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
309 export as_echo_n_body
310 as_echo_n='sh -c $as_echo_n_body as_echo'
313 as_echo='sh -c $as_echo_body as_echo'
319 # We need space, tab and new line, in precisely that order. Quoting is
320 # there to prevent editors from complaining about space-tab.
321 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
322 # splitting by setting IFS to empty value.)
325 # Find who we are. Look in the path if we contain no directory separator.
328 *[\\/]* ) as_myself=$0 ;;
329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
333 test -z "$as_dir" && as_dir=.
334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
340 # We did not find ourselves, most probably we were run as `sh COMMAND'
341 # in which case we are not to be found in the path.
342 if test "x$as_myself" = x; then
345 if test ! -f "$as_myself"; then
346 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
350 # Unset variables that we do not need and which cause bugs (e.g. in
351 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
352 # suppresses any "Segmentation fault" message there. '((' could
353 # trigger a bug in pdksh 5.2.14.
354 for as_var in BASH_ENV ENV MAIL MAILPATH
355 do eval test x\${$as_var+set} = xset \
356 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
369 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
371 # Use a proper internal environment variable to ensure we don't fall
372 # into an infinite loop, continuously re-executing ourselves.
373 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
374 _as_can_reexec=no; export _as_can_reexec;
375 # We cannot yet assume a decent shell, so we have to provide a
376 # neutralization value for shells without unset; and this also
377 # works around shells that cannot unset nonexistent variables.
378 # Preserve -v and -x to the replacement shell.
381 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
383 *v*x* | *x*v* ) as_opts=-vx ;;
388 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
389 # Admittedly, this is quite paranoid, since all the known shells bail
390 # out after a failed `exec'.
391 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
394 # We don't want this to propagate to other subprocesses.
395 { _as_can_reexec=; unset _as_can_reexec;}
396 if test "x$CONFIG_SHELL" = x; then
397 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
400 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
401 # is contrary to our usage. Disable this feature.
402 alias -g '\${1+\"\$@\"}'='\"\$@\"'
405 case \`(set -o) 2>/dev/null\` in #(
413 as_required="as_fn_return () { (exit \$1); }
414 as_fn_success () { as_fn_return 0; }
415 as_fn_failure () { as_fn_return 1; }
416 as_fn_ret_success () { return 0; }
417 as_fn_ret_failure () { return 1; }
420 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
421 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
422 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
423 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
424 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
427 exitcode=1; echo positional parameters were not saved.
429 test x\$exitcode = x0 || exit 1
431 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
432 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
433 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
434 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
435 test \$(( 1 + 1 )) = 2 || exit 1
437 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
438 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
439 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
440 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
441 PATH=/empty FPATH=/empty; export PATH FPATH
442 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
443 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
444 if (eval "$as_required") 2>/dev/null; then :
449 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
454 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
457 test -z "$as_dir" && as_dir=.
461 for as_base in sh bash ksh sh5; do
462 # Try only shells that exist, to save several forks.
463 as_shell=$as_dir/$as_base
464 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
465 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
466 CONFIG_SHELL=$as_shell as_have_required=yes
467 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
475 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
476 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
477 CONFIG_SHELL=$SHELL as_have_required=yes
482 if test "x$CONFIG_SHELL" != x; then :
484 # We cannot yet assume a decent shell, so we have to provide a
485 # neutralization value for shells without unset; and this also
486 # works around shells that cannot unset nonexistent variables.
487 # Preserve -v and -x to the replacement shell.
490 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
492 *v*x* | *x*v* ) as_opts=-vx ;;
497 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
498 # Admittedly, this is quite paranoid, since all the known shells bail
499 # out after a failed `exec'.
500 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
504 if test x$as_have_required = xno; then :
505 $as_echo "$0: This script requires a shell more modern than all"
506 $as_echo "$0: the shells that I found on your system."
507 if test x${ZSH_VERSION+set} = xset ; then
508 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
509 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
511 $as_echo "$0: Please tell bug-autoconf@gnu.org and c-ares mailing
512 $0: list: http://cool.haxx.se/mailman/listinfo/c-ares about
513 $0: your system, including any error possibly output before
514 $0: this message. Then install a modern shell, or manually
515 $0: run the script under such a shell if you do have one."
521 SHELL=${CONFIG_SHELL-/bin/sh}
523 # Unset more variables known to interfere with behavior of common tools.
524 CLICOLOR_FORCE= GREP_OPTIONS=
525 unset CLICOLOR_FORCE GREP_OPTIONS
527 ## --------------------- ##
528 ## M4sh Shell Functions. ##
529 ## --------------------- ##
532 # Portably unset VAR.
535 { eval $1=; unset $1;}
539 # as_fn_set_status STATUS
540 # -----------------------
541 # Set $? to STATUS, without forking.
549 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
559 # Create "$as_dir" as a directory, including parents if necessary.
564 -*) as_dir=./$as_dir;;
566 test -d "$as_dir" || eval $as_mkdir_p || {
570 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
573 as_dirs="'$as_qdir' $as_dirs"
574 as_dir=`$as_dirname -- "$as_dir" ||
575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
576 X"$as_dir" : 'X\(//\)[^/]' \| \
577 X"$as_dir" : 'X\(//\)$' \| \
578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
579 $as_echo X"$as_dir" |
580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
597 test -d "$as_dir" && break
599 test -z "$as_dirs" || eval "mkdir $as_dirs"
600 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
605 # as_fn_executable_p FILE
606 # -----------------------
607 # Test if FILE is an executable regular file.
608 as_fn_executable_p ()
610 test -f "$1" && test -x "$1"
611 } # as_fn_executable_p
612 # as_fn_append VAR VALUE
613 # ----------------------
614 # Append the text in VALUE to the end of the definition contained in VAR. Take
615 # advantage of any shell optimizations that allow amortized linear growth over
616 # repeated appends, instead of the typical quadratic growth present in naive
618 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
619 eval 'as_fn_append ()
632 # Perform arithmetic evaluation on the ARGs, and store the result in the
633 # global $as_val. Take advantage of shells that can avoid forks. The arguments
634 # must be portable across $(()) and expr.
635 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
643 as_val=`expr "$@" || test $? -eq 1`
648 # as_fn_error STATUS ERROR [LINENO LOG_FD]
649 # ----------------------------------------
650 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
651 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
652 # script with STATUS, using 1 if that was 0.
655 as_status=$1; test $as_status -eq 0 && as_status=1
657 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
658 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
660 $as_echo "$as_me: error: $2" >&2
661 as_fn_exit $as_status
664 if expr a : '\(a\)' >/dev/null 2>&1 &&
665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
671 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
677 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
683 as_me=`$as_basename -- "$0" ||
684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
685 X"$0" : 'X\(//\)$' \| \
686 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
688 sed '/^.*\/\([^/][^/]*\)\/*$/{
702 # Avoid depending upon Character Ranges.
703 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
704 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
705 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
706 as_cr_digits='0123456789'
707 as_cr_alnum=$as_cr_Letters$as_cr_digits
710 as_lineno_1=$LINENO as_lineno_1a=$LINENO
711 as_lineno_2=$LINENO as_lineno_2a=$LINENO
712 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
713 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
714 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
726 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
730 chmod +x "$as_me.lineno" ||
731 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
733 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
734 # already done that, so ensure we don't try to do so again and fall
735 # in an infinite loop. This has already happened in practice.
736 _as_can_reexec=no; export _as_can_reexec
737 # Don't try to exec as it changes $[0], causing all sort of problems
738 # (the dirname of $[0] is not the place where we might find the
739 # original and so on. Autoconf is especially sensitive to this).
741 # Exit status is that of the last command.
745 ECHO_C= ECHO_N= ECHO_T=
746 case `echo -n x` in #(((((
748 case `echo 'xy\c'` in
749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
758 rm -f conf$$ conf$$.exe conf$$.file
759 if test -d conf$$.dir; then
760 rm -f conf$$.dir/conf$$.file
763 mkdir conf$$.dir 2>/dev/null
765 if (echo >conf$$.file) 2>/dev/null; then
766 if ln -s conf$$.file conf$$ 2>/dev/null; then
768 # ... but there are two gotchas:
769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
771 # In both cases, we have to default to `cp -pR'.
772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
774 elif ln conf$$.file conf$$ 2>/dev/null; then
782 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
783 rmdir conf$$.dir 2>/dev/null
785 if mkdir -p . 2>/dev/null; then
786 as_mkdir_p='mkdir -p "$as_dir"'
788 test -d ./-p && rmdir ./-p
793 as_executable_p=as_fn_executable_p
795 # Sed expression to map a string onto a valid CPP name.
796 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
798 # Sed expression to map a string onto a valid variable name.
799 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
801 SHELL=${CONFIG_SHELL-/bin/sh}
804 test -n "$DJDIR" || exec 7<&0 </dev/null
808 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
809 # so uname gets run too.
810 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
815 ac_default_prefix=/usr/local
817 ac_config_libobj_dir=.
824 # Identity of this package.
825 PACKAGE_NAME='c-ares'
826 PACKAGE_TARNAME='c-ares'
827 PACKAGE_VERSION='1.17.1'
828 PACKAGE_STRING='c-ares 1.17.1'
829 PACKAGE_BUGREPORT='c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares'
832 ac_unique_file="src/lib/ares_ipv6.h"
833 # Factoring default headers for most tests.
834 ac_includes_default="\
836 #ifdef HAVE_SYS_TYPES_H
837 # include <sys/types.h>
839 #ifdef HAVE_SYS_STAT_H
840 # include <sys/stat.h>
846 # ifdef HAVE_STDLIB_H
851 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
856 #ifdef HAVE_STRINGS_H
857 # include <strings.h>
859 #ifdef HAVE_INTTYPES_H
860 # include <inttypes.h>
869 enable_option_checking=no
870 ac_subst_vars='am__EXEEXT_FALSE
878 CFLAG_CARES_SYMBOL_HIDING
879 DOING_CARES_SYMBOL_HIDING_FALSE
880 DOING_CARES_SYMBOL_HIDING_TRUE
882 DOING_NATIVE_WINDOWS_FALSE
883 DOING_NATIVE_WINDOWS_TRUE
884 CPPFLAG_CARES_STATICLIB
885 USE_CPPFLAG_CARES_STATICLIB_FALSE
886 USE_CPPFLAG_CARES_STATICLIB_TRUE
887 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
888 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
889 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE
890 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE
891 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE
892 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE
933 INSTALL_STRIP_PROGRAM
969 CODE_COVERAGE_LDFLAGS
974 CODE_COVERAGE_ENABLED
975 CODE_COVERAGE_ENABLED_FALSE
976 CODE_COVERAGE_ENABLED_TRUE
986 MAINTAINER_MODE_FALSE
1017 program_transform_name
1031 enable_option_checking
1032 enable_maintainer_mode
1038 enable_symbol_hiding
1039 enable_expose_statics
1041 enable_code_coverage
1042 enable_dependency_tracking
1057 ac_precious_vars='build_alias
1071 ac_subdirs_all='test'
1073 # Initialize some variables set by options.
1075 ac_init_version=false
1076 ac_unrecognized_opts=
1077 ac_unrecognized_sep=
1078 # The variables have the same names as the options, with
1079 # dashes changed to underlines.
1080 cache_file=/dev/null
1087 program_transform_name=s,x,x,
1095 # Installation directory options.
1096 # These are left unexpanded so users can "make install exec_prefix=/foo"
1097 # and all the variables that are supposed to be based on exec_prefix
1098 # by default will actually change.
1099 # Use braces instead of parens because sh, perl, etc. also accept them.
1100 # (The list follows the same order as the GNU Coding Standards.)
1101 bindir='${exec_prefix}/bin'
1102 sbindir='${exec_prefix}/sbin'
1103 libexecdir='${exec_prefix}/libexec'
1104 datarootdir='${prefix}/share'
1105 datadir='${datarootdir}'
1106 sysconfdir='${prefix}/etc'
1107 sharedstatedir='${prefix}/com'
1108 localstatedir='${prefix}/var'
1109 runstatedir='${localstatedir}/run'
1110 includedir='${prefix}/include'
1111 oldincludedir='/usr/include'
1112 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1113 infodir='${datarootdir}/info'
1118 libdir='${exec_prefix}/lib'
1119 localedir='${datarootdir}/locale'
1120 mandir='${datarootdir}/man'
1126 # If the previous option needs an argument, assign it.
1127 if test -n "$ac_prev"; then
1128 eval $ac_prev=\$ac_option
1134 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1139 # Accept the important Cygnus configure options, so we can diagnose typos.
1141 case $ac_dashdash$ac_option in
1145 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1147 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1148 bindir=$ac_optarg ;;
1150 -build | --build | --buil | --bui | --bu)
1151 ac_prev=build_alias ;;
1152 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1153 build_alias=$ac_optarg ;;
1155 -cache-file | --cache-file | --cache-fil | --cache-fi \
1156 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1157 ac_prev=cache_file ;;
1158 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1159 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1160 cache_file=$ac_optarg ;;
1162 --config-cache | -C)
1163 cache_file=config.cache ;;
1165 -datadir | --datadir | --datadi | --datad)
1167 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1168 datadir=$ac_optarg ;;
1170 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1171 | --dataroo | --dataro | --datar)
1172 ac_prev=datarootdir ;;
1173 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1174 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1175 datarootdir=$ac_optarg ;;
1177 -disable-* | --disable-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid feature name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "enable_$ac_useropt"
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval enable_$ac_useropt=no ;;
1193 -docdir | --docdir | --docdi | --doc | --do)
1195 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1196 docdir=$ac_optarg ;;
1198 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1200 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1201 dvidir=$ac_optarg ;;
1203 -enable-* | --enable-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid feature name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1212 "enable_$ac_useropt"
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval enable_$ac_useropt=\$ac_optarg ;;
1219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1221 | --exec | --exe | --ex)
1222 ac_prev=exec_prefix ;;
1223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1225 | --exec=* | --exe=* | --ex=*)
1226 exec_prefix=$ac_optarg ;;
1228 -gas | --gas | --ga | --g)
1229 # Obsolete; use --with-gas.
1232 -help | --help | --hel | --he | -h)
1233 ac_init_help=long ;;
1234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1235 ac_init_help=recursive ;;
1236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1237 ac_init_help=short ;;
1239 -host | --host | --hos | --ho)
1240 ac_prev=host_alias ;;
1241 -host=* | --host=* | --hos=* | --ho=*)
1242 host_alias=$ac_optarg ;;
1244 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1246 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1248 htmldir=$ac_optarg ;;
1250 -includedir | --includedir | --includedi | --included | --include \
1251 | --includ | --inclu | --incl | --inc)
1252 ac_prev=includedir ;;
1253 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1254 | --includ=* | --inclu=* | --incl=* | --inc=*)
1255 includedir=$ac_optarg ;;
1257 -infodir | --infodir | --infodi | --infod | --info | --inf)
1259 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1260 infodir=$ac_optarg ;;
1262 -libdir | --libdir | --libdi | --libd)
1264 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1265 libdir=$ac_optarg ;;
1267 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1268 | --libexe | --libex | --libe)
1269 ac_prev=libexecdir ;;
1270 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1271 | --libexe=* | --libex=* | --libe=*)
1272 libexecdir=$ac_optarg ;;
1274 -localedir | --localedir | --localedi | --localed | --locale)
1275 ac_prev=localedir ;;
1276 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1277 localedir=$ac_optarg ;;
1279 -localstatedir | --localstatedir | --localstatedi | --localstated \
1280 | --localstate | --localstat | --localsta | --localst | --locals)
1281 ac_prev=localstatedir ;;
1282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1283 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1284 localstatedir=$ac_optarg ;;
1286 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1288 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1289 mandir=$ac_optarg ;;
1291 -nfp | --nfp | --nf)
1292 # Obsolete; use --without-fp.
1295 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1296 | --no-cr | --no-c | -n)
1299 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1300 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1303 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1304 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1305 | --oldin | --oldi | --old | --ol | --o)
1306 ac_prev=oldincludedir ;;
1307 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1308 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1309 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1310 oldincludedir=$ac_optarg ;;
1312 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1314 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1315 prefix=$ac_optarg ;;
1317 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1318 | --program-pre | --program-pr | --program-p)
1319 ac_prev=program_prefix ;;
1320 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1321 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1322 program_prefix=$ac_optarg ;;
1324 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1325 | --program-suf | --program-su | --program-s)
1326 ac_prev=program_suffix ;;
1327 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1328 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1329 program_suffix=$ac_optarg ;;
1331 -program-transform-name | --program-transform-name \
1332 | --program-transform-nam | --program-transform-na \
1333 | --program-transform-n | --program-transform- \
1334 | --program-transform | --program-transfor \
1335 | --program-transfo | --program-transf \
1336 | --program-trans | --program-tran \
1337 | --progr-tra | --program-tr | --program-t)
1338 ac_prev=program_transform_name ;;
1339 -program-transform-name=* | --program-transform-name=* \
1340 | --program-transform-nam=* | --program-transform-na=* \
1341 | --program-transform-n=* | --program-transform-=* \
1342 | --program-transform=* | --program-transfor=* \
1343 | --program-transfo=* | --program-transf=* \
1344 | --program-trans=* | --program-tran=* \
1345 | --progr-tra=* | --program-tr=* | --program-t=*)
1346 program_transform_name=$ac_optarg ;;
1348 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1350 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1351 pdfdir=$ac_optarg ;;
1353 -psdir | --psdir | --psdi | --psd | --ps)
1355 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1359 | -silent | --silent | --silen | --sile | --sil)
1362 -runstatedir | --runstatedir | --runstatedi | --runstated \
1363 | --runstate | --runstat | --runsta | --runst | --runs \
1364 | --run | --ru | --r)
1365 ac_prev=runstatedir ;;
1366 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1367 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1368 | --run=* | --ru=* | --r=*)
1369 runstatedir=$ac_optarg ;;
1371 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1373 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1375 sbindir=$ac_optarg ;;
1377 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1378 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1379 | --sharedst | --shareds | --shared | --share | --shar \
1381 ac_prev=sharedstatedir ;;
1382 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1383 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1384 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1386 sharedstatedir=$ac_optarg ;;
1388 -site | --site | --sit)
1390 -site=* | --site=* | --sit=*)
1393 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1395 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1396 srcdir=$ac_optarg ;;
1398 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1399 | --syscon | --sysco | --sysc | --sys | --sy)
1400 ac_prev=sysconfdir ;;
1401 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1402 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1403 sysconfdir=$ac_optarg ;;
1405 -target | --target | --targe | --targ | --tar | --ta | --t)
1406 ac_prev=target_alias ;;
1407 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1408 target_alias=$ac_optarg ;;
1410 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1413 -version | --version | --versio | --versi | --vers | -V)
1414 ac_init_version=: ;;
1417 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1420 as_fn_error $? "invalid package name: $ac_useropt"
1421 ac_useropt_orig=$ac_useropt
1422 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423 case $ac_user_opts in
1427 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1428 ac_unrecognized_sep=', ';;
1430 eval with_$ac_useropt=\$ac_optarg ;;
1432 -without-* | --without-*)
1433 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1434 # Reject names that are not valid shell variable names.
1435 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1436 as_fn_error $? "invalid package name: $ac_useropt"
1437 ac_useropt_orig=$ac_useropt
1438 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439 case $ac_user_opts in
1443 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444 ac_unrecognized_sep=', ';;
1446 eval with_$ac_useropt=no ;;
1449 # Obsolete; use --with-x.
1452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1453 | --x-incl | --x-inc | --x-in | --x-i)
1454 ac_prev=x_includes ;;
1455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1457 x_includes=$ac_optarg ;;
1459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1461 ac_prev=x_libraries ;;
1462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1464 x_libraries=$ac_optarg ;;
1466 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1467 Try \`$0 --help' for more information"
1471 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1472 # Reject names that are not valid shell variable names.
1473 case $ac_envvar in #(
1474 '' | [0-9]* | *[!_$as_cr_alnum]* )
1475 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1477 eval $ac_envvar=\$ac_optarg
1478 export $ac_envvar ;;
1481 # FIXME: should be removed in autoconf 3.0.
1482 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1484 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1491 if test -n "$ac_prev"; then
1492 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1493 as_fn_error $? "missing argument to $ac_option"
1496 if test -n "$ac_unrecognized_opts"; then
1497 case $enable_option_checking in
1499 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1500 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1504 # Check all directory arguments for consistency.
1505 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1506 datadir sysconfdir sharedstatedir localstatedir includedir \
1507 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1508 libdir localedir mandir runstatedir
1510 eval ac_val=\$$ac_var
1511 # Remove trailing slashes.
1514 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1515 eval $ac_var=\$ac_val;;
1517 # Be sure to have absolute directory names.
1519 [\\/$]* | ?:[\\/]* ) continue;;
1520 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1522 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1525 # There might be people who depend on the old broken behavior: `$host'
1526 # used to hold the argument of --host etc.
1527 # FIXME: To remove some day.
1530 target=$target_alias
1532 # FIXME: To remove some day.
1533 if test "x$host_alias" != x; then
1534 if test "x$build_alias" = x; then
1535 cross_compiling=maybe
1536 elif test "x$build_alias" != "x$host_alias"; then
1542 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1544 test "$silent" = yes && exec 6>/dev/null
1547 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1548 ac_ls_di=`ls -di .` &&
1549 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1550 as_fn_error $? "working directory cannot be determined"
1551 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1552 as_fn_error $? "pwd does not report name of working directory"
1555 # Find the source files, if location was not specified.
1556 if test -z "$srcdir"; then
1557 ac_srcdir_defaulted=yes
1558 # Try the directory containing this script, then the parent directory.
1559 ac_confdir=`$as_dirname -- "$as_myself" ||
1560 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1561 X"$as_myself" : 'X\(//\)[^/]' \| \
1562 X"$as_myself" : 'X\(//\)$' \| \
1563 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1564 $as_echo X"$as_myself" |
1565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1583 if test ! -r "$srcdir/$ac_unique_file"; then
1587 ac_srcdir_defaulted=no
1589 if test ! -r "$srcdir/$ac_unique_file"; then
1590 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1591 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1593 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1595 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1597 # When building in place, set srcdir=.
1598 if test "$ac_abs_confdir" = "$ac_pwd"; then
1601 # Remove unnecessary trailing slashes from srcdir.
1602 # Double slashes in file names in object file debugging info
1603 # mess up M-x gdb in Emacs.
1605 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1607 for ac_var in $ac_precious_vars; do
1608 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609 eval ac_env_${ac_var}_value=\$${ac_var}
1610 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1615 # Report the --help message.
1617 if test "$ac_init_help" = "long"; then
1618 # Omit some internal or obsolete options to make the list less imposing.
1619 # This message is too long to be a string in the A/UX 3.1 sh.
1621 \`configure' configures c-ares 1.17.1 to adapt to many kinds of systems.
1623 Usage: $0 [OPTION]... [VAR=VALUE]...
1625 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626 VAR=VALUE. See below for descriptions of some of the useful variables.
1628 Defaults for the options are specified in brackets.
1631 -h, --help display this help and exit
1632 --help=short display options specific to this package
1633 --help=recursive display the short help of all the included packages
1634 -V, --version display version information and exit
1635 -q, --quiet, --silent do not print \`checking ...' messages
1636 --cache-file=FILE cache test results in FILE [disabled]
1637 -C, --config-cache alias for \`--cache-file=config.cache'
1638 -n, --no-create do not create output files
1639 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1641 Installation directories:
1642 --prefix=PREFIX install architecture-independent files in PREFIX
1643 [$ac_default_prefix]
1644 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1647 By default, \`make install' will install all the files in
1648 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1649 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650 for instance \`--prefix=\$HOME'.
1652 For better control, use the options below.
1654 Fine tuning of the installation directories:
1655 --bindir=DIR user executables [EPREFIX/bin]
1656 --sbindir=DIR system admin executables [EPREFIX/sbin]
1657 --libexecdir=DIR program executables [EPREFIX/libexec]
1658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1661 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1662 --libdir=DIR object code libraries [EPREFIX/lib]
1663 --includedir=DIR C header files [PREFIX/include]
1664 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1665 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1667 --infodir=DIR info documentation [DATAROOTDIR/info]
1668 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1669 --mandir=DIR man documentation [DATAROOTDIR/man]
1670 --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares]
1671 --htmldir=DIR html documentation [DOCDIR]
1672 --dvidir=DIR dvi documentation [DOCDIR]
1673 --pdfdir=DIR pdf documentation [DOCDIR]
1674 --psdir=DIR ps documentation [DOCDIR]
1680 --program-prefix=PREFIX prepend PREFIX to installed program names
1681 --program-suffix=SUFFIX append SUFFIX to installed program names
1682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1685 --build=BUILD configure for building on BUILD [guessed]
1686 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1690 if test -n "$ac_init_help"; then
1691 case $ac_init_help in
1692 short | recursive ) echo "Configuration of c-ares 1.17.1:";;
1697 --disable-option-checking ignore unrecognized --enable/--with options
1698 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1699 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1700 --enable-maintainer-mode
1701 enable make rules and dependencies not useful (and
1702 sometimes confusing) to the casual installer
1703 --enable-silent-rules less verbose build output (undo: "make V=1")
1704 --disable-silent-rules verbose build output (undo: "make V=0")
1705 --enable-debug Enable debug build options
1706 --disable-debug Disable debug build options
1707 --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1708 --disable-optimize Disable compiler optimizations
1709 --enable-warnings Enable strict compiler warnings
1710 --disable-warnings Disable strict compiler warnings
1711 --enable-werror Enable compiler warnings as errors
1712 --disable-werror Disable compiler warnings as errors
1713 --enable-symbol-hiding Enable hiding of library internal symbols
1714 --disable-symbol-hiding Disable hiding of library internal symbols
1715 --enable-expose-statics Enable exposure of internal static functions for
1717 --disable-expose-statics
1718 Disable exposure of internal static functions for
1720 --enable-code-coverage Whether to enable code coverage support
1721 --enable-dependency-tracking
1722 do not reject slow dependency extractors
1723 --disable-dependency-tracking
1724 speeds up one-time build
1725 --disable-largefile omit support for large files
1726 --enable-shared[=PKGS] build shared libraries [default=yes]
1727 --enable-static[=PKGS] build static libraries [default=yes]
1728 --enable-fast-install[=PKGS]
1729 optimize for fast installation [default=yes]
1730 --disable-libtool-lock avoid locking (might break parallel builds)
1731 --enable-libgcc use libgcc when linking
1732 --enable-nonblocking Enable non-blocking communications
1733 --disable-nonblocking Disable non-blocking communications
1734 --enable-tests build test suite
1737 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1738 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1739 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1740 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1742 --with-aix-soname=aix|svr4|both
1743 shared library versioning (aka "SONAME") variant to
1744 provide on AIX, [default=aix].
1745 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1746 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1747 compiler's sysroot if not specified).
1748 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1750 Some influential environment variables:
1751 CC C compiler command
1752 CFLAGS C compiler flags
1753 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1754 nonstandard directory <lib dir>
1755 LIBS libraries to pass to the linker, e.g. -l<library>
1756 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1757 you have headers in a nonstandard directory <include dir>
1759 CXX C++ compiler command
1760 CXXFLAGS C++ compiler flags
1762 User-defined run-time library search path.
1763 CXXCPP C++ preprocessor
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1768 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
1773 if test "$ac_init_help" = "recursive"; then
1774 # If there are subdirs, report their specific --help.
1775 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776 test -d "$ac_dir" ||
1777 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785 # A ".." for each directory in $ac_dir_suffix.
1786 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787 case $ac_top_builddir_sub in
1788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1792 ac_abs_top_builddir=$ac_pwd
1793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794 # for backward compatibility:
1795 ac_top_builddir=$ac_top_build_prefix
1798 .) # We are building in place.
1800 ac_top_srcdir=$ac_top_builddir_sub
1801 ac_abs_top_srcdir=$ac_pwd ;;
1802 [\\/]* | ?:[\\/]* ) # Absolute name.
1803 ac_srcdir=$srcdir$ac_dir_suffix;
1804 ac_top_srcdir=$srcdir
1805 ac_abs_top_srcdir=$srcdir ;;
1807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808 ac_top_srcdir=$ac_top_build_prefix$srcdir
1809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1813 cd "$ac_dir" || { ac_status=$?; continue; }
1814 # Check for guested configure.
1815 if test -f "$ac_srcdir/configure.gnu"; then
1817 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818 elif test -f "$ac_srcdir/configure"; then
1820 $SHELL "$ac_srcdir/configure" --help=recursive
1822 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1824 cd "$ac_pwd" || { ac_status=$?; break; }
1828 test -n "$ac_init_help" && exit $ac_status
1829 if $ac_init_version; then
1831 c-ares configure 1.17.1
1832 generated by GNU Autoconf 2.69
1834 Copyright (C) 2012 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext
1852 if { { ac_try="$ac_compile"
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_compile") 2>conftest.err
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest.$ac_objext; then :
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_c_try_compile
1883 # ac_fn_c_try_cpp LINENO
1884 # ----------------------
1885 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_cpp conftest.$ac_ext"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } > conftest.i && {
1905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1920 # ac_fn_cxx_try_compile LINENO
1921 # ----------------------------
1922 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_compile ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext
1927 if { { ac_try="$ac_compile"
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_compile") 2>conftest.err
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_cxx_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest.$ac_objext; then :
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1956 } # ac_fn_cxx_try_compile
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 test -x conftest$ac_exeext
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2002 } # ac_fn_c_try_link
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2021 if ac_fn_c_try_compile "$LINENO"; then :
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_header_compile
2035 # ac_fn_c_try_run LINENO
2036 # ----------------------
2037 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2038 # that executables *can* be run.
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 if { { ac_try="$ac_link"
2044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2045 *) ac_try_echo=$ac_try;;
2047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2048 $as_echo "$ac_try_echo"; } >&5
2049 (eval "$ac_link") 2>&5
2051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2053 { { case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_try") 2>&5
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; }; }; then :
2065 $as_echo "$as_me: program exited with status $ac_status" >&5
2066 $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2069 ac_retval=$ac_status
2071 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status $ac_retval
2077 # ac_fn_c_check_func LINENO FUNC VAR
2078 # ----------------------------------
2079 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2080 ac_fn_c_check_func ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2091 #define $2 innocuous_$2
2093 # include <limits.h>
2095 # include <assert.h>
2102 #if defined __stub_$2 || defined __stub___$2
2113 if ac_fn_c_try_link "$LINENO"; then :
2118 rm -f core conftest.err conftest.$ac_objext \
2119 conftest$ac_exeext conftest.$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_c_check_func
2128 # ac_fn_cxx_try_cpp LINENO
2129 # ------------------------
2130 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2131 ac_fn_cxx_try_cpp ()
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 if { { ac_try="$ac_cpp conftest.$ac_ext"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } > conftest.i && {
2150 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2151 test ! -s conftest.err
2155 $as_echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161 as_fn_set_status $ac_retval
2163 } # ac_fn_cxx_try_cpp
2165 # ac_fn_cxx_try_link LINENO
2166 # -------------------------
2167 # Try to link conftest.$ac_ext, and return whether this succeeded.
2168 ac_fn_cxx_try_link ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 rm -f conftest.$ac_objext conftest$ac_exeext
2172 if { { ac_try="$ac_link"
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_link") 2>conftest.err
2181 if test -s conftest.err; then
2182 grep -v '^ *+' conftest.err >conftest.er1
2183 cat conftest.er1 >&5
2184 mv -f conftest.er1 conftest.err
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } && {
2188 test -z "$ac_cxx_werror_flag" ||
2189 test ! -s conftest.err
2190 } && test -s conftest$ac_exeext && {
2191 test "$cross_compiling" = yes ||
2192 test -x conftest$ac_exeext
2196 $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2201 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2202 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2203 # interfere with the next link command; also delete a directory that is
2204 # left behind by Apple's compiler. We do this before executing the actions.
2205 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
2209 } # ac_fn_cxx_try_link
2211 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2212 # -------------------------------------------------------
2213 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2214 # the include files in INCLUDES and setting the cache variable VAR
2216 ac_fn_c_check_header_mongrel ()
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 if eval \${$3+:} false; then :
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if eval \${$3+:} false; then :
2223 $as_echo_n "(cached) " >&6
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227 $as_echo "$ac_res" >&6; }
2229 # Is the header compilable?
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2231 $as_echo_n "checking $2 usability... " >&6; }
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 ac_header_compiler=yes
2240 ac_header_compiler=no
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2244 $as_echo "$ac_header_compiler" >&6; }
2246 # Is the header present?
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2248 $as_echo_n "checking $2 presence... " >&6; }
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2253 if ac_fn_c_try_cpp "$LINENO"; then :
2254 ac_header_preproc=yes
2256 ac_header_preproc=no
2258 rm -f conftest.err conftest.i conftest.$ac_ext
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2260 $as_echo "$ac_header_preproc" >&6; }
2262 # So? What about this header?
2263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2266 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2272 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2274 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2276 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2278 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2280 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2281 ( $as_echo "## ------------------------------------------------------------------------------- ##
2282 ## Report this to c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares ##
2283 ## ------------------------------------------------------------------------------- ##"
2284 ) | sed "s/^/$as_me: WARNING: /" >&2
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288 $as_echo_n "checking for $2... " >&6; }
2289 if eval \${$3+:} false; then :
2290 $as_echo_n "(cached) " >&6
2292 eval "$3=\$ac_header_compiler"
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296 $as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2300 } # ac_fn_c_check_header_mongrel
2302 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2303 # -------------------------------------------
2304 # Tests whether TYPE exists after having included INCLUDES, setting cache
2305 # variable VAR accordingly.
2306 ac_fn_c_check_type ()
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if eval \${$3+:} false; then :
2312 $as_echo_n "(cached) " >&6
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2338 if ac_fn_c_try_compile "$LINENO"; then :
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 } # ac_fn_c_check_type
2354 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2355 # ----------------------------------------------------
2356 # Tries to find if the field MEMBER exists in type AGGR, after including
2357 # INCLUDES, setting cache variable VAR accordingly.
2358 ac_fn_c_check_member ()
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2362 $as_echo_n "checking for $2.$3... " >&6; }
2363 if eval \${$4+:} false; then :
2364 $as_echo_n "(cached) " >&6
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2378 if ac_fn_c_try_compile "$LINENO"; then :
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2387 if (sizeof ac_aggr.$3)
2393 if ac_fn_c_try_compile "$LINENO"; then :
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407 } # ac_fn_c_check_member
2408 cat >config.log <<_ACEOF
2409 This file contains any messages produced by compilers while
2410 running configure, to aid debugging if configure makes a mistake.
2412 It was created by c-ares $as_me 1.17.1, which was
2413 generated by GNU Autoconf 2.69. Invocation command line was
2425 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2426 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2427 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2428 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2429 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2431 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2432 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2434 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2435 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2436 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2437 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2438 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2439 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2440 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 $as_echo "PATH: $as_dir"
2465 # Keep a trace of the command line.
2466 # Strip out --no-create and --no-recursion so they do not pile up.
2467 # Strip out --silent because we don't want to record it for future runs.
2468 # Also quote any args containing shell meta-characters.
2469 # Make two passes to allow for proper duplicate-argument suppression.
2473 ac_must_keep_next=false
2479 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2481 | -silent | --silent | --silen | --sile | --sil)
2484 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2487 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2489 as_fn_append ac_configure_args1 " '$ac_arg'"
2490 if test $ac_must_keep_next = true; then
2491 ac_must_keep_next=false # Got value, back to normal.
2494 *=* | --config-cache | -C | -disable-* | --disable-* \
2495 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2496 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2497 | -with-* | --with-* | -without-* | --without-* | --x)
2498 case "$ac_configure_args0 " in
2499 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2502 -* ) ac_must_keep_next=true ;;
2505 as_fn_append ac_configure_args " '$ac_arg'"
2510 { ac_configure_args0=; unset ac_configure_args0;}
2511 { ac_configure_args1=; unset ac_configure_args1;}
2513 # When interrupted or exit'd, cleanup temporary files, and complete
2514 # config.log. We remove comments because anyway the quotes in there
2515 # would cause problems or look ugly.
2516 # WARNING: Use '\'' to represent an apostrophe within the trap.
2517 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2518 trap 'exit_status=$?
2519 # Save into config.log some information that might help in debugging.
2523 $as_echo "## ---------------- ##
2524 ## Cache variables. ##
2525 ## ---------------- ##"
2527 # The following way of writing the cache mishandles newlines in values,
2529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2530 eval ac_val=\$$ac_var
2534 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2538 _ | IFS | as_nl) ;; #(
2539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2540 *) { eval $ac_var=; unset $ac_var;} ;;
2545 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2546 *${as_nl}ac_space=\ *)
2548 "s/'\''/'\''\\\\'\'''\''/g;
2549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2559 $as_echo "## ----------------- ##
2560 ## Output variables. ##
2561 ## ----------------- ##"
2563 for ac_var in $ac_subst_vars
2565 eval ac_val=\$$ac_var
2567 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2569 $as_echo "$ac_var='\''$ac_val'\''"
2573 if test -n "$ac_subst_files"; then
2574 $as_echo "## ------------------- ##
2575 ## File substitutions. ##
2576 ## ------------------- ##"
2578 for ac_var in $ac_subst_files
2580 eval ac_val=\$$ac_var
2582 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2584 $as_echo "$ac_var='\''$ac_val'\''"
2589 if test -s confdefs.h; then
2590 $as_echo "## ----------- ##
2597 test "$ac_signal" != 0 &&
2598 $as_echo "$as_me: caught signal $ac_signal"
2599 $as_echo "$as_me: exit $exit_status"
2601 rm -f core *.core core.conftest.* &&
2602 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2605 for ac_signal in 1 2 13 15; do
2606 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2610 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2611 rm -f -r conftest* confdefs.h
2613 $as_echo "/* confdefs.h */" > confdefs.h
2615 # Predefined preprocessor variables.
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_NAME "$PACKAGE_NAME"
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_STRING "$PACKAGE_STRING"
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_URL "$PACKAGE_URL"
2642 # Let the site file select an alternate cache file if it wants to.
2643 # Prefer an explicitly selected file to automatically selected ones.
2646 if test -n "$CONFIG_SITE"; then
2647 # We do not want a PATH search for config.site.
2648 case $CONFIG_SITE in #((
2649 -*) ac_site_file1=./$CONFIG_SITE;;
2650 */*) ac_site_file1=$CONFIG_SITE;;
2651 *) ac_site_file1=./$CONFIG_SITE;;
2653 elif test "x$prefix" != xNONE; then
2654 ac_site_file1=$prefix/share/config.site
2655 ac_site_file2=$prefix/etc/config.site
2657 ac_site_file1=$ac_default_prefix/share/config.site
2658 ac_site_file2=$ac_default_prefix/etc/config.site
2660 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2662 test "x$ac_site_file" = xNONE && continue
2663 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2665 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2666 sed 's/^/| /' "$ac_site_file" >&5
2668 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 as_fn_error $? "failed to load site script $ac_site_file
2671 See \`config.log' for more details" "$LINENO" 5; }
2675 if test -r "$cache_file"; then
2676 # Some versions of bash will fail to source /dev/null (special files
2677 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2678 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2680 $as_echo "$as_me: loading cache $cache_file" >&6;}
2682 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2683 *) . "./$cache_file";;
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2688 $as_echo "$as_me: creating cache $cache_file" >&6;}
2692 # Check that the precious variables saved in the cache have kept the same
2694 ac_cache_corrupted=false
2695 for ac_var in $ac_precious_vars; do
2696 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2697 eval ac_new_set=\$ac_env_${ac_var}_set
2698 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2699 eval ac_new_val=\$ac_env_${ac_var}_value
2700 case $ac_old_set,$ac_new_set in
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2703 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2704 ac_cache_corrupted=: ;;
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2707 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2708 ac_cache_corrupted=: ;;
2711 if test "x$ac_old_val" != "x$ac_new_val"; then
2712 # differences in whitespace do not lead to failure.
2713 ac_old_val_w=`echo x $ac_old_val`
2714 ac_new_val_w=`echo x $ac_new_val`
2715 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2717 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2718 ac_cache_corrupted=:
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2721 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2722 eval $ac_var=\$ac_old_val
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2725 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2727 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2730 # Pass precious variables to config.status.
2731 if test "$ac_new_set" = set; then
2733 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2734 *) ac_arg=$ac_var=$ac_new_val ;;
2736 case " $ac_configure_args " in
2737 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2738 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2742 if $ac_cache_corrupted; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2746 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2747 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2749 ## -------------------- ##
2750 ## Main body of script. ##
2751 ## -------------------- ##
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761 CARES_VERSION_INFO="6:2:4"
2768 # using cares-override.m4
2772 ac_config_headers="$ac_config_headers src/lib/ares_config.h include/ares_build.h"
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2777 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2778 # Check whether --enable-maintainer-mode was given.
2779 if test "${enable_maintainer_mode+set}" = set; then :
2780 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2782 USE_MAINTAINER_MODE=no
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2786 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2787 if test $USE_MAINTAINER_MODE = yes; then
2788 MAINTAINER_MODE_TRUE=
2789 MAINTAINER_MODE_FALSE='#'
2791 MAINTAINER_MODE_TRUE='#'
2792 MAINTAINER_MODE_FALSE=
2795 MAINT=$MAINTAINER_MODE_TRUE
2798 # Check whether --enable-silent-rules was given.
2799 if test "${enable_silent_rules+set}" = set; then :
2800 enableval=$enable_silent_rules;
2803 case $enable_silent_rules in # (((
2804 yes) AM_DEFAULT_VERBOSITY=0;;
2805 no) AM_DEFAULT_VERBOSITY=1;;
2806 *) AM_DEFAULT_VERBOSITY=0;;
2808 am_make=${MAKE-make}
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2810 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2811 if ${am_cv_make_support_nested_variables+:} false; then :
2812 $as_echo_n "(cached) " >&6
2814 if $as_echo 'TRUE=$(BAR$(V))
2820 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2821 am_cv_make_support_nested_variables=yes
2823 am_cv_make_support_nested_variables=no
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2827 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2828 if test $am_cv_make_support_nested_variables = yes; then
2830 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2832 AM_V=$AM_DEFAULT_VERBOSITY
2833 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2840 $as_echo_n "checking whether to enable debug build options... " >&6; }
2841 OPT_DEBUG_BUILD="default"
2842 # Check whether --enable-debug was given.
2843 if test "${enable_debug+set}" = set; then :
2844 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2847 case "$OPT_DEBUG_BUILD" in
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2859 $as_echo "$want_debug" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2863 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2864 OPT_COMPILER_OPTIMIZE="default"
2865 # Check whether --enable-optimize was given.
2866 if test "${enable_optimize+set}" = set; then :
2867 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2870 case "$OPT_COMPILER_OPTIMIZE" in
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2877 if test "$want_debug" = "yes"; then
2878 want_optimize="assume_no"
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
2880 $as_echo "not specified (assuming no)" >&6; }
2882 want_optimize="assume_yes"
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2884 $as_echo "not specified (assuming yes)" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890 $as_echo "yes" >&6; }
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2896 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2897 OPT_COMPILER_WARNINGS="default"
2898 # Check whether --enable-warnings was given.
2899 if test "${enable_warnings+set}" = set; then :
2900 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2903 case "$OPT_COMPILER_WARNINGS" in
2908 want_warnings="$want_debug"
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2915 $as_echo "$want_warnings" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2919 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2920 OPT_COMPILER_WERROR="default"
2921 # Check whether --enable-werror was given.
2922 if test "${enable_werror+set}" = set; then :
2923 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2926 case "$OPT_COMPILER_WERROR" in
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2938 $as_echo "$want_werror" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
2942 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
2943 OPT_SYMBOL_HIDING="default"
2944 # Check whether --enable-symbol-hiding was given.
2945 if test "${enable_symbol_hiding+set}" = set; then :
2946 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
2949 case "$OPT_SYMBOL_HIDING" in
2951 want_symbol_hiding="no"
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2956 want_symbol_hiding="yes"
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958 $as_echo "yes" >&6; }
2961 want_symbol_hiding="yes"
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963 $as_echo "yes" >&6; }
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expose internal static functions for testing" >&5
2969 $as_echo_n "checking whether to expose internal static functions for testing... " >&6; }
2970 OPT_EXPOSE_STATICS="default"
2971 # Check whether --enable-expose-statics was given.
2972 if test "${enable_expose_statics+set}" = set; then :
2973 enableval=$enable_expose_statics; OPT_EXPOSE_STATICS=$enableval
2976 case "$OPT_EXPOSE_STATICS" in
2978 want_expose_statics="no"
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2983 want_expose_statics="no"
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2988 want_expose_statics="yes"
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990 $as_echo "yes" >&6; }
2993 if test "$want_expose_statics" = "yes"; then
2995 cat >>confdefs.h <<_ACEOF
2996 #define CARES_EXPOSE_STATICS 1
3003 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3006 if test -z "$xc_configure_preamble_result"; then
3007 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3011 # Check that 'PATH_SEPARATOR' has already been set.
3014 if test -z "$xc_PATH_SEPARATOR"; then
3015 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3017 if test -z "$PATH_SEPARATOR"; then
3018 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3021 $as_echo_n "checking for path separator... " >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3023 $as_echo "$PATH_SEPARATOR" >&6; }
3024 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3026 $as_echo_n "checking for initial path separator... " >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3028 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3029 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3033 # Extract the first word of "sed", so it can be a program name with args.
3034 set dummy sed; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_path_SED+:} false; then :
3038 $as_echo_n "(cached) " >&6
3042 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3047 for as_dir in $as_dummy
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3066 if test -n "$SED"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3068 $as_echo "$SED" >&6; }
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3075 if test -z "$SED" || test "$SED" = "not_found"; then
3076 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3080 # Extract the first word of "grep", so it can be a program name with args.
3081 set dummy grep; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_path_GREP+:} false; then :
3085 $as_echo_n "(cached) " >&6
3089 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3094 for as_dir in $as_dummy
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3112 GREP=$ac_cv_path_GREP
3113 if test -n "$GREP"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3115 $as_echo "$GREP" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3122 if test -z "$GREP" || test "$GREP" = "not_found"; then
3123 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3127 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3129 $as_echo_n "checking for egrep... " >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3132 $as_echo "$EGREP" >&6; }
3134 # Extract the first word of "egrep", so it can be a program name with args.
3135 set dummy egrep; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_path_EGREP+:} false; then :
3139 $as_echo_n "(cached) " >&6
3143 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3148 for as_dir in $as_dummy
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3166 EGREP=$ac_cv_path_EGREP
3167 if test -n "$EGREP"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3169 $as_echo "$EGREP" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3177 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3178 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3182 if test -z "$AR"; then
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}ar; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_path_AR+:} false; then :
3189 $as_echo_n "(cached) " >&6
3193 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3198 for as_dir in $as_dummy
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 if test -n "$AR"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3218 $as_echo "$AR" >&6; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3226 if test -z "$ac_cv_path_AR"; then
3228 # Extract the first word of "ar", so it can be a program name with args.
3229 set dummy ar; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if ${ac_cv_path_ac_pt_AR+:} false; then :
3233 $as_echo_n "(cached) " >&6
3237 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3242 for as_dir in $as_dummy
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 ac_pt_AR=$ac_cv_path_ac_pt_AR
3260 if test -n "$ac_pt_AR"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3262 $as_echo "$ac_pt_AR" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3268 if test "x$ac_pt_AR" = x; then
3271 case $cross_compiling:$ac_tool_warned in
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3275 ac_tool_warned=yes ;;
3283 if test -z "$AR" || test "$AR" = "not_found"; then
3284 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3290 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3291 if ${ac_cv_path_SED+:} false; then :
3292 $as_echo_n "(cached) " >&6
3294 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3295 for ac_i in 1 2 3 4 5 6 7; do
3296 ac_script="$ac_script$as_nl$ac_script"
3298 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3299 { ac_script=; unset ac_script;}
3300 if test -z "$SED"; then
3301 ac_path_SED_found=false
3302 # Loop through the user's path and test for each of PROGNAME-LIST
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir=.
3308 for ac_prog in sed gsed; do
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3311 as_fn_executable_p "$ac_path_SED" || continue
3312 # Check for GNU ac_path_SED and select it if it is found.
3313 # Check for GNU $ac_path_SED
3314 case `"$ac_path_SED" --version 2>&1` in
3316 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3319 $as_echo_n 0123456789 >"conftest.in"
3322 cat "conftest.in" "conftest.in" >"conftest.tmp"
3323 mv "conftest.tmp" "conftest.in"
3324 cp "conftest.in" "conftest.nl"
3325 $as_echo '' >> "conftest.nl"
3326 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3328 as_fn_arith $ac_count + 1 && ac_count=$as_val
3329 if test $ac_count -gt ${ac_path_SED_max-0}; then
3330 # Best one so far, save it but keep looking for a better one
3331 ac_cv_path_SED="$ac_path_SED"
3332 ac_path_SED_max=$ac_count
3334 # 10*(2^10) chars as input seems more than enough
3335 test $ac_count -gt 10 && break
3337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3340 $ac_path_SED_found && break 3
3345 if test -z "$ac_cv_path_SED"; then
3346 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3354 $as_echo "$ac_cv_path_SED" >&6; }
3355 SED="$ac_cv_path_SED"
3361 # allow to override gcov location
3363 # Check whether --with-gcov was given.
3364 if test "${with_gcov+set}" = set; then :
3365 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3367 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3372 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3373 # Check whether --enable-code-coverage was given.
3374 if test "${enable_code_coverage+set}" = set; then :
3375 enableval=$enable_code_coverage;
3377 enable_code_coverage=no
3381 if test x$enable_code_coverage = xyes; then
3382 CODE_COVERAGE_ENABLED_TRUE=
3383 CODE_COVERAGE_ENABLED_FALSE='#'
3385 CODE_COVERAGE_ENABLED_TRUE='#'
3386 CODE_COVERAGE_ENABLED_FALSE=
3389 CODE_COVERAGE_ENABLED=$enable_code_coverage
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3392 $as_echo "$enable_code_coverage" >&6; }
3394 if test "$enable_code_coverage" = "yes" ; then :
3397 if test -n "$ac_tool_prefix"; then
3398 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3399 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if ${ac_cv_prog_GCOV+:} false; then :
3403 $as_echo_n "(cached) " >&6
3405 if test -n "$GCOV"; then
3406 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 GCOV=$ac_cv_prog_GCOV
3426 if test -n "$GCOV"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3428 $as_echo "$GCOV" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3436 if test -z "$ac_cv_prog_GCOV"; then
3438 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3439 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3443 $as_echo_n "(cached) " >&6
3445 if test -n "$ac_ct_GCOV"; then
3446 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3466 if test -n "$ac_ct_GCOV"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3468 $as_echo "$ac_ct_GCOV" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3474 if test "x$ac_ct_GCOV" = x; then
3477 case $cross_compiling:$ac_tool_warned in
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481 ac_tool_warned=yes ;;
3486 GCOV="$ac_cv_prog_GCOV"
3489 if test "X$GCOV" = "X:"; then :
3490 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3494 if test "$GCC" = "no" ; then :
3496 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3500 # List of supported lcov versions.
3501 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.13"
3503 # Extract the first word of "lcov", so it can be a program name with args.
3504 set dummy lcov; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_LCOV+:} false; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$LCOV"; then
3511 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_LCOV="lcov"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 LCOV=$ac_cv_prog_LCOV
3531 if test -n "$LCOV"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3533 $as_echo "$LCOV" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3540 # Extract the first word of "genhtml", so it can be a program name with args.
3541 set dummy genhtml; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_GENHTML+:} false; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -n "$GENHTML"; then
3548 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_GENHTML="genhtml"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 GENHTML=$ac_cv_prog_GENHTML
3568 if test -n "$GENHTML"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3570 $as_echo "$GENHTML" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3578 if test "$LCOV" ; then :
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
3581 $as_echo_n "checking for lcov version... " >&6; }
3582 if ${ax_cv_lcov_version+:} false; then :
3583 $as_echo_n "(cached) " >&6
3586 ax_cv_lcov_version=invalid
3587 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
3588 for lcov_check_version in $lcov_version_list; do
3589 if test "$lcov_version" = "$lcov_check_version"; then
3590 ax_cv_lcov_version="$lcov_check_version (ok)"
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
3596 $as_echo "$ax_cv_lcov_version" >&6; }
3600 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
3601 as_fn_error $? "$lcov_msg" "$LINENO" 5
3605 case $ax_cv_lcov_version in
3607 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
3608 as_fn_error $? "$lcov_msg" "$LINENO" 5
3613 if test -z "$GENHTML" ; then :
3615 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3619 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3620 CODE_COVERAGE_LDFLAGS="-lgcov"
3625 CODE_COVERAGE_RULES='
3629 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
3630 # (Default: $(top_builddir))
3631 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
3632 # by lcov for code coverage. (Default:
3633 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
3634 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
3635 # reports to be created. (Default:
3636 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
3637 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
3638 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
3639 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3640 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
3641 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3642 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
3643 # instance. (Default: empty)
3644 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
3646 # The generated report will be titled using the $(PACKAGE_NAME) and
3647 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
3648 # use the git-version-gen script, available online.
3650 # Optional variables
3651 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
3652 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
3653 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
3654 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
3655 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3656 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3657 CODE_COVERAGE_GENHTML_OPTIONS ?=
3658 CODE_COVERAGE_IGNORE_PATTERN ?=
3660 code_coverage_quiet = $(code_coverage_quiet_$(V))
3661 code_coverage_quiet_ =
3662 code_coverage_quiet_0 = --quiet
3664 # Use recursive makes in order to ignore errors during check
3665 check-code-coverage:
3666 -$(MAKE) $(AM_MAKEFLAGS) -k check
3667 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3669 # Capture code coverage data
3670 code-coverage-capture: code-coverage-capture-hook
3671 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
3672 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
3673 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3674 LANG=C $(GENHTML) $(code_coverage_quiet) --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)
3675 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3677 # Hook rule executed before code-coverage-capture, overridable by the user
3678 code-coverage-capture-hook:
3680 clean: code-coverage-clean
3681 code-coverage-clean:
3682 -$(LCOV) --directory $(top_builddir) -z
3683 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3684 -find . -name "*.gcda" -o -name "*.gcov" -delete
3687 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3689 DISTCHECK_CONFIGURE_FLAGS ?=
3690 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
3692 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
3704 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3705 if test -f "$ac_dir/install-sh"; then
3707 ac_install_sh="$ac_aux_dir/install-sh -c"
3709 elif test -f "$ac_dir/install.sh"; then
3711 ac_install_sh="$ac_aux_dir/install.sh -c"
3713 elif test -f "$ac_dir/shtool"; then
3715 ac_install_sh="$ac_aux_dir/shtool install -c"
3719 if test -z "$ac_aux_dir"; then
3720 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3723 # These three variables are undocumented and unsupported,
3724 # and are intended to be withdrawn in a future Autoconf release.
3725 # They can cause serious problems if a builder's source tree is in a directory
3726 # whose full name contains unusual characters.
3727 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3728 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3729 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3732 # Make sure we can run config.sub.
3733 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3734 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3737 $as_echo_n "checking build system type... " >&6; }
3738 if ${ac_cv_build+:} false; then :
3739 $as_echo_n "(cached) " >&6
3741 ac_build_alias=$build_alias
3742 test "x$ac_build_alias" = x &&
3743 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3744 test "x$ac_build_alias" = x &&
3745 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3746 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3747 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3751 $as_echo "$ac_cv_build" >&6; }
3752 case $ac_cv_build in
3754 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3757 ac_save_IFS=$IFS; IFS='-'
3763 # Remember, the first character of IFS is used to create $*,
3764 # except with old shells:
3767 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3771 $as_echo_n "checking host system type... " >&6; }
3772 if ${ac_cv_host+:} false; then :
3773 $as_echo_n "(cached) " >&6
3775 if test "x$host_alias" = x; then
3776 ac_cv_host=$ac_cv_build
3778 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3779 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3784 $as_echo "$ac_cv_host" >&6; }
3787 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3790 ac_save_IFS=$IFS; IFS='-'
3796 # Remember, the first character of IFS is used to create $*,
3797 # except with old shells:
3800 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3804 cat >>confdefs.h <<_ACEOF
3805 #define OS "${host}"
3810 xc_prog_cc_prev_IFS=$IFS
3811 xc_prog_cc_prev_LIBS=$LIBS
3812 xc_prog_cc_prev_CFLAGS=$CFLAGS
3813 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3814 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3819 for xc_word in $LIBS; do
3829 if test $xc_bad_var_libs = yes; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3831 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
3833 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
3837 xc_bad_var_ldflags=no
3838 for xc_word in $LDFLAGS; do
3841 xc_bad_var_ldflags=yes
3844 xc_bad_var_ldflags=yes
3847 xc_bad_var_ldflags=yes
3850 xc_bad_var_ldflags=yes
3854 if test $xc_bad_var_ldflags = yes; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3856 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3857 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
3858 for xc_word in $LDFLAGS; do
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3862 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3866 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3870 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3874 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3881 xc_bad_var_cppflags=no
3882 for xc_word in $CPPFLAGS; do
3885 xc_bad_var_cppflags=yes
3887 -L* | --library-path=*)
3888 xc_bad_var_cppflags=yes
3891 xc_bad_var_cppflags=yes
3895 if test $xc_bad_var_cppflags = yes; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3897 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3898 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
3899 for xc_word in $CPPFLAGS; do
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3903 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3905 -L* | --library-path=*)
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3907 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3911 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3918 xc_bad_var_cflags=no
3919 for xc_word in $CFLAGS; do
3922 xc_bad_var_cflags=yes
3925 xc_bad_var_cflags=yes
3928 xc_bad_var_cflags=yes
3931 xc_bad_var_cflags=yes
3933 -L* | --library-path=*)
3934 xc_bad_var_cflags=yes
3937 xc_bad_var_cflags=yes
3941 if test $xc_bad_var_cflags = yes; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3943 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3944 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
3945 for xc_word in $CFLAGS; do
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3949 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3953 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3957 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3961 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3963 -L* | --library-path=*)
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3965 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3969 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3975 if test $xc_bad_var_libs = yes ||
3976 test $xc_bad_var_cflags = yes ||
3977 test $xc_bad_var_ldflags = yes ||
3978 test $xc_bad_var_cppflags = yes; then
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3980 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3983 # Find a good install program. We prefer a C program (faster),
3984 # so one script is as good as another. But avoid the broken or
3985 # incompatible versions:
3986 # SysV /etc/install, /usr/sbin/install
3987 # SunOS /usr/etc/install
3988 # IRIX /sbin/install
3990 # AmigaOS /C/install, which installs bootblocks on floppy discs
3991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3994 # OS/2's system install, which has a completely different semantic
3995 # ./install, which can be erroneously created by make from ./install.sh.
3996 # Reject install programs that cannot install multiple files.
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3998 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3999 if test -z "$INSTALL"; then
4000 if ${ac_cv_path_install+:} false; then :
4001 $as_echo_n "(cached) " >&6
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 test -z "$as_dir" && as_dir=.
4008 # Account for people who put trailing slashes in PATH elements.
4009 case $as_dir/ in #((
4010 ./ | .// | /[cC]/* | \
4011 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4012 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4015 # OSF1 and SCO ODT 3.0 have their own names for install.
4016 # Don't use installbsd from OSF since it installs stuff as root
4018 for ac_prog in ginstall scoinst install; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4021 if test $ac_prog = install &&
4022 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4023 # AIX install. It has an incompatible calling convention.
4025 elif test $ac_prog = install &&
4026 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4027 # program-specific install script used by HP pwplus--don't use.
4030 rm -rf conftest.one conftest.two conftest.dir
4031 echo one > conftest.one
4032 echo two > conftest.two
4034 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4035 test -s conftest.one && test -s conftest.two &&
4036 test -s conftest.dir/conftest.one &&
4037 test -s conftest.dir/conftest.two
4039 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4052 rm -rf conftest.one conftest.two conftest.dir
4055 if test "${ac_cv_path_install+set}" = set; then
4056 INSTALL=$ac_cv_path_install
4058 # As a last resort, use the slow shell script. Don't cache a
4059 # value for INSTALL within a source directory, because that will
4060 # break other packages using the cache if that directory is
4061 # removed, or if the value is a relative name.
4062 INSTALL=$ac_install_sh
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4066 $as_echo "$INSTALL" >&6; }
4068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4069 # It thinks the first close brace ends the variable substitution.
4070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4074 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4076 # Expand $ac_aux_dir to an absolute path.
4077 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084 if test -n "$ac_tool_prefix"; then
4085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4086 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if ${ac_cv_prog_CC+:} false; then :
4090 $as_echo_n "(cached) " >&6
4092 if test -n "$CC"; then
4093 ac_cv_prog_CC="$CC" # Let the user override the test.
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 if test -n "$CC"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115 $as_echo "$CC" >&6; }
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4123 if test -z "$ac_cv_prog_CC"; then
4125 # Extract the first word of "gcc", so it can be a program name with args.
4126 set dummy gcc; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4130 $as_echo_n "(cached) " >&6
4132 if test -n "$ac_ct_CC"; then
4133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_ac_ct_CC="gcc"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4153 if test -n "$ac_ct_CC"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4155 $as_echo "$ac_ct_CC" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4161 if test "x$ac_ct_CC" = x; then
4164 case $cross_compiling:$ac_tool_warned in
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168 ac_tool_warned=yes ;;
4176 if test -z "$CC"; then
4177 if test -n "$ac_tool_prefix"; then
4178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4179 set dummy ${ac_tool_prefix}cc; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_CC+:} false; then :
4183 $as_echo_n "(cached) " >&6
4185 if test -n "$CC"; then
4186 ac_cv_prog_CC="$CC" # Let the user override the test.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_CC="${ac_tool_prefix}cc"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 if test -n "$CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208 $as_echo "$CC" >&6; }
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4217 if test -z "$CC"; then
4218 # Extract the first word of "cc", so it can be a program name with args.
4219 set dummy cc; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_CC+:} false; then :
4223 $as_echo_n "(cached) " >&6
4225 if test -n "$CC"; then
4226 ac_cv_prog_CC="$CC" # Let the user override the test.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4237 ac_prog_rejected=yes
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 if test $ac_prog_rejected = yes; then
4249 # We found a bogon in the path, so make sure we never use it.
4250 set dummy $ac_cv_prog_CC
4252 if test $# != 0; then
4253 # We chose a different compiler from the bogus one.
4254 # However, it has the same basename, so the bogon will be chosen
4255 # first if we set CC to just the basename; use the full file name.
4257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4263 if test -n "$CC"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4265 $as_echo "$CC" >&6; }
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4273 if test -z "$CC"; then
4274 if test -n "$ac_tool_prefix"; then
4275 for ac_prog in cl.exe
4277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_CC+:} false; then :
4282 $as_echo_n "(cached) " >&6
4284 if test -n "$CC"; then
4285 ac_cv_prog_CC="$CC" # Let the user override the test.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 if test -n "$CC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307 $as_echo "$CC" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4314 test -n "$CC" && break
4317 if test -z "$CC"; then
4319 for ac_prog in cl.exe
4321 # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 if test -n "$ac_ct_CC"; then
4329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_CC="$ac_prog"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4349 if test -n "$ac_ct_CC"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4351 $as_echo "$ac_ct_CC" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4358 test -n "$ac_ct_CC" && break
4361 if test "x$ac_ct_CC" = x; then
4364 case $cross_compiling:$ac_tool_warned in
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368 ac_tool_warned=yes ;;
4377 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4379 as_fn_error $? "no acceptable C compiler found in \$PATH
4380 See \`config.log' for more details" "$LINENO" 5; }
4382 # Provide some information about the compiler.
4383 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4386 for ac_option in --version -v -V -qversion; do
4387 { { ac_try="$ac_compiler $ac_option >&5"
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4396 if test -s conftest.err; then
4398 ... rest of stderr output deleted ...
4399 10q' conftest.err >conftest.er1
4400 cat conftest.er1 >&5
4402 rm -f conftest.er1 conftest.err
4403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404 test $ac_status = 0; }
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4417 ac_clean_files_save=$ac_clean_files
4418 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4419 # Try to create an executable without -o first, disregard a.out.
4420 # It will help us diagnose broken compilers, and finding out an intuition
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4423 $as_echo_n "checking whether the C compiler works... " >&6; }
4424 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4426 # The possible output files:
4427 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4430 for ac_file in $ac_files
4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4434 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4439 if { { ac_try="$ac_link_default"
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_link_default") 2>&5
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }; then :
4450 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4451 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4452 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4453 # so that the user can short-circuit this test for compilers unknown to
4455 for ac_file in $ac_files ''
4457 test -f "$ac_file" || continue
4459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4462 # We found the default executable, but exeext='' is most
4466 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4468 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4470 # We set ac_cv_exeext here because the later test for it is not
4471 # safe: cross compilers may not add the suffix if given an `-o'
4472 # argument, so we may need to know it at that point already.
4473 # Even if this section looks crufty: it has the advantage of
4480 test "$ac_cv_exeext" = no && ac_cv_exeext=
4485 if test -z "$ac_file"; then :
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4488 $as_echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error 77 "C compiler cannot create executables
4494 See \`config.log' for more details" "$LINENO" 5; }
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4500 $as_echo_n "checking for C compiler default output file name... " >&6; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4502 $as_echo "$ac_file" >&6; }
4503 ac_exeext=$ac_cv_exeext
4505 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4506 ac_clean_files=$ac_clean_files_save
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4508 $as_echo_n "checking for suffix of executables... " >&6; }
4509 if { { ac_try="$ac_link"
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_link") 2>&5
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; then :
4520 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4521 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4522 # work properly (i.e., refer to `conftest.exe'), while it won't with
4524 for ac_file in conftest.exe conftest conftest.*; do
4525 test -f "$ac_file" || continue
4527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4537 See \`config.log' for more details" "$LINENO" 5; }
4539 rm -f conftest conftest$ac_cv_exeext
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4541 $as_echo "$ac_cv_exeext" >&6; }
4543 rm -f conftest.$ac_ext
4544 EXEEXT=$ac_cv_exeext
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4551 FILE *f = fopen ("conftest.out", "w");
4552 return ferror (f) || fclose (f) != 0;
4558 ac_clean_files="$ac_clean_files conftest.out"
4559 # Check that the compiler produces executables we can run. If not, either
4560 # the compiler is broken, or we cross compile.
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4562 $as_echo_n "checking whether we are cross compiling... " >&6; }
4563 if test "$cross_compiling" != yes; then
4564 { { ac_try="$ac_link"
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_link") 2>&5
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }
4575 if { ac_try='./conftest$ac_cv_exeext'
4576 { { case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_try") 2>&5
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }; }; then
4588 if test "$cross_compiling" = maybe; then
4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593 as_fn_error $? "cannot run C compiled programs.
4594 If you meant to cross compile, use \`--host'.
4595 See \`config.log' for more details" "$LINENO" 5; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4600 $as_echo "$cross_compiling" >&6; }
4602 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4603 ac_clean_files=$ac_clean_files_save
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4605 $as_echo_n "checking for suffix of object files... " >&6; }
4606 if ${ac_cv_objext+:} false; then :
4607 $as_echo_n "(cached) " >&6
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4619 rm -f conftest.o conftest.obj
4620 if { { ac_try="$ac_compile"
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_compile") 2>&5
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; then :
4631 for ac_file in conftest.o conftest.obj conftest.*; do
4632 test -f "$ac_file" || continue;
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4640 $as_echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645 as_fn_error $? "cannot compute suffix of object files: cannot compile
4646 See \`config.log' for more details" "$LINENO" 5; }
4648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4651 $as_echo "$ac_cv_objext" >&6; }
4652 OBJEXT=$ac_cv_objext
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4656 if ${ac_cv_c_compiler_gnu+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4672 if ac_fn_c_try_compile "$LINENO"; then :
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4682 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4683 if test $ac_compiler_gnu = yes; then
4688 ac_test_CFLAGS=${CFLAGS+set}
4689 ac_save_CFLAGS=$CFLAGS
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4691 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4692 if ${ac_cv_prog_cc_g+:} false; then :
4693 $as_echo_n "(cached) " >&6
4695 ac_save_c_werror_flag=$ac_c_werror_flag
4696 ac_c_werror_flag=yes
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4709 if ac_fn_c_try_compile "$LINENO"; then :
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4723 if ac_fn_c_try_compile "$LINENO"; then :
4726 ac_c_werror_flag=$ac_save_c_werror_flag
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4738 if ac_fn_c_try_compile "$LINENO"; then :
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 ac_c_werror_flag=$ac_save_c_werror_flag
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4749 $as_echo "$ac_cv_prog_cc_g" >&6; }
4750 if test "$ac_test_CFLAGS" = set; then
4751 CFLAGS=$ac_save_CFLAGS
4752 elif test $ac_cv_prog_cc_g = yes; then
4753 if test "$GCC" = yes; then
4759 if test "$GCC" = yes; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4766 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4767 if ${ac_cv_prog_cc_c89+:} false; then :
4768 $as_echo_n "(cached) " >&6
4770 ac_cv_prog_cc_c89=no
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4778 struct buf { int x; };
4779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4780 static char *e (p, i)
4786 static char *f (char * (*g) (char **, int), char **p, ...)
4791 s = g (p, va_arg (v,int));
4796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4797 function prototypes and stuff, but not '\xHH' hex character constants.
4798 These don't provoke an error unfortunately, instead are silently treated
4799 as 'x'. The following induces an error, until -std is added to get
4800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4801 array size at least. It's necessary to write '\x00'==0 to get something
4802 that's true only with -std. */
4803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4805 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4806 inside strings and character constants. */
4808 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4810 int test (int i, double x);
4811 struct s1 {int (*f) (int a);};
4812 struct s2 {int (*f) (double a);};
4813 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4818 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4824 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4826 CC="$ac_save_CC $ac_arg"
4827 if ac_fn_c_try_compile "$LINENO"; then :
4828 ac_cv_prog_cc_c89=$ac_arg
4830 rm -f core conftest.err conftest.$ac_objext
4831 test "x$ac_cv_prog_cc_c89" != "xno" && break
4833 rm -f conftest.$ac_ext
4838 case "x$ac_cv_prog_cc_c89" in
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4841 $as_echo "none needed" >&6; } ;;
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4844 $as_echo "unsupported" >&6; } ;;
4846 CC="$CC $ac_cv_prog_cc_c89"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4850 if test "x$ac_cv_prog_cc_c89" != xno; then :
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 ac_cpp='$CPP $CPPFLAGS'
4862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4866 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4867 if ${am_cv_prog_cc_c_o+:} false; then :
4868 $as_echo_n "(cached) " >&6
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4880 # Make sure it works both with $CC and with simple cc.
4881 # Following AC_PROG_CC_C_O, we do the test twice because some
4882 # compilers refuse to overwrite an existing .o file with -o,
4883 # though they will create one.
4884 am_cv_prog_cc_c_o=yes
4886 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4887 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } \
4891 && test -f conftest2.$ac_objext; then
4894 am_cv_prog_cc_c_o=no
4898 rm -f core conftest*
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4902 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4903 if test "$am_cv_prog_cc_c_o" != yes; then
4904 # Losing compiler, so override with the script.
4905 # FIXME: It is wrong to rewrite CC.
4906 # But if we don't then we get into trouble of one sort or another.
4907 # A longer-term fix would be to have automake use am__CC in this case,
4908 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4909 CC="$am_aux_dir/compile $CC"
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4925 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4926 # On Suns, sometimes $CPP names a directory.
4927 if test -n "$CPP" && test -d "$CPP"; then
4930 if test -z "$CPP"; then
4931 if ${ac_cv_prog_CPP+:} false; then :
4932 $as_echo_n "(cached) " >&6
4934 # Double quotes because CPP needs to be expanded
4935 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4938 for ac_c_preproc_warn_flag in '' yes
4940 # Use a header file that comes with gcc, so configuring glibc
4941 # with a fresh cross-compiler works.
4942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4943 # <limits.h> exists even on freestanding compilers.
4944 # On the NeXT, cc -E runs the code through the compiler's parser,
4945 # not just through cpp. "Syntax error" is here to catch this case.
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4949 # include <limits.h>
4951 # include <assert.h>
4955 if ac_fn_c_try_cpp "$LINENO"; then :
4958 # Broken: fails on valid input.
4961 rm -f conftest.err conftest.i conftest.$ac_ext
4963 # OK, works on sane cases. Now check whether nonexistent headers
4964 # can be detected and how.
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #include <ac_nonexistent.h>
4969 if ac_fn_c_try_cpp "$LINENO"; then :
4970 # Broken: success on invalid input.
4973 # Passes both tests.
4977 rm -f conftest.err conftest.i conftest.$ac_ext
4980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4981 rm -f conftest.i conftest.err conftest.$ac_ext
4982 if $ac_preproc_ok; then :
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4995 $as_echo "$CPP" >&6; }
4997 for ac_c_preproc_warn_flag in '' yes
4999 # Use a header file that comes with gcc, so configuring glibc
5000 # with a fresh cross-compiler works.
5001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5002 # <limits.h> exists even on freestanding compilers.
5003 # On the NeXT, cc -E runs the code through the compiler's parser,
5004 # not just through cpp. "Syntax error" is here to catch this case.
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5008 # include <limits.h>
5010 # include <assert.h>
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5017 # Broken: fails on valid input.
5020 rm -f conftest.err conftest.i conftest.$ac_ext
5022 # OK, works on sane cases. Now check whether nonexistent headers
5023 # can be detected and how.
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5026 #include <ac_nonexistent.h>
5028 if ac_fn_c_try_cpp "$LINENO"; then :
5029 # Broken: success on invalid input.
5032 # Passes both tests.
5036 rm -f conftest.err conftest.i conftest.$ac_ext
5039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5040 rm -f conftest.i conftest.err conftest.$ac_ext
5041 if $ac_preproc_ok; then :
5044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5046 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5047 See \`config.log' for more details" "$LINENO" 5; }
5051 ac_cpp='$CPP $CPPFLAGS'
5052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057 IFS=$xc_prog_cc_prev_IFS
5058 LIBS=$xc_prog_cc_prev_LIBS
5059 CFLAGS=$xc_prog_cc_prev_CFLAGS
5060 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5061 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5068 ac_cpp='$CXXCPP $CPPFLAGS'
5069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5072 if test -z "$CXX"; then
5073 if test -n "$CCC"; then
5076 if test -n "$ac_tool_prefix"; then
5077 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if ${ac_cv_prog_CXX+:} false; then :
5084 $as_echo_n "(cached) " >&6
5086 if test -n "$CXX"; then
5087 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 if test -n "$CXX"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5109 $as_echo "$CXX" >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5116 test -n "$CXX" && break
5119 if test -z "$CXX"; then
5121 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5123 # Extract the first word of "$ac_prog", so it can be a program name with args.
5124 set dummy $ac_prog; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5128 $as_echo_n "(cached) " >&6
5130 if test -n "$ac_ct_CXX"; then
5131 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_ac_ct_CXX="$ac_prog"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5151 if test -n "$ac_ct_CXX"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5153 $as_echo "$ac_ct_CXX" >&6; }
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5160 test -n "$ac_ct_CXX" && break
5163 if test "x$ac_ct_CXX" = x; then
5166 case $cross_compiling:$ac_tool_warned in
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170 ac_tool_warned=yes ;;
5178 # Provide some information about the compiler.
5179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5182 for ac_option in --version -v -V -qversion; do
5183 { { ac_try="$ac_compiler $ac_option >&5"
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5189 $as_echo "$ac_try_echo"; } >&5
5190 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5192 if test -s conftest.err; then
5194 ... rest of stderr output deleted ...
5195 10q' conftest.err >conftest.er1
5196 cat conftest.er1 >&5
5198 rm -f conftest.er1 conftest.err
5199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5200 test $ac_status = 0; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5204 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5205 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5206 $as_echo_n "(cached) " >&6
5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h. */
5222 if ac_fn_cxx_try_compile "$LINENO"; then :
5227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5232 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5233 if test $ac_compiler_gnu = yes; then
5238 ac_test_CXXFLAGS=${CXXFLAGS+set}
5239 ac_save_CXXFLAGS=$CXXFLAGS
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5241 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5242 if ${ac_cv_prog_cxx_g+:} false; then :
5243 $as_echo_n "(cached) " >&6
5245 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5246 ac_cxx_werror_flag=yes
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5260 if ac_fn_cxx_try_compile "$LINENO"; then :
5261 ac_cv_prog_cxx_g=yes
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5275 if ac_fn_cxx_try_compile "$LINENO"; then :
5278 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5291 if ac_fn_cxx_try_compile "$LINENO"; then :
5292 ac_cv_prog_cxx_g=yes
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5302 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5303 if test "$ac_test_CXXFLAGS" = set; then
5304 CXXFLAGS=$ac_save_CXXFLAGS
5305 elif test $ac_cv_prog_cxx_g = yes; then
5306 if test "$GXX" = yes; then
5312 if test "$GXX" = yes; then
5319 ac_cpp='$CXXCPP $CPPFLAGS'
5320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5325 ax_cxx_compile_cxx11_required=false
5327 ac_cpp='$CXXCPP $CPPFLAGS'
5328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5333 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5334 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5335 $as_echo_n "(cached) " >&6
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5340 template <typename T>
5343 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5349 struct Child : public Base {
5350 virtual void f() override {}
5353 typedef check<check<bool>> right_angle_brackets;
5358 typedef check<int> check_type;
5360 check_type&& cr = static_cast<check_type&&>(c);
5365 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5366 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
5367 namespace test_template_alias_sfinae {
5370 template<typename T>
5371 using member = typename T::member_type;
5373 template<typename T>
5376 template<typename T>
5377 void func(member<T>*) {}
5387 if ac_fn_cxx_try_compile "$LINENO"; then :
5388 ax_cv_cxx_compile_cxx11=yes
5390 ax_cv_cxx_compile_cxx11=no
5392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5395 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5396 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5402 if test x$ac_success = xno; then
5403 for switch in -std=c++11 -std=c++0x; do
5404 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5406 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5407 if eval \${$cachevar+:} false; then :
5408 $as_echo_n "(cached) " >&6
5410 ac_save_CXXFLAGS="$CXXFLAGS"
5411 CXXFLAGS="$CXXFLAGS $switch"
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5415 template <typename T>
5418 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5424 struct Child : public Base {
5425 virtual void f() override {}
5428 typedef check<check<bool>> right_angle_brackets;
5433 typedef check<int> check_type;
5435 check_type&& cr = static_cast<check_type&&>(c);
5440 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5441 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
5442 namespace test_template_alias_sfinae {
5445 template<typename T>
5446 using member = typename T::member_type;
5448 template<typename T>
5451 template<typename T>
5452 void func(member<T>*) {}
5462 if ac_fn_cxx_try_compile "$LINENO"; then :
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 CXXFLAGS="$ac_save_CXXFLAGS"
5470 eval ac_res=\$$cachevar
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5472 $as_echo "$ac_res" >&6; }
5473 if eval test x\$$cachevar = xyes; then
5474 CXXFLAGS="$CXXFLAGS $switch"
5481 ac_cpp='$CPP $CPPFLAGS'
5482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5487 if test x$ac_success = xno; then
5488 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
5491 if test x$ac_success = xno; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5494 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5498 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5506 am__api_version='1.16'
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5509 $as_echo_n "checking whether build environment is sane... " >&6; }
5510 # Reject unsafe characters in $srcdir or the absolute working directory
5511 # name. Accept space and tab only in the latter.
5515 *[\\\"\#\$\&\'\`$am_lf]*)
5516 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5519 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5520 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5523 # Do 'set' in a subshell so we don't clobber the current shell's
5524 # arguments. Must try -L first in case configure is actually a
5525 # symlink; some systems play weird games with the mod time of symlinks
5526 # (eg FreeBSD returns the mod time of the symlink's containing
5530 for am_try in 1 2; do
5531 echo "timestamp, slept: $am_has_slept" > conftest.file
5532 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5533 if test "$*" = "X"; then
5535 set X `ls -t "$srcdir/configure" conftest.file`
5537 if test "$*" != "X $srcdir/configure conftest.file" \
5538 && test "$*" != "X conftest.file $srcdir/configure"; then
5540 # If neither matched, then we have a broken ls. This can happen
5541 # if, for instance, CONFIG_SHELL is bash and it inherits a
5542 # broken ls alias from the environment. This has actually
5543 # happened. Such a system could not be considered "sane".
5544 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5545 alias in your environment" "$LINENO" 5
5547 if test "$2" = conftest.file || test $am_try -eq 2; then
5554 test "$2" = conftest.file
5560 as_fn_error $? "newly created file is older than distributed files!
5561 Check your system clock" "$LINENO" 5
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5564 $as_echo "yes" >&6; }
5565 # If we didn't sleep, we still need to ensure time stamps of config.status and
5566 # generated files are strictly newer.
5568 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5575 test "$program_prefix" != NONE &&
5576 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5577 # Use a double $ so make ignores it.
5578 test "$program_suffix" != NONE &&
5579 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5580 # Double any \ or $.
5581 # By default was `s,x,x', remove it if useless.
5582 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5583 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5585 if test x"${MISSING+set}" != xset; then
5588 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5590 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5593 # Use eval to expand $SHELL
5594 if eval "$MISSING --is-lightweight"; then
5595 am_missing_run="$MISSING "
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5599 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5602 if test x"${install_sh+set}" != xset; then
5605 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5607 install_sh="\${SHELL} $am_aux_dir/install-sh"
5611 # Installed binaries are usually stripped using 'strip' when the user
5612 # run "make install-strip". However 'strip' might not be the right
5613 # tool to use in cross-compilation environments, therefore Automake
5614 # will honor the 'STRIP' environment variable to overrule this program.
5615 if test "$cross_compiling" != no; then
5616 if test -n "$ac_tool_prefix"; then
5617 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5618 set dummy ${ac_tool_prefix}strip; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_STRIP+:} false; then :
5622 $as_echo_n "(cached) " >&6
5624 if test -n "$STRIP"; then
5625 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 STRIP=$ac_cv_prog_STRIP
5645 if test -n "$STRIP"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5647 $as_echo "$STRIP" >&6; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5655 if test -z "$ac_cv_prog_STRIP"; then
5657 # Extract the first word of "strip", so it can be a program name with args.
5658 set dummy strip; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5662 $as_echo_n "(cached) " >&6
5664 if test -n "$ac_ct_STRIP"; then
5665 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674 ac_cv_prog_ac_ct_STRIP="strip"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5685 if test -n "$ac_ct_STRIP"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5687 $as_echo "$ac_ct_STRIP" >&6; }
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5693 if test "x$ac_ct_STRIP" = x; then
5696 case $cross_compiling:$ac_tool_warned in
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700 ac_tool_warned=yes ;;
5705 STRIP="$ac_cv_prog_STRIP"
5709 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5712 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5713 if test -z "$MKDIR_P"; then
5714 if ${ac_cv_path_mkdir+:} false; then :
5715 $as_echo_n "(cached) " >&6
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5721 test -z "$as_dir" && as_dir=.
5722 for ac_prog in mkdir gmkdir; do
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5725 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5726 'mkdir (GNU coreutils) '* | \
5727 'mkdir (coreutils) '* | \
5728 'mkdir (fileutils) '4.1*)
5729 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5739 test -d ./--version && rmdir ./--version
5740 if test "${ac_cv_path_mkdir+set}" = set; then
5741 MKDIR_P="$ac_cv_path_mkdir -p"
5743 # As a last resort, use the slow shell script. Don't cache a
5744 # value for MKDIR_P within a source directory, because that will
5745 # break other packages using the cache if that directory is
5746 # removed, or if the value is a relative name.
5747 MKDIR_P="$ac_install_sh -d"
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5751 $as_echo "$MKDIR_P" >&6; }
5753 for ac_prog in gawk mawk nawk awk
5755 # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_AWK+:} false; then :
5760 $as_echo_n "(cached) " >&6
5762 if test -n "$AWK"; then
5763 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_AWK="$ac_prog"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 if test -n "$AWK"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5785 $as_echo "$AWK" >&6; }
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5792 test -n "$AWK" && break
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5799 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5800 $as_echo_n "(cached) " >&6
5802 cat >conftest.make <<\_ACEOF
5805 @echo '@@@%%%=$(MAKE)=@@@%%%'
5807 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5810 eval ac_cv_prog_make_${ac_make}_set=yes;;
5812 eval ac_cv_prog_make_${ac_make}_set=no;;
5816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5818 $as_echo "yes" >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 SET_MAKE="MAKE=${MAKE-make}"
5826 rm -rf .tst 2>/dev/null
5827 mkdir .tst 2>/dev/null
5828 if test -d .tst; then
5833 rmdir .tst 2>/dev/null
5835 DEPDIR="${am__leading_dot}deps"
5837 ac_config_commands="$ac_config_commands depfiles"
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5840 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5841 cat > confinc.mk << 'END'
5843 @echo this is the am__doit target >confinc.out
5848 # BSD make does it like this.
5849 echo '.include "confinc.mk" # ignored' > confmf.BSD
5850 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5851 echo 'include confinc.mk # ignored' > confmf.GNU
5853 for s in GNU BSD; do
5854 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5855 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }
5859 case $?:`cat confinc.out 2>/dev/null` in #(
5860 '0:this is the am__doit target') :
5863 am__include='.include' am__quote='"' ;; #(
5865 am__include='include' am__quote='' ;;
5870 if test "$am__include" != "#"; then
5871 _am_result="yes ($s style)"
5875 rm -f confinc.* confmf.*
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5877 $as_echo "${_am_result}" >&6; }
5879 # Check whether --enable-dependency-tracking was given.
5880 if test "${enable_dependency_tracking+set}" = set; then :
5881 enableval=$enable_dependency_tracking;
5884 if test "x$enable_dependency_tracking" != xno; then
5885 am_depcomp="$ac_aux_dir/depcomp"
5889 if test "x$enable_dependency_tracking" != xno; then
5898 ## --------------------------------------- ##
5899 ## Start of automake initialization code ##
5900 ## --------------------------------------- ##
5902 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5903 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5904 # is not polluted with repeated "-I."
5905 am__isrc=' -I$(srcdir)'
5906 # test to see if srcdir already configured
5907 if test -f $srcdir/config.status; then
5908 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5912 # test whether we have cygpath
5913 if test -z "$CYGPATH_W"; then
5914 if (cygpath --version) >/dev/null 2>/dev/null; then
5915 CYGPATH_W='cygpath -w'
5922 # Define the identity of the package.
5927 cat >>confdefs.h <<_ACEOF
5928 #define PACKAGE "$PACKAGE"
5932 cat >>confdefs.h <<_ACEOF
5933 #define VERSION "$VERSION"
5936 # Some tools Automake needs.
5938 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5941 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5944 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5947 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5950 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5952 # For better backward compatibility. To be removed once Automake 1.9.x
5953 # dies out for good. For more background, see:
5954 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5955 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5956 mkdir_p='$(MKDIR_P)'
5958 # We need awk for the "check" target (and possibly the TAP driver). The
5959 # system "awk" is bad on some platforms.
5960 # Always define AMTAR for backward compatibility. Yes, it's still used
5961 # in the wild :-( We should find a proper way to deprecate it ...
5965 # We'll loop over all known methods to create a tar archive until one works.
5966 _am_tools='gnutar pax cpio none'
5968 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5974 depcc="$CC" am_compiler_list=
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5977 $as_echo_n "checking dependency style of $depcc... " >&6; }
5978 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5979 $as_echo_n "(cached) " >&6
5981 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5982 # We make a subdir and do the tests there. Otherwise we can end up
5983 # making bogus files that we don't know about and never remove. For
5984 # instance it was reported that on HP-UX the gcc test will end up
5985 # making a dummy file named 'D' -- because '-MD' means "put the output
5989 # Copy depcomp to subdir because otherwise we won't find it if we're
5990 # using a relative directory.
5991 cp "$am_depcomp" conftest.dir
5993 # We will build objects and dependencies in a subdirectory because
5994 # it helps to detect inapplicable dependency modes. For instance
5995 # both Tru64's cc and ICC support -MD to output dependencies as a
5996 # side effect of compilation, but ICC will put the dependencies in
5997 # the current directory while Tru64 will put them in the object
6001 am_cv_CC_dependencies_compiler_type=none
6002 if test "$am_compiler_list" = ""; then
6003 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6006 case " $depcc " in #(
6007 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6010 for depmode in $am_compiler_list; do
6011 # Setup a source with many dependencies, because some compilers
6012 # like to wrap large dependency lists on column 80 (with \), and
6013 # we should not choose a depcomp mode which is confused by this.
6015 # We need to recreate these files for each test, as the compiler may
6016 # overwrite some of them when testing with obscure command lines.
6017 # This happens at least with the AIX C compiler.
6019 for i in 1 2 3 4 5 6; do
6020 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6021 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6022 # Solaris 10 /bin/sh.
6023 echo '/* dummy */' > sub/conftst$i.h
6025 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6027 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6028 # mode. It turns out that the SunPro C++ compiler does not properly
6029 # handle '-M -o', and we need to detect this. Also, some Intel
6030 # versions had trouble with output in subdirs.
6031 am__obj=sub/conftest.${OBJEXT-o}
6032 am__minus_obj="-o $am__obj"
6035 # This depmode causes a compiler race in universal mode.
6036 test "$am__universal" = false || continue
6039 # After this tag, mechanisms are not by side-effect, so they'll
6040 # only be used when explicitly requested.
6041 if test "x$enable_dependency_tracking" = xyes; then
6047 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6048 # This compiler won't grok '-c -o', but also, the minuso test has
6049 # not run yet. These depmodes are late enough in the game, and
6050 # so weak that their functioning should not be impacted.
6051 am__obj=conftest.${OBJEXT-o}
6056 if depmode=$depmode \
6057 source=sub/conftest.c object=$am__obj \
6058 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6060 >/dev/null 2>conftest.err &&
6061 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6062 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6063 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6064 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6065 # icc doesn't choke on unknown options, it will just issue warnings
6066 # or remarks (even with -Werror). So we grep stderr for any message
6067 # that says an option was ignored or not supported.
6068 # When given -MP, icc 7.0 and 7.1 complain thusly:
6069 # icc: Command line warning: ignoring option '-M'; no argument required
6070 # The diagnosis changed in icc 8.0:
6071 # icc: Command line remark: option '-MP' not supported
6072 if (grep 'ignoring option' conftest.err ||
6073 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6074 am_cv_CC_dependencies_compiler_type=$depmode
6083 am_cv_CC_dependencies_compiler_type=none
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6088 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6089 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6092 test "x$enable_dependency_tracking" != xno \
6093 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6095 am__fastdepCC_FALSE='#'
6097 am__fastdepCC_TRUE='#'
6098 am__fastdepCC_FALSE=
6102 depcc="$CXX" am_compiler_list=
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6105 $as_echo_n "checking dependency style of $depcc... " >&6; }
6106 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6107 $as_echo_n "(cached) " >&6
6109 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6110 # We make a subdir and do the tests there. Otherwise we can end up
6111 # making bogus files that we don't know about and never remove. For
6112 # instance it was reported that on HP-UX the gcc test will end up
6113 # making a dummy file named 'D' -- because '-MD' means "put the output
6117 # Copy depcomp to subdir because otherwise we won't find it if we're
6118 # using a relative directory.
6119 cp "$am_depcomp" conftest.dir
6121 # We will build objects and dependencies in a subdirectory because
6122 # it helps to detect inapplicable dependency modes. For instance
6123 # both Tru64's cc and ICC support -MD to output dependencies as a
6124 # side effect of compilation, but ICC will put the dependencies in
6125 # the current directory while Tru64 will put them in the object
6129 am_cv_CXX_dependencies_compiler_type=none
6130 if test "$am_compiler_list" = ""; then
6131 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6134 case " $depcc " in #(
6135 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6138 for depmode in $am_compiler_list; do
6139 # Setup a source with many dependencies, because some compilers
6140 # like to wrap large dependency lists on column 80 (with \), and
6141 # we should not choose a depcomp mode which is confused by this.
6143 # We need to recreate these files for each test, as the compiler may
6144 # overwrite some of them when testing with obscure command lines.
6145 # This happens at least with the AIX C compiler.
6147 for i in 1 2 3 4 5 6; do
6148 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6149 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6150 # Solaris 10 /bin/sh.
6151 echo '/* dummy */' > sub/conftst$i.h
6153 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6155 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6156 # mode. It turns out that the SunPro C++ compiler does not properly
6157 # handle '-M -o', and we need to detect this. Also, some Intel
6158 # versions had trouble with output in subdirs.
6159 am__obj=sub/conftest.${OBJEXT-o}
6160 am__minus_obj="-o $am__obj"
6163 # This depmode causes a compiler race in universal mode.
6164 test "$am__universal" = false || continue
6167 # After this tag, mechanisms are not by side-effect, so they'll
6168 # only be used when explicitly requested.
6169 if test "x$enable_dependency_tracking" = xyes; then
6175 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6176 # This compiler won't grok '-c -o', but also, the minuso test has
6177 # not run yet. These depmodes are late enough in the game, and
6178 # so weak that their functioning should not be impacted.
6179 am__obj=conftest.${OBJEXT-o}
6184 if depmode=$depmode \
6185 source=sub/conftest.c object=$am__obj \
6186 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6187 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6188 >/dev/null 2>conftest.err &&
6189 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6191 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6193 # icc doesn't choke on unknown options, it will just issue warnings
6194 # or remarks (even with -Werror). So we grep stderr for any message
6195 # that says an option was ignored or not supported.
6196 # When given -MP, icc 7.0 and 7.1 complain thusly:
6197 # icc: Command line warning: ignoring option '-M'; no argument required
6198 # The diagnosis changed in icc 8.0:
6199 # icc: Command line remark: option '-MP' not supported
6200 if (grep 'ignoring option' conftest.err ||
6201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6202 am_cv_CXX_dependencies_compiler_type=$depmode
6211 am_cv_CXX_dependencies_compiler_type=none
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6216 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6217 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6220 test "x$enable_dependency_tracking" != xno \
6221 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6222 am__fastdepCXX_TRUE=
6223 am__fastdepCXX_FALSE='#'
6225 am__fastdepCXX_TRUE='#'
6226 am__fastdepCXX_FALSE=
6231 # POSIX will say in a future version that running "rm -f" with no argument
6232 # is OK; and we want to be able to make that assumption in our Makefile
6233 # recipes. So use an aggressive probe to check that the usage we want is
6234 # actually supported "in the wild" to an acceptable degree.
6235 # See automake bug#10828.
6236 # To make any issue more visible, cause the running configure to be aborted
6237 # by default if the 'rm' program in use doesn't match our expectations; the
6238 # user can still override this though.
6239 if rm -f && rm -fr && rm -rf; then : OK; else
6243 Your 'rm' program seems unable to run without file operands specified
6244 on the command line, even when the '-f' option is present. This is contrary
6245 to the behaviour of most rm programs out there, and not conforming with
6246 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6248 Please tell bug-automake@gnu.org about your system, including the value
6249 of your $PATH and any error possibly output before this message. This
6250 can help us improve future automake versions.
6253 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6254 echo 'Configuration will proceed anyway, since you have set the' >&2
6255 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6259 Aborting the configuration process, to ensure you take notice of the issue.
6261 You can download and install GNU coreutils to get an 'rm' implementation
6262 that behaves properly: <https://www.gnu.org/software/coreutils/>.
6264 If you want to complete the configuration process using your problematic
6265 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6266 to "yes", and re-run configure.
6269 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6273 ## ------------------------------------- ##
6274 ## End of automake initialization code ##
6275 ## ------------------------------------- ##
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6282 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6283 if ${ac_cv_path_GREP+:} false; then :
6284 $as_echo_n "(cached) " >&6
6286 if test -z "$GREP"; then
6287 ac_path_GREP_found=false
6288 # Loop through the user's path and test for each of PROGNAME-LIST
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6293 test -z "$as_dir" && as_dir=.
6294 for ac_prog in grep ggrep; do
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6297 as_fn_executable_p "$ac_path_GREP" || continue
6298 # Check for GNU ac_path_GREP and select it if it is found.
6299 # Check for GNU $ac_path_GREP
6300 case `"$ac_path_GREP" --version 2>&1` in
6302 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6305 $as_echo_n 0123456789 >"conftest.in"
6308 cat "conftest.in" "conftest.in" >"conftest.tmp"
6309 mv "conftest.tmp" "conftest.in"
6310 cp "conftest.in" "conftest.nl"
6311 $as_echo 'GREP' >> "conftest.nl"
6312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6314 as_fn_arith $ac_count + 1 && ac_count=$as_val
6315 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6316 # Best one so far, save it but keep looking for a better one
6317 ac_cv_path_GREP="$ac_path_GREP"
6318 ac_path_GREP_max=$ac_count
6320 # 10*(2^10) chars as input seems more than enough
6321 test $ac_count -gt 10 && break
6323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6326 $ac_path_GREP_found && break 3
6331 if test -z "$ac_cv_path_GREP"; then
6332 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6335 ac_cv_path_GREP=$GREP
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6340 $as_echo "$ac_cv_path_GREP" >&6; }
6341 GREP="$ac_cv_path_GREP"
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6345 $as_echo_n "checking for egrep... " >&6; }
6346 if ${ac_cv_path_EGREP+:} false; then :
6347 $as_echo_n "(cached) " >&6
6349 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6350 then ac_cv_path_EGREP="$GREP -E"
6352 if test -z "$EGREP"; then
6353 ac_path_EGREP_found=false
6354 # Loop through the user's path and test for each of PROGNAME-LIST
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6359 test -z "$as_dir" && as_dir=.
6360 for ac_prog in egrep; do
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6363 as_fn_executable_p "$ac_path_EGREP" || continue
6364 # Check for GNU ac_path_EGREP and select it if it is found.
6365 # Check for GNU $ac_path_EGREP
6366 case `"$ac_path_EGREP" --version 2>&1` in
6368 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6371 $as_echo_n 0123456789 >"conftest.in"
6374 cat "conftest.in" "conftest.in" >"conftest.tmp"
6375 mv "conftest.tmp" "conftest.in"
6376 cp "conftest.in" "conftest.nl"
6377 $as_echo 'EGREP' >> "conftest.nl"
6378 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6380 as_fn_arith $ac_count + 1 && ac_count=$as_val
6381 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6382 # Best one so far, save it but keep looking for a better one
6383 ac_cv_path_EGREP="$ac_path_EGREP"
6384 ac_path_EGREP_max=$ac_count
6386 # 10*(2^10) chars as input seems more than enough
6387 test $ac_count -gt 10 && break
6389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6392 $ac_path_EGREP_found && break 3
6397 if test -z "$ac_cv_path_EGREP"; then
6398 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6401 ac_cv_path_EGREP=$EGREP
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6407 $as_echo "$ac_cv_path_EGREP" >&6; }
6408 EGREP="$ac_cv_path_EGREP"
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6414 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6424 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6427 $as_echo "yes" >&6; }
6428 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6444 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6456 force compilation error
6464 if ac_fn_c_try_compile "$LINENO"; then :
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6467 $as_echo "yes" >&6; }
6468 tmp_thread_safe_initially_defined="yes"
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 tmp_thread_safe_initially_defined="no"
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 if test "$tmp_thread_safe_initially_defined" = "no"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6481 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6484 aix[123].* | aix4.[012].*)
6485 tmp_need_thread_safe="no"
6488 tmp_need_thread_safe="yes"
6491 tmp_need_thread_safe="no"
6495 if test "$tmp_need_thread_safe" = "yes"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6497 $as_echo "yes" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6505 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6506 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6507 test "$tmp_need_thread_safe" = "yes"; then
6510 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6512 cat >>confdefs.h <<_EOF
6513 #ifndef _THREAD_SAFE
6514 # define _THREAD_SAFE
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6519 $as_echo "yes" >&6; }
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6529 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6541 force compilation error
6549 if ac_fn_c_try_compile "$LINENO"; then :
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6552 $as_echo "yes" >&6; }
6553 tmp_reentrant_initially_defined="yes"
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6559 tmp_reentrant_initially_defined="no"
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 if test "$tmp_reentrant_initially_defined" = "no"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6566 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6570 tmp_need_reentrant="yes"
6573 tmp_need_reentrant="no"
6577 if test "$tmp_need_reentrant" = "no"; then
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6596 if ac_fn_c_try_compile "$LINENO"; then :
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 if test "$tmp_errno" = "yes"; then
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6619 force compilation error
6627 if ac_fn_c_try_compile "$LINENO"; then :
6629 tmp_errno="errno_macro_defined"
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6646 force compilation error
6654 if ac_fn_c_try_compile "$LINENO"; then :
6656 tmp_errno="errno_macro_needs_reentrant"
6657 tmp_need_reentrant="yes"
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 if test "$tmp_need_reentrant" = "no"; then
6669 if test "$tmp_need_reentrant" = "no"; then
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6675 #define gmtime_r innocuous_gmtime_r
6677 # include <limits.h>
6679 # include <assert.h>
6686 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6698 if ac_fn_c_try_link "$LINENO"; then :
6707 rm -f core conftest.err conftest.$ac_objext \
6708 conftest$ac_exeext conftest.$ac_ext
6709 if test "$tmp_gmtime_r" = "yes"; then
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6713 #include <sys/types.h>
6717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6718 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6720 tmp_gmtime_r="proto_declared"
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6728 #include <sys/types.h>
6732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6733 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6735 tmp_gmtime_r="proto_needs_reentrant"
6736 tmp_need_reentrant="yes"
6748 if test "$tmp_need_reentrant" = "no"; then
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6754 #define localtime_r innocuous_localtime_r
6756 # include <limits.h>
6758 # include <assert.h>
6764 char localtime_r ();
6765 #if defined __stub_localtime_r || defined __stub___localtime_r
6771 return localtime_r ();
6777 if ac_fn_c_try_link "$LINENO"; then :
6779 tmp_localtime_r="yes"
6783 tmp_localtime_r="no"
6786 rm -f core conftest.err conftest.$ac_objext \
6787 conftest$ac_exeext conftest.$ac_ext
6788 if test "$tmp_localtime_r" = "yes"; then
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6792 #include <sys/types.h>
6796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6797 $EGREP "localtime_r" >/dev/null 2>&1; then :
6799 tmp_localtime_r="proto_declared"
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6807 #include <sys/types.h>
6811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6812 $EGREP "localtime_r" >/dev/null 2>&1; then :
6814 tmp_localtime_r="proto_needs_reentrant"
6815 tmp_need_reentrant="yes"
6827 if test "$tmp_need_reentrant" = "no"; then
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6833 #define strerror_r innocuous_strerror_r
6835 # include <limits.h>
6837 # include <assert.h>
6844 #if defined __stub_strerror_r || defined __stub___strerror_r
6850 return strerror_r ();
6856 if ac_fn_c_try_link "$LINENO"; then :
6858 tmp_strerror_r="yes"
6865 rm -f core conftest.err conftest.$ac_objext \
6866 conftest$ac_exeext conftest.$ac_ext
6867 if test "$tmp_strerror_r" = "yes"; then
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6871 #include <sys/types.h>
6875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6876 $EGREP "strerror_r" >/dev/null 2>&1; then :
6878 tmp_strerror_r="proto_declared"
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6886 #include <sys/types.h>
6890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6891 $EGREP "strerror_r" >/dev/null 2>&1; then :
6893 tmp_strerror_r="proto_needs_reentrant"
6894 tmp_need_reentrant="yes"
6906 if test "$tmp_need_reentrant" = "no"; then
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6912 #define strtok_r innocuous_strtok_r
6914 # include <limits.h>
6916 # include <assert.h>
6923 #if defined __stub_strtok_r || defined __stub___strtok_r
6935 if ac_fn_c_try_link "$LINENO"; then :
6944 rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
6946 if test "$tmp_strtok_r" = "yes"; then
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6950 #include <sys/types.h>
6954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6955 $EGREP "strtok_r" >/dev/null 2>&1; then :
6957 tmp_strtok_r="proto_declared"
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6965 #include <sys/types.h>
6969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970 $EGREP "strtok_r" >/dev/null 2>&1; then :
6972 tmp_strtok_r="proto_needs_reentrant"
6973 tmp_need_reentrant="yes"
6985 if test "$tmp_need_reentrant" = "no"; then
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6991 #define inet_ntoa_r innocuous_inet_ntoa_r
6993 # include <limits.h>
6995 # include <assert.h>
7001 char inet_ntoa_r ();
7002 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7008 return inet_ntoa_r ();
7014 if ac_fn_c_try_link "$LINENO"; then :
7016 tmp_inet_ntoa_r="yes"
7020 tmp_inet_ntoa_r="no"
7023 rm -f core conftest.err conftest.$ac_objext \
7024 conftest$ac_exeext conftest.$ac_ext
7025 if test "$tmp_inet_ntoa_r" = "yes"; then
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7029 #include <sys/types.h>
7030 #include <sys/socket.h>
7031 #include <netinet/in.h>
7032 #include <arpa/inet.h>
7035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7036 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7038 tmp_inet_ntoa_r="proto_declared"
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7046 #include <sys/types.h>
7047 #include <sys/socket.h>
7048 #include <netinet/in.h>
7049 #include <arpa/inet.h>
7052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7053 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7055 tmp_inet_ntoa_r="proto_needs_reentrant"
7056 tmp_need_reentrant="yes"
7068 if test "$tmp_need_reentrant" = "no"; then
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7074 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7076 # include <limits.h>
7078 # include <assert.h>
7080 #undef gethostbyaddr_r
7084 char gethostbyaddr_r ();
7085 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7091 return gethostbyaddr_r ();
7097 if ac_fn_c_try_link "$LINENO"; then :
7099 tmp_gethostbyaddr_r="yes"
7103 tmp_gethostbyaddr_r="no"
7106 rm -f core conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7108 if test "$tmp_gethostbyaddr_r" = "yes"; then
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7112 #include <sys/types.h>
7116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7117 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7119 tmp_gethostbyaddr_r="proto_declared"
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7127 #include <sys/types.h>
7131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7132 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7134 tmp_gethostbyaddr_r="proto_needs_reentrant"
7135 tmp_need_reentrant="yes"
7147 if test "$tmp_need_reentrant" = "no"; then
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7153 #define gethostbyname_r innocuous_gethostbyname_r
7155 # include <limits.h>
7157 # include <assert.h>
7159 #undef gethostbyname_r
7163 char gethostbyname_r ();
7164 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7170 return gethostbyname_r ();
7176 if ac_fn_c_try_link "$LINENO"; then :
7178 tmp_gethostbyname_r="yes"
7182 tmp_gethostbyname_r="no"
7185 rm -f core conftest.err conftest.$ac_objext \
7186 conftest$ac_exeext conftest.$ac_ext
7187 if test "$tmp_gethostbyname_r" = "yes"; then
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7191 #include <sys/types.h>
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7198 tmp_gethostbyname_r="proto_declared"
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7206 #include <sys/types.h>
7210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7211 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7213 tmp_gethostbyname_r="proto_needs_reentrant"
7214 tmp_need_reentrant="yes"
7226 if test "$tmp_need_reentrant" = "no"; then
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7232 #define getprotobyname_r innocuous_getprotobyname_r
7234 # include <limits.h>
7236 # include <assert.h>
7238 #undef getprotobyname_r
7242 char getprotobyname_r ();
7243 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7249 return getprotobyname_r ();
7255 if ac_fn_c_try_link "$LINENO"; then :
7257 tmp_getprotobyname_r="yes"
7261 tmp_getprotobyname_r="no"
7264 rm -f core conftest.err conftest.$ac_objext \
7265 conftest$ac_exeext conftest.$ac_ext
7266 if test "$tmp_getprotobyname_r" = "yes"; then
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7270 #include <sys/types.h>
7274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7275 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7277 tmp_getprotobyname_r="proto_declared"
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7285 #include <sys/types.h>
7289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7290 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7292 tmp_getprotobyname_r="proto_needs_reentrant"
7293 tmp_need_reentrant="yes"
7305 if test "$tmp_need_reentrant" = "no"; then
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7311 #define getservbyport_r innocuous_getservbyport_r
7313 # include <limits.h>
7315 # include <assert.h>
7317 #undef getservbyport_r
7321 char getservbyport_r ();
7322 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7328 return getservbyport_r ();
7334 if ac_fn_c_try_link "$LINENO"; then :
7336 tmp_getservbyport_r="yes"
7340 tmp_getservbyport_r="no"
7343 rm -f core conftest.err conftest.$ac_objext \
7344 conftest$ac_exeext conftest.$ac_ext
7345 if test "$tmp_getservbyport_r" = "yes"; then
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7349 #include <sys/types.h>
7353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7356 tmp_getservbyport_r="proto_declared"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7364 #include <sys/types.h>
7368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7371 tmp_getservbyport_r="proto_needs_reentrant"
7372 tmp_need_reentrant="yes"
7386 if test "$tmp_need_reentrant" = "yes"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7388 $as_echo "yes" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7396 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7397 if test "$tmp_reentrant_initially_defined" = "yes" ||
7398 test "$tmp_need_reentrant" = "yes"; then
7401 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7403 cat >>confdefs.h <<_EOF
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7410 $as_echo "yes" >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7418 # Check whether --enable-largefile was given.
7419 if test "${enable_largefile+set}" = set; then :
7420 enableval=$enable_largefile;
7423 if test "$enable_largefile" != no; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7426 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7427 if ${ac_cv_sys_largefile_CC+:} false; then :
7428 $as_echo_n "(cached) " >&6
7430 ac_cv_sys_largefile_CC=no
7431 if test "$GCC" != yes; then
7434 # IRIX 6.2 and later do not support large files by default,
7435 # so use the C compiler's -n32 option if that helps.
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438 #include <sys/types.h>
7439 /* Check that off_t can represent 2**63 - 1 correctly.
7440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7441 since some C++ compilers masquerading as C compilers
7442 incorrectly reject 9223372036854775807. */
7443 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7445 && LARGE_OFF_T % 2147483647 == 1)
7454 if ac_fn_c_try_compile "$LINENO"; then :
7457 rm -f core conftest.err conftest.$ac_objext
7459 if ac_fn_c_try_compile "$LINENO"; then :
7460 ac_cv_sys_largefile_CC=' -n32'; break
7462 rm -f core conftest.err conftest.$ac_objext
7466 rm -f conftest.$ac_ext
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7470 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7471 if test "$ac_cv_sys_largefile_CC" != no; then
7472 CC=$CC$ac_cv_sys_largefile_CC
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7476 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7477 if ${ac_cv_sys_file_offset_bits+:} false; then :
7478 $as_echo_n "(cached) " >&6
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7483 #include <sys/types.h>
7484 /* Check that off_t can represent 2**63 - 1 correctly.
7485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7486 since some C++ compilers masquerading as C compilers
7487 incorrectly reject 9223372036854775807. */
7488 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7490 && LARGE_OFF_T % 2147483647 == 1)
7499 if ac_fn_c_try_compile "$LINENO"; then :
7500 ac_cv_sys_file_offset_bits=no; break
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 #define _FILE_OFFSET_BITS 64
7506 #include <sys/types.h>
7507 /* Check that off_t can represent 2**63 - 1 correctly.
7508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7509 since some C++ compilers masquerading as C compilers
7510 incorrectly reject 9223372036854775807. */
7511 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7513 && LARGE_OFF_T % 2147483647 == 1)
7522 if ac_fn_c_try_compile "$LINENO"; then :
7523 ac_cv_sys_file_offset_bits=64; break
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 ac_cv_sys_file_offset_bits=unknown
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7531 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7532 case $ac_cv_sys_file_offset_bits in #(
7535 cat >>confdefs.h <<_ACEOF
7536 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7541 if test $ac_cv_sys_file_offset_bits = unknown; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7543 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7544 if ${ac_cv_sys_large_files+:} false; then :
7545 $as_echo_n "(cached) " >&6
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7550 #include <sys/types.h>
7551 /* Check that off_t can represent 2**63 - 1 correctly.
7552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7553 since some C++ compilers masquerading as C compilers
7554 incorrectly reject 9223372036854775807. */
7555 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7557 && LARGE_OFF_T % 2147483647 == 1)
7566 if ac_fn_c_try_compile "$LINENO"; then :
7567 ac_cv_sys_large_files=no; break
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 #define _LARGE_FILES 1
7573 #include <sys/types.h>
7574 /* Check that off_t can represent 2**63 - 1 correctly.
7575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7576 since some C++ compilers masquerading as C compilers
7577 incorrectly reject 9223372036854775807. */
7578 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7580 && LARGE_OFF_T % 2147483647 == 1)
7589 if ac_fn_c_try_compile "$LINENO"; then :
7590 ac_cv_sys_large_files=1; break
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 ac_cv_sys_large_files=unknown
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7598 $as_echo "$ac_cv_sys_large_files" >&6; }
7599 case $ac_cv_sys_large_files in #(
7602 cat >>confdefs.h <<_ACEOF
7603 #define _LARGE_FILES $ac_cv_sys_large_files
7617 $as_echo "#define ETC_INET 1" >>confdefs.h
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7625 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7630 macro_version='2.4.6'
7631 macro_revision='2.4.6'
7645 ltmain=$ac_aux_dir/ltmain.sh
7647 # Backslashify metacharacters that are still active within
7648 # double-quoted strings.
7649 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7651 # Same as above, but do not quote variable references.
7652 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7654 # Sed substitution to delay expansion of an escaped shell variable in a
7655 # double_quote_subst'ed string.
7656 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7658 # Sed substitution to delay expansion of an escaped single quote.
7659 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7661 # Sed substitution to avoid accidental globbing in evaled expressions
7662 no_glob_subst='s/\*/\\\*/g'
7664 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7665 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7666 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7669 $as_echo_n "checking how to print strings... " >&6; }
7670 # Test print first, because it will be a builtin if present.
7671 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7672 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7674 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7677 # Use this function as a fallback that always works.
7678 func_fallback_echo ()
7680 eval 'cat <<_LTECHO_EOF
7684 ECHO='func_fallback_echo'
7687 # func_echo_all arg...
7688 # Invoke $ECHO with all args, space-separated.
7695 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7696 $as_echo "printf" >&6; } ;;
7697 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7698 $as_echo "print -r" >&6; } ;;
7699 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7700 $as_echo "cat" >&6; } ;;
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7717 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7718 if ${ac_cv_path_SED+:} false; then :
7719 $as_echo_n "(cached) " >&6
7721 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7722 for ac_i in 1 2 3 4 5 6 7; do
7723 ac_script="$ac_script$as_nl$ac_script"
7725 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7726 { ac_script=; unset ac_script;}
7727 if test -z "$SED"; then
7728 ac_path_SED_found=false
7729 # Loop through the user's path and test for each of PROGNAME-LIST
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir=.
7735 for ac_prog in sed gsed; do
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7738 as_fn_executable_p "$ac_path_SED" || continue
7739 # Check for GNU ac_path_SED and select it if it is found.
7740 # Check for GNU $ac_path_SED
7741 case `"$ac_path_SED" --version 2>&1` in
7743 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7746 $as_echo_n 0123456789 >"conftest.in"
7749 cat "conftest.in" "conftest.in" >"conftest.tmp"
7750 mv "conftest.tmp" "conftest.in"
7751 cp "conftest.in" "conftest.nl"
7752 $as_echo '' >> "conftest.nl"
7753 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7755 as_fn_arith $ac_count + 1 && ac_count=$as_val
7756 if test $ac_count -gt ${ac_path_SED_max-0}; then
7757 # Best one so far, save it but keep looking for a better one
7758 ac_cv_path_SED="$ac_path_SED"
7759 ac_path_SED_max=$ac_count
7761 # 10*(2^10) chars as input seems more than enough
7762 test $ac_count -gt 10 && break
7764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7767 $ac_path_SED_found && break 3
7772 if test -z "$ac_cv_path_SED"; then
7773 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7781 $as_echo "$ac_cv_path_SED" >&6; }
7782 SED="$ac_cv_path_SED"
7785 test -z "$SED" && SED=sed
7786 Xsed="$SED -e 1s/^X//"
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7799 $as_echo_n "checking for fgrep... " >&6; }
7800 if ${ac_cv_path_FGREP+:} false; then :
7801 $as_echo_n "(cached) " >&6
7803 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7804 then ac_cv_path_FGREP="$GREP -F"
7806 if test -z "$FGREP"; then
7807 ac_path_FGREP_found=false
7808 # Loop through the user's path and test for each of PROGNAME-LIST
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7813 test -z "$as_dir" && as_dir=.
7814 for ac_prog in fgrep; do
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7817 as_fn_executable_p "$ac_path_FGREP" || continue
7818 # Check for GNU ac_path_FGREP and select it if it is found.
7819 # Check for GNU $ac_path_FGREP
7820 case `"$ac_path_FGREP" --version 2>&1` in
7822 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7825 $as_echo_n 0123456789 >"conftest.in"
7828 cat "conftest.in" "conftest.in" >"conftest.tmp"
7829 mv "conftest.tmp" "conftest.in"
7830 cp "conftest.in" "conftest.nl"
7831 $as_echo 'FGREP' >> "conftest.nl"
7832 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7834 as_fn_arith $ac_count + 1 && ac_count=$as_val
7835 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7836 # Best one so far, save it but keep looking for a better one
7837 ac_cv_path_FGREP="$ac_path_FGREP"
7838 ac_path_FGREP_max=$ac_count
7840 # 10*(2^10) chars as input seems more than enough
7841 test $ac_count -gt 10 && break
7843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7846 $ac_path_FGREP_found && break 3
7851 if test -z "$ac_cv_path_FGREP"; then
7852 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7855 ac_cv_path_FGREP=$FGREP
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7861 $as_echo "$ac_cv_path_FGREP" >&6; }
7862 FGREP="$ac_cv_path_FGREP"
7865 test -z "$GREP" && GREP=grep
7885 # Check whether --with-gnu-ld was given.
7886 if test "${with_gnu_ld+set}" = set; then :
7887 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7893 if test yes = "$GCC"; then
7894 # Check if gcc -print-prog-name=ld gives a path.
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7896 $as_echo_n "checking for ld used by $CC... " >&6; }
7899 # gcc leaves a trailing carriage return, which upsets mingw
7900 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7902 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7905 # Accept absolute paths.
7907 re_direlt='/[^/][^/]*/\.\./'
7908 # Canonicalize the pathname of ld
7909 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7910 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7911 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7913 test -z "$LD" && LD=$ac_prog
7916 # If it fails, then pretend we aren't using GCC.
7920 # If it is relative, then search for the first ld in PATH.
7924 elif test yes = "$with_gnu_ld"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7926 $as_echo_n "checking for GNU ld... " >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7929 $as_echo_n "checking for non-GNU ld... " >&6; }
7931 if ${lt_cv_path_LD+:} false; then :
7932 $as_echo_n "(cached) " >&6
7934 if test -z "$LD"; then
7935 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7936 for ac_dir in $PATH; do
7938 test -z "$ac_dir" && ac_dir=.
7939 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7940 lt_cv_path_LD=$ac_dir/$ac_prog
7941 # Check to see if the program is GNU ld. I'd rather use --version,
7942 # but apparently some variants of GNU ld only accept -v.
7943 # Break only if it was the GNU/non-GNU ld that we prefer.
7944 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7945 *GNU* | *'with BFD'*)
7946 test no != "$with_gnu_ld" && break
7949 test yes != "$with_gnu_ld" && break
7956 lt_cv_path_LD=$LD # Let the user override the test with a path.
7961 if test -n "$LD"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7963 $as_echo "$LD" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7968 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7970 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7971 if ${lt_cv_prog_gnu_ld+:} false; then :
7972 $as_echo_n "(cached) " >&6
7974 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7975 case `$LD -v 2>&1 </dev/null` in
7976 *GNU* | *'with BFD'*)
7977 lt_cv_prog_gnu_ld=yes
7980 lt_cv_prog_gnu_ld=no
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7985 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7986 with_gnu_ld=$lt_cv_prog_gnu_ld
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7997 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7998 if ${lt_cv_path_NM+:} false; then :
7999 $as_echo_n "(cached) " >&6
8001 if test -n "$NM"; then
8002 # Let the user override the test.
8005 lt_nm_to_check=${ac_tool_prefix}nm
8006 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8007 lt_nm_to_check="$lt_nm_to_check nm"
8009 for lt_tmp_nm in $lt_nm_to_check; do
8010 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8011 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8013 test -z "$ac_dir" && ac_dir=.
8014 tmp_nm=$ac_dir/$lt_tmp_nm
8015 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8016 # Check to see if the nm accepts a BSD-compat flag.
8017 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8018 # nm: unknown option "B" ignored
8019 # Tru64's nm complains that /dev/null is an invalid object file
8020 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8022 mingw*) lt_bad_file=conftest.nm/nofile ;;
8023 *) lt_bad_file=/dev/null ;;
8025 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8026 *$lt_bad_file* | *'Invalid file or object type'*)
8027 lt_cv_path_NM="$tmp_nm -B"
8031 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8033 lt_cv_path_NM="$tmp_nm -p"
8037 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8038 continue # so that we can try to find one that supports BSD flags
8047 : ${lt_cv_path_NM=no}
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8051 $as_echo "$lt_cv_path_NM" >&6; }
8052 if test no != "$lt_cv_path_NM"; then
8055 # Didn't find any BSD compatible name lister, look for dumpbin.
8056 if test -n "$DUMPBIN"; then :
8057 # Let the user override the test.
8059 if test -n "$ac_tool_prefix"; then
8060 for ac_prog in dumpbin "link -dump"
8062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065 $as_echo_n "checking for $ac_word... " >&6; }
8066 if ${ac_cv_prog_DUMPBIN+:} false; then :
8067 $as_echo_n "(cached) " >&6
8069 if test -n "$DUMPBIN"; then
8070 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 DUMPBIN=$ac_cv_prog_DUMPBIN
8090 if test -n "$DUMPBIN"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8092 $as_echo "$DUMPBIN" >&6; }
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8099 test -n "$DUMPBIN" && break
8102 if test -z "$DUMPBIN"; then
8103 ac_ct_DUMPBIN=$DUMPBIN
8104 for ac_prog in dumpbin "link -dump"
8106 # Extract the first word of "$ac_prog", so it can be a program name with args.
8107 set dummy $ac_prog; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8111 $as_echo_n "(cached) " >&6
8113 if test -n "$ac_ct_DUMPBIN"; then
8114 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8134 if test -n "$ac_ct_DUMPBIN"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8136 $as_echo "$ac_ct_DUMPBIN" >&6; }
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8143 test -n "$ac_ct_DUMPBIN" && break
8146 if test "x$ac_ct_DUMPBIN" = x; then
8149 case $cross_compiling:$ac_tool_warned in
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8153 ac_tool_warned=yes ;;
8155 DUMPBIN=$ac_ct_DUMPBIN
8159 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8161 DUMPBIN="$DUMPBIN -symbols -headers"
8169 if test : != "$DUMPBIN"; then
8173 test -z "$NM" && NM=nm
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8181 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8182 if ${lt_cv_nm_interface+:} false; then :
8183 $as_echo_n "(cached) " >&6
8185 lt_cv_nm_interface="BSD nm"
8186 echo "int some_variable = 0;" > conftest.$ac_ext
8187 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8188 (eval "$ac_compile" 2>conftest.err)
8189 cat conftest.err >&5
8190 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8191 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8192 cat conftest.err >&5
8193 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8194 cat conftest.out >&5
8195 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8196 lt_cv_nm_interface="MS dumpbin"
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8201 $as_echo "$lt_cv_nm_interface" >&6; }
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8204 $as_echo_n "checking whether ln -s works... " >&6; }
8206 if test "$LN_S" = "ln -s"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8208 $as_echo "yes" >&6; }
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8211 $as_echo "no, using $LN_S" >&6; }
8214 # find the maximum length of command line arguments
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8216 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8217 if ${lt_cv_sys_max_cmd_len+:} false; then :
8218 $as_echo_n "(cached) " >&6
8225 # On DJGPP, this test can blow up pretty badly due to problems in libc
8226 # (any single argument exceeding 2000 bytes causes a buffer overrun
8227 # during glob expansion). Even if it were fixed, the result of this
8228 # check would be larger than it should be.
8229 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8233 # Under GNU Hurd, this test is not required because there is
8234 # no limit to the length of command line arguments.
8235 # Libtool will interpret -1 as no limit whatsoever
8236 lt_cv_sys_max_cmd_len=-1;
8239 cygwin* | mingw* | cegcc*)
8240 # On Win9x/ME, this test blows up -- it succeeds, but takes
8241 # about 5 minutes as the teststring grows exponentially.
8242 # Worse, since 9x/ME are not pre-emptively multitasking,
8243 # you end up with a "frozen" computer, even though with patience
8244 # the test eventually succeeds (with a max line length of 256k).
8245 # Instead, let's just punt: use the minimum linelength reported by
8246 # all of the supported platforms: 8192 (on NT/2K/XP).
8247 lt_cv_sys_max_cmd_len=8192;
8251 # On MiNT this can take a long time and run out of memory.
8252 lt_cv_sys_max_cmd_len=8192;
8256 # On AmigaOS with pdksh, this test takes hours, literally.
8257 # So we just punt and use a minimum line length of 8192.
8258 lt_cv_sys_max_cmd_len=8192;
8261 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8262 # This has been around since 386BSD, at least. Likely further.
8263 if test -x /sbin/sysctl; then
8264 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8265 elif test -x /usr/sbin/sysctl; then
8266 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8268 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8270 # And add a safety zone
8271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8276 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8277 lt_cv_sys_max_cmd_len=196608
8281 # The test takes a long time on OS/2.
8282 lt_cv_sys_max_cmd_len=8192
8286 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8287 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8288 # nice to cause kernel panics so lets avoid the loop below.
8289 # First set a reasonable default.
8290 lt_cv_sys_max_cmd_len=16384
8292 if test -x /sbin/sysconfig; then
8293 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8294 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8299 lt_cv_sys_max_cmd_len=102400
8301 sysv5* | sco5v6* | sysv4.2uw2*)
8302 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8303 if test -n "$kargmax"; then
8304 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8306 lt_cv_sys_max_cmd_len=32768
8310 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8311 if test -n "$lt_cv_sys_max_cmd_len" && \
8312 test undefined != "$lt_cv_sys_max_cmd_len"; then
8313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8316 # Make teststring a little bigger before we do anything with it.
8317 # a 1K string should be a reasonable start.
8318 for i in 1 2 3 4 5 6 7 8; do
8319 teststring=$teststring$teststring
8321 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8322 # If test is not a shell built-in, we'll probably end up computing a
8323 # maximum length that is only half of the actual maximum length, but
8325 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8326 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8327 test 17 != "$i" # 1/2 MB should be enough
8330 teststring=$teststring$teststring
8332 # Only check the string length outside the loop.
8333 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8335 # Add a significant safety factor because C++ compilers can tack on
8336 # massive amounts of additional arguments before passing them to the
8337 # linker. It appears as though 1/2 is a usable value.
8338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8345 if test -n "$lt_cv_sys_max_cmd_len"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8347 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8350 $as_echo "none" >&6; }
8352 max_cmd_len=$lt_cv_sys_max_cmd_len
8363 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8373 # test EBCDIC or ASCII
8374 case `echo X|tr X '\101'` in
8375 A) # ASCII based system
8376 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8377 lt_SP2NL='tr \040 \012'
8378 lt_NL2SP='tr \015\012 \040\040'
8380 *) # EBCDIC based system
8381 lt_SP2NL='tr \100 \n'
8382 lt_NL2SP='tr \r\n \100\100'
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8395 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8396 if ${lt_cv_to_host_file_cmd+:} false; then :
8397 $as_echo_n "(cached) " >&6
8402 *-*-mingw* ) # actually msys
8403 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8406 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8408 * ) # otherwise, assume *nix
8409 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8415 *-*-mingw* ) # actually msys
8416 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8419 lt_cv_to_host_file_cmd=func_convert_file_noop
8421 * ) # otherwise, assume *nix
8422 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8426 * ) # unhandled hosts (and "normal" native builds)
8427 lt_cv_to_host_file_cmd=func_convert_file_noop
8433 to_host_file_cmd=$lt_cv_to_host_file_cmd
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8435 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8442 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8443 if ${lt_cv_to_tool_file_cmd+:} false; then :
8444 $as_echo_n "(cached) " >&6
8446 #assume ordinary cross tools, or native build.
8447 lt_cv_to_tool_file_cmd=func_convert_file_noop
8451 *-*-mingw* ) # actually msys
8452 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8460 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8462 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8469 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8470 if ${lt_cv_ld_reload_flag+:} false; then :
8471 $as_echo_n "(cached) " >&6
8473 lt_cv_ld_reload_flag='-r'
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8476 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8477 reload_flag=$lt_cv_ld_reload_flag
8478 case $reload_flag in
8480 *) reload_flag=" $reload_flag" ;;
8482 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8484 cygwin* | mingw* | pw32* | cegcc*)
8485 if test yes != "$GCC"; then
8490 if test yes = "$GCC"; then
8491 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8493 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8506 if test -n "$ac_tool_prefix"; then
8507 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8508 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if ${ac_cv_prog_OBJDUMP+:} false; then :
8512 $as_echo_n "(cached) " >&6
8514 if test -n "$OBJDUMP"; then
8515 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 OBJDUMP=$ac_cv_prog_OBJDUMP
8535 if test -n "$OBJDUMP"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8537 $as_echo "$OBJDUMP" >&6; }
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8545 if test -z "$ac_cv_prog_OBJDUMP"; then
8546 ac_ct_OBJDUMP=$OBJDUMP
8547 # Extract the first word of "objdump", so it can be a program name with args.
8548 set dummy objdump; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8552 $as_echo_n "(cached) " >&6
8554 if test -n "$ac_ct_OBJDUMP"; then
8555 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8575 if test -n "$ac_ct_OBJDUMP"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8577 $as_echo "$ac_ct_OBJDUMP" >&6; }
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8583 if test "x$ac_ct_OBJDUMP" = x; then
8586 case $cross_compiling:$ac_tool_warned in
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8590 ac_tool_warned=yes ;;
8592 OBJDUMP=$ac_ct_OBJDUMP
8595 OBJDUMP="$ac_cv_prog_OBJDUMP"
8598 test -z "$OBJDUMP" && OBJDUMP=objdump
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8606 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8607 if ${lt_cv_deplibs_check_method+:} false; then :
8608 $as_echo_n "(cached) " >&6
8610 lt_cv_file_magic_cmd='$MAGIC_CMD'
8611 lt_cv_file_magic_test_file=
8612 lt_cv_deplibs_check_method='unknown'
8613 # Need to set the preceding variable on all platforms that support
8614 # interlibrary dependencies.
8615 # 'none' -- dependencies not supported.
8616 # 'unknown' -- same as none, but documents that we really don't know.
8617 # 'pass_all' -- all dependencies passed with no checks.
8618 # 'test_compile' -- check by making test program.
8619 # 'file_magic [[regex]]' -- check by looking for files in library path
8620 # that responds to the $file_magic_cmd with a given extended regex.
8621 # If you have 'file' or equivalent on your system and you're not sure
8622 # whether 'pass_all' will *always* work, you probably want this one.
8626 lt_cv_deplibs_check_method=pass_all
8630 lt_cv_deplibs_check_method=pass_all
8634 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8635 lt_cv_file_magic_cmd='/usr/bin/file -L'
8636 lt_cv_file_magic_test_file=/shlib/libc.so
8640 # func_win32_libid is a shell function defined in ltmain.sh
8641 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8642 lt_cv_file_magic_cmd='func_win32_libid'
8646 # Base MSYS/MinGW do not provide the 'file' command needed by
8647 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8648 # unless we find 'file', for example because we are cross-compiling.
8649 if ( file / ) >/dev/null 2>&1; then
8650 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8651 lt_cv_file_magic_cmd='func_win32_libid'
8653 # Keep this pattern in sync with the one in func_win32_libid.
8654 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8655 lt_cv_file_magic_cmd='$OBJDUMP -f'
8660 # use the weaker test based on 'objdump'. See mingw*.
8661 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8662 lt_cv_file_magic_cmd='$OBJDUMP -f'
8665 darwin* | rhapsody*)
8666 lt_cv_deplibs_check_method=pass_all
8669 freebsd* | dragonfly*)
8670 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8673 # Not sure whether the presence of OpenBSD here was a mistake.
8674 # Let's accept both of them until this is cleared up.
8675 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8676 lt_cv_file_magic_cmd=/usr/bin/file
8677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8681 lt_cv_deplibs_check_method=pass_all
8686 lt_cv_deplibs_check_method=pass_all
8689 hpux10.20* | hpux11*)
8690 lt_cv_file_magic_cmd=/usr/bin/file
8693 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8694 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8697 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]'
8698 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8701 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8702 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8708 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8712 irix5* | irix6* | nonstopux*)
8714 *-32|*"-32 ") libmagic=32-bit;;
8715 *-n32|*"-n32 ") libmagic=N32;;
8716 *-64|*"-64 ") libmagic=64-bit;;
8717 *) libmagic=never-match;;
8719 lt_cv_deplibs_check_method=pass_all
8722 # This must be glibc/ELF.
8723 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8724 lt_cv_deplibs_check_method=pass_all
8727 netbsd* | netbsdelf*-gnu)
8728 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8736 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8737 lt_cv_file_magic_cmd=/usr/bin/file
8738 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8742 lt_cv_deplibs_check_method=pass_all
8746 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8753 osf3* | osf4* | osf5*)
8754 lt_cv_deplibs_check_method=pass_all
8758 lt_cv_deplibs_check_method=pass_all
8762 lt_cv_deplibs_check_method=pass_all
8765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8766 lt_cv_deplibs_check_method=pass_all
8770 case $host_vendor in
8772 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]'
8773 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8776 lt_cv_deplibs_check_method=pass_all
8779 lt_cv_file_magic_cmd='/bin/file'
8780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8783 lt_cv_file_magic_cmd='/bin/file'
8784 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8785 lt_cv_file_magic_test_file=/lib/libc.so
8788 lt_cv_deplibs_check_method=pass_all
8791 lt_cv_deplibs_check_method=pass_all
8797 lt_cv_deplibs_check_method=pass_all
8800 lt_cv_deplibs_check_method=pass_all
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8806 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8810 if test "$build" = "$host"; then
8813 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8816 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8822 file_magic_cmd=$lt_cv_file_magic_cmd
8823 deplibs_check_method=$lt_cv_deplibs_check_method
8824 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8847 if test -n "$ac_tool_prefix"; then
8848 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8849 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_prog_DLLTOOL+:} false; then :
8853 $as_echo_n "(cached) " >&6
8855 if test -n "$DLLTOOL"; then
8856 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 DLLTOOL=$ac_cv_prog_DLLTOOL
8876 if test -n "$DLLTOOL"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8878 $as_echo "$DLLTOOL" >&6; }
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8886 if test -z "$ac_cv_prog_DLLTOOL"; then
8887 ac_ct_DLLTOOL=$DLLTOOL
8888 # Extract the first word of "dlltool", so it can be a program name with args.
8889 set dummy dlltool; ac_word=$2
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891 $as_echo_n "checking for $ac_word... " >&6; }
8892 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8893 $as_echo_n "(cached) " >&6
8895 if test -n "$ac_ct_DLLTOOL"; then
8896 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8916 if test -n "$ac_ct_DLLTOOL"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8918 $as_echo "$ac_ct_DLLTOOL" >&6; }
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8924 if test "x$ac_ct_DLLTOOL" = x; then
8927 case $cross_compiling:$ac_tool_warned in
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8931 ac_tool_warned=yes ;;
8933 DLLTOOL=$ac_ct_DLLTOOL
8936 DLLTOOL="$ac_cv_prog_DLLTOOL"
8939 test -z "$DLLTOOL" && DLLTOOL=dlltool
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8948 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8949 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8950 $as_echo_n "(cached) " >&6
8952 lt_cv_sharedlib_from_linklib_cmd='unknown'
8955 cygwin* | mingw* | pw32* | cegcc*)
8956 # two different shell functions defined in ltmain.sh;
8957 # decide which one to use based on capabilities of $DLLTOOL
8958 case `$DLLTOOL --help 2>&1` in
8959 *--identify-strict*)
8960 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8963 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8968 # fallback: assume linklib IS sharedlib
8969 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8975 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8976 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8977 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8985 if test -n "$ac_tool_prefix"; then
8988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_prog_AR+:} false; then :
8993 $as_echo_n "(cached) " >&6
8995 if test -n "$AR"; then
8996 ac_cv_prog_AR="$AR" # Let the user override the test.
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 if test -n "$AR"; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9018 $as_echo "$AR" >&6; }
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9025 test -n "$AR" && break
9028 if test -z "$AR"; then
9032 # Extract the first word of "$ac_prog", so it can be a program name with args.
9033 set dummy $ac_prog; ac_word=$2
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 $as_echo_n "checking for $ac_word... " >&6; }
9036 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9037 $as_echo_n "(cached) " >&6
9039 if test -n "$ac_ct_AR"; then
9040 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 test -z "$as_dir" && as_dir=.
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9049 ac_cv_prog_ac_ct_AR="$ac_prog"
9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9060 if test -n "$ac_ct_AR"; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9062 $as_echo "$ac_ct_AR" >&6; }
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9069 test -n "$ac_ct_AR" && break
9072 if test "x$ac_ct_AR" = x; then
9075 case $cross_compiling:$ac_tool_warned in
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9079 ac_tool_warned=yes ;;
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9099 $as_echo_n "checking for archiver @FILE support... " >&6; }
9100 if ${lt_cv_ar_at_file+:} false; then :
9101 $as_echo_n "(cached) " >&6
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9114 if ac_fn_c_try_compile "$LINENO"; then :
9115 echo conftest.$ac_objext > conftest.lst
9116 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9118 (eval $lt_ar_try) 2>&5
9120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9121 test $ac_status = 0; }
9122 if test 0 -eq "$ac_status"; then
9123 # Ensure the archiver fails upon bogus file names.
9124 rm -f conftest.$ac_objext libconftest.a
9125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9126 (eval $lt_ar_try) 2>&5
9128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9129 test $ac_status = 0; }
9130 if test 0 -ne "$ac_status"; then
9134 rm -f conftest.* libconftest.a
9137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9141 $as_echo "$lt_cv_ar_at_file" >&6; }
9143 if test no = "$lt_cv_ar_at_file"; then
9146 archiver_list_spec=$lt_cv_ar_at_file
9155 if test -n "$ac_tool_prefix"; then
9156 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9157 set dummy ${ac_tool_prefix}strip; ac_word=$2
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159 $as_echo_n "checking for $ac_word... " >&6; }
9160 if ${ac_cv_prog_STRIP+:} false; then :
9161 $as_echo_n "(cached) " >&6
9163 if test -n "$STRIP"; then
9164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9173 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 STRIP=$ac_cv_prog_STRIP
9184 if test -n "$STRIP"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9186 $as_echo "$STRIP" >&6; }
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9194 if test -z "$ac_cv_prog_STRIP"; then
9196 # Extract the first word of "strip", so it can be a program name with args.
9197 set dummy strip; ac_word=$2
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9199 $as_echo_n "checking for $ac_word... " >&6; }
9200 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9201 $as_echo_n "(cached) " >&6
9203 if test -n "$ac_ct_STRIP"; then
9204 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9213 ac_cv_prog_ac_ct_STRIP="strip"
9214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9224 if test -n "$ac_ct_STRIP"; then
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9226 $as_echo "$ac_ct_STRIP" >&6; }
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 $as_echo "no" >&6; }
9232 if test "x$ac_ct_STRIP" = x; then
9235 case $cross_compiling:$ac_tool_warned in
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9239 ac_tool_warned=yes ;;
9244 STRIP="$ac_cv_prog_STRIP"
9247 test -z "$STRIP" && STRIP=:
9254 if test -n "$ac_tool_prefix"; then
9255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258 $as_echo_n "checking for $ac_word... " >&6; }
9259 if ${ac_cv_prog_RANLIB+:} false; then :
9260 $as_echo_n "(cached) " >&6
9262 if test -n "$RANLIB"; then
9263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 test -z "$as_dir" && as_dir=.
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 RANLIB=$ac_cv_prog_RANLIB
9283 if test -n "$RANLIB"; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9285 $as_echo "$RANLIB" >&6; }
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288 $as_echo "no" >&6; }
9293 if test -z "$ac_cv_prog_RANLIB"; then
9294 ac_ct_RANLIB=$RANLIB
9295 # Extract the first word of "ranlib", so it can be a program name with args.
9296 set dummy ranlib; ac_word=$2
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9298 $as_echo_n "checking for $ac_word... " >&6; }
9299 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9300 $as_echo_n "(cached) " >&6
9302 if test -n "$ac_ct_RANLIB"; then
9303 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309 test -z "$as_dir" && as_dir=.
9310 for ac_exec_ext in '' $ac_executable_extensions; do
9311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9312 ac_cv_prog_ac_ct_RANLIB="ranlib"
9313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9322 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9323 if test -n "$ac_ct_RANLIB"; then
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9325 $as_echo "$ac_ct_RANLIB" >&6; }
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9328 $as_echo "no" >&6; }
9331 if test "x$ac_ct_RANLIB" = x; then
9334 case $cross_compiling:$ac_tool_warned in
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9338 ac_tool_warned=yes ;;
9340 RANLIB=$ac_ct_RANLIB
9343 RANLIB="$ac_cv_prog_RANLIB"
9346 test -z "$RANLIB" && RANLIB=:
9353 # Determine commands to create old-style static archives.
9354 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9355 old_postinstall_cmds='chmod 644 $oldlib'
9356 old_postuninstall_cmds=
9358 if test -n "$RANLIB"; then
9361 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9364 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9367 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9372 lock_old_archive_extraction=yes ;;
9374 lock_old_archive_extraction=no ;;
9415 # If no C compiler was specified, use CC.
9418 # If no C compiler flags were specified, use CFLAGS.
9419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9421 # Allow CC to be a program name with arguments.
9425 # Check for command to grab the raw symbol name followed by C symbol from nm.
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9427 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9428 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9429 $as_echo_n "(cached) " >&6
9432 # These are sane defaults that work on at least a few old systems.
9433 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9435 # Character class describing NM global symbol codes.
9436 symcode='[BCDEGRST]'
9438 # Regexp to match symbols that can be accessed directly from C.
9439 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9441 # Define system-specific variables.
9446 cygwin* | mingw* | pw32* | cegcc*)
9447 symcode='[ABCDGISTW]'
9450 if test ia64 = "$host_cpu"; then
9451 symcode='[ABCDEGRST]'
9455 symcode='[BCDEGRST]'
9458 symcode='[BCDEGQRST]'
9469 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9477 # If we're using GNU nm, then use its standard symbol codes.
9478 case `$NM -V 2>&1` in
9479 *GNU* | *'with BFD'*)
9480 symcode='[ABCDGIRSTW]' ;;
9483 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9484 # Gets list of data symbols to import.
9485 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9486 # Adjust the below global symbol transforms to fixup imported variables.
9487 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9488 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9489 lt_c_name_lib_hook="\
9490 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9491 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9493 # Disable hooks by default.
9494 lt_cv_sys_global_symbol_to_import=
9500 # Transform an extracted symbol line into a proper C declaration.
9501 # Some systems (esp. on ia64) link data and code symbols differently,
9502 # so use this general approach.
9503 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9505 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9506 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9508 # Transform an extracted symbol line into symbol name and symbol address
9509 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9511 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9512 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9514 # Transform an extracted symbol line into symbol name with lib prefix and
9516 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9517 $lt_c_name_lib_hook\
9518 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9519 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9520 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9522 # Handle CRLF in mingw tool chain
9526 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9530 # Try without a prefix underscore, then with it.
9531 for ac_symprfx in "" "_"; do
9533 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9534 symxfrm="\\1 $ac_symprfx\\2 \\2"
9536 # Write the raw and C identifiers.
9537 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9538 # Fake it for dumpbin and say T for any non-static function,
9539 # D for any global variable and I for any imported variable.
9540 # Also find C++ and __fastcall symbols from MSVC++,
9541 # which start with @ or ?.
9542 lt_cv_sys_global_symbol_pipe="$AWK '"\
9543 " {last_section=section; section=\$ 3};"\
9544 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9545 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9546 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9547 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9548 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9549 " \$ 0!~/External *\|/{next};"\
9550 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9551 " {if(hide[section]) next};"\
9552 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9553 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9554 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9555 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9556 " ' prfx=^$ac_symprfx"
9558 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9560 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9562 # Check to see that the pipe works correctly.
9566 cat > conftest.$ac_ext <<_LT_EOF
9571 void nm_test_func(void);
9572 void nm_test_func(void){}
9576 int main(){nm_test_var='a';nm_test_func();return(0);}
9579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9580 (eval $ac_compile) 2>&5
9582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9583 test $ac_status = 0; }; then
9584 # Now try to grab the symbols.
9586 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9587 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9588 # Try sorting and uniquifying the output.
9589 if sort "$nlist" | uniq > "$nlist"T; then
9590 mv -f "$nlist"T "$nlist"
9595 # Make sure that we snagged all the symbols we need.
9596 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9597 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9598 cat <<_LT_EOF > conftest.$ac_ext
9599 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9600 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9601 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9602 relocations are performed -- see ld's documentation on pseudo-relocs. */
9603 # define LT_DLSYM_CONST
9604 #elif defined __osf__
9605 /* This system does not cope well with relocations in const data. */
9606 # define LT_DLSYM_CONST
9608 # define LT_DLSYM_CONST const
9616 # Now generate the symbol file.
9617 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9619 cat <<_LT_EOF >> conftest.$ac_ext
9621 /* The mapping between symbol names and symbols. */
9622 LT_DLSYM_CONST struct {
9626 lt__PROGRAM__LTX_preloaded_symbols[] =
9628 { "@PROGRAM@", (void *) 0 },
9630 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9631 cat <<\_LT_EOF >> conftest.$ac_ext
9635 /* This works around a problem in FreeBSD linker */
9636 #ifdef FREEBSD_WORKAROUND
9637 static const void *lt_preloaded_setup() {
9638 return lt__PROGRAM__LTX_preloaded_symbols;
9646 # Now try linking the two files.
9647 mv conftest.$ac_objext conftstm.$ac_objext
9648 lt_globsym_save_LIBS=$LIBS
9649 lt_globsym_save_CFLAGS=$CFLAGS
9650 LIBS=conftstm.$ac_objext
9651 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9653 (eval $ac_link) 2>&5
9655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9656 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9659 LIBS=$lt_globsym_save_LIBS
9660 CFLAGS=$lt_globsym_save_CFLAGS
9662 echo "cannot find nm_test_func in $nlist" >&5
9665 echo "cannot find nm_test_var in $nlist" >&5
9668 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9671 echo "$progname: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9674 rm -rf conftest* conftst*
9676 # Do not use the global_symbol_pipe unless it works.
9677 if test yes = "$pipe_works"; then
9680 lt_cv_sys_global_symbol_pipe=
9686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9687 lt_cv_sys_global_symbol_to_cdecl=
9689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9691 $as_echo "failed" >&6; }
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9694 $as_echo "ok" >&6; }
9697 # Response file support.
9698 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9699 nm_file_list_spec='@'
9700 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9701 nm_file_list_spec='@'
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9741 $as_echo_n "checking for sysroot... " >&6; }
9743 # Check whether --with-sysroot was given.
9744 if test "${with_sysroot+set}" = set; then :
9745 withval=$with_sysroot;
9752 case $with_sysroot in #(
9754 if test yes = "$GCC"; then
9755 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9759 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9765 $as_echo "$with_sysroot" >&6; }
9766 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9771 $as_echo "${lt_sysroot:-no}" >&6; }
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9778 $as_echo_n "checking for a working dd... " >&6; }
9779 if ${ac_cv_path_lt_DD+:} false; then :
9780 $as_echo_n "(cached) " >&6
9782 printf 0123456789abcdef0123456789abcdef >conftest.i
9783 cat conftest.i conftest.i >conftest2.i
9785 if test -z "$lt_DD"; then
9786 ac_path_lt_DD_found=false
9787 # Loop through the user's path and test for each of PROGNAME-LIST
9788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792 test -z "$as_dir" && as_dir=.
9793 for ac_prog in dd; do
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9796 as_fn_executable_p "$ac_path_lt_DD" || continue
9797 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9798 cmp -s conftest.i conftest.out \
9799 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9801 $ac_path_lt_DD_found && break 3
9806 if test -z "$ac_cv_path_lt_DD"; then
9810 ac_cv_path_lt_DD=$lt_DD
9813 rm -f conftest.i conftest2.i conftest.out
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9816 $as_echo "$ac_cv_path_lt_DD" >&6; }
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9820 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9821 if ${lt_cv_truncate_bin+:} false; then :
9822 $as_echo_n "(cached) " >&6
9824 printf 0123456789abcdef0123456789abcdef >conftest.i
9825 cat conftest.i conftest.i >conftest2.i
9827 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9828 cmp -s conftest.i conftest.out \
9829 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9831 rm -f conftest.i conftest2.i conftest.out
9832 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9835 $as_echo "$lt_cv_truncate_bin" >&6; }
9843 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9846 for cc_temp in $*""; do
9848 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9849 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9854 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9857 # Check whether --enable-libtool-lock was given.
9858 if test "${enable_libtool_lock+set}" = set; then :
9859 enableval=$enable_libtool_lock;
9862 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9864 # Some flags need to be propagated to the compiler or linker for good
9868 # Find out what ABI is being produced by ac_compile, and set mode
9869 # options accordingly.
9870 echo 'int i;' > conftest.$ac_ext
9871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9872 (eval $ac_compile) 2>&5
9874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9875 test $ac_status = 0; }; then
9876 case `/usr/bin/file conftest.$ac_objext` in
9888 # Find out what ABI is being produced by ac_compile, and set linker
9889 # options accordingly.
9890 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9892 (eval $ac_compile) 2>&5
9894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9895 test $ac_status = 0; }; then
9896 if test yes = "$lt_cv_prog_gnu_ld"; then
9897 case `/usr/bin/file conftest.$ac_objext` in
9899 LD="${LD-ld} -melf32bsmip"
9902 LD="${LD-ld} -melf32bmipn32"
9905 LD="${LD-ld} -melf64bmip"
9909 case `/usr/bin/file conftest.$ac_objext` in
9926 # Find out what ABI is being produced by ac_compile, and set linker
9927 # options accordingly.
9928 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9930 (eval $ac_compile) 2>&5
9932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9933 test $ac_status = 0; }; then
9935 case `/usr/bin/file conftest.$ac_objext` in
9943 case `/usr/bin/file conftest.$ac_objext` in
9945 emul="${emul}btsmip"
9948 emul="${emul}ltsmip"
9951 case `/usr/bin/file conftest.$ac_objext` in
9956 LD="${LD-ld} -m $emul"
9961 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9962 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9963 # Find out what ABI is being produced by ac_compile, and set linker
9964 # options accordingly. Note that the listed cases only cover the
9965 # situations where additional linker options are needed (such as when
9966 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9967 # vice versa); the common cases where no linker options are needed do
9968 # not appear in the list.
9969 echo 'int i;' > conftest.$ac_ext
9970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9971 (eval $ac_compile) 2>&5
9973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9974 test $ac_status = 0; }; then
9975 case `/usr/bin/file conftest.o` in
9978 x86_64-*kfreebsd*-gnu)
9979 LD="${LD-ld} -m elf_i386_fbsd"
9982 case `/usr/bin/file conftest.o` in
9984 LD="${LD-ld} -m elf32_x86_64"
9987 LD="${LD-ld} -m elf_i386"
9991 powerpc64le-*linux*)
9992 LD="${LD-ld} -m elf32lppclinux"
9995 LD="${LD-ld} -m elf32ppclinux"
9998 LD="${LD-ld} -m elf_s390"
10001 LD="${LD-ld} -m elf32_sparc"
10007 x86_64-*kfreebsd*-gnu)
10008 LD="${LD-ld} -m elf_x86_64_fbsd"
10011 LD="${LD-ld} -m elf_x86_64"
10014 LD="${LD-ld} -m elf64lppc"
10017 LD="${LD-ld} -m elf64ppc"
10019 s390*-*linux*|s390*-*tpf*)
10020 LD="${LD-ld} -m elf64_s390"
10023 LD="${LD-ld} -m elf64_sparc"
10033 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10034 SAVE_CFLAGS=$CFLAGS
10035 CFLAGS="$CFLAGS -belf"
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10037 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10038 if ${lt_cv_cc_needs_belf+:} false; then :
10039 $as_echo_n "(cached) " >&6
10042 ac_cpp='$CPP $CPPFLAGS'
10043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10057 if ac_fn_c_try_link "$LINENO"; then :
10058 lt_cv_cc_needs_belf=yes
10060 lt_cv_cc_needs_belf=no
10062 rm -f core conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
10065 ac_cpp='$CPP $CPPFLAGS'
10066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10072 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10073 if test yes != "$lt_cv_cc_needs_belf"; then
10074 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10075 CFLAGS=$SAVE_CFLAGS
10079 # Find out what ABI is being produced by ac_compile, and set linker
10080 # options accordingly.
10081 echo 'int i;' > conftest.$ac_ext
10082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10083 (eval $ac_compile) 2>&5
10085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10086 test $ac_status = 0; }; then
10087 case `/usr/bin/file conftest.o` in
10089 case $lt_cv_prog_gnu_ld in
10092 i?86-*-solaris*|x86_64-*-solaris*)
10093 LD="${LD-ld} -m elf_x86_64"
10096 LD="${LD-ld} -m elf64_sparc"
10099 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10100 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10105 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10117 need_locks=$enable_libtool_lock
10119 if test -n "$ac_tool_prefix"; then
10120 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10121 set dummy ${ac_tool_prefix}mt; ac_word=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10125 $as_echo_n "(cached) " >&6
10127 if test -n "$MANIFEST_TOOL"; then
10128 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in $PATH
10134 test -z "$as_dir" && as_dir=.
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10137 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10148 if test -n "$MANIFEST_TOOL"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10150 $as_echo "$MANIFEST_TOOL" >&6; }
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10158 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10159 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10160 # Extract the first word of "mt", so it can be a program name with args.
10161 set dummy mt; 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; }
10164 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10165 $as_echo_n "(cached) " >&6
10167 if test -n "$ac_ct_MANIFEST_TOOL"; then
10168 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10171 for as_dir in $PATH
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_ac_ct_MANIFEST_TOOL="mt"
10178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10188 if test -n "$ac_ct_MANIFEST_TOOL"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10190 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193 $as_echo "no" >&6; }
10196 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10199 case $cross_compiling:$ac_tool_warned in
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10203 ac_tool_warned=yes ;;
10205 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10208 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10211 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10213 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10214 if ${lt_cv_path_mainfest_tool+:} false; then :
10215 $as_echo_n "(cached) " >&6
10217 lt_cv_path_mainfest_tool=no
10218 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10219 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10220 cat conftest.err >&5
10221 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10222 lt_cv_path_mainfest_tool=yes
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10227 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10228 if test yes != "$lt_cv_path_mainfest_tool"; then
10238 rhapsody* | darwin*)
10239 if test -n "$ac_tool_prefix"; then
10240 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10241 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10245 $as_echo_n "(cached) " >&6
10247 if test -n "$DSYMUTIL"; then
10248 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10257 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10268 if test -n "$DSYMUTIL"; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10270 $as_echo "$DSYMUTIL" >&6; }
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10278 if test -z "$ac_cv_prog_DSYMUTIL"; then
10279 ac_ct_DSYMUTIL=$DSYMUTIL
10280 # Extract the first word of "dsymutil", so it can be a program name with args.
10281 set dummy dsymutil; ac_word=$2
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283 $as_echo_n "checking for $ac_word... " >&6; }
10284 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10285 $as_echo_n "(cached) " >&6
10287 if test -n "$ac_ct_DSYMUTIL"; then
10288 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291 for as_dir in $PATH
10294 test -z "$as_dir" && as_dir=.
10295 for ac_exec_ext in '' $ac_executable_extensions; do
10296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10297 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10308 if test -n "$ac_ct_DSYMUTIL"; then
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10310 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10316 if test "x$ac_ct_DSYMUTIL" = x; then
10319 case $cross_compiling:$ac_tool_warned in
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10323 ac_tool_warned=yes ;;
10325 DSYMUTIL=$ac_ct_DSYMUTIL
10328 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10331 if test -n "$ac_tool_prefix"; then
10332 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10333 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 $as_echo_n "checking for $ac_word... " >&6; }
10336 if ${ac_cv_prog_NMEDIT+:} false; then :
10337 $as_echo_n "(cached) " >&6
10339 if test -n "$NMEDIT"; then
10340 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10346 test -z "$as_dir" && as_dir=.
10347 for ac_exec_ext in '' $ac_executable_extensions; do
10348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10349 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10359 NMEDIT=$ac_cv_prog_NMEDIT
10360 if test -n "$NMEDIT"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10362 $as_echo "$NMEDIT" >&6; }
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10370 if test -z "$ac_cv_prog_NMEDIT"; then
10371 ac_ct_NMEDIT=$NMEDIT
10372 # Extract the first word of "nmedit", so it can be a program name with args.
10373 set dummy nmedit; ac_word=$2
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375 $as_echo_n "checking for $ac_word... " >&6; }
10376 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10377 $as_echo_n "(cached) " >&6
10379 if test -n "$ac_ct_NMEDIT"; then
10380 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383 for as_dir in $PATH
10386 test -z "$as_dir" && as_dir=.
10387 for ac_exec_ext in '' $ac_executable_extensions; do
10388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10389 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10400 if test -n "$ac_ct_NMEDIT"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10402 $as_echo "$ac_ct_NMEDIT" >&6; }
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405 $as_echo "no" >&6; }
10408 if test "x$ac_ct_NMEDIT" = x; then
10411 case $cross_compiling:$ac_tool_warned in
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10415 ac_tool_warned=yes ;;
10417 NMEDIT=$ac_ct_NMEDIT
10420 NMEDIT="$ac_cv_prog_NMEDIT"
10423 if test -n "$ac_tool_prefix"; then
10424 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10425 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10427 $as_echo_n "checking for $ac_word... " >&6; }
10428 if ${ac_cv_prog_LIPO+:} false; then :
10429 $as_echo_n "(cached) " >&6
10431 if test -n "$LIPO"; then
10432 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10438 test -z "$as_dir" && as_dir=.
10439 for ac_exec_ext in '' $ac_executable_extensions; do
10440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10441 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451 LIPO=$ac_cv_prog_LIPO
10452 if test -n "$LIPO"; then
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10454 $as_echo "$LIPO" >&6; }
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457 $as_echo "no" >&6; }
10462 if test -z "$ac_cv_prog_LIPO"; then
10464 # Extract the first word of "lipo", so it can be a program name with args.
10465 set dummy lipo; ac_word=$2
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 $as_echo_n "checking for $ac_word... " >&6; }
10468 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10469 $as_echo_n "(cached) " >&6
10471 if test -n "$ac_ct_LIPO"; then
10472 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475 for as_dir in $PATH
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10481 ac_cv_prog_ac_ct_LIPO="lipo"
10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10492 if test -n "$ac_ct_LIPO"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10494 $as_echo "$ac_ct_LIPO" >&6; }
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10500 if test "x$ac_ct_LIPO" = x; then
10503 case $cross_compiling:$ac_tool_warned in
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10507 ac_tool_warned=yes ;;
10512 LIPO="$ac_cv_prog_LIPO"
10515 if test -n "$ac_tool_prefix"; then
10516 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10517 set dummy ${ac_tool_prefix}otool; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if ${ac_cv_prog_OTOOL+:} false; then :
10521 $as_echo_n "(cached) " >&6
10523 if test -n "$OTOOL"; then
10524 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10533 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543 OTOOL=$ac_cv_prog_OTOOL
10544 if test -n "$OTOOL"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10546 $as_echo "$OTOOL" >&6; }
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10554 if test -z "$ac_cv_prog_OTOOL"; then
10556 # Extract the first word of "otool", so it can be a program name with args.
10557 set dummy otool; ac_word=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 $as_echo_n "checking for $ac_word... " >&6; }
10560 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10561 $as_echo_n "(cached) " >&6
10563 if test -n "$ac_ct_OTOOL"; then
10564 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10570 test -z "$as_dir" && as_dir=.
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10573 ac_cv_prog_ac_ct_OTOOL="otool"
10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10584 if test -n "$ac_ct_OTOOL"; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10586 $as_echo "$ac_ct_OTOOL" >&6; }
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 $as_echo "no" >&6; }
10592 if test "x$ac_ct_OTOOL" = x; then
10595 case $cross_compiling:$ac_tool_warned in
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10599 ac_tool_warned=yes ;;
10604 OTOOL="$ac_cv_prog_OTOOL"
10607 if test -n "$ac_tool_prefix"; then
10608 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10609 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10611 $as_echo_n "checking for $ac_word... " >&6; }
10612 if ${ac_cv_prog_OTOOL64+:} false; then :
10613 $as_echo_n "(cached) " >&6
10615 if test -n "$OTOOL64"; then
10616 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10622 test -z "$as_dir" && as_dir=.
10623 for ac_exec_ext in '' $ac_executable_extensions; do
10624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10625 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 OTOOL64=$ac_cv_prog_OTOOL64
10636 if test -n "$OTOOL64"; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10638 $as_echo "$OTOOL64" >&6; }
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641 $as_echo "no" >&6; }
10646 if test -z "$ac_cv_prog_OTOOL64"; then
10647 ac_ct_OTOOL64=$OTOOL64
10648 # Extract the first word of "otool64", so it can be a program name with args.
10649 set dummy otool64; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10653 $as_echo_n "(cached) " >&6
10655 if test -n "$ac_ct_OTOOL64"; then
10656 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10665 ac_cv_prog_ac_ct_OTOOL64="otool64"
10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10676 if test -n "$ac_ct_OTOOL64"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10678 $as_echo "$ac_ct_OTOOL64" >&6; }
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10684 if test "x$ac_ct_OTOOL64" = x; then
10687 case $cross_compiling:$ac_tool_warned in
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10691 ac_tool_warned=yes ;;
10693 OTOOL64=$ac_ct_OTOOL64
10696 OTOOL64="$ac_cv_prog_OTOOL64"
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10726 $as_echo_n "checking for -single_module linker flag... " >&6; }
10727 if ${lt_cv_apple_cc_single_mod+:} false; then :
10728 $as_echo_n "(cached) " >&6
10730 lt_cv_apple_cc_single_mod=no
10731 if test -z "$LT_MULTI_MODULE"; then
10732 # By default we will add the -single_module flag. You can override
10733 # by either setting the environment variable LT_MULTI_MODULE
10734 # non-empty at configure time, or by adding -multi_module to the
10736 rm -rf libconftest.dylib*
10737 echo "int foo(void){return 1;}" > conftest.c
10738 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10739 -dynamiclib -Wl,-single_module conftest.c" >&5
10740 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10741 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10743 # If there is a non-empty error log, and "single_module"
10744 # appears in it, assume the flag caused a linker warning
10745 if test -s conftest.err && $GREP single_module conftest.err; then
10746 cat conftest.err >&5
10747 # Otherwise, if the output was created with a 0 exit code from
10748 # the compiler, it worked.
10749 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10750 lt_cv_apple_cc_single_mod=yes
10752 cat conftest.err >&5
10754 rm -rf libconftest.dylib*
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10759 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10762 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10763 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10764 $as_echo_n "(cached) " >&6
10766 lt_cv_ld_exported_symbols_list=no
10767 save_LDFLAGS=$LDFLAGS
10768 echo "_main" > conftest.sym
10769 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10780 if ac_fn_c_try_link "$LINENO"; then :
10781 lt_cv_ld_exported_symbols_list=yes
10783 lt_cv_ld_exported_symbols_list=no
10785 rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10787 LDFLAGS=$save_LDFLAGS
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10791 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10794 $as_echo_n "checking for -force_load linker flag... " >&6; }
10795 if ${lt_cv_ld_force_load+:} false; then :
10796 $as_echo_n "(cached) " >&6
10798 lt_cv_ld_force_load=no
10799 cat > conftest.c << _LT_EOF
10800 int forced_loaded() { return 2;}
10802 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10803 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10804 echo "$AR cr libconftest.a conftest.o" >&5
10805 $AR cr libconftest.a conftest.o 2>&5
10806 echo "$RANLIB libconftest.a" >&5
10807 $RANLIB libconftest.a 2>&5
10808 cat > conftest.c << _LT_EOF
10809 int main() { return 0;}
10811 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10812 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10814 if test -s conftest.err && $GREP force_load conftest.err; then
10815 cat conftest.err >&5
10816 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10817 lt_cv_ld_force_load=yes
10819 cat conftest.err >&5
10821 rm -f conftest.err libconftest.a conftest conftest.c
10822 rm -rf conftest.dSYM
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10826 $as_echo "$lt_cv_ld_force_load" >&6; }
10828 rhapsody* | darwin1.[012])
10829 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10831 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10832 darwin*) # darwin 5.x on
10833 # if running on 10.5 or later, the deployment target defaults
10834 # to the OS version, if on x86, and 10.4, the deployment
10835 # target defaults to 10.4. Don't you love it?
10836 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10837 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10838 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10840 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10842 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10846 if test yes = "$lt_cv_apple_cc_single_mod"; then
10847 _lt_dar_single_mod='$single_module'
10849 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10850 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10852 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10854 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10855 _lt_dsymutil='~$DSYMUTIL $lib || :'
10862 # func_munge_path_list VARIABLE PATH
10863 # -----------------------------------
10864 # VARIABLE is name of variable containing _space_ separated list of
10865 # directories to be munged by the contents of PATH, which is string
10868 # string "DIR[ DIR]" will be prepended to VARIABLE
10870 # string "DIR[ DIR]" will be appended to VARIABLE
10871 # "DIRP[:DIRP]::[DIRA:]DIRA"
10872 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10873 # "DIRA[ DIRA]" will be appended to VARIABLE
10875 # VARIABLE will be replaced by "DIR[ DIR]"
10876 func_munge_path_list ()
10882 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10885 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10888 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10889 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10892 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10898 $as_echo_n "checking for ANSI C header files... " >&6; }
10899 if ${ac_cv_header_stdc+:} false; then :
10900 $as_echo_n "(cached) " >&6
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10904 #include <stdlib.h>
10905 #include <stdarg.h>
10906 #include <string.h>
10916 if ac_fn_c_try_compile "$LINENO"; then :
10917 ac_cv_header_stdc=yes
10919 ac_cv_header_stdc=no
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10923 if test $ac_cv_header_stdc = yes; then
10924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926 /* end confdefs.h. */
10927 #include <string.h>
10930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10931 $EGREP "memchr" >/dev/null 2>&1; then :
10934 ac_cv_header_stdc=no
10940 if test $ac_cv_header_stdc = yes; then
10941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10944 #include <stdlib.h>
10947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10948 $EGREP "free" >/dev/null 2>&1; then :
10951 ac_cv_header_stdc=no
10957 if test $ac_cv_header_stdc = yes; then
10958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10959 if test "$cross_compiling" = yes; then :
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10965 #include <stdlib.h>
10966 #if ((' ' & 0x0FF) == 0x020)
10967 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10968 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10970 # define ISLOWER(c) \
10971 (('a' <= (c) && (c) <= 'i') \
10972 || ('j' <= (c) && (c) <= 'r') \
10973 || ('s' <= (c) && (c) <= 'z'))
10974 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10982 for (i = 0; i < 256; i++)
10983 if (XOR (islower (i), ISLOWER (i))
10984 || toupper (i) != TOUPPER (i))
10989 if ac_fn_c_try_run "$LINENO"; then :
10992 ac_cv_header_stdc=no
10994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10995 conftest.$ac_objext conftest.beam conftest.$ac_ext
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11001 $as_echo "$ac_cv_header_stdc" >&6; }
11002 if test $ac_cv_header_stdc = yes; then
11004 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11008 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11010 inttypes.h stdint.h unistd.h
11012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11013 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11016 cat >>confdefs.h <<_ACEOF
11017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11025 for ac_header in dlfcn.h
11027 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11029 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11030 cat >>confdefs.h <<_ACEOF
11031 #define HAVE_DLFCN_H 1
11040 func_stripname_cnf ()
11043 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11044 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
11046 } # func_stripname_cnf
11048 # ------------------------------------ #
11049 # Determine libtool default behavior #
11050 # ------------------------------------ #
11053 # Default behavior is to enable shared and static libraries on systems
11054 # where libtool knows how to build both library versions, and does not
11055 # require separate configuration and build runs for each flavor.
11058 xc_lt_want_enable_shared='yes'
11059 xc_lt_want_enable_static='yes'
11062 # User may have disabled shared or static libraries.
11064 case "x$enable_shared" in # (
11066 xc_lt_want_enable_shared='no'
11069 case "x$enable_static" in # (
11071 xc_lt_want_enable_static='no'
11074 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11075 test "x$xc_lt_want_enable_static" = 'xno'; then
11076 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11080 # Default behavior on systems that require independent configuration
11081 # and build runs for shared and static is to enable shared libraries
11082 # and disable static ones. On these systems option '--disable-shared'
11083 # must be used in order to build a proper static library.
11086 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11087 test "x$xc_lt_want_enable_static" = 'xyes'; then
11088 case $host_os in # (
11089 mingw* | pw32* | cegcc* | os2* | aix*)
11090 xc_lt_want_enable_static='no'
11096 # Make libtool aware of current shared and static library preferences
11097 # taking in account that, depending on host characteristics, libtool
11098 # may modify these option preferences later in this configure script.
11101 enable_shared=$xc_lt_want_enable_shared
11102 enable_static=$xc_lt_want_enable_static
11105 # Default behavior is to build PIC objects for shared libraries and
11106 # non-PIC objects for static libraries.
11109 xc_lt_want_with_pic='default'
11112 # User may have specified PIC preference.
11115 case "x$with_pic" in # ((
11117 xc_lt_want_with_pic='no'
11120 xc_lt_want_with_pic='yes'
11125 # Default behavior on some systems where building a shared library out
11126 # of non-PIC compiled objects will fail with following linker error
11127 # "relocation R_X86_64_32 can not be used when making a shared object"
11128 # is to build PIC objects even for static libraries. This behavior may
11129 # be overriden using 'configure --disable-shared --without-pic'.
11132 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11133 case $host_cpu in # (
11134 x86_64 | amd64 | ia64)
11135 case $host_os in # (
11137 xc_lt_want_with_pic='yes'
11145 # Make libtool aware of current PIC preference taking in account that,
11146 # depending on host characteristics, libtool may modify PIC default
11147 # behavior to fit host system idiosyncrasies later in this script.
11150 with_pic=$xc_lt_want_with_pic
11152 ## ----------------------- ##
11153 ## Start of libtool code ##
11154 ## ----------------------- ##
11160 enable_win32_dll=yes
11163 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11164 if test -n "$ac_tool_prefix"; then
11165 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11166 set dummy ${ac_tool_prefix}as; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if ${ac_cv_prog_AS+:} false; then :
11170 $as_echo_n "(cached) " >&6
11172 if test -n "$AS"; then
11173 ac_cv_prog_AS="$AS" # Let the user override the test.
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182 ac_cv_prog_AS="${ac_tool_prefix}as"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 if test -n "$AS"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11195 $as_echo "$AS" >&6; }
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11203 if test -z "$ac_cv_prog_AS"; then
11205 # Extract the first word of "as", so it can be a program name with args.
11206 set dummy as; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11210 $as_echo_n "(cached) " >&6
11212 if test -n "$ac_ct_AS"; then
11213 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $PATH
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11222 ac_cv_prog_ac_ct_AS="as"
11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11233 if test -n "$ac_ct_AS"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11235 $as_echo "$ac_ct_AS" >&6; }
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11241 if test "x$ac_ct_AS" = x; then
11244 case $cross_compiling:$ac_tool_warned in
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11248 ac_tool_warned=yes ;;
11253 AS="$ac_cv_prog_AS"
11256 if test -n "$ac_tool_prefix"; then
11257 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11258 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_prog_DLLTOOL+:} false; then :
11262 $as_echo_n "(cached) " >&6
11264 if test -n "$DLLTOOL"; then
11265 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268 for as_dir in $PATH
11271 test -z "$as_dir" && as_dir=.
11272 for ac_exec_ext in '' $ac_executable_extensions; do
11273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11274 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 DLLTOOL=$ac_cv_prog_DLLTOOL
11285 if test -n "$DLLTOOL"; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11287 $as_echo "$DLLTOOL" >&6; }
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11295 if test -z "$ac_cv_prog_DLLTOOL"; then
11296 ac_ct_DLLTOOL=$DLLTOOL
11297 # Extract the first word of "dlltool", so it can be a program name with args.
11298 set dummy dlltool; ac_word=$2
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11300 $as_echo_n "checking for $ac_word... " >&6; }
11301 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11302 $as_echo_n "(cached) " >&6
11304 if test -n "$ac_ct_DLLTOOL"; then
11305 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308 for as_dir in $PATH
11311 test -z "$as_dir" && as_dir=.
11312 for ac_exec_ext in '' $ac_executable_extensions; do
11313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11314 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11325 if test -n "$ac_ct_DLLTOOL"; then
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11327 $as_echo "$ac_ct_DLLTOOL" >&6; }
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330 $as_echo "no" >&6; }
11333 if test "x$ac_ct_DLLTOOL" = x; then
11336 case $cross_compiling:$ac_tool_warned in
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11340 ac_tool_warned=yes ;;
11342 DLLTOOL=$ac_ct_DLLTOOL
11345 DLLTOOL="$ac_cv_prog_DLLTOOL"
11348 if test -n "$ac_tool_prefix"; then
11349 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11350 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352 $as_echo_n "checking for $ac_word... " >&6; }
11353 if ${ac_cv_prog_OBJDUMP+:} false; then :
11354 $as_echo_n "(cached) " >&6
11356 if test -n "$OBJDUMP"; then
11357 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360 for as_dir in $PATH
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11366 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11376 OBJDUMP=$ac_cv_prog_OBJDUMP
11377 if test -n "$OBJDUMP"; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11379 $as_echo "$OBJDUMP" >&6; }
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11387 if test -z "$ac_cv_prog_OBJDUMP"; then
11388 ac_ct_OBJDUMP=$OBJDUMP
11389 # Extract the first word of "objdump", so it can be a program name with args.
11390 set dummy objdump; ac_word=$2
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392 $as_echo_n "checking for $ac_word... " >&6; }
11393 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11394 $as_echo_n "(cached) " >&6
11396 if test -n "$ac_ct_OBJDUMP"; then
11397 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11403 test -z "$as_dir" && as_dir=.
11404 for ac_exec_ext in '' $ac_executable_extensions; do
11405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11406 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11417 if test -n "$ac_ct_OBJDUMP"; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11419 $as_echo "$ac_ct_OBJDUMP" >&6; }
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422 $as_echo "no" >&6; }
11425 if test "x$ac_ct_OBJDUMP" = x; then
11428 case $cross_compiling:$ac_tool_warned in
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11432 ac_tool_warned=yes ;;
11434 OBJDUMP=$ac_ct_OBJDUMP
11437 OBJDUMP="$ac_cv_prog_OBJDUMP"
11443 test -z "$AS" && AS=as
11449 test -z "$DLLTOOL" && DLLTOOL=dlltool
11455 test -z "$OBJDUMP" && OBJDUMP=objdump
11467 # Check whether --enable-shared was given.
11468 if test "${enable_shared+set}" = set; then :
11469 enableval=$enable_shared; p=${PACKAGE-default}
11471 yes) enable_shared=yes ;;
11472 no) enable_shared=no ;;
11475 # Look at the argument we got. We use all the common list separators.
11476 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11477 for pkg in $enableval; do
11479 if test "X$pkg" = "X$p"; then
11498 # Check whether --enable-static was given.
11499 if test "${enable_static+set}" = set; then :
11500 enableval=$enable_static; p=${PACKAGE-default}
11502 yes) enable_static=yes ;;
11503 no) enable_static=no ;;
11506 # Look at the argument we got. We use all the common list separators.
11507 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11508 for pkg in $enableval; do
11510 if test "X$pkg" = "X$p"; then
11530 # Check whether --with-pic was given.
11531 if test "${with_pic+set}" = set; then :
11532 withval=$with_pic; lt_p=${PACKAGE-default}
11534 yes|no) pic_mode=$withval ;;
11537 # Look at the argument we got. We use all the common list separators.
11538 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11539 for lt_pkg in $withval; do
11541 if test "X$lt_pkg" = "X$lt_p"; then
11559 # Check whether --enable-fast-install was given.
11560 if test "${enable_fast_install+set}" = set; then :
11561 enableval=$enable_fast_install; p=${PACKAGE-default}
11563 yes) enable_fast_install=yes ;;
11564 no) enable_fast_install=no ;;
11566 enable_fast_install=no
11567 # Look at the argument we got. We use all the common list separators.
11568 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11569 for pkg in $enableval; do
11571 if test "X$pkg" = "X$p"; then
11572 enable_fast_install=yes
11579 enable_fast_install=yes
11589 shared_archive_member_spec=
11590 case $host,$enable_shared in
11591 power*-*-aix[5-9]*,yes)
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11593 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11595 # Check whether --with-aix-soname was given.
11596 if test "${with_aix_soname+set}" = set; then :
11597 withval=$with_aix_soname; case $withval in
11601 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11604 lt_cv_with_aix_soname=$with_aix_soname
11606 if ${lt_cv_with_aix_soname+:} false; then :
11607 $as_echo_n "(cached) " >&6
11609 lt_cv_with_aix_soname=aix
11612 with_aix_soname=$lt_cv_with_aix_soname
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11616 $as_echo "$with_aix_soname" >&6; }
11617 if test aix != "$with_aix_soname"; then
11618 # For the AIX way of multilib, we name the shared archive member
11619 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11620 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11621 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11622 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11623 if test 64 = "${OBJECT_MODE-32}"; then
11624 shared_archive_member_spec=shr_64
11626 shared_archive_member_spec=shr
11631 with_aix_soname=aix
11644 # This can be used to rebuild libtool when needed
11645 LIBTOOL_DEPS=$ltmain
11647 # Always use our own libtool.
11648 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11679 test -z "$LN_S" && LN_S="ln -s"
11694 if test -n "${ZSH_VERSION+set}"; then
11695 setopt NO_GLOB_SUBST
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11699 $as_echo_n "checking for objdir... " >&6; }
11700 if ${lt_cv_objdir+:} false; then :
11701 $as_echo_n "(cached) " >&6
11703 rm -f .libs 2>/dev/null
11704 mkdir .libs 2>/dev/null
11705 if test -d .libs; then
11708 # MS-DOS does not allow filenames that begin with a dot.
11711 rmdir .libs 2>/dev/null
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11714 $as_echo "$lt_cv_objdir" >&6; }
11715 objdir=$lt_cv_objdir
11721 cat >>confdefs.h <<_ACEOF
11722 #define LT_OBJDIR "$lt_cv_objdir/"
11730 # AIX sometimes has problems with the GCC collect2 program. For some
11731 # reason, if we set the COLLECT_NAMES environment variable, the problems
11732 # vanish in a puff of smoke.
11733 if test set != "${COLLECT_NAMES+set}"; then
11735 export COLLECT_NAMES
11740 # Global variables:
11742 can_build_shared=yes
11744 # All known linkers require a '.a' archive for static linking (except MSVC,
11745 # which needs '.lib').
11748 with_gnu_ld=$lt_cv_prog_gnu_ld
11753 # Set sane defaults for various variables
11754 test -z "$CC" && CC=cc
11755 test -z "$LTCC" && LTCC=$CC
11756 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11757 test -z "$LD" && LD=ld
11758 test -z "$ac_objext" && ac_objext=o
11760 func_cc_basename $compiler
11761 cc_basename=$func_cc_basename_result
11764 # Only perform the check for file, if the check method requires it
11765 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11766 case $deplibs_check_method in
11768 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11770 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11771 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11772 $as_echo_n "(cached) " >&6
11776 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11779 lt_save_MAGIC_CMD=$MAGIC_CMD
11780 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11781 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11782 for ac_dir in $ac_dummy; do
11784 test -z "$ac_dir" && ac_dir=.
11785 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11786 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11787 if test -n "$file_magic_test_file"; then
11788 case $deplibs_check_method in
11790 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11791 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11792 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11793 $EGREP "$file_magic_regex" > /dev/null; then
11798 *** Warning: the command libtool uses to detect shared libraries,
11799 *** $file_magic_cmd, produces output that libtool cannot recognize.
11800 *** The result is that libtool may fail to recognize shared libraries
11801 *** as such. This will affect the creation of libtool libraries that
11802 *** depend on shared libraries, but programs linked with such libtool
11803 *** libraries will work regardless of this problem. Nevertheless, you
11804 *** may want to report the problem to your system manager and/or to
11805 *** bug-libtool@gnu.org
11815 MAGIC_CMD=$lt_save_MAGIC_CMD
11820 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11821 if test -n "$MAGIC_CMD"; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11823 $as_echo "$MAGIC_CMD" >&6; }
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11833 if test -z "$lt_cv_path_MAGIC_CMD"; then
11834 if test -n "$ac_tool_prefix"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11836 $as_echo_n "checking for file... " >&6; }
11837 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11838 $as_echo_n "(cached) " >&6
11842 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11845 lt_save_MAGIC_CMD=$MAGIC_CMD
11846 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11847 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11848 for ac_dir in $ac_dummy; do
11850 test -z "$ac_dir" && ac_dir=.
11851 if test -f "$ac_dir/file"; then
11852 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11853 if test -n "$file_magic_test_file"; then
11854 case $deplibs_check_method in
11856 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11857 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11858 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11859 $EGREP "$file_magic_regex" > /dev/null; then
11864 *** Warning: the command libtool uses to detect shared libraries,
11865 *** $file_magic_cmd, produces output that libtool cannot recognize.
11866 *** The result is that libtool may fail to recognize shared libraries
11867 *** as such. This will affect the creation of libtool libraries that
11868 *** depend on shared libraries, but programs linked with such libtool
11869 *** libraries will work regardless of this problem. Nevertheless, you
11870 *** may want to report the problem to your system manager and/or to
11871 *** bug-libtool@gnu.org
11881 MAGIC_CMD=$lt_save_MAGIC_CMD
11886 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11887 if test -n "$MAGIC_CMD"; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11889 $as_echo "$MAGIC_CMD" >&6; }
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11905 # Use C for the default configuration in the libtool script
11909 ac_cpp='$CPP $CPPFLAGS'
11910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11915 # Source file extension for C test sources.
11918 # Object file extension for compiled C test sources.
11922 # Code to be used in simple compile tests
11923 lt_simple_compile_test_code="int some_variable = 0;"
11925 # Code to be used in simple link tests
11926 lt_simple_link_test_code='int main(){return(0);}'
11934 # If no C compiler was specified, use CC.
11937 # If no C compiler flags were specified, use CFLAGS.
11938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11940 # Allow CC to be a program name with arguments.
11943 # Save the default compiler, since it gets overwritten when the other
11944 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11945 compiler_DEFAULT=$CC
11947 # save warnings/boilerplate of simple test code
11948 ac_outfile=conftest.$ac_objext
11949 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11950 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11951 _lt_compiler_boilerplate=`cat conftest.err`
11954 ac_outfile=conftest.$ac_objext
11955 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11956 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11957 _lt_linker_boilerplate=`cat conftest.err`
11962 ## There is no encapsulation within the following macros, do not change
11963 ## the running order or otherwise move them around unless you know exactly
11964 ## what you are doing...
11965 if test -n "$compiler"; then
11967 lt_prog_compiler_no_builtin_flag=
11969 if test yes = "$GCC"; then
11970 case $cc_basename in
11972 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11974 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11978 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11979 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11980 $as_echo_n "(cached) " >&6
11982 lt_cv_prog_compiler_rtti_exceptions=no
11983 ac_outfile=conftest.$ac_objext
11984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11985 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11986 # Insert the option either (1) after the last *FLAGS variable, or
11987 # (2) before a word containing "conftest.", or (3) at the end.
11988 # Note that $ac_compile itself does not contain backslashes and begins
11989 # with a dollar sign (not a hyphen), so the echo should work correctly.
11990 # The option is referenced via a variable to avoid confusing sed.
11991 lt_compile=`echo "$ac_compile" | $SED \
11992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11994 -e 's:$: $lt_compiler_flag:'`
11995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11996 (eval "$lt_compile" 2>conftest.err)
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 if (exit $ac_status) && test -s "$ac_outfile"; then
12001 # The compiler can only warn and ignore the option if not recognized
12002 # So say no if there are warnings other than the usual output.
12003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12006 lt_cv_prog_compiler_rtti_exceptions=yes
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12013 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12015 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12016 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12028 lt_prog_compiler_wl=
12029 lt_prog_compiler_pic=
12030 lt_prog_compiler_static=
12033 if test yes = "$GCC"; then
12034 lt_prog_compiler_wl='-Wl,'
12035 lt_prog_compiler_static='-static'
12039 # All AIX code is PIC.
12040 if test ia64 = "$host_cpu"; then
12041 # AIX 5 now supports IA64 processor
12042 lt_prog_compiler_static='-Bstatic'
12044 lt_prog_compiler_pic='-fPIC'
12050 # see comment about AmigaOS4 .so support
12051 lt_prog_compiler_pic='-fPIC'
12054 # FIXME: we need at least 68020 code to build shared libraries, but
12055 # adding the '-m68020' flag to GCC prevents building anything better,
12057 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12062 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12063 # PIC is the default for these OSes.
12066 mingw* | cygwin* | pw32* | os2* | cegcc*)
12067 # This hack is so that the source file can tell whether it is being
12068 # built for inclusion in a dll (and should export symbols for example).
12069 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12070 # (--disable-auto-import) libraries
12071 lt_prog_compiler_pic='-DDLL_EXPORT'
12074 lt_prog_compiler_static='$wl-static'
12079 darwin* | rhapsody*)
12080 # PIC is the default on this platform
12081 # Common symbols not allowed in MH_DYLIB files
12082 lt_prog_compiler_pic='-fno-common'
12086 # PIC is the default for Haiku.
12087 # The "-static" flag exists, but is broken.
12088 lt_prog_compiler_static=
12092 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12093 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12094 # sets the default TLS model and affects inlining.
12100 lt_prog_compiler_pic='-fPIC'
12106 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12107 # Instead, we relocate shared libraries at runtime.
12111 # Just because we use GCC doesn't mean we suddenly get shared libraries
12112 # on systems that don't support them.
12113 lt_prog_compiler_can_build_shared=no
12118 # QNX uses GNU C++, but need to define -shared option too, otherwise
12119 # it will coredump.
12120 lt_prog_compiler_pic='-fPIC -shared'
12124 if test -d /usr/nec; then
12125 lt_prog_compiler_pic=-Kconform_pic
12130 lt_prog_compiler_pic='-fPIC'
12134 case $cc_basename in
12135 nvcc*) # Cuda Compiler Driver 2.2
12136 lt_prog_compiler_wl='-Xlinker '
12137 if test -n "$lt_prog_compiler_pic"; then
12138 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12143 # PORTME Check for flag to pass linker flags through the system compiler.
12146 lt_prog_compiler_wl='-Wl,'
12147 if test ia64 = "$host_cpu"; then
12148 # AIX 5 now supports IA64 processor
12149 lt_prog_compiler_static='-Bstatic'
12151 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12155 darwin* | rhapsody*)
12156 # PIC is the default on this platform
12157 # Common symbols not allowed in MH_DYLIB files
12158 lt_prog_compiler_pic='-fno-common'
12159 case $cc_basename in
12161 # NAG Fortran compiler
12162 lt_prog_compiler_wl='-Wl,-Wl,,'
12163 lt_prog_compiler_pic='-PIC'
12164 lt_prog_compiler_static='-Bstatic'
12169 mingw* | cygwin* | pw32* | os2* | cegcc*)
12170 # This hack is so that the source file can tell whether it is being
12171 # built for inclusion in a dll (and should export symbols for example).
12172 lt_prog_compiler_pic='-DDLL_EXPORT'
12175 lt_prog_compiler_static='$wl-static'
12180 hpux9* | hpux10* | hpux11*)
12181 lt_prog_compiler_wl='-Wl,'
12182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12183 # not for PA HP-UX.
12189 lt_prog_compiler_pic='+Z'
12192 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12193 lt_prog_compiler_static='$wl-a ${wl}archive'
12196 irix5* | irix6* | nonstopux*)
12197 lt_prog_compiler_wl='-Wl,'
12198 # PIC (with -KPIC) is the default.
12199 lt_prog_compiler_static='-non_shared'
12202 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12203 case $cc_basename in
12204 # old Intel for x86_64, which still supported -KPIC.
12206 lt_prog_compiler_wl='-Wl,'
12207 lt_prog_compiler_pic='-KPIC'
12208 lt_prog_compiler_static='-static'
12210 # flang / f18. f95 an alias for gfortran or flang on Debian
12211 flang* | f18* | f95*)
12212 lt_prog_compiler_wl='-Wl,'
12213 lt_prog_compiler_pic='-fPIC'
12214 lt_prog_compiler_static='-static'
12216 # icc used to be incompatible with GCC.
12217 # ICC 10 doesn't accept -KPIC any more.
12219 lt_prog_compiler_wl='-Wl,'
12220 lt_prog_compiler_pic='-fPIC'
12221 lt_prog_compiler_static='-static'
12223 # Lahey Fortran 8.1.
12225 lt_prog_compiler_wl='-Wl,'
12226 lt_prog_compiler_pic='--shared'
12227 lt_prog_compiler_static='--static'
12230 # NAG Fortran compiler
12231 lt_prog_compiler_wl='-Wl,-Wl,,'
12232 lt_prog_compiler_pic='-PIC'
12233 lt_prog_compiler_static='-Bstatic'
12236 # Fabrice Bellard et al's Tiny C Compiler
12237 lt_prog_compiler_wl='-Wl,'
12238 lt_prog_compiler_pic='-fPIC'
12239 lt_prog_compiler_static='-static'
12241 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12242 # Portland Group compilers (*not* the Pentium gcc compiler,
12243 # which looks to be a dead project)
12244 lt_prog_compiler_wl='-Wl,'
12245 lt_prog_compiler_pic='-fpic'
12246 lt_prog_compiler_static='-Bstatic'
12249 lt_prog_compiler_wl='-Wl,'
12250 # All Alpha code is PIC.
12251 lt_prog_compiler_static='-non_shared'
12253 xl* | bgxl* | bgf* | mpixl*)
12254 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12255 lt_prog_compiler_wl='-Wl,'
12256 lt_prog_compiler_pic='-qpic'
12257 lt_prog_compiler_static='-qstaticlink'
12260 case `$CC -V 2>&1 | sed 5q` in
12261 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12262 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12263 lt_prog_compiler_pic='-KPIC'
12264 lt_prog_compiler_static='-Bstatic'
12265 lt_prog_compiler_wl=''
12267 *Sun\ F* | *Sun*Fortran*)
12268 lt_prog_compiler_pic='-KPIC'
12269 lt_prog_compiler_static='-Bstatic'
12270 lt_prog_compiler_wl='-Qoption ld '
12274 lt_prog_compiler_pic='-KPIC'
12275 lt_prog_compiler_static='-Bstatic'
12276 lt_prog_compiler_wl='-Wl,'
12278 *Intel*\ [CF]*Compiler*)
12279 lt_prog_compiler_wl='-Wl,'
12280 lt_prog_compiler_pic='-fPIC'
12281 lt_prog_compiler_static='-static'
12284 lt_prog_compiler_wl='-Wl,'
12285 lt_prog_compiler_pic='-fpic'
12286 lt_prog_compiler_static='-Bstatic'
12294 lt_prog_compiler_pic='-KPIC'
12295 lt_prog_compiler_static='-Bstatic'
12299 # QNX uses GNU C++, but need to define -shared option too, otherwise
12300 # it will coredump.
12301 lt_prog_compiler_pic='-fPIC -shared'
12304 osf3* | osf4* | osf5*)
12305 lt_prog_compiler_wl='-Wl,'
12306 # All OSF/1 code is PIC.
12307 lt_prog_compiler_static='-non_shared'
12311 lt_prog_compiler_static='-non_shared'
12315 lt_prog_compiler_pic='-KPIC'
12316 lt_prog_compiler_static='-Bstatic'
12317 case $cc_basename in
12318 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12319 lt_prog_compiler_wl='-Qoption ld ';;
12321 lt_prog_compiler_wl='-Wl,';;
12326 lt_prog_compiler_wl='-Qoption ld '
12327 lt_prog_compiler_pic='-PIC'
12328 lt_prog_compiler_static='-Bstatic'
12331 sysv4 | sysv4.2uw2* | sysv4.3*)
12332 lt_prog_compiler_wl='-Wl,'
12333 lt_prog_compiler_pic='-KPIC'
12334 lt_prog_compiler_static='-Bstatic'
12338 if test -d /usr/nec; then
12339 lt_prog_compiler_pic='-Kconform_pic'
12340 lt_prog_compiler_static='-Bstatic'
12344 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12345 lt_prog_compiler_wl='-Wl,'
12346 lt_prog_compiler_pic='-KPIC'
12347 lt_prog_compiler_static='-Bstatic'
12351 lt_prog_compiler_wl='-Wl,'
12352 lt_prog_compiler_can_build_shared=no
12356 lt_prog_compiler_pic='-pic'
12357 lt_prog_compiler_static='-Bstatic'
12361 lt_prog_compiler_can_build_shared=no
12367 # For platforms that do not support PIC, -DPIC is meaningless:
12369 lt_prog_compiler_pic=
12372 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12377 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12378 if ${lt_cv_prog_compiler_pic+:} false; then :
12379 $as_echo_n "(cached) " >&6
12381 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12384 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12385 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12388 # Check to make sure the PIC flag actually works.
12390 if test -n "$lt_prog_compiler_pic"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12392 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12393 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12394 $as_echo_n "(cached) " >&6
12396 lt_cv_prog_compiler_pic_works=no
12397 ac_outfile=conftest.$ac_objext
12398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12399 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12400 # Insert the option either (1) after the last *FLAGS variable, or
12401 # (2) before a word containing "conftest.", or (3) at the end.
12402 # Note that $ac_compile itself does not contain backslashes and begins
12403 # with a dollar sign (not a hyphen), so the echo should work correctly.
12404 # The option is referenced via a variable to avoid confusing sed.
12405 lt_compile=`echo "$ac_compile" | $SED \
12406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12408 -e 's:$: $lt_compiler_flag:'`
12409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12410 (eval "$lt_compile" 2>conftest.err)
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 if (exit $ac_status) && test -s "$ac_outfile"; then
12415 # The compiler can only warn and ignore the option if not recognized
12416 # So say no if there are warnings other than the usual output.
12417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12420 lt_cv_prog_compiler_pic_works=yes
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12427 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12429 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12430 case $lt_prog_compiler_pic in
12432 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12435 lt_prog_compiler_pic=
12436 lt_prog_compiler_can_build_shared=no
12452 # Check to make sure the static flag actually works.
12454 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12456 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12457 if ${lt_cv_prog_compiler_static_works+:} false; then :
12458 $as_echo_n "(cached) " >&6
12460 lt_cv_prog_compiler_static_works=no
12461 save_LDFLAGS=$LDFLAGS
12462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12463 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12465 # The linker can only warn and ignore the option if not recognized
12466 # So say no if there are warnings
12467 if test -s conftest.err; then
12468 # Append any errors to the config.log.
12469 cat conftest.err 1>&5
12470 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12472 if diff conftest.exp conftest.er2 >/dev/null; then
12473 lt_cv_prog_compiler_static_works=yes
12476 lt_cv_prog_compiler_static_works=yes
12480 LDFLAGS=$save_LDFLAGS
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12484 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12486 if test yes = "$lt_cv_prog_compiler_static_works"; then
12489 lt_prog_compiler_static=
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12499 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12500 if ${lt_cv_prog_compiler_c_o+:} false; then :
12501 $as_echo_n "(cached) " >&6
12503 lt_cv_prog_compiler_c_o=no
12504 $RM -r conftest 2>/dev/null
12508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12510 lt_compiler_flag="-o out/conftest2.$ac_objext"
12511 # Insert the option either (1) after the last *FLAGS variable, or
12512 # (2) before a word containing "conftest.", or (3) at the end.
12513 # Note that $ac_compile itself does not contain backslashes and begins
12514 # with a dollar sign (not a hyphen), so the echo should work correctly.
12515 lt_compile=`echo "$ac_compile" | $SED \
12516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12518 -e 's:$: $lt_compiler_flag:'`
12519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12520 (eval "$lt_compile" 2>out/conftest.err)
12522 cat out/conftest.err >&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12526 # The compiler can only warn and ignore the option if not recognized
12527 # So say no if there are warnings
12528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12531 lt_cv_prog_compiler_c_o=yes
12536 # SGI C++ compiler will create directory out/ii_files/ for
12537 # template instantiation
12538 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12539 $RM out/* && rmdir out
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12546 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12554 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12555 if ${lt_cv_prog_compiler_c_o+:} false; then :
12556 $as_echo_n "(cached) " >&6
12558 lt_cv_prog_compiler_c_o=no
12559 $RM -r conftest 2>/dev/null
12563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12565 lt_compiler_flag="-o out/conftest2.$ac_objext"
12566 # Insert the option either (1) after the last *FLAGS variable, or
12567 # (2) before a word containing "conftest.", or (3) at the end.
12568 # Note that $ac_compile itself does not contain backslashes and begins
12569 # with a dollar sign (not a hyphen), so the echo should work correctly.
12570 lt_compile=`echo "$ac_compile" | $SED \
12571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12573 -e 's:$: $lt_compiler_flag:'`
12574 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12575 (eval "$lt_compile" 2>out/conftest.err)
12577 cat out/conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12581 # The compiler can only warn and ignore the option if not recognized
12582 # So say no if there are warnings
12583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12586 lt_cv_prog_compiler_c_o=yes
12591 # SGI C++ compiler will create directory out/ii_files/ for
12592 # template instantiation
12593 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12594 $RM out/* && rmdir out
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12601 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12606 hard_links=nottested
12607 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12608 # do not overwrite the value of need_locks provided by the user
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12610 $as_echo_n "checking if we can lock with hard links... " >&6; }
12613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12615 ln conftest.a conftest.b 2>&5 || hard_links=no
12616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12618 $as_echo "$hard_links" >&6; }
12619 if test no = "$hard_links"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12621 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12634 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12637 allow_undefined_flag=
12638 always_export_symbols=no
12640 archive_expsym_cmds=
12641 compiler_needs_object=no
12642 enable_shared_with_static_runtimes=no
12643 export_dynamic_flag_spec=
12644 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12645 hardcode_automatic=no
12647 hardcode_direct_absolute=no
12648 hardcode_libdir_flag_spec=
12649 hardcode_libdir_separator=
12650 hardcode_minus_L=no
12651 hardcode_shlibpath_var=unsupported
12653 link_all_deplibs=unknown
12655 module_expsym_cmds=
12656 old_archive_from_new_cmds=
12657 old_archive_from_expsyms_cmds=
12658 thread_safe_flag_spec=
12659 whole_archive_flag_spec=
12660 # include_expsyms should be a list of space-separated symbols to be *always*
12661 # included in the symbol list
12663 # exclude_expsyms can be an extended regexp of symbols to exclude
12664 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12665 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12666 # as well as any symbol that contains 'd'.
12667 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12668 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12669 # platforms (ab)use it in PIC code, but their linkers get confused if
12670 # the symbol is explicitly referenced. Since portable code cannot
12671 # rely on this symbol name, it's probably fine to never include it in
12672 # preloaded symbol tables.
12673 # Exclude shared library initialization/finalization symbols.
12674 extract_expsyms_cmds=
12677 cygwin* | mingw* | pw32* | cegcc*)
12678 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12679 # When not using gcc, we currently assume that we are using
12680 # Microsoft Visual C++.
12681 if test yes != "$GCC"; then
12686 # we just hope/assume this is gcc and not c89 (= MSVC++)
12689 openbsd* | bitrig*)
12692 linux* | k*bsd*-gnu | gnu*)
12693 link_all_deplibs=no
12699 # On some targets, GNU ld is compatible enough with the native linker
12700 # that we're better off using the native interface for both.
12701 lt_use_gnu_ld_interface=no
12702 if test yes = "$with_gnu_ld"; then
12705 # The AIX port of GNU ld has always aspired to compatibility
12706 # with the native linker. However, as the warning in the GNU ld
12707 # block says, versions before 2.19.5* couldn't really create working
12708 # shared libraries, regardless of the interface used.
12709 case `$LD -v 2>&1` in
12710 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12711 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12712 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12714 lt_use_gnu_ld_interface=yes
12719 lt_use_gnu_ld_interface=yes
12724 if test yes = "$lt_use_gnu_ld_interface"; then
12725 # If archive_cmds runs LD, not CC, wlarc should be empty
12728 # Set some defaults for GNU ld with shared library support. These
12729 # are reset later if shared libraries are not supported. Putting them
12730 # here allows them to be overridden if necessary.
12731 runpath_var=LD_RUN_PATH
12732 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12733 export_dynamic_flag_spec='$wl--export-dynamic'
12734 # ancient GNU ld didn't support --whole-archive et. al.
12735 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12736 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12738 whole_archive_flag_spec=
12740 supports_anon_versioning=no
12741 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12742 *GNU\ gold*) supports_anon_versioning=yes ;;
12743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12746 *\ 2.11.*) ;; # other 2.11 versions
12747 *) supports_anon_versioning=yes ;;
12750 # See if GNU ld supports shared libraries.
12753 # On AIX/PPC, the GNU linker is very broken
12754 if test ia64 != "$host_cpu"; then
12758 *** Warning: the GNU linker, at least up to release 2.19, is reported
12759 *** to be unable to reliably create shared libraries on AIX.
12760 *** Therefore, libtool is disabling shared libraries support. If you
12761 *** really care for shared libraries, you may want to install binutils
12762 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12763 *** You will then need to restart the configuration process.
12772 # see comment about AmigaOS4 .so support
12773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12774 archive_expsym_cmds=''
12777 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)'
12778 hardcode_libdir_flag_spec='-L$libdir'
12779 hardcode_minus_L=yes
12785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12786 allow_undefined_flag=unsupported
12787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12788 # support --undefined. This deserves some investigation. FIXME
12789 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12795 cygwin* | mingw* | pw32* | cegcc*)
12796 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12797 # as there is no search path for DLLs.
12798 hardcode_libdir_flag_spec='-L$libdir'
12799 export_dynamic_flag_spec='$wl--export-all-symbols'
12800 allow_undefined_flag=unsupported
12801 always_export_symbols=no
12802 enable_shared_with_static_runtimes=yes
12803 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'
12804 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12806 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12808 # If the export-symbols file already is a .def file, use it as
12809 # is; otherwise, prepend EXPORTS...
12810 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12811 cp $export_symbols $output_objdir/$soname.def;
12813 echo EXPORTS > $output_objdir/$soname.def;
12814 cat $export_symbols >> $output_objdir/$soname.def;
12816 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12824 link_all_deplibs=yes
12828 hardcode_libdir_flag_spec='-L$libdir'
12829 hardcode_minus_L=yes
12830 allow_undefined_flag=unsupported
12832 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12833 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12834 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12835 $ECHO EXPORTS >> $output_objdir/$libname.def~
12836 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12837 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12838 emximp -o $lib $output_objdir/$libname.def'
12839 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12840 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12841 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12842 $ECHO EXPORTS >> $output_objdir/$libname.def~
12843 prefix_cmds="$SED"~
12844 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12845 prefix_cmds="$prefix_cmds -e 1d";
12847 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12848 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12849 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12850 emximp -o $lib $output_objdir/$libname.def'
12851 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12852 enable_shared_with_static_runtimes=yes
12857 hardcode_shlibpath_var=no
12858 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12859 export_dynamic_flag_spec='$wl-E'
12860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12861 # Instead, shared libraries are loaded at an image base (0x10000000 by
12862 # default) and relocated if they conflict, which is a slow very memory
12863 # consuming and fragmenting process. To avoid this, we pick a random,
12864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12865 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12867 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'
12870 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12872 if test linux-dietlibc = "$host_os"; then
12873 case $cc_basename in
12874 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12877 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12878 && test no = "$tmp_diet"
12880 tmp_addflag=' $pic_flag'
12881 tmp_sharedflag='-shared'
12882 case $cc_basename,$host_cpu in
12883 pgcc*) # Portland Group C compiler
12884 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'
12885 tmp_addflag=' $pic_flag'
12887 pgf77* | pgf90* | pgf95* | pgfortran*)
12888 # Portland Group f77 and f90 compilers
12889 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'
12890 tmp_addflag=' $pic_flag -Mnomain' ;;
12891 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12892 tmp_addflag=' -i_dynamic' ;;
12893 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12894 tmp_addflag=' -i_dynamic -nofor_main' ;;
12895 ifc* | ifort*) # Intel Fortran compiler
12896 tmp_addflag=' -nofor_main' ;;
12897 lf95*) # Lahey Fortran 8.1
12898 whole_archive_flag_spec=
12899 tmp_sharedflag='--shared' ;;
12900 nagfor*) # NAGFOR 5.3
12901 tmp_sharedflag='-Wl,-shared' ;;
12902 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12903 tmp_sharedflag='-qmkshrobj'
12905 nvcc*) # Cuda Compiler Driver 2.2
12906 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'
12907 compiler_needs_object=yes
12910 case `$CC -V 2>&1 | sed 5q` in
12911 *Sun\ C*) # Sun C 5.9
12912 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'
12913 compiler_needs_object=yes
12914 tmp_sharedflag='-G' ;;
12915 *Sun\ F*) # Sun Fortran 8.3
12916 tmp_sharedflag='-G' ;;
12918 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12920 if test yes = "$supports_anon_versioning"; then
12921 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12922 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12923 echo "local: *; };" >> $output_objdir/$libname.ver~
12924 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12927 case $cc_basename in
12929 export_dynamic_flag_spec='-rdynamic'
12931 xlf* | bgf* | bgxlf* | mpixlf*)
12932 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12933 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12934 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12935 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12936 if test yes = "$supports_anon_versioning"; then
12937 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12939 echo "local: *; };" >> $output_objdir/$libname.ver~
12940 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12949 netbsd* | netbsdelf*-gnu)
12950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12951 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12954 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12955 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12960 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12965 *** create shared libraries on Solaris systems. Therefore, libtool
12966 *** is disabling shared libraries support. We urge you to upgrade GNU
12967 *** binutils to release 2.9.1 or newer. Another option is to modify
12968 *** your PATH or compiler configuration so that the native linker is
12969 *** used, and then restart.
12972 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12973 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12974 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12981 case `$LD -v 2>&1` in
12982 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12986 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12987 *** reliably create shared libraries on SCO systems. Therefore, libtool
12988 *** is disabling shared libraries support. We urge you to upgrade GNU
12989 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12990 *** your PATH or compiler configuration so that the native linker is
12991 *** used, and then restart.
12996 # For security reasons, it is highly recommended that you always
12997 # use absolute paths for naming shared libraries, and exclude the
12998 # DT_RUNPATH tag from executables and libraries. But doing so
12999 # requires that you compile everything twice, which is a pain.
13000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13001 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13012 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13014 hardcode_direct=yes
13015 hardcode_shlibpath_var=no
13019 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13020 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13021 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13028 if test no = "$ld_shlibs"; then
13030 hardcode_libdir_flag_spec=
13031 export_dynamic_flag_spec=
13032 whole_archive_flag_spec=
13035 # PORTME fill in a description of your system's linker (not GNU ld)
13038 allow_undefined_flag=unsupported
13039 always_export_symbols=yes
13040 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'
13041 # Note: this linker hardcodes the directories in LIBPATH if there
13042 # are no directories specified by -L.
13043 hardcode_minus_L=yes
13044 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13045 # Neither direct hardcoding nor static linking is supported with a
13047 hardcode_direct=unsupported
13052 if test ia64 = "$host_cpu"; then
13053 # On IA64, the linker does run time linking by default, so we don't
13054 # have to do anything special.
13055 aix_use_runtimelinking=no
13056 exp_sym_flag='-Bexport'
13059 # If we're using GNU nm, then we don't want the "-C" option.
13060 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13061 # Without the "-l" option, or with the "-B" option, AIX nm treats
13062 # weak defined symbols like other global defined symbols, whereas
13063 # GNU nm marks them as "W".
13064 # While the 'weak' keyword is ignored in the Export File, we need
13065 # it in the Import File for the 'aix-soname' feature, so we have
13066 # to replace the "-B" option with "-P" for AIX nm.
13067 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13068 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'
13070 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'
13072 aix_use_runtimelinking=no
13074 # Test if we are trying to use run time linking or normal
13075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13076 # have runtime linking enabled, and use it for executables.
13077 # For shared libraries, we enable/disable runtime linking
13078 # depending on the kind of the shared library created -
13079 # when "with_aix_soname,aix_use_runtimelinking" is:
13080 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13081 # "aix,yes" lib.so shared, rtl:yes, for executables
13082 # lib.a static archive
13083 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13084 # lib.a(lib.so.V) shared, rtl:no, for executables
13085 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13086 # lib.a(lib.so.V) shared, rtl:no
13087 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13088 # lib.a static archive
13089 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13090 for ld_flag in $LDFLAGS; do
13091 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13092 aix_use_runtimelinking=yes
13096 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13097 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13098 # so we don't have lib.a shared libs to link our executables.
13099 # We have to force runtime linking in this case.
13100 aix_use_runtimelinking=yes
13101 LDFLAGS="$LDFLAGS -Wl,-brtl"
13106 exp_sym_flag='-bexport'
13107 no_entry_flag='-bnoentry'
13110 # When large executables or shared objects are built, AIX ld can
13111 # have problems creating the table of contents. If linking a library
13112 # or program results in "error TOC overflow" add -mminimal-toc to
13113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13117 hardcode_direct=yes
13118 hardcode_direct_absolute=yes
13119 hardcode_libdir_separator=':'
13120 link_all_deplibs=yes
13121 file_list_spec='$wl-f,'
13122 case $with_aix_soname,$aix_use_runtimelinking in
13123 aix,*) ;; # traditional, no import file
13124 svr4,* | *,yes) # use import file
13125 # The Import File defines what to hardcode.
13127 hardcode_direct_absolute=no
13131 if test yes = "$GCC"; then
13132 case $host_os in aix4.[012]|aix4.[012].*)
13133 # We only want to do this on AIX 4.2 and lower, the check
13134 # below for broken collect2 doesn't work under 4.3+
13135 collect2name=`$CC -print-prog-name=collect2`
13136 if test -f "$collect2name" &&
13137 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13139 # We have reworked collect2
13142 # We have old collect2
13143 hardcode_direct=unsupported
13144 # It fails to find uninstalled libraries when the uninstalled
13145 # path is not listed in the libpath. Setting hardcode_minus_L
13146 # to unsupported forces relinking
13147 hardcode_minus_L=yes
13148 hardcode_libdir_flag_spec='-L$libdir'
13149 hardcode_libdir_separator=
13153 shared_flag='-shared'
13154 if test yes = "$aix_use_runtimelinking"; then
13155 shared_flag="$shared_flag "'$wl-G'
13157 # Need to ensure runtime linking is disabled for the traditional
13158 # shared library, or the linker may eventually find shared libraries
13159 # /with/ Import File - we do not want to mix them.
13160 shared_flag_aix='-shared'
13161 shared_flag_svr4='-shared $wl-G'
13164 if test ia64 = "$host_cpu"; then
13165 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13166 # chokes on -Wl,-G. The following line is correct:
13169 if test yes = "$aix_use_runtimelinking"; then
13170 shared_flag='$wl-G'
13172 shared_flag='$wl-bM:SRE'
13174 shared_flag_aix='$wl-bM:SRE'
13175 shared_flag_svr4='$wl-G'
13179 export_dynamic_flag_spec='$wl-bexpall'
13180 # It seems that -bexpall does not export symbols beginning with
13181 # underscore (_), so it is better to generate a list of symbols to export.
13182 always_export_symbols=yes
13183 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13184 # Warning - without using the other runtime loading flags (-brtl),
13185 # -berok will link without error, but may produce a broken library.
13186 allow_undefined_flag='-berok'
13187 # Determine the default libpath from the value encoded in an
13188 # empty executable.
13189 if test set = "${lt_cv_aix_libpath+set}"; then
13190 aix_libpath=$lt_cv_aix_libpath
13192 if ${lt_cv_aix_libpath_+:} false; then :
13193 $as_echo_n "(cached) " >&6
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13205 if ac_fn_c_try_link "$LINENO"; then :
13207 lt_aix_libpath_sed='
13208 /Import File Strings/,/^$/ {
13210 s/^0 *\([^ ]*\) *$/\1/
13214 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13215 # Check for a 64-bit object if we didn't find anything.
13216 if test -z "$lt_cv_aix_libpath_"; then
13217 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13220 rm -f core conftest.err conftest.$ac_objext \
13221 conftest$ac_exeext conftest.$ac_ext
13222 if test -z "$lt_cv_aix_libpath_"; then
13223 lt_cv_aix_libpath_=/usr/lib:/lib
13228 aix_libpath=$lt_cv_aix_libpath_
13231 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13232 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
13234 if test ia64 = "$host_cpu"; then
13235 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13236 allow_undefined_flag="-z nodefs"
13237 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"
13239 # Determine the default libpath from the value encoded in an
13240 # empty executable.
13241 if test set = "${lt_cv_aix_libpath+set}"; then
13242 aix_libpath=$lt_cv_aix_libpath
13244 if ${lt_cv_aix_libpath_+:} false; then :
13245 $as_echo_n "(cached) " >&6
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13257 if ac_fn_c_try_link "$LINENO"; then :
13259 lt_aix_libpath_sed='
13260 /Import File Strings/,/^$/ {
13262 s/^0 *\([^ ]*\) *$/\1/
13266 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13267 # Check for a 64-bit object if we didn't find anything.
13268 if test -z "$lt_cv_aix_libpath_"; then
13269 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274 if test -z "$lt_cv_aix_libpath_"; then
13275 lt_cv_aix_libpath_=/usr/lib:/lib
13280 aix_libpath=$lt_cv_aix_libpath_
13283 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13284 # Warning - without using the other run time loading flags,
13285 # -berok will link without error, but may produce a broken library.
13286 no_undefined_flag=' $wl-bernotok'
13287 allow_undefined_flag=' $wl-berok'
13288 if test yes = "$with_gnu_ld"; then
13289 # We only use this code for GNU lds that support --whole-archive.
13290 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13292 # Exported symbols can be pulled into shared objects from archives
13293 whole_archive_flag_spec='$convenience'
13295 archive_cmds_need_lc=yes
13296 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13297 # -brtl affects multiple linker settings, -berok does not and is overridden later
13298 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13299 if test svr4 != "$with_aix_soname"; then
13300 # This is similar to how AIX traditionally builds its shared libraries.
13301 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'
13303 if test aix != "$with_aix_soname"; then
13304 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'
13306 # used by -dlpreopen to get the symbols
13307 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13309 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13317 # see comment about AmigaOS4 .so support
13318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13319 archive_expsym_cmds=''
13322 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)'
13323 hardcode_libdir_flag_spec='-L$libdir'
13324 hardcode_minus_L=yes
13330 export_dynamic_flag_spec=-rdynamic
13333 cygwin* | mingw* | pw32* | cegcc*)
13334 # When not using gcc, we currently assume that we are using
13335 # Microsoft Visual C++.
13336 # hardcode_libdir_flag_spec is actually meaningless, as there is
13337 # no search path for DLLs.
13338 case $cc_basename in
13341 hardcode_libdir_flag_spec=' '
13342 allow_undefined_flag=unsupported
13343 always_export_symbols=yes
13345 # Tell ltmain to make .lib files, not .a files.
13347 # Tell ltmain to make .dll files, not .so files.
13349 # FIXME: Setting linknames here is a bad hack.
13350 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13351 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13352 cp "$export_symbols" "$output_objdir/$soname.def";
13353 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13355 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13357 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13359 # The linker will not automatically build a static lib if we build a DLL.
13360 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13361 enable_shared_with_static_runtimes=yes
13362 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13365 old_postinstall_cmds='chmod 644 $oldlib'
13366 postlink_cmds='lt_outputfile="@OUTPUT@"~
13367 lt_tool_outputfile="@TOOL_OUTPUT@"~
13368 case $lt_outputfile in
13371 lt_outputfile=$lt_outputfile.exe
13372 lt_tool_outputfile=$lt_tool_outputfile.exe
13375 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13376 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13377 $RM "$lt_outputfile.manifest";
13381 # Assume MSVC wrapper
13382 hardcode_libdir_flag_spec=' '
13383 allow_undefined_flag=unsupported
13384 # Tell ltmain to make .lib files, not .a files.
13386 # Tell ltmain to make .dll files, not .so files.
13388 # FIXME: Setting linknames here is a bad hack.
13389 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13390 # The linker will automatically build a .lib file if we build a DLL.
13391 old_archive_from_new_cmds='true'
13392 # FIXME: Should let the user specify the lib program.
13393 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13394 enable_shared_with_static_runtimes=yes
13399 darwin* | rhapsody*)
13402 archive_cmds_need_lc=no
13404 hardcode_automatic=yes
13405 hardcode_shlibpath_var=unsupported
13406 if test yes = "$lt_cv_ld_force_load"; then
13407 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\"`'
13410 whole_archive_flag_spec=''
13412 link_all_deplibs=yes
13413 allow_undefined_flag=$_lt_dar_allow_undefined
13414 case $cc_basename in
13415 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13416 *) _lt_dar_can_shared=$GCC ;;
13418 if test yes = "$_lt_dar_can_shared"; then
13419 output_verbose_link_cmd=func_echo_all
13420 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13421 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13422 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"
13423 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"
13432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13433 hardcode_libdir_flag_spec='-L$libdir'
13434 hardcode_shlibpath_var=no
13437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13438 # support. Future versions do this automatically, but an explicit c++rt0.o
13439 # does not break anything, and helps significantly (at the cost of a little
13442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13443 hardcode_libdir_flag_spec='-R$libdir'
13444 hardcode_direct=yes
13445 hardcode_shlibpath_var=no
13448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13451 hardcode_direct=yes
13452 hardcode_minus_L=yes
13453 hardcode_shlibpath_var=no
13456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13457 freebsd* | dragonfly*)
13458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13459 hardcode_libdir_flag_spec='-R$libdir'
13460 hardcode_direct=yes
13461 hardcode_shlibpath_var=no
13465 if test yes = "$GCC"; then
13466 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13468 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13470 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13471 hardcode_libdir_separator=:
13472 hardcode_direct=yes
13474 # hardcode_minus_L: Not really in the search PATH,
13475 # but as the default location of the library.
13476 hardcode_minus_L=yes
13477 export_dynamic_flag_spec='$wl-E'
13481 if test yes,no = "$GCC,$with_gnu_ld"; then
13482 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13486 if test no = "$with_gnu_ld"; then
13487 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13488 hardcode_libdir_separator=:
13489 hardcode_direct=yes
13490 hardcode_direct_absolute=yes
13491 export_dynamic_flag_spec='$wl-E'
13492 # hardcode_minus_L: Not really in the search PATH,
13493 # but as the default location of the library.
13494 hardcode_minus_L=yes
13499 if test yes,no = "$GCC,$with_gnu_ld"; then
13502 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13505 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13508 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13514 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13521 # Older versions of the 11.00 compiler do not understand -b yet
13522 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13524 $as_echo_n "checking if $CC understands -b... " >&6; }
13525 if ${lt_cv_prog_compiler__b+:} false; then :
13526 $as_echo_n "(cached) " >&6
13528 lt_cv_prog_compiler__b=no
13529 save_LDFLAGS=$LDFLAGS
13530 LDFLAGS="$LDFLAGS -b"
13531 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13533 # The linker can only warn and ignore the option if not recognized
13534 # So say no if there are warnings
13535 if test -s conftest.err; then
13536 # Append any errors to the config.log.
13537 cat conftest.err 1>&5
13538 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13540 if diff conftest.exp conftest.er2 >/dev/null; then
13541 lt_cv_prog_compiler__b=yes
13544 lt_cv_prog_compiler__b=yes
13548 LDFLAGS=$save_LDFLAGS
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13552 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13554 if test yes = "$lt_cv_prog_compiler__b"; then
13555 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13563 if test no = "$with_gnu_ld"; then
13564 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13565 hardcode_libdir_separator=:
13570 hardcode_shlibpath_var=no
13573 hardcode_direct=yes
13574 hardcode_direct_absolute=yes
13575 export_dynamic_flag_spec='$wl-E'
13577 # hardcode_minus_L: Not really in the search PATH,
13578 # but as the default location of the library.
13579 hardcode_minus_L=yes
13585 irix5* | irix6* | nonstopux*)
13586 if test yes = "$GCC"; then
13587 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'
13588 # Try to use the -exported_symbol ld option, if it does not
13589 # work, assume that -exports_file does not work either and
13590 # implicitly export all symbols.
13591 # This should be the same for all languages, so no per-tag cache variable.
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13593 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13594 if ${lt_cv_irix_exported_symbol+:} false; then :
13595 $as_echo_n "(cached) " >&6
13597 save_LDFLAGS=$LDFLAGS
13598 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 int foo (void) { return 0; }
13603 if ac_fn_c_try_link "$LINENO"; then :
13604 lt_cv_irix_exported_symbol=yes
13606 lt_cv_irix_exported_symbol=no
13608 rm -f core conftest.err conftest.$ac_objext \
13609 conftest$ac_exeext conftest.$ac_ext
13610 LDFLAGS=$save_LDFLAGS
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13613 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13614 if test yes = "$lt_cv_irix_exported_symbol"; then
13615 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'
13617 link_all_deplibs=no
13619 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'
13620 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'
13622 archive_cmds_need_lc='no'
13623 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13624 hardcode_libdir_separator=:
13626 link_all_deplibs=yes
13630 case $cc_basename in
13632 # Fabrice Bellard et al's Tiny C Compiler
13634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13639 netbsd* | netbsdelf*-gnu)
13640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13643 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13645 hardcode_libdir_flag_spec='-R$libdir'
13646 hardcode_direct=yes
13647 hardcode_shlibpath_var=no
13651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13652 hardcode_direct=yes
13653 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13654 hardcode_libdir_separator=:
13655 hardcode_shlibpath_var=no
13661 openbsd* | bitrig*)
13662 if test -f /usr/libexec/ld.so; then
13663 hardcode_direct=yes
13664 hardcode_shlibpath_var=no
13665 hardcode_direct_absolute=yes
13666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13668 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13669 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13670 export_dynamic_flag_spec='$wl-E'
13672 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13673 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13681 hardcode_libdir_flag_spec='-L$libdir'
13682 hardcode_minus_L=yes
13683 allow_undefined_flag=unsupported
13685 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13686 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13687 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13688 $ECHO EXPORTS >> $output_objdir/$libname.def~
13689 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13690 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13691 emximp -o $lib $output_objdir/$libname.def'
13692 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13693 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13694 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13695 $ECHO EXPORTS >> $output_objdir/$libname.def~
13696 prefix_cmds="$SED"~
13697 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13698 prefix_cmds="$prefix_cmds -e 1d";
13700 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13701 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13702 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13703 emximp -o $lib $output_objdir/$libname.def'
13704 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13705 enable_shared_with_static_runtimes=yes
13709 if test yes = "$GCC"; then
13710 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13711 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'
13713 allow_undefined_flag=' -expect_unresolved \*'
13714 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'
13716 archive_cmds_need_lc='no'
13717 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13718 hardcode_libdir_separator=:
13721 osf4* | osf5*) # as osf3* with the addition of -msym flag
13722 if test yes = "$GCC"; then
13723 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13724 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'
13725 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13727 allow_undefined_flag=' -expect_unresolved \*'
13728 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'
13729 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~
13730 $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'
13732 # Both c and cxx compiler support -rpath directly
13733 hardcode_libdir_flag_spec='-rpath $libdir'
13735 archive_cmds_need_lc='no'
13736 hardcode_libdir_separator=:
13740 no_undefined_flag=' -z defs'
13741 if test yes = "$GCC"; then
13743 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13745 $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'
13747 case `$CC -V 2>&1` in
13750 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13751 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13752 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13756 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13757 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13758 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13762 hardcode_libdir_flag_spec='-R$libdir'
13763 hardcode_shlibpath_var=no
13765 solaris2.[0-5] | solaris2.[0-5].*) ;;
13767 # The compiler driver will combine and reorder linker options,
13768 # but understands '-z linker_flag'. GCC discards it without '$wl',
13769 # but is careful enough not to reorder.
13770 # Supported since Solaris 2.6 (maybe 2.5.1?)
13771 if test yes = "$GCC"; then
13772 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13774 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13778 link_all_deplibs=yes
13782 if test sequent = "$host_vendor"; then
13783 # Use $CC to link under sequent, because it throws in some extra .o
13784 # files that make .init and .fini sections work.
13785 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13787 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13789 hardcode_libdir_flag_spec='-L$libdir'
13790 hardcode_direct=yes
13791 hardcode_minus_L=yes
13792 hardcode_shlibpath_var=no
13796 case $host_vendor in
13798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13799 hardcode_direct=yes # is this really true???
13802 ## LD is ld it makes a PLAMLIB
13803 ## CC just makes a GrossModule.
13804 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13805 reload_cmds='$CC -r -o $output$reload_objs'
13809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13810 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13813 runpath_var='LD_RUN_PATH'
13814 hardcode_shlibpath_var=no
13818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819 hardcode_shlibpath_var=no
13820 export_dynamic_flag_spec='-Bexport'
13824 if test -d /usr/nec; then
13825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13826 hardcode_shlibpath_var=no
13827 runpath_var=LD_RUN_PATH
13828 hardcode_runpath_var=yes
13833 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13834 no_undefined_flag='$wl-z,text'
13835 archive_cmds_need_lc=no
13836 hardcode_shlibpath_var=no
13837 runpath_var='LD_RUN_PATH'
13839 if test yes = "$GCC"; then
13840 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13844 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13848 sysv5* | sco3.2v5* | sco5v6*)
13849 # Note: We CANNOT use -z defs as we might desire, because we do not
13850 # link with -lc, and that would cause any symbols used from libc to
13851 # always be unresolved, which means just about no library would
13852 # ever link correctly. If we're not using GNU ld we use -z text
13853 # though, which does catch some bad symbols but isn't as heavy-handed
13855 no_undefined_flag='$wl-z,text'
13856 allow_undefined_flag='$wl-z,nodefs'
13857 archive_cmds_need_lc=no
13858 hardcode_shlibpath_var=no
13859 hardcode_libdir_flag_spec='$wl-R,$libdir'
13860 hardcode_libdir_separator=':'
13861 link_all_deplibs=yes
13862 export_dynamic_flag_spec='$wl-Bexport'
13863 runpath_var='LD_RUN_PATH'
13865 if test yes = "$GCC"; then
13866 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13867 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13869 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13870 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13876 hardcode_libdir_flag_spec='-L$libdir'
13877 hardcode_shlibpath_var=no
13885 if test sni = "$host_vendor"; then
13887 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13888 export_dynamic_flag_spec='$wl-Blargedynsym'
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13895 $as_echo "$ld_shlibs" >&6; }
13896 test no = "$ld_shlibs" && can_build_shared=no
13898 with_gnu_ld=$with_gnu_ld
13915 # Do we need to explicitly link libc?
13917 case "x$archive_cmds_need_lc" in
13919 # Assume -lc should be added
13920 archive_cmds_need_lc=yes
13922 if test yes,yes = "$GCC,$enable_shared"; then
13923 case $archive_cmds in
13925 # FIXME: we may have to deal with multi-command sequences.
13928 # Test whether the compiler implicitly links with -lc since on some
13929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13930 # to ld, don't add -lc before -lgcc.
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13932 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13933 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13934 $as_echo_n "(cached) " >&6
13937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13940 (eval $ac_compile) 2>&5
13942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13943 test $ac_status = 0; } 2>conftest.err; then
13946 libobjs=conftest.$ac_objext
13948 wl=$lt_prog_compiler_wl
13949 pic_flag=$lt_prog_compiler_pic
13955 lt_save_allow_undefined_flag=$allow_undefined_flag
13956 allow_undefined_flag=
13957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13958 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13961 test $ac_status = 0; }
13963 lt_cv_archive_cmds_need_lc=no
13965 lt_cv_archive_cmds_need_lc=yes
13967 allow_undefined_flag=$lt_save_allow_undefined_flag
13969 cat conftest.err 1>&5
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13975 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13976 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14135 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14137 if test yes = "$GCC"; then
14139 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14140 *) lt_awk_arg='/^libraries:/' ;;
14143 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14144 *) lt_sed_strip_eq='s|=/|/|g' ;;
14146 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14147 case $lt_search_path_spec in
14149 # if the path contains ";" then we assume it to be the separator
14150 # otherwise default to the standard path separator (i.e. ":") - it is
14151 # assumed that no part of a normal pathname contains ";" but that should
14152 # okay in the real world where ";" in dirpaths is itself problematic.
14153 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14156 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14159 # Ok, now we have the path, separated by spaces, we can step through it
14160 # and add multilib dir if necessary...
14161 lt_tmp_lt_search_path_spec=
14162 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14163 # ...but if some path component already ends with the multilib dir we assume
14164 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14165 case "$lt_multi_os_dir; $lt_search_path_spec " in
14166 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14170 for lt_sys_path in $lt_search_path_spec; do
14171 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14172 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14173 elif test -n "$lt_multi_os_dir"; then
14174 test -d "$lt_sys_path" && \
14175 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14178 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14179 BEGIN {RS = " "; FS = "/|\n";} {
14182 for (lt_i = NF; lt_i > 0; lt_i--) {
14183 if ($lt_i != "" && $lt_i != ".") {
14184 if ($lt_i == "..") {
14187 if (lt_count == 0) {
14188 lt_foo = "/" $lt_i lt_foo;
14195 if (lt_foo != "") { lt_freq[lt_foo]++; }
14196 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14198 # AWK program above erroneously prepends '/' to C:/dos/paths
14201 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14202 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14204 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14206 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14208 library_names_spec=
14209 libname_spec='lib$name'
14213 postuninstall_cmds=
14217 shlibpath_overrides_runpath=unknown
14219 dynamic_linker="$host_os ld.so"
14220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14221 need_lib_prefix=unknown
14222 hardcode_into_libs=no
14224 # when you set need_version to no, make sure it does not cause -set_version
14225 # flags to be left without arguments
14226 need_version=unknown
14232 version_type=linux # correct to gnu/linux during the next big refactor
14233 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14234 shlibpath_var=LIBPATH
14236 # AIX 3 has no versioning support, so we append a major version to the name.
14237 soname_spec='$libname$release$shared_ext$major'
14241 version_type=linux # correct to gnu/linux during the next big refactor
14244 hardcode_into_libs=yes
14245 if test ia64 = "$host_cpu"; then
14246 # AIX 5 supports IA64
14247 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14248 shlibpath_var=LD_LIBRARY_PATH
14250 # With GCC up to 2.95.x, collect2 would create an import file
14251 # for dependence libraries. The import file would start with
14252 # the line '#! .'. This would cause the generated library to
14253 # depend on '.', always an invalid library. This was fixed in
14254 # development snapshots of GCC prior to 3.0.
14256 aix4 | aix4.[01] | aix4.[01].*)
14257 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14259 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14262 can_build_shared=no
14266 # Using Import Files as archive members, it is possible to support
14267 # filename-based versioning of shared library archives on AIX. While
14268 # this would work for both with and without runtime linking, it will
14269 # prevent static linking of such archives. So we do filename-based
14270 # shared library versioning with .so extension only, which is used
14271 # when both runtime linking and shared linking is enabled.
14272 # Unfortunately, runtime linking may impact performance, so we do
14273 # not want this to be the default eventually. Also, we use the
14274 # versioned .so libs for executables only if there is the -brtl
14275 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14276 # To allow for filename-based versioning support, we need to create
14277 # libNAME.so.V as an archive file, containing:
14278 # *) an Import File, referring to the versioned filename of the
14279 # archive as well as the shared archive member, telling the
14280 # bitwidth (32 or 64) of that shared object, and providing the
14281 # list of exported symbols of that shared object, eventually
14282 # decorated with the 'weak' keyword
14283 # *) the shared object with the F_LOADONLY flag set, to really avoid
14284 # it being seen by the linker.
14285 # At run time we better use the real file rather than another symlink,
14286 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14288 case $with_aix_soname,$aix_use_runtimelinking in
14289 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14290 # soname into executable. Probably we can add versioning support to
14291 # collect2, so additional links can be useful in future.
14292 aix,yes) # traditional libtool
14293 dynamic_linker='AIX unversionable lib.so'
14294 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14295 # instead of lib<name>.a to let people know that these are not
14296 # typical AIX shared libraries.
14297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14299 aix,no) # traditional AIX only
14300 dynamic_linker='AIX lib.a(lib.so.V)'
14301 # We preserve .a as extension for shared libraries through AIX4.2
14302 # and later when we are not doing run time linking.
14303 library_names_spec='$libname$release.a $libname.a'
14304 soname_spec='$libname$release$shared_ext$major'
14306 svr4,*) # full svr4 only
14307 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14308 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14309 # We do not specify a path in Import Files, so LIBPATH fires.
14310 shlibpath_overrides_runpath=yes
14312 *,yes) # both, prefer svr4
14313 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14314 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14315 # unpreferred sharedlib libNAME.a needs extra handling
14316 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"'
14317 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"'
14318 # We do not specify a path in Import Files, so LIBPATH fires.
14319 shlibpath_overrides_runpath=yes
14321 *,no) # both, prefer aix
14322 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14323 library_names_spec='$libname$release.a $libname.a'
14324 soname_spec='$libname$release$shared_ext$major'
14325 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14326 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)'
14327 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"'
14330 shlibpath_var=LIBPATH
14337 # Since July 2007 AmigaOS4 officially supports .so libraries.
14338 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14342 library_names_spec='$libname.ixlibrary $libname.a'
14343 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14344 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'
14350 library_names_spec='$libname$shared_ext'
14351 dynamic_linker="$host_os ld.so"
14352 shlibpath_var=LIBRARY_PATH
14356 version_type=linux # correct to gnu/linux during the next big refactor
14358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14359 soname_spec='$libname$release$shared_ext$major'
14360 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14361 shlibpath_var=LD_LIBRARY_PATH
14362 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14363 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14364 # the default ld.so.conf also contains /usr/contrib/lib and
14365 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14366 # libtool to hard-code these into programs
14369 cygwin* | mingw* | pw32* | cegcc*)
14370 version_type=windows
14375 case $GCC,$cc_basename in
14378 library_names_spec='$libname.dll.a'
14379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14380 postinstall_cmds='base_file=`basename \$file`~
14381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14382 dldir=$destdir/`dirname \$dlpath`~
14383 test -d \$dldir || mkdir -p \$dldir~
14384 $install_prog $dir/$dlname \$dldir/$dlname~
14385 chmod a+x \$dldir/$dlname~
14386 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14387 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14390 dlpath=$dir/\$dldll~
14392 shlibpath_overrides_runpath=yes
14396 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14397 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14399 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14402 # MinGW DLLs use traditional 'lib' prefix
14403 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14406 # pw32 DLLs use 'pw' prefix rather than 'lib'
14407 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14410 dynamic_linker='Win32 ld.exe'
14415 libname_spec='$name'
14416 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14417 library_names_spec='$libname.dll.lib'
14421 sys_lib_search_path_spec=
14424 for lt_path in $LIB
14427 # Let DOS variable expansion print the short 8.3 style file name.
14428 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14429 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14432 # Convert to MSYS style.
14433 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14436 # Convert to unix form, then to dos form, then back to unix form
14437 # but this time dos style (no spaces!) so that the unix form looks
14438 # like /cygdrive/c/PROGRA~1:/cygdr...
14439 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14440 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14441 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14444 sys_lib_search_path_spec=$LIB
14445 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14446 # It is most probably a Windows format PATH.
14447 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14449 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14451 # FIXME: find the short name or the path components, as spaces are
14452 # common. (e.g. "Program Files" -> "PROGRA~1")
14456 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14457 postinstall_cmds='base_file=`basename \$file`~
14458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14459 dldir=$destdir/`dirname \$dlpath`~
14460 test -d \$dldir || mkdir -p \$dldir~
14461 $install_prog $dir/$dlname \$dldir/$dlname'
14462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14463 dlpath=$dir/\$dldll~
14465 shlibpath_overrides_runpath=yes
14466 dynamic_linker='Win32 link.exe'
14470 # Assume MSVC wrapper
14471 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14472 dynamic_linker='Win32 ld.exe'
14475 # FIXME: first we should search . and the directory the executable is in
14479 darwin* | rhapsody*)
14480 dynamic_linker="$host_os dyld"
14481 version_type=darwin
14484 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14485 soname_spec='$libname$release$major$shared_ext'
14486 shlibpath_overrides_runpath=yes
14487 shlibpath_var=DYLD_LIBRARY_PATH
14488 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14490 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14491 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14495 version_type=linux # correct to gnu/linux during the next big refactor
14498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14499 soname_spec='$libname$release$shared_ext$major'
14500 shlibpath_var=LD_LIBRARY_PATH
14503 freebsd* | dragonfly*)
14504 # DragonFly does not have aout. When/if they implement a new
14505 # versioning mechanism, adjust this.
14506 if test -x /usr/bin/objformat; then
14507 objformat=`/usr/bin/objformat`
14510 freebsd[23].*) objformat=aout ;;
14511 *) objformat=elf ;;
14514 version_type=freebsd-$objformat
14515 case $version_type in
14517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14518 soname_spec='$libname$release$shared_ext$major'
14523 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14527 shlibpath_var=LD_LIBRARY_PATH
14530 shlibpath_overrides_runpath=yes
14532 freebsd3.[01]* | freebsdelf3.[01]*)
14533 shlibpath_overrides_runpath=yes
14534 hardcode_into_libs=yes
14536 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14537 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14538 shlibpath_overrides_runpath=no
14539 hardcode_into_libs=yes
14541 *) # from 4.6 on, and DragonFly
14542 shlibpath_overrides_runpath=yes
14543 hardcode_into_libs=yes
14549 version_type=linux # correct to gnu/linux during the next big refactor
14552 dynamic_linker="$host_os runtime_loader"
14553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14554 soname_spec='$libname$release$shared_ext$major'
14555 shlibpath_var=LIBRARY_PATH
14556 shlibpath_overrides_runpath=no
14557 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14558 hardcode_into_libs=yes
14561 hpux9* | hpux10* | hpux11*)
14562 # Give a soname corresponding to the major version so that dld.sl refuses to
14563 # link against other versions.
14570 hardcode_into_libs=yes
14571 dynamic_linker="$host_os dld.so"
14572 shlibpath_var=LD_LIBRARY_PATH
14573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14575 soname_spec='$libname$release$shared_ext$major'
14576 if test 32 = "$HPUX_IA64_MODE"; then
14577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14578 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14580 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14581 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14586 hardcode_into_libs=yes
14587 dynamic_linker="$host_os dld.sl"
14588 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14591 soname_spec='$libname$release$shared_ext$major'
14592 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14597 dynamic_linker="$host_os dld.sl"
14598 shlibpath_var=SHLIB_PATH
14599 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14601 soname_spec='$libname$release$shared_ext$major'
14604 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14605 postinstall_cmds='chmod 555 $lib'
14606 # or fails outright, so override atomically:
14607 install_override_mode=555
14611 version_type=linux # correct to gnu/linux during the next big refactor
14614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14615 soname_spec='$libname$release$shared_ext$major'
14616 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 shlibpath_overrides_runpath=no
14619 hardcode_into_libs=yes
14622 irix5* | irix6* | nonstopux*)
14624 nonstopux*) version_type=nonstopux ;;
14626 if test yes = "$lt_cv_prog_gnu_ld"; then
14627 version_type=linux # correct to gnu/linux during the next big refactor
14634 soname_spec='$libname$release$shared_ext$major'
14635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14637 irix5* | nonstopux*)
14638 libsuff= shlibsuff=
14641 case $LD in # libtool.m4 will add one of these switches to LD
14642 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14643 libsuff= shlibsuff= libmagic=32-bit;;
14644 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14645 libsuff=32 shlibsuff=N32 libmagic=N32;;
14646 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14647 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14648 *) libsuff= shlibsuff= libmagic=never-match;;
14652 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14653 shlibpath_overrides_runpath=no
14654 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14655 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14656 hardcode_into_libs=yes
14659 # No shared lib support for Linux oldld, aout, or coff.
14660 linux*oldld* | linux*aout* | linux*coff*)
14665 version_type=none # Android doesn't support versioned libraries.
14668 library_names_spec='$libname$release$shared_ext'
14669 soname_spec='$libname$release$shared_ext'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 shlibpath_overrides_runpath=yes
14674 # This implies no fast_install, which is unacceptable.
14675 # Some rework will be needed to allow for fast_install
14676 # before this can be enabled.
14677 hardcode_into_libs=yes
14679 dynamic_linker='Android linker'
14680 # Don't embed -rpath directories since the linker doesn't support them.
14681 hardcode_libdir_flag_spec='-L$libdir'
14684 # This must be glibc/ELF.
14685 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14686 version_type=linux # correct to gnu/linux during the next big refactor
14689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14690 soname_spec='$libname$release$shared_ext$major'
14691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=no
14695 # Some binutils ld are patched to set DT_RUNPATH
14696 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14697 $as_echo_n "(cached) " >&6
14699 lt_cv_shlibpath_overrides_runpath=no
14700 save_LDFLAGS=$LDFLAGS
14701 save_libdir=$libdir
14702 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14703 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14714 if ac_fn_c_try_link "$LINENO"; then :
14715 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14716 lt_cv_shlibpath_overrides_runpath=yes
14719 rm -f core conftest.err conftest.$ac_objext \
14720 conftest$ac_exeext conftest.$ac_ext
14721 LDFLAGS=$save_LDFLAGS
14722 libdir=$save_libdir
14726 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14728 # This implies no fast_install, which is unacceptable.
14729 # Some rework will be needed to allow for fast_install
14730 # before this can be enabled.
14731 hardcode_into_libs=yes
14733 # Ideally, we could use ldconfig to report *all* directores which are
14734 # searched for libraries, however this is still not possible. Aside from not
14735 # being certain /sbin/ldconfig is available, command
14736 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14737 # even though it is searched at run-time. Try to do the best guess by
14738 # appending ld.so.conf contents (and includes) to the search path.
14739 if test -f /etc/ld.so.conf; then
14740 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' ' '`
14741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14744 # We used to test for /lib/ld.so.1 and disable shared libraries on
14745 # powerpc, because MkLinux only supported shared libraries with the
14746 # GNU dynamic linker. Since this was broken with cross compilers,
14747 # most powerpc-linux boxes support dynamic linking these days and
14748 # people can always --disable-shared, the test was removed, and we
14749 # assume the GNU/Linux dynamic linker is in use.
14750 dynamic_linker='GNU/Linux ld.so'
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14758 soname_spec='${libname}${release}${shared_ext}$major'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 shlibpath_overrides_runpath=no
14761 hardcode_into_libs=yes
14762 dynamic_linker='NetBSD ld.elf_so'
14769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14770 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14772 dynamic_linker='NetBSD (a.out) ld.so'
14774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14775 soname_spec='$libname$release$shared_ext$major'
14776 dynamic_linker='NetBSD ld.elf_so'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=yes
14780 hardcode_into_libs=yes
14784 version_type=linux # correct to gnu/linux during the next big refactor
14785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=yes
14794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14795 soname_spec='$libname$release$shared_ext$major'
14796 shlibpath_var=LD_LIBRARY_PATH
14797 shlibpath_overrides_runpath=no
14798 hardcode_into_libs=yes
14799 dynamic_linker='ldqnx.so'
14802 openbsd* | bitrig*)
14804 sys_lib_dlsearch_path_spec=/usr/lib
14806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14811 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14813 shlibpath_var=LD_LIBRARY_PATH
14814 shlibpath_overrides_runpath=yes
14818 libname_spec='$name'
14819 version_type=windows
14823 # OS/2 can only load a DLL with a base name of 8 characters or less.
14824 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14825 v=$($ECHO $release$versuffix | tr -d .-);
14826 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14827 $ECHO $n$v`$shared_ext'
14828 library_names_spec='${libname}_dll.$libext'
14829 dynamic_linker='OS/2 ld.exe'
14830 shlibpath_var=BEGINLIBPATH
14831 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14833 postinstall_cmds='base_file=`basename \$file`~
14834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14835 dldir=$destdir/`dirname \$dlpath`~
14836 test -d \$dldir || mkdir -p \$dldir~
14837 $install_prog $dir/$dlname \$dldir/$dlname~
14838 chmod a+x \$dldir/$dlname~
14839 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14840 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14842 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14843 dlpath=$dir/\$dldll~
14847 osf3* | osf4* | osf5*)
14851 soname_spec='$libname$release$shared_ext$major'
14852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14863 version_type=linux # correct to gnu/linux during the next big refactor
14866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14867 soname_spec='$libname$release$shared_ext$major'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 shlibpath_overrides_runpath=yes
14870 hardcode_into_libs=yes
14871 # ldd complains unless libraries are executable
14872 postinstall_cmds='chmod +x $lib'
14877 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14878 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14879 shlibpath_var=LD_LIBRARY_PATH
14880 shlibpath_overrides_runpath=yes
14881 if test yes = "$with_gnu_ld"; then
14888 version_type=linux # correct to gnu/linux during the next big refactor
14889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14890 soname_spec='$libname$release$shared_ext$major'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 case $host_vendor in
14894 shlibpath_overrides_runpath=no
14896 runpath_var=LD_RUN_PATH
14904 shlibpath_overrides_runpath=no
14905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14911 if test -d /usr/nec; then
14912 version_type=linux # correct to gnu/linux during the next big refactor
14913 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14914 soname_spec='$libname$shared_ext.$major'
14915 shlibpath_var=LD_LIBRARY_PATH
14919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14924 soname_spec='$libname$release$shared_ext$major'
14925 shlibpath_var=LD_LIBRARY_PATH
14926 shlibpath_overrides_runpath=yes
14927 hardcode_into_libs=yes
14928 if test yes = "$with_gnu_ld"; then
14929 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14934 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14938 sys_lib_dlsearch_path_spec='/usr/lib'
14942 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14943 version_type=linux # correct to gnu/linux during the next big refactor
14946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 shlibpath_overrides_runpath=no
14949 hardcode_into_libs=yes
14953 version_type=linux # correct to gnu/linux during the next big refactor
14954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14955 soname_spec='$libname$release$shared_ext$major'
14956 shlibpath_var=LD_LIBRARY_PATH
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14964 $as_echo "$dynamic_linker" >&6; }
14965 test no = "$dynamic_linker" && can_build_shared=no
14967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14968 if test yes = "$GCC"; then
14969 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14972 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14973 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14976 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14977 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14980 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14981 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14983 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14984 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14986 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14987 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15086 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15088 if test -n "$hardcode_libdir_flag_spec" ||
15089 test -n "$runpath_var" ||
15090 test yes = "$hardcode_automatic"; then
15092 # We can hardcode non-existent directories.
15093 if test no != "$hardcode_direct" &&
15094 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15095 # have to relink, otherwise we might link with an installed library
15096 # when we should be linking with a yet-to-be-installed one
15097 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15098 test no != "$hardcode_minus_L"; then
15099 # Linking always hardcodes the temporary library directory.
15100 hardcode_action=relink
15102 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15103 hardcode_action=immediate
15106 # We cannot hardcode anything, or else we can only hardcode existing
15108 hardcode_action=unsupported
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15111 $as_echo "$hardcode_action" >&6; }
15113 if test relink = "$hardcode_action" ||
15114 test yes = "$inherit_rpath"; then
15115 # Fast installation is not supported
15116 enable_fast_install=no
15117 elif test yes = "$shlibpath_overrides_runpath" ||
15118 test no = "$enable_shared"; then
15119 # Fast installation is not necessary
15120 enable_fast_install=needless
15128 if test yes != "$enable_dlopen"; then
15129 enable_dlopen=unknown
15130 enable_dlopen_self=unknown
15131 enable_dlopen_self_static=unknown
15138 lt_cv_dlopen=load_add_on
15140 lt_cv_dlopen_self=yes
15143 mingw* | pw32* | cegcc*)
15144 lt_cv_dlopen=LoadLibrary
15149 lt_cv_dlopen=dlopen
15154 # if libdl is installed we need to link against it
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15156 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15157 if ${ac_cv_lib_dl_dlopen+:} false; then :
15158 $as_echo_n "(cached) " >&6
15160 ac_check_lib_save_LIBS=$LIBS
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h. */
15177 if ac_fn_c_try_link "$LINENO"; then :
15178 ac_cv_lib_dl_dlopen=yes
15180 ac_cv_lib_dl_dlopen=no
15182 rm -f core conftest.err conftest.$ac_objext \
15183 conftest$ac_exeext conftest.$ac_ext
15184 LIBS=$ac_check_lib_save_LIBS
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15187 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15188 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15189 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15194 lt_cv_dlopen_self=yes
15201 # Don't try to run any link tests for TPF. We know it's impossible
15202 # because TPF is a cross-compiler, and we know how we open DSOs.
15203 lt_cv_dlopen=dlopen
15205 lt_cv_dlopen_self=no
15209 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15210 if test "x$ac_cv_func_shl_load" = xyes; then :
15211 lt_cv_dlopen=shl_load
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15214 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15215 if ${ac_cv_lib_dld_shl_load+:} false; then :
15216 $as_echo_n "(cached) " >&6
15218 ac_check_lib_save_LIBS=$LIBS
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15230 return shl_load ();
15235 if ac_fn_c_try_link "$LINENO"; then :
15236 ac_cv_lib_dld_shl_load=yes
15238 ac_cv_lib_dld_shl_load=no
15240 rm -f core conftest.err conftest.$ac_objext \
15241 conftest$ac_exeext conftest.$ac_ext
15242 LIBS=$ac_check_lib_save_LIBS
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15245 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15246 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15247 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15249 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15250 if test "x$ac_cv_func_dlopen" = xyes; then :
15251 lt_cv_dlopen=dlopen
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15255 if ${ac_cv_lib_dl_dlopen+:} false; then :
15256 $as_echo_n "(cached) " >&6
15258 ac_check_lib_save_LIBS=$LIBS
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15275 if ac_fn_c_try_link "$LINENO"; then :
15276 ac_cv_lib_dl_dlopen=yes
15278 ac_cv_lib_dl_dlopen=no
15280 rm -f core conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 LIBS=$ac_check_lib_save_LIBS
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15285 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15286 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15287 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15290 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15291 if ${ac_cv_lib_svld_dlopen+:} false; then :
15292 $as_echo_n "(cached) " >&6
15294 ac_check_lib_save_LIBS=$LIBS
15295 LIBS="-lsvld $LIBS"
15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297 /* end confdefs.h. */
15311 if ac_fn_c_try_link "$LINENO"; then :
15312 ac_cv_lib_svld_dlopen=yes
15314 ac_cv_lib_svld_dlopen=no
15316 rm -f core conftest.err conftest.$ac_objext \
15317 conftest$ac_exeext conftest.$ac_ext
15318 LIBS=$ac_check_lib_save_LIBS
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15321 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15322 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15323 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15326 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15327 if ${ac_cv_lib_dld_dld_link+:} false; then :
15328 $as_echo_n "(cached) " >&6
15330 ac_check_lib_save_LIBS=$LIBS
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15342 return dld_link ();
15347 if ac_fn_c_try_link "$LINENO"; then :
15348 ac_cv_lib_dld_dld_link=yes
15350 ac_cv_lib_dld_dld_link=no
15352 rm -f core conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15354 LIBS=$ac_check_lib_save_LIBS
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15357 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15358 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15359 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15380 if test no = "$lt_cv_dlopen"; then
15386 case $lt_cv_dlopen in
15388 save_CPPFLAGS=$CPPFLAGS
15389 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15391 save_LDFLAGS=$LDFLAGS
15392 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15395 LIBS="$lt_cv_dlopen_libs $LIBS"
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15398 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15399 if ${lt_cv_dlopen_self+:} false; then :
15400 $as_echo_n "(cached) " >&6
15402 if test yes = "$cross_compiling"; then :
15403 lt_cv_dlopen_self=cross
15405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15406 lt_status=$lt_dlunknown
15407 cat > conftest.$ac_ext <<_LT_EOF
15408 #line $LINENO "configure"
15409 #include "confdefs.h"
15418 # define LT_DLGLOBAL RTLD_GLOBAL
15421 # define LT_DLGLOBAL DL_GLOBAL
15423 # define LT_DLGLOBAL 0
15427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15428 find out it does not work in some platform. */
15429 #ifndef LT_DLLAZY_OR_NOW
15431 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15434 # define LT_DLLAZY_OR_NOW DL_LAZY
15437 # define LT_DLLAZY_OR_NOW RTLD_NOW
15440 # define LT_DLLAZY_OR_NOW DL_NOW
15442 # define LT_DLLAZY_OR_NOW 0
15449 /* When -fvisibility=hidden is used, assume the code has been annotated
15450 correspondingly for the symbols needed. */
15451 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15452 int fnord () __attribute__((visibility("default")));
15455 int fnord () { return 42; }
15458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15459 int status = $lt_dlunknown;
15463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15466 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15467 else puts (dlerror ());
15469 /* dlclose (self); */
15477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15478 (eval $ac_link) 2>&5
15480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15481 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15482 (./conftest; exit; ) >&5 2>/dev/null
15484 case x$lt_status in
15485 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15486 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15487 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15490 # compilation failed
15491 lt_cv_dlopen_self=no
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15499 $as_echo "$lt_cv_dlopen_self" >&6; }
15501 if test yes = "$lt_cv_dlopen_self"; then
15502 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15504 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15505 if ${lt_cv_dlopen_self_static+:} false; then :
15506 $as_echo_n "(cached) " >&6
15508 if test yes = "$cross_compiling"; then :
15509 lt_cv_dlopen_self_static=cross
15511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15512 lt_status=$lt_dlunknown
15513 cat > conftest.$ac_ext <<_LT_EOF
15514 #line $LINENO "configure"
15515 #include "confdefs.h"
15524 # define LT_DLGLOBAL RTLD_GLOBAL
15527 # define LT_DLGLOBAL DL_GLOBAL
15529 # define LT_DLGLOBAL 0
15533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15534 find out it does not work in some platform. */
15535 #ifndef LT_DLLAZY_OR_NOW
15537 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15540 # define LT_DLLAZY_OR_NOW DL_LAZY
15543 # define LT_DLLAZY_OR_NOW RTLD_NOW
15546 # define LT_DLLAZY_OR_NOW DL_NOW
15548 # define LT_DLLAZY_OR_NOW 0
15555 /* When -fvisibility=hidden is used, assume the code has been annotated
15556 correspondingly for the symbols needed. */
15557 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15558 int fnord () __attribute__((visibility("default")));
15561 int fnord () { return 42; }
15564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15565 int status = $lt_dlunknown;
15569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15572 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15573 else puts (dlerror ());
15575 /* dlclose (self); */
15583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15584 (eval $ac_link) 2>&5
15586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15587 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15588 (./conftest; exit; ) >&5 2>/dev/null
15590 case x$lt_status in
15591 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15592 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15593 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15596 # compilation failed
15597 lt_cv_dlopen_self_static=no
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15605 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15608 CPPFLAGS=$save_CPPFLAGS
15609 LDFLAGS=$save_LDFLAGS
15614 case $lt_cv_dlopen_self in
15615 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15616 *) enable_dlopen_self=unknown ;;
15619 case $lt_cv_dlopen_self_static in
15620 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15621 *) enable_dlopen_self_static=unknown ;;
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15644 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15645 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15646 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15647 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15649 $as_echo "yes" >&6; }
15651 # FIXME - insert some real tests, host_os isn't really good enough
15654 if test -n "$STRIP"; then
15655 striplib="$STRIP -x"
15656 old_striplib="$STRIP -S"
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15658 $as_echo "yes" >&6; }
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15661 $as_echo "no" >&6; }
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15666 $as_echo "no" >&6; }
15682 # Report what library types will actually be built
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15684 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15686 $as_echo "$can_build_shared" >&6; }
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15689 $as_echo_n "checking whether to build shared libraries... " >&6; }
15690 test no = "$can_build_shared" && enable_shared=no
15692 # On AIX, shared libraries and static libraries use the same namespace, and
15693 # are all built from PIC.
15696 test yes = "$enable_shared" && enable_static=no
15697 if test -n "$RANLIB"; then
15698 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15699 postinstall_cmds='$RANLIB $lib'
15704 if test ia64 != "$host_cpu"; then
15705 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15706 yes,aix,yes) ;; # shared object as lib.so file only
15707 yes,svr4,*) ;; # shared object as lib.so archive member only
15708 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15714 $as_echo "$enable_shared" >&6; }
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15717 $as_echo_n "checking whether to build static libraries... " >&6; }
15718 # Make sure either enable_shared or enable_static is yes.
15719 test yes = "$enable_shared" || enable_static=yes
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15721 $as_echo "$enable_static" >&6; }
15728 ac_cpp='$CPP $CPPFLAGS'
15729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15735 if test -n "$CXX" && ( test no != "$CXX" &&
15736 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15737 (test g++ != "$CXX"))); then
15739 ac_cpp='$CXXCPP $CPPFLAGS'
15740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15744 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15745 if test -z "$CXXCPP"; then
15746 if ${ac_cv_prog_CXXCPP+:} false; then :
15747 $as_echo_n "(cached) " >&6
15749 # Double quotes because CXXCPP needs to be expanded
15750 for CXXCPP in "$CXX -E" "/lib/cpp"
15752 ac_preproc_ok=false
15753 for ac_cxx_preproc_warn_flag in '' yes
15755 # Use a header file that comes with gcc, so configuring glibc
15756 # with a fresh cross-compiler works.
15757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15758 # <limits.h> exists even on freestanding compilers.
15759 # On the NeXT, cc -E runs the code through the compiler's parser,
15760 # not just through cpp. "Syntax error" is here to catch this case.
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15764 # include <limits.h>
15766 # include <assert.h>
15770 if ac_fn_cxx_try_cpp "$LINENO"; then :
15773 # Broken: fails on valid input.
15776 rm -f conftest.err conftest.i conftest.$ac_ext
15778 # OK, works on sane cases. Now check whether nonexistent headers
15779 # can be detected and how.
15780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h. */
15782 #include <ac_nonexistent.h>
15784 if ac_fn_cxx_try_cpp "$LINENO"; then :
15785 # Broken: success on invalid input.
15788 # Passes both tests.
15792 rm -f conftest.err conftest.i conftest.$ac_ext
15795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15796 rm -f conftest.i conftest.err conftest.$ac_ext
15797 if $ac_preproc_ok; then :
15802 ac_cv_prog_CXXCPP=$CXXCPP
15805 CXXCPP=$ac_cv_prog_CXXCPP
15807 ac_cv_prog_CXXCPP=$CXXCPP
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15810 $as_echo "$CXXCPP" >&6; }
15811 ac_preproc_ok=false
15812 for ac_cxx_preproc_warn_flag in '' yes
15814 # Use a header file that comes with gcc, so configuring glibc
15815 # with a fresh cross-compiler works.
15816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15817 # <limits.h> exists even on freestanding compilers.
15818 # On the NeXT, cc -E runs the code through the compiler's parser,
15819 # not just through cpp. "Syntax error" is here to catch this case.
15820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15821 /* end confdefs.h. */
15823 # include <limits.h>
15825 # include <assert.h>
15829 if ac_fn_cxx_try_cpp "$LINENO"; then :
15832 # Broken: fails on valid input.
15835 rm -f conftest.err conftest.i conftest.$ac_ext
15837 # OK, works on sane cases. Now check whether nonexistent headers
15838 # can be detected and how.
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841 #include <ac_nonexistent.h>
15843 if ac_fn_cxx_try_cpp "$LINENO"; then :
15844 # Broken: success on invalid input.
15847 # Passes both tests.
15851 rm -f conftest.err conftest.i conftest.$ac_ext
15854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15855 rm -f conftest.i conftest.err conftest.$ac_ext
15856 if $ac_preproc_ok; then :
15859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15861 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15862 See \`config.log' for more details" "$LINENO" 5; }
15866 ac_cpp='$CPP $CPPFLAGS'
15867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15872 _lt_caught_CXX_error=yes
15876 ac_cpp='$CXXCPP $CPPFLAGS'
15877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15881 archive_cmds_need_lc_CXX=no
15882 allow_undefined_flag_CXX=
15883 always_export_symbols_CXX=no
15884 archive_expsym_cmds_CXX=
15885 compiler_needs_object_CXX=no
15886 export_dynamic_flag_spec_CXX=
15887 hardcode_direct_CXX=no
15888 hardcode_direct_absolute_CXX=no
15889 hardcode_libdir_flag_spec_CXX=
15890 hardcode_libdir_separator_CXX=
15891 hardcode_minus_L_CXX=no
15892 hardcode_shlibpath_var_CXX=unsupported
15893 hardcode_automatic_CXX=no
15894 inherit_rpath_CXX=no
15896 module_expsym_cmds_CXX=
15897 link_all_deplibs_CXX=unknown
15898 old_archive_cmds_CXX=$old_archive_cmds
15899 reload_flag_CXX=$reload_flag
15900 reload_cmds_CXX=$reload_cmds
15901 no_undefined_flag_CXX=
15902 whole_archive_flag_spec_CXX=
15903 enable_shared_with_static_runtimes_CXX=no
15905 # Source file extension for C++ test sources.
15908 # Object file extension for compiled C++ test sources.
15912 # No sense in running all these tests if we already determined that
15913 # the CXX compiler isn't working. Some variables (like enable_shared)
15914 # are currently assumed to apply to all compilers on this platform,
15915 # and will be corrupted by setting them based on a non-working compiler.
15916 if test yes != "$_lt_caught_CXX_error"; then
15917 # Code to be used in simple compile tests
15918 lt_simple_compile_test_code="int some_variable = 0;"
15920 # Code to be used in simple link tests
15921 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15923 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15930 # If no C compiler was specified, use CC.
15933 # If no C compiler flags were specified, use CFLAGS.
15934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15936 # Allow CC to be a program name with arguments.
15940 # save warnings/boilerplate of simple test code
15941 ac_outfile=conftest.$ac_objext
15942 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15944 _lt_compiler_boilerplate=`cat conftest.err`
15947 ac_outfile=conftest.$ac_objext
15948 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15950 _lt_linker_boilerplate=`cat conftest.err`
15954 # Allow CC to be a program name with arguments.
15956 lt_save_CFLAGS=$CFLAGS
15960 lt_save_with_gnu_ld=$with_gnu_ld
15961 lt_save_path_LD=$lt_cv_path_LD
15962 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15963 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15965 $as_unset lt_cv_prog_gnu_ld
15967 if test -n "${lt_cv_path_LDCXX+set}"; then
15968 lt_cv_path_LD=$lt_cv_path_LDCXX
15970 $as_unset lt_cv_path_LD
15972 test -z "${LDCXX+set}" || LD=$LDCXX
15977 func_cc_basename $compiler
15978 cc_basename=$func_cc_basename_result
15981 if test -n "$compiler"; then
15982 # We don't want -fno-exception when compiling C++ code, so set the
15983 # no_builtin_flag separately
15984 if test yes = "$GXX"; then
15985 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15987 lt_prog_compiler_no_builtin_flag_CXX=
15990 if test yes = "$GXX"; then
15991 # Set up default GNU C++ configuration
15995 # Check whether --with-gnu-ld was given.
15996 if test "${with_gnu_ld+set}" = set; then :
15997 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16003 if test yes = "$GCC"; then
16004 # Check if gcc -print-prog-name=ld gives a path.
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16006 $as_echo_n "checking for ld used by $CC... " >&6; }
16009 # gcc leaves a trailing carriage return, which upsets mingw
16010 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16012 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16015 # Accept absolute paths.
16017 re_direlt='/[^/][^/]*/\.\./'
16018 # Canonicalize the pathname of ld
16019 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16020 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16021 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16023 test -z "$LD" && LD=$ac_prog
16026 # If it fails, then pretend we aren't using GCC.
16030 # If it is relative, then search for the first ld in PATH.
16031 with_gnu_ld=unknown
16034 elif test yes = "$with_gnu_ld"; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16036 $as_echo_n "checking for GNU ld... " >&6; }
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16039 $as_echo_n "checking for non-GNU ld... " >&6; }
16041 if ${lt_cv_path_LD+:} false; then :
16042 $as_echo_n "(cached) " >&6
16044 if test -z "$LD"; then
16045 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16046 for ac_dir in $PATH; do
16048 test -z "$ac_dir" && ac_dir=.
16049 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16050 lt_cv_path_LD=$ac_dir/$ac_prog
16051 # Check to see if the program is GNU ld. I'd rather use --version,
16052 # but apparently some variants of GNU ld only accept -v.
16053 # Break only if it was the GNU/non-GNU ld that we prefer.
16054 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16055 *GNU* | *'with BFD'*)
16056 test no != "$with_gnu_ld" && break
16059 test yes != "$with_gnu_ld" && break
16066 lt_cv_path_LD=$LD # Let the user override the test with a path.
16071 if test -n "$LD"; then
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16073 $as_echo "$LD" >&6; }
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16076 $as_echo "no" >&6; }
16078 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16080 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16081 if ${lt_cv_prog_gnu_ld+:} false; then :
16082 $as_echo_n "(cached) " >&6
16084 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16085 case `$LD -v 2>&1 </dev/null` in
16086 *GNU* | *'with BFD'*)
16087 lt_cv_prog_gnu_ld=yes
16090 lt_cv_prog_gnu_ld=no
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16095 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16096 with_gnu_ld=$lt_cv_prog_gnu_ld
16104 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16105 # archiving commands below assume that GNU ld is being used.
16106 if test yes = "$with_gnu_ld"; then
16107 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16108 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16110 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16111 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16113 # If archive_cmds runs LD, not CC, wlarc should be empty
16114 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16115 # investigate it a little bit more. (MM)
16118 # ancient GNU ld didn't support --whole-archive et. al.
16119 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16120 $GREP 'no-whole-archive' > /dev/null; then
16121 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16123 whole_archive_flag_spec_CXX=
16129 # A generic and very simple default shared library creation
16130 # command for GNU C++ for the case where it uses the native
16131 # linker, instead of GNU ld. If possible, this setting should
16132 # overridden to take advantage of the native linker features on
16133 # the platform it is being used on.
16134 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16137 # Commands to make compiler produce verbose output that lists
16138 # what "hidden" libraries, object files and flags are used when
16139 # linking a shared library.
16140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16148 # PORTME: fill in a description of your system's C++ link characteristics
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16154 # FIXME: insert proper C++ library support
16158 if test ia64 = "$host_cpu"; then
16159 # On IA64, the linker does run time linking by default, so we don't
16160 # have to do anything special.
16161 aix_use_runtimelinking=no
16162 exp_sym_flag='-Bexport'
16165 aix_use_runtimelinking=no
16167 # Test if we are trying to use run time linking or normal
16168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16169 # have runtime linking enabled, and use it for executables.
16170 # For shared libraries, we enable/disable runtime linking
16171 # depending on the kind of the shared library created -
16172 # when "with_aix_soname,aix_use_runtimelinking" is:
16173 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16174 # "aix,yes" lib.so shared, rtl:yes, for executables
16175 # lib.a static archive
16176 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16177 # lib.a(lib.so.V) shared, rtl:no, for executables
16178 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16179 # lib.a(lib.so.V) shared, rtl:no
16180 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16181 # lib.a static archive
16182 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16183 for ld_flag in $LDFLAGS; do
16186 aix_use_runtimelinking=yes
16191 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16192 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16193 # so we don't have lib.a shared libs to link our executables.
16194 # We have to force runtime linking in this case.
16195 aix_use_runtimelinking=yes
16196 LDFLAGS="$LDFLAGS -Wl,-brtl"
16201 exp_sym_flag='-bexport'
16202 no_entry_flag='-bnoentry'
16205 # When large executables or shared objects are built, AIX ld can
16206 # have problems creating the table of contents. If linking a library
16207 # or program results in "error TOC overflow" add -mminimal-toc to
16208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16211 archive_cmds_CXX=''
16212 hardcode_direct_CXX=yes
16213 hardcode_direct_absolute_CXX=yes
16214 hardcode_libdir_separator_CXX=':'
16215 link_all_deplibs_CXX=yes
16216 file_list_spec_CXX='$wl-f,'
16217 case $with_aix_soname,$aix_use_runtimelinking in
16218 aix,*) ;; # no import file
16219 svr4,* | *,yes) # use import file
16220 # The Import File defines what to hardcode.
16221 hardcode_direct_CXX=no
16222 hardcode_direct_absolute_CXX=no
16226 if test yes = "$GXX"; then
16227 case $host_os in aix4.[012]|aix4.[012].*)
16228 # We only want to do this on AIX 4.2 and lower, the check
16229 # below for broken collect2 doesn't work under 4.3+
16230 collect2name=`$CC -print-prog-name=collect2`
16231 if test -f "$collect2name" &&
16232 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16234 # We have reworked collect2
16237 # We have old collect2
16238 hardcode_direct_CXX=unsupported
16239 # It fails to find uninstalled libraries when the uninstalled
16240 # path is not listed in the libpath. Setting hardcode_minus_L
16241 # to unsupported forces relinking
16242 hardcode_minus_L_CXX=yes
16243 hardcode_libdir_flag_spec_CXX='-L$libdir'
16244 hardcode_libdir_separator_CXX=
16247 shared_flag='-shared'
16248 if test yes = "$aix_use_runtimelinking"; then
16249 shared_flag=$shared_flag' $wl-G'
16251 # Need to ensure runtime linking is disabled for the traditional
16252 # shared library, or the linker may eventually find shared libraries
16253 # /with/ Import File - we do not want to mix them.
16254 shared_flag_aix='-shared'
16255 shared_flag_svr4='-shared $wl-G'
16258 if test ia64 = "$host_cpu"; then
16259 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16260 # chokes on -Wl,-G. The following line is correct:
16263 if test yes = "$aix_use_runtimelinking"; then
16264 shared_flag='$wl-G'
16266 shared_flag='$wl-bM:SRE'
16268 shared_flag_aix='$wl-bM:SRE'
16269 shared_flag_svr4='$wl-G'
16273 export_dynamic_flag_spec_CXX='$wl-bexpall'
16274 # It seems that -bexpall does not export symbols beginning with
16275 # underscore (_), so it is better to generate a list of symbols to
16277 always_export_symbols_CXX=yes
16278 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16279 # Warning - without using the other runtime loading flags (-brtl),
16280 # -berok will link without error, but may produce a broken library.
16281 # The "-G" linker flag allows undefined symbols.
16282 no_undefined_flag_CXX='-bernotok'
16283 # Determine the default libpath from the value encoded in an empty
16285 if test set = "${lt_cv_aix_libpath+set}"; then
16286 aix_libpath=$lt_cv_aix_libpath
16288 if ${lt_cv_aix_libpath__CXX+:} false; then :
16289 $as_echo_n "(cached) " >&6
16291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292 /* end confdefs.h. */
16302 if ac_fn_cxx_try_link "$LINENO"; then :
16304 lt_aix_libpath_sed='
16305 /Import File Strings/,/^$/ {
16307 s/^0 *\([^ ]*\) *$/\1/
16311 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16312 # Check for a 64-bit object if we didn't find anything.
16313 if test -z "$lt_cv_aix_libpath__CXX"; then
16314 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16317 rm -f core conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16319 if test -z "$lt_cv_aix_libpath__CXX"; then
16320 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16325 aix_libpath=$lt_cv_aix_libpath__CXX
16328 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16330 archive_expsym_cmds_CXX='$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
16332 if test ia64 = "$host_cpu"; then
16333 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16334 allow_undefined_flag_CXX="-z nodefs"
16335 archive_expsym_cmds_CXX="\$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"
16337 # Determine the default libpath from the value encoded in an
16338 # empty executable.
16339 if test set = "${lt_cv_aix_libpath+set}"; then
16340 aix_libpath=$lt_cv_aix_libpath
16342 if ${lt_cv_aix_libpath__CXX+:} false; then :
16343 $as_echo_n "(cached) " >&6
16345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16346 /* end confdefs.h. */
16356 if ac_fn_cxx_try_link "$LINENO"; then :
16358 lt_aix_libpath_sed='
16359 /Import File Strings/,/^$/ {
16361 s/^0 *\([^ ]*\) *$/\1/
16365 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16366 # Check for a 64-bit object if we didn't find anything.
16367 if test -z "$lt_cv_aix_libpath__CXX"; then
16368 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16371 rm -f core conftest.err conftest.$ac_objext \
16372 conftest$ac_exeext conftest.$ac_ext
16373 if test -z "$lt_cv_aix_libpath__CXX"; then
16374 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16379 aix_libpath=$lt_cv_aix_libpath__CXX
16382 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16383 # Warning - without using the other run time loading flags,
16384 # -berok will link without error, but may produce a broken library.
16385 no_undefined_flag_CXX=' $wl-bernotok'
16386 allow_undefined_flag_CXX=' $wl-berok'
16387 if test yes = "$with_gnu_ld"; then
16388 # We only use this code for GNU lds that support --whole-archive.
16389 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16391 # Exported symbols can be pulled into shared objects from archives
16392 whole_archive_flag_spec_CXX='$convenience'
16394 archive_cmds_need_lc_CXX=yes
16395 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16396 # -brtl affects multiple linker settings, -berok does not and is overridden later
16397 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16398 if test svr4 != "$with_aix_soname"; then
16399 # This is similar to how AIX traditionally builds its shared
16400 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16401 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16403 if test aix != "$with_aix_soname"; then
16404 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16406 # used by -dlpreopen to get the symbols
16407 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16409 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16415 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16416 allow_undefined_flag_CXX=unsupported
16417 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16418 # support --undefined. This deserves some investigation. FIXME
16419 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16426 case $cc_basename in
16428 # FIXME: insert proper C++ library support
16434 cygwin* | mingw* | pw32* | cegcc*)
16435 case $GXX,$cc_basename in
16438 # hardcode_libdir_flag_spec is actually meaningless, as there is
16439 # no search path for DLLs.
16440 hardcode_libdir_flag_spec_CXX=' '
16441 allow_undefined_flag_CXX=unsupported
16442 always_export_symbols_CXX=yes
16443 file_list_spec_CXX='@'
16444 # Tell ltmain to make .lib files, not .a files.
16446 # Tell ltmain to make .dll files, not .so files.
16448 # FIXME: Setting linknames here is a bad hack.
16449 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16450 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16451 cp "$export_symbols" "$output_objdir/$soname.def";
16452 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16454 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16456 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16458 # The linker will not automatically build a static lib if we build a DLL.
16459 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16460 enable_shared_with_static_runtimes_CXX=yes
16462 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16463 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16464 lt_tool_outputfile="@TOOL_OUTPUT@"~
16465 case $lt_outputfile in
16468 lt_outputfile=$lt_outputfile.exe
16469 lt_tool_outputfile=$lt_tool_outputfile.exe
16472 func_to_tool_file "$lt_outputfile"~
16473 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16474 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16475 $RM "$lt_outputfile.manifest";
16480 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16481 # as there is no search path for DLLs.
16482 hardcode_libdir_flag_spec_CXX='-L$libdir'
16483 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16484 allow_undefined_flag_CXX=unsupported
16485 always_export_symbols_CXX=no
16486 enable_shared_with_static_runtimes_CXX=yes
16488 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16489 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16490 # If the export-symbols file already is a .def file, use it as
16491 # is; otherwise, prepend EXPORTS...
16492 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16493 cp $export_symbols $output_objdir/$soname.def;
16495 echo EXPORTS > $output_objdir/$soname.def;
16496 cat $export_symbols >> $output_objdir/$soname.def;
16498 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16505 darwin* | rhapsody*)
16508 archive_cmds_need_lc_CXX=no
16509 hardcode_direct_CXX=no
16510 hardcode_automatic_CXX=yes
16511 hardcode_shlibpath_var_CXX=unsupported
16512 if test yes = "$lt_cv_ld_force_load"; then
16513 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16516 whole_archive_flag_spec_CXX=''
16518 link_all_deplibs_CXX=yes
16519 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16520 case $cc_basename in
16521 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16522 *) _lt_dar_can_shared=$GCC ;;
16524 if test yes = "$_lt_dar_can_shared"; then
16525 output_verbose_link_cmd=func_echo_all
16526 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16527 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16528 archive_expsym_cmds_CXX="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"
16529 module_expsym_cmds_CXX="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"
16530 if test yes != "$lt_cv_apple_cc_single_mod"; then
16531 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
16532 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
16542 hardcode_libdir_flag_spec_CXX='-L$libdir'
16543 hardcode_minus_L_CXX=yes
16544 allow_undefined_flag_CXX=unsupported
16546 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16547 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16548 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16549 $ECHO EXPORTS >> $output_objdir/$libname.def~
16550 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16551 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16552 emximp -o $lib $output_objdir/$libname.def'
16553 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16554 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16555 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16556 $ECHO EXPORTS >> $output_objdir/$libname.def~
16557 prefix_cmds="$SED"~
16558 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16559 prefix_cmds="$prefix_cmds -e 1d";
16561 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16562 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16563 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16564 emximp -o $lib $output_objdir/$libname.def'
16565 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16566 enable_shared_with_static_runtimes_CXX=yes
16570 case $cc_basename in
16572 # FIXME: insert proper C++ library support
16576 # Green Hills C++ Compiler
16577 # FIXME: insert proper C++ library support
16581 # FIXME: insert proper C++ library support
16588 # C++ shared libraries reported to be fairly broken before
16594 archive_cmds_need_lc_CXX=no
16597 freebsd* | dragonfly*)
16598 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16604 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16605 link_all_deplibs_CXX=yes
16609 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16610 hardcode_libdir_separator_CXX=:
16611 export_dynamic_flag_spec_CXX='$wl-E'
16612 hardcode_direct_CXX=yes
16613 hardcode_minus_L_CXX=yes # Not in the search PATH,
16614 # but as the default
16615 # location of the library.
16617 case $cc_basename in
16619 # FIXME: insert proper C++ library support
16623 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16624 # Commands to make compiler produce verbose output that lists
16625 # what "hidden" libraries, object files and flags are used when
16626 # linking a shared library.
16628 # There doesn't appear to be a way to prevent this compiler from
16629 # explicitly linking system object files so we need to strip them
16630 # from the output so that they don't get included in the library
16632 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16635 if test yes = "$GXX"; then
16636 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16638 # FIXME: insert proper C++ library support
16646 if test no = "$with_gnu_ld"; then
16647 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16648 hardcode_libdir_separator_CXX=:
16654 export_dynamic_flag_spec_CXX='$wl-E'
16660 hardcode_direct_CXX=no
16661 hardcode_shlibpath_var_CXX=no
16664 hardcode_direct_CXX=yes
16665 hardcode_direct_absolute_CXX=yes
16666 hardcode_minus_L_CXX=yes # Not in the search PATH,
16667 # but as the default
16668 # location of the library.
16672 case $cc_basename in
16674 # FIXME: insert proper C++ library support
16680 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16683 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16686 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16689 # Commands to make compiler produce verbose output that lists
16690 # what "hidden" libraries, object files and flags are used when
16691 # linking a shared library.
16693 # There doesn't appear to be a way to prevent this compiler from
16694 # explicitly linking system object files so we need to strip them
16695 # from the output so that they don't get included in the library
16697 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16700 if test yes = "$GXX"; then
16701 if test no = "$with_gnu_ld"; then
16704 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16707 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16710 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16715 # FIXME: insert proper C++ library support
16723 hardcode_direct_CXX=no
16724 hardcode_shlibpath_var_CXX=no
16725 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16726 export_dynamic_flag_spec_CXX='$wl-E'
16727 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16728 # Instead, shared libraries are loaded at an image base (0x10000000 by
16729 # default) and relocated if they conflict, which is a slow very memory
16730 # consuming and fragmenting process. To avoid this, we pick a random,
16731 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16732 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16733 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16734 archive_expsym_cmds_CXX='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'
16737 case $cc_basename in
16740 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16742 # Archives containing C++ object files must be created using
16743 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16744 # necessary to make sure instantiated templates are included
16746 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16749 if test yes = "$GXX"; then
16750 if test no = "$with_gnu_ld"; then
16751 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
16753 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16756 link_all_deplibs_CXX=yes
16759 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16760 hardcode_libdir_separator_CXX=:
16761 inherit_rpath_CXX=yes
16764 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16765 case $cc_basename in
16767 # Kuck and Associates, Inc. (KAI) C++ Compiler
16769 # KCC will only create a shared library if the output file
16770 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16771 # to its proper name (with version) after linking.
16772 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16773 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
16774 # Commands to make compiler produce verbose output that lists
16775 # what "hidden" libraries, object files and flags are used when
16776 # linking a shared library.
16778 # There doesn't appear to be a way to prevent this compiler from
16779 # explicitly linking system object files so we need to strip them
16780 # from the output so that they don't get included in the library
16782 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16784 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16785 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16787 # Archives containing C++ object files must be created using
16788 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16789 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16794 # version 8.0 and above of icpc choke on multiply defined symbols
16795 # if we add $predep_objects and $postdep_objects, however 7.1 and
16796 # earlier do not add the objects themselves.
16797 case `$CC -V 2>&1` in
16799 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16800 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16802 *) # Version 8.0 or newer
16805 ia64*) tmp_idyn=' -i_dynamic';;
16807 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16808 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16811 archive_cmds_need_lc_CXX=no
16812 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16813 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16814 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16817 # Portland Group C++ compiler
16819 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16820 prelink_cmds_CXX='tpldir=Template.dir~
16822 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16823 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16824 old_archive_cmds_CXX='tpldir=Template.dir~
16826 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16827 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16829 archive_cmds_CXX='tpldir=Template.dir~
16831 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16832 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16833 archive_expsym_cmds_CXX='tpldir=Template.dir~
16835 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16836 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16838 *) # Version 6 and above use weak symbols
16839 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16840 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16844 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16845 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16846 whole_archive_flag_spec_CXX='$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'
16850 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16851 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
16853 runpath_var=LD_RUN_PATH
16854 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16855 hardcode_libdir_separator_CXX=:
16857 # Commands to make compiler produce verbose output that lists
16858 # what "hidden" libraries, object files and flags are used when
16859 # linking a shared library.
16861 # There doesn't appear to be a way to prevent this compiler from
16862 # explicitly linking system object files so we need to strip them
16863 # from the output so that they don't get included in the library
16865 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16867 xl* | mpixl* | bgxl*)
16868 # IBM XL 8.0 on PPC, with GNU ld
16869 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16870 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16871 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16872 if test yes = "$supports_anon_versioning"; then
16873 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16874 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16875 echo "local: *; };" >> $output_objdir/$libname.ver~
16876 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16880 case `$CC -V 2>&1 | sed 5q` in
16883 no_undefined_flag_CXX=' -zdefs'
16884 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16885 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16886 hardcode_libdir_flag_spec_CXX='-R$libdir'
16887 whole_archive_flag_spec_CXX='$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'
16888 compiler_needs_object_CXX=yes
16890 # Not sure whether something based on
16891 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16893 output_verbose_link_cmd='func_echo_all'
16895 # Archives containing C++ object files must be created using
16896 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16897 # necessary to make sure instantiated templates are included
16899 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16907 # FIXME: insert proper C++ library support
16912 # FIXME: insert proper C++ library support
16917 case $cc_basename in
16919 # FIXME: insert proper C++ library support
16923 # FIXME: insert proper C++ library support
16930 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16931 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16933 hardcode_libdir_flag_spec_CXX='-R$libdir'
16934 hardcode_direct_CXX=yes
16935 hardcode_shlibpath_var_CXX=no
16937 # Workaround some broken pre-1.5 toolchains
16938 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16945 openbsd* | bitrig*)
16946 if test -f /usr/libexec/ld.so; then
16947 hardcode_direct_CXX=yes
16948 hardcode_shlibpath_var_CXX=no
16949 hardcode_direct_absolute_CXX=yes
16950 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16951 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16952 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16953 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16954 export_dynamic_flag_spec_CXX='$wl-E'
16955 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16957 output_verbose_link_cmd=func_echo_all
16963 osf3* | osf4* | osf5*)
16964 case $cc_basename in
16966 # Kuck and Associates, Inc. (KAI) C++ Compiler
16968 # KCC will only create a shared library if the output file
16969 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16970 # to its proper name (with version) after linking.
16971 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16973 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16974 hardcode_libdir_separator_CXX=:
16976 # Archives containing C++ object files must be created using
16977 # the KAI C++ compiler.
16979 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16980 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16984 # Rational C++ 2.4.1
16985 # FIXME: insert proper C++ library support
16991 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16992 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16993 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16996 allow_undefined_flag_CXX=' -expect_unresolved \*'
16997 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16998 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16999 echo "-hidden">> $lib.exp~
17000 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17002 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17006 hardcode_libdir_separator_CXX=:
17008 # Commands to make compiler produce verbose output that lists
17009 # what "hidden" libraries, object files and flags are used when
17010 # linking a shared library.
17012 # There doesn't appear to be a way to prevent this compiler from
17013 # explicitly linking system object files so we need to strip them
17014 # from the output so that they don't get included in the library
17016 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17019 if test yes,no = "$GXX,$with_gnu_ld"; then
17020 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17023 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17026 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17030 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17031 hardcode_libdir_separator_CXX=:
17033 # Commands to make compiler produce verbose output that lists
17034 # what "hidden" libraries, object files and flags are used when
17035 # linking a shared library.
17036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17039 # FIXME: insert proper C++ library support
17047 # FIXME: insert proper C++ library support
17052 case $cc_basename in
17055 # FIXME: insert proper C++ library support
17060 # FIXME: insert proper C++ library support
17064 # FIXME: insert proper C++ library support
17071 case $cc_basename in
17073 # Sun C++ 4.2, 5.x and Centerline C++
17074 archive_cmds_need_lc_CXX=yes
17075 no_undefined_flag_CXX=' -zdefs'
17076 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17077 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17078 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17080 hardcode_libdir_flag_spec_CXX='-R$libdir'
17081 hardcode_shlibpath_var_CXX=no
17083 solaris2.[0-5] | solaris2.[0-5].*) ;;
17085 # The compiler driver will combine and reorder linker options,
17086 # but understands '-z linker_flag'.
17087 # Supported since Solaris 2.6 (maybe 2.5.1?)
17088 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17091 link_all_deplibs_CXX=yes
17093 output_verbose_link_cmd='func_echo_all'
17095 # Archives containing C++ object files must be created using
17096 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17097 # necessary to make sure instantiated templates are included
17099 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17102 # Green Hills C++ Compiler
17103 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17105 # The C++ compiler must be used to create the archive.
17106 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17109 # GNU C++ compiler with Solaris linker
17110 if test yes,no = "$GXX,$with_gnu_ld"; then
17111 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17112 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17113 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17114 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17115 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17117 # Commands to make compiler produce verbose output that lists
17118 # what "hidden" libraries, object files and flags are used when
17119 # linking a shared library.
17120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17122 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17124 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17125 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17126 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17128 # Commands to make compiler produce verbose output that lists
17129 # what "hidden" libraries, object files and flags are used when
17130 # linking a shared library.
17131 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17134 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17136 solaris2.[0-5] | solaris2.[0-5].*) ;;
17138 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17146 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17147 no_undefined_flag_CXX='$wl-z,text'
17148 archive_cmds_need_lc_CXX=no
17149 hardcode_shlibpath_var_CXX=no
17150 runpath_var='LD_RUN_PATH'
17152 case $cc_basename in
17154 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17155 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17158 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17159 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17164 sysv5* | sco3.2v5* | sco5v6*)
17165 # Note: We CANNOT use -z defs as we might desire, because we do not
17166 # link with -lc, and that would cause any symbols used from libc to
17167 # always be unresolved, which means just about no library would
17168 # ever link correctly. If we're not using GNU ld we use -z text
17169 # though, which does catch some bad symbols but isn't as heavy-handed
17171 no_undefined_flag_CXX='$wl-z,text'
17172 allow_undefined_flag_CXX='$wl-z,nodefs'
17173 archive_cmds_need_lc_CXX=no
17174 hardcode_shlibpath_var_CXX=no
17175 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17176 hardcode_libdir_separator_CXX=':'
17177 link_all_deplibs_CXX=yes
17178 export_dynamic_flag_spec_CXX='$wl-Bexport'
17179 runpath_var='LD_RUN_PATH'
17181 case $cc_basename in
17183 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17184 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17185 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17186 '"$old_archive_cmds_CXX"
17187 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17188 '"$reload_cmds_CXX"
17191 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17192 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17198 case $cc_basename in
17200 # NonStop-UX NCC 3.20
17201 # FIXME: insert proper C++ library support
17205 # FIXME: insert proper C++ library support
17212 # FIXME: insert proper C++ library support
17217 # FIXME: insert proper C++ library support
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17223 $as_echo "$ld_shlibs_CXX" >&6; }
17224 test no = "$ld_shlibs_CXX" && can_build_shared=no
17230 ## There is no encapsulation within the following macros, do not change
17231 ## the running order or otherwise move them around unless you know exactly
17232 ## what you are doing...
17233 # Dependencies to place before and after the object being linked:
17234 predep_objects_CXX=
17235 postdep_objects_CXX=
17238 compiler_lib_search_path_CXX=
17240 cat > conftest.$ac_ext <<_LT_EOF
17244 Foo (void) { a = 0; }
17251 _lt_libdeps_save_CFLAGS=$CFLAGS
17252 case "$CC $CFLAGS " in #(
17253 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17254 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17255 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17259 (eval $ac_compile) 2>&5
17261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17262 test $ac_status = 0; }; then
17263 # Parse the compiler output and extract the necessary
17264 # objects, libraries and library flags.
17266 # Sentinel used to keep track of whether or not we are before
17267 # the conftest object file.
17268 pre_test_object_deps_done=no
17270 for p in `eval "$output_verbose_link_cmd"`; do
17274 # Some compilers place space between "-{L,R}" and the path.
17275 # Remove the space.
17276 if test x-L = "$p" ||
17277 test x-R = "$p"; then
17282 # Expand the sysroot to ease extracting the directories later.
17283 if test -z "$prev"; then
17285 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17286 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17287 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17291 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17293 if test no = "$pre_test_object_deps_done"; then
17296 # Internal compiler library paths should come after those
17297 # provided the user. The postdeps already come after the
17298 # user supplied libs so there is no need to process them.
17299 if test -z "$compiler_lib_search_path_CXX"; then
17300 compiler_lib_search_path_CXX=$prev$p
17302 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17305 # The "-l" case would never come before the object being
17306 # linked, so don't bother handling this case.
17309 if test -z "$postdeps_CXX"; then
17310 postdeps_CXX=$prev$p
17312 postdeps_CXX="${postdeps_CXX} $prev$p"
17318 *.lto.$objext) ;; # Ignore GCC LTO objects
17320 # This assumes that the test object file only shows up
17321 # once in the compiler output.
17322 if test "$p" = "conftest.$objext"; then
17323 pre_test_object_deps_done=yes
17327 if test no = "$pre_test_object_deps_done"; then
17328 if test -z "$predep_objects_CXX"; then
17329 predep_objects_CXX=$p
17331 predep_objects_CXX="$predep_objects_CXX $p"
17334 if test -z "$postdep_objects_CXX"; then
17335 postdep_objects_CXX=$p
17337 postdep_objects_CXX="$postdep_objects_CXX $p"
17342 *) ;; # Ignore the rest.
17350 echo "libtool.m4: error: problem compiling CXX test program"
17353 $RM -f confest.$objext
17354 CFLAGS=$_lt_libdeps_save_CFLAGS
17356 # PORTME: override above test on systems where it is broken
17359 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17360 # hack all around it, let's just trust "g++" to DTRT.
17361 predep_objects_CXX=
17362 postdep_objects_CXX=
17368 case " $postdeps_CXX " in
17369 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17371 compiler_lib_search_dirs_CXX=
17372 if test -n "${compiler_lib_search_path_CXX}"; then
17373 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17406 lt_prog_compiler_wl_CXX=
17407 lt_prog_compiler_pic_CXX=
17408 lt_prog_compiler_static_CXX=
17411 # C++ specific cases for pic, static, wl, etc.
17412 if test yes = "$GXX"; then
17413 lt_prog_compiler_wl_CXX='-Wl,'
17414 lt_prog_compiler_static_CXX='-static'
17418 # All AIX code is PIC.
17419 if test ia64 = "$host_cpu"; then
17420 # AIX 5 now supports IA64 processor
17421 lt_prog_compiler_static_CXX='-Bstatic'
17423 lt_prog_compiler_pic_CXX='-fPIC'
17429 # see comment about AmigaOS4 .so support
17430 lt_prog_compiler_pic_CXX='-fPIC'
17433 # FIXME: we need at least 68020 code to build shared libraries, but
17434 # adding the '-m68020' flag to GCC prevents building anything better,
17436 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17441 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17442 # PIC is the default for these OSes.
17444 mingw* | cygwin* | os2* | pw32* | cegcc*)
17445 # This hack is so that the source file can tell whether it is being
17446 # built for inclusion in a dll (and should export symbols for example).
17447 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17448 # (--disable-auto-import) libraries
17449 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17452 lt_prog_compiler_static_CXX='$wl-static'
17456 darwin* | rhapsody*)
17457 # PIC is the default on this platform
17458 # Common symbols not allowed in MH_DYLIB files
17459 lt_prog_compiler_pic_CXX='-fno-common'
17462 # DJGPP does not support shared libraries at all
17463 lt_prog_compiler_pic_CXX=
17466 # PIC is the default for Haiku.
17467 # The "-static" flag exists, but is broken.
17468 lt_prog_compiler_static_CXX=
17471 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17472 # Instead, we relocate shared libraries at runtime.
17475 if test -d /usr/nec; then
17476 lt_prog_compiler_pic_CXX=-Kconform_pic
17480 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17481 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17482 # sets the default TLS model and affects inlining.
17487 lt_prog_compiler_pic_CXX='-fPIC'
17492 # QNX uses GNU C++, but need to define -shared option too, otherwise
17493 # it will coredump.
17494 lt_prog_compiler_pic_CXX='-fPIC -shared'
17497 lt_prog_compiler_pic_CXX='-fPIC'
17503 # All AIX code is PIC.
17504 if test ia64 = "$host_cpu"; then
17505 # AIX 5 now supports IA64 processor
17506 lt_prog_compiler_static_CXX='-Bstatic'
17508 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17512 case $cc_basename in
17514 # Green Hills C++ Compiler
17515 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17519 mingw* | cygwin* | os2* | pw32* | cegcc*)
17520 # This hack is so that the source file can tell whether it is being
17521 # built for inclusion in a dll (and should export symbols for example).
17522 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17525 case $cc_basename in
17527 lt_prog_compiler_pic_CXX='-KPIC'
17530 # Green Hills C++ Compiler
17531 lt_prog_compiler_pic_CXX='-pic'
17537 freebsd* | dragonfly*)
17538 # FreeBSD uses GNU C++
17540 hpux9* | hpux10* | hpux11*)
17541 case $cc_basename in
17543 lt_prog_compiler_wl_CXX='-Wl,'
17544 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17545 if test ia64 != "$host_cpu"; then
17546 lt_prog_compiler_pic_CXX='+Z'
17550 lt_prog_compiler_wl_CXX='-Wl,'
17551 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17557 lt_prog_compiler_pic_CXX='+Z'
17566 # This is c89, which is MS Visual C++ (no shared libs)
17567 # Anyone wants to do a port?
17569 irix5* | irix6* | nonstopux*)
17570 case $cc_basename in
17572 lt_prog_compiler_wl_CXX='-Wl,'
17573 lt_prog_compiler_static_CXX='-non_shared'
17574 # CC pic flag -KPIC is the default.
17580 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17581 case $cc_basename in
17584 lt_prog_compiler_wl_CXX='--backend -Wl,'
17585 lt_prog_compiler_pic_CXX='-fPIC'
17588 # old Intel C++ for x86_64, which still supported -KPIC.
17589 lt_prog_compiler_wl_CXX='-Wl,'
17590 lt_prog_compiler_pic_CXX='-KPIC'
17591 lt_prog_compiler_static_CXX='-static'
17594 # Intel C++, used to be incompatible with GCC.
17595 # ICC 10 doesn't accept -KPIC any more.
17596 lt_prog_compiler_wl_CXX='-Wl,'
17597 lt_prog_compiler_pic_CXX='-fPIC'
17598 lt_prog_compiler_static_CXX='-static'
17601 # Portland Group C++ compiler
17602 lt_prog_compiler_wl_CXX='-Wl,'
17603 lt_prog_compiler_pic_CXX='-fpic'
17604 lt_prog_compiler_static_CXX='-Bstatic'
17608 # Make sure the PIC flag is empty. It appears that all Alpha
17609 # Linux and Compaq Tru64 Unix objects are PIC.
17610 lt_prog_compiler_pic_CXX=
17611 lt_prog_compiler_static_CXX='-non_shared'
17613 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17614 # IBM XL 8.0, 9.0 on PPC and BlueGene
17615 lt_prog_compiler_wl_CXX='-Wl,'
17616 lt_prog_compiler_pic_CXX='-qpic'
17617 lt_prog_compiler_static_CXX='-qstaticlink'
17620 case `$CC -V 2>&1 | sed 5q` in
17623 lt_prog_compiler_pic_CXX='-KPIC'
17624 lt_prog_compiler_static_CXX='-Bstatic'
17625 lt_prog_compiler_wl_CXX='-Qoption ld '
17636 case $cc_basename in
17638 lt_prog_compiler_pic_CXX='-W c,exportall'
17644 netbsd* | netbsdelf*-gnu)
17647 # QNX uses GNU C++, but need to define -shared option too, otherwise
17648 # it will coredump.
17649 lt_prog_compiler_pic_CXX='-fPIC -shared'
17651 osf3* | osf4* | osf5*)
17652 case $cc_basename in
17654 lt_prog_compiler_wl_CXX='--backend -Wl,'
17657 # Rational C++ 2.4.1
17658 lt_prog_compiler_pic_CXX='-pic'
17661 # Digital/Compaq C++
17662 lt_prog_compiler_wl_CXX='-Wl,'
17663 # Make sure the PIC flag is empty. It appears that all Alpha
17664 # Linux and Compaq Tru64 Unix objects are PIC.
17665 lt_prog_compiler_pic_CXX=
17666 lt_prog_compiler_static_CXX='-non_shared'
17675 case $cc_basename in
17677 # Sun C++ 4.2, 5.x and Centerline C++
17678 lt_prog_compiler_pic_CXX='-KPIC'
17679 lt_prog_compiler_static_CXX='-Bstatic'
17680 lt_prog_compiler_wl_CXX='-Qoption ld '
17683 # Green Hills C++ Compiler
17684 lt_prog_compiler_pic_CXX='-PIC'
17691 case $cc_basename in
17694 lt_prog_compiler_pic_CXX='-pic'
17695 lt_prog_compiler_static_CXX='-Bstatic'
17699 lt_prog_compiler_pic_CXX='-pic'
17705 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17706 case $cc_basename in
17708 lt_prog_compiler_wl_CXX='-Wl,'
17709 lt_prog_compiler_pic_CXX='-KPIC'
17710 lt_prog_compiler_static_CXX='-Bstatic'
17715 case $cc_basename in
17717 # NonStop-UX NCC 3.20
17718 lt_prog_compiler_pic_CXX='-KPIC'
17727 lt_prog_compiler_can_build_shared_CXX=no
17733 # For platforms that do not support PIC, -DPIC is meaningless:
17735 lt_prog_compiler_pic_CXX=
17738 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17743 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17744 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17745 $as_echo_n "(cached) " >&6
17747 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17750 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17751 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17754 # Check to make sure the PIC flag actually works.
17756 if test -n "$lt_prog_compiler_pic_CXX"; then
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17758 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17759 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17760 $as_echo_n "(cached) " >&6
17762 lt_cv_prog_compiler_pic_works_CXX=no
17763 ac_outfile=conftest.$ac_objext
17764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17765 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17766 # Insert the option either (1) after the last *FLAGS variable, or
17767 # (2) before a word containing "conftest.", or (3) at the end.
17768 # Note that $ac_compile itself does not contain backslashes and begins
17769 # with a dollar sign (not a hyphen), so the echo should work correctly.
17770 # The option is referenced via a variable to avoid confusing sed.
17771 lt_compile=`echo "$ac_compile" | $SED \
17772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17774 -e 's:$: $lt_compiler_flag:'`
17775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17776 (eval "$lt_compile" 2>conftest.err)
17778 cat conftest.err >&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 if (exit $ac_status) && test -s "$ac_outfile"; then
17781 # The compiler can only warn and ignore the option if not recognized
17782 # So say no if there are warnings other than the usual output.
17783 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17785 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17786 lt_cv_prog_compiler_pic_works_CXX=yes
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17793 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17795 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17796 case $lt_prog_compiler_pic_CXX in
17798 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17801 lt_prog_compiler_pic_CXX=
17802 lt_prog_compiler_can_build_shared_CXX=no
17812 # Check to make sure the static flag actually works.
17814 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17816 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17817 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17818 $as_echo_n "(cached) " >&6
17820 lt_cv_prog_compiler_static_works_CXX=no
17821 save_LDFLAGS=$LDFLAGS
17822 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17823 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17824 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17825 # The linker can only warn and ignore the option if not recognized
17826 # So say no if there are warnings
17827 if test -s conftest.err; then
17828 # Append any errors to the config.log.
17829 cat conftest.err 1>&5
17830 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17832 if diff conftest.exp conftest.er2 >/dev/null; then
17833 lt_cv_prog_compiler_static_works_CXX=yes
17836 lt_cv_prog_compiler_static_works_CXX=yes
17840 LDFLAGS=$save_LDFLAGS
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17844 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17846 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17849 lt_prog_compiler_static_CXX=
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17856 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17857 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17858 $as_echo_n "(cached) " >&6
17860 lt_cv_prog_compiler_c_o_CXX=no
17861 $RM -r conftest 2>/dev/null
17865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17867 lt_compiler_flag="-o out/conftest2.$ac_objext"
17868 # Insert the option either (1) after the last *FLAGS variable, or
17869 # (2) before a word containing "conftest.", or (3) at the end.
17870 # Note that $ac_compile itself does not contain backslashes and begins
17871 # with a dollar sign (not a hyphen), so the echo should work correctly.
17872 lt_compile=`echo "$ac_compile" | $SED \
17873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17875 -e 's:$: $lt_compiler_flag:'`
17876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17877 (eval "$lt_compile" 2>out/conftest.err)
17879 cat out/conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17883 # The compiler can only warn and ignore the option if not recognized
17884 # So say no if there are warnings
17885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17888 lt_cv_prog_compiler_c_o_CXX=yes
17893 # SGI C++ compiler will create directory out/ii_files/ for
17894 # template instantiation
17895 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17896 $RM out/* && rmdir out
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17903 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17909 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17910 $as_echo_n "(cached) " >&6
17912 lt_cv_prog_compiler_c_o_CXX=no
17913 $RM -r conftest 2>/dev/null
17917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17919 lt_compiler_flag="-o out/conftest2.$ac_objext"
17920 # Insert the option either (1) after the last *FLAGS variable, or
17921 # (2) before a word containing "conftest.", or (3) at the end.
17922 # Note that $ac_compile itself does not contain backslashes and begins
17923 # with a dollar sign (not a hyphen), so the echo should work correctly.
17924 lt_compile=`echo "$ac_compile" | $SED \
17925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17927 -e 's:$: $lt_compiler_flag:'`
17928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17929 (eval "$lt_compile" 2>out/conftest.err)
17931 cat out/conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17935 # The compiler can only warn and ignore the option if not recognized
17936 # So say no if there are warnings
17937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17940 lt_cv_prog_compiler_c_o_CXX=yes
17945 # SGI C++ compiler will create directory out/ii_files/ for
17946 # template instantiation
17947 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17948 $RM out/* && rmdir out
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17955 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17960 hard_links=nottested
17961 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17962 # do not overwrite the value of need_locks provided by the user
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17964 $as_echo_n "checking if we can lock with hard links... " >&6; }
17967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17969 ln conftest.a conftest.b 2>&5 || hard_links=no
17970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17972 $as_echo "$hard_links" >&6; }
17973 if test no = "$hard_links"; then
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17975 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17985 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17987 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17988 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17991 # If we're using GNU nm, then we don't want the "-C" option.
17992 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17993 # Without the "-l" option, or with the "-B" option, AIX nm treats
17994 # weak defined symbols like other global defined symbols, whereas
17995 # GNU nm marks them as "W".
17996 # While the 'weak' keyword is ignored in the Export File, we need
17997 # it in the Import File for the 'aix-soname' feature, so we have
17998 # to replace the "-B" option with "-P" for AIX nm.
17999 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18000 export_symbols_cmds_CXX='$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'
18002 export_symbols_cmds_CXX='`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'
18006 export_symbols_cmds_CXX=$ltdll_cmds
18008 cygwin* | mingw* | cegcc*)
18009 case $cc_basename in
18011 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18015 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18019 linux* | k*bsd*-gnu | gnu*)
18020 link_all_deplibs_CXX=no
18023 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18028 $as_echo "$ld_shlibs_CXX" >&6; }
18029 test no = "$ld_shlibs_CXX" && can_build_shared=no
18031 with_gnu_ld_CXX=$with_gnu_ld
18039 # Do we need to explicitly link libc?
18041 case "x$archive_cmds_need_lc_CXX" in
18043 # Assume -lc should be added
18044 archive_cmds_need_lc_CXX=yes
18046 if test yes,yes = "$GCC,$enable_shared"; then
18047 case $archive_cmds_CXX in
18049 # FIXME: we may have to deal with multi-command sequences.
18052 # Test whether the compiler implicitly links with -lc since on some
18053 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18054 # to ld, don't add -lc before -lgcc.
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18056 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18057 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18058 $as_echo_n "(cached) " >&6
18061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18064 (eval $ac_compile) 2>&5
18066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18067 test $ac_status = 0; } 2>conftest.err; then
18070 libobjs=conftest.$ac_objext
18072 wl=$lt_prog_compiler_wl_CXX
18073 pic_flag=$lt_prog_compiler_pic_CXX
18079 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18080 allow_undefined_flag_CXX=
18081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18082 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18085 test $ac_status = 0; }
18087 lt_cv_archive_cmds_need_lc_CXX=no
18089 lt_cv_archive_cmds_need_lc_CXX=yes
18091 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18093 cat conftest.err 1>&5
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18099 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18100 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18169 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18171 library_names_spec=
18172 libname_spec='lib$name'
18176 postuninstall_cmds=
18180 shlibpath_overrides_runpath=unknown
18182 dynamic_linker="$host_os ld.so"
18183 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18184 need_lib_prefix=unknown
18185 hardcode_into_libs=no
18187 # when you set need_version to no, make sure it does not cause -set_version
18188 # flags to be left without arguments
18189 need_version=unknown
18195 version_type=linux # correct to gnu/linux during the next big refactor
18196 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18197 shlibpath_var=LIBPATH
18199 # AIX 3 has no versioning support, so we append a major version to the name.
18200 soname_spec='$libname$release$shared_ext$major'
18204 version_type=linux # correct to gnu/linux during the next big refactor
18207 hardcode_into_libs=yes
18208 if test ia64 = "$host_cpu"; then
18209 # AIX 5 supports IA64
18210 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18211 shlibpath_var=LD_LIBRARY_PATH
18213 # With GCC up to 2.95.x, collect2 would create an import file
18214 # for dependence libraries. The import file would start with
18215 # the line '#! .'. This would cause the generated library to
18216 # depend on '.', always an invalid library. This was fixed in
18217 # development snapshots of GCC prior to 3.0.
18219 aix4 | aix4.[01] | aix4.[01].*)
18220 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18222 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18225 can_build_shared=no
18229 # Using Import Files as archive members, it is possible to support
18230 # filename-based versioning of shared library archives on AIX. While
18231 # this would work for both with and without runtime linking, it will
18232 # prevent static linking of such archives. So we do filename-based
18233 # shared library versioning with .so extension only, which is used
18234 # when both runtime linking and shared linking is enabled.
18235 # Unfortunately, runtime linking may impact performance, so we do
18236 # not want this to be the default eventually. Also, we use the
18237 # versioned .so libs for executables only if there is the -brtl
18238 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18239 # To allow for filename-based versioning support, we need to create
18240 # libNAME.so.V as an archive file, containing:
18241 # *) an Import File, referring to the versioned filename of the
18242 # archive as well as the shared archive member, telling the
18243 # bitwidth (32 or 64) of that shared object, and providing the
18244 # list of exported symbols of that shared object, eventually
18245 # decorated with the 'weak' keyword
18246 # *) the shared object with the F_LOADONLY flag set, to really avoid
18247 # it being seen by the linker.
18248 # At run time we better use the real file rather than another symlink,
18249 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18251 case $with_aix_soname,$aix_use_runtimelinking in
18252 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18253 # soname into executable. Probably we can add versioning support to
18254 # collect2, so additional links can be useful in future.
18255 aix,yes) # traditional libtool
18256 dynamic_linker='AIX unversionable lib.so'
18257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18258 # instead of lib<name>.a to let people know that these are not
18259 # typical AIX shared libraries.
18260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18262 aix,no) # traditional AIX only
18263 dynamic_linker='AIX lib.a(lib.so.V)'
18264 # We preserve .a as extension for shared libraries through AIX4.2
18265 # and later when we are not doing run time linking.
18266 library_names_spec='$libname$release.a $libname.a'
18267 soname_spec='$libname$release$shared_ext$major'
18269 svr4,*) # full svr4 only
18270 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18271 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18272 # We do not specify a path in Import Files, so LIBPATH fires.
18273 shlibpath_overrides_runpath=yes
18275 *,yes) # both, prefer svr4
18276 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18277 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18278 # unpreferred sharedlib libNAME.a needs extra handling
18279 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"'
18280 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"'
18281 # We do not specify a path in Import Files, so LIBPATH fires.
18282 shlibpath_overrides_runpath=yes
18284 *,no) # both, prefer aix
18285 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18286 library_names_spec='$libname$release.a $libname.a'
18287 soname_spec='$libname$release$shared_ext$major'
18288 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18289 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)'
18290 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"'
18293 shlibpath_var=LIBPATH
18300 # Since July 2007 AmigaOS4 officially supports .so libraries.
18301 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18305 library_names_spec='$libname.ixlibrary $libname.a'
18306 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18307 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'
18313 library_names_spec='$libname$shared_ext'
18314 dynamic_linker="$host_os ld.so"
18315 shlibpath_var=LIBRARY_PATH
18319 version_type=linux # correct to gnu/linux during the next big refactor
18321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18322 soname_spec='$libname$release$shared_ext$major'
18323 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18326 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18327 # the default ld.so.conf also contains /usr/contrib/lib and
18328 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18329 # libtool to hard-code these into programs
18332 cygwin* | mingw* | pw32* | cegcc*)
18333 version_type=windows
18338 case $GCC,$cc_basename in
18341 library_names_spec='$libname.dll.a'
18342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18343 postinstall_cmds='base_file=`basename \$file`~
18344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18345 dldir=$destdir/`dirname \$dlpath`~
18346 test -d \$dldir || mkdir -p \$dldir~
18347 $install_prog $dir/$dlname \$dldir/$dlname~
18348 chmod a+x \$dldir/$dlname~
18349 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18350 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18353 dlpath=$dir/\$dldll~
18355 shlibpath_overrides_runpath=yes
18359 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18360 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18364 # MinGW DLLs use traditional 'lib' prefix
18365 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18368 # pw32 DLLs use 'pw' prefix rather than 'lib'
18369 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18372 dynamic_linker='Win32 ld.exe'
18377 libname_spec='$name'
18378 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18379 library_names_spec='$libname.dll.lib'
18383 sys_lib_search_path_spec=
18386 for lt_path in $LIB
18389 # Let DOS variable expansion print the short 8.3 style file name.
18390 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18391 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18394 # Convert to MSYS style.
18395 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18398 # Convert to unix form, then to dos form, then back to unix form
18399 # but this time dos style (no spaces!) so that the unix form looks
18400 # like /cygdrive/c/PROGRA~1:/cygdr...
18401 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18402 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18403 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18406 sys_lib_search_path_spec=$LIB
18407 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18408 # It is most probably a Windows format PATH.
18409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18413 # FIXME: find the short name or the path components, as spaces are
18414 # common. (e.g. "Program Files" -> "PROGRA~1")
18418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18419 postinstall_cmds='base_file=`basename \$file`~
18420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18421 dldir=$destdir/`dirname \$dlpath`~
18422 test -d \$dldir || mkdir -p \$dldir~
18423 $install_prog $dir/$dlname \$dldir/$dlname'
18424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18425 dlpath=$dir/\$dldll~
18427 shlibpath_overrides_runpath=yes
18428 dynamic_linker='Win32 link.exe'
18432 # Assume MSVC wrapper
18433 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18434 dynamic_linker='Win32 ld.exe'
18437 # FIXME: first we should search . and the directory the executable is in
18441 darwin* | rhapsody*)
18442 dynamic_linker="$host_os dyld"
18443 version_type=darwin
18446 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18447 soname_spec='$libname$release$major$shared_ext'
18448 shlibpath_overrides_runpath=yes
18449 shlibpath_var=DYLD_LIBRARY_PATH
18450 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18452 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18456 version_type=linux # correct to gnu/linux during the next big refactor
18459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18460 soname_spec='$libname$release$shared_ext$major'
18461 shlibpath_var=LD_LIBRARY_PATH
18464 freebsd* | dragonfly*)
18465 # DragonFly does not have aout. When/if they implement a new
18466 # versioning mechanism, adjust this.
18467 if test -x /usr/bin/objformat; then
18468 objformat=`/usr/bin/objformat`
18471 freebsd[23].*) objformat=aout ;;
18472 *) objformat=elf ;;
18475 version_type=freebsd-$objformat
18476 case $version_type in
18478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18479 soname_spec='$libname$release$shared_ext$major'
18484 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18488 shlibpath_var=LD_LIBRARY_PATH
18491 shlibpath_overrides_runpath=yes
18493 freebsd3.[01]* | freebsdelf3.[01]*)
18494 shlibpath_overrides_runpath=yes
18495 hardcode_into_libs=yes
18497 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18498 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18499 shlibpath_overrides_runpath=no
18500 hardcode_into_libs=yes
18502 *) # from 4.6 on, and DragonFly
18503 shlibpath_overrides_runpath=yes
18504 hardcode_into_libs=yes
18510 version_type=linux # correct to gnu/linux during the next big refactor
18513 dynamic_linker="$host_os runtime_loader"
18514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18515 soname_spec='$libname$release$shared_ext$major'
18516 shlibpath_var=LIBRARY_PATH
18517 shlibpath_overrides_runpath=no
18518 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18519 hardcode_into_libs=yes
18522 hpux9* | hpux10* | hpux11*)
18523 # Give a soname corresponding to the major version so that dld.sl refuses to
18524 # link against other versions.
18531 hardcode_into_libs=yes
18532 dynamic_linker="$host_os dld.so"
18533 shlibpath_var=LD_LIBRARY_PATH
18534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18536 soname_spec='$libname$release$shared_ext$major'
18537 if test 32 = "$HPUX_IA64_MODE"; then
18538 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18539 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18542 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18547 hardcode_into_libs=yes
18548 dynamic_linker="$host_os dld.sl"
18549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18552 soname_spec='$libname$release$shared_ext$major'
18553 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18558 dynamic_linker="$host_os dld.sl"
18559 shlibpath_var=SHLIB_PATH
18560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18562 soname_spec='$libname$release$shared_ext$major'
18565 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18566 postinstall_cmds='chmod 555 $lib'
18567 # or fails outright, so override atomically:
18568 install_override_mode=555
18572 version_type=linux # correct to gnu/linux during the next big refactor
18575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18576 soname_spec='$libname$release$shared_ext$major'
18577 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18578 shlibpath_var=LD_LIBRARY_PATH
18579 shlibpath_overrides_runpath=no
18580 hardcode_into_libs=yes
18583 irix5* | irix6* | nonstopux*)
18585 nonstopux*) version_type=nonstopux ;;
18587 if test yes = "$lt_cv_prog_gnu_ld"; then
18588 version_type=linux # correct to gnu/linux during the next big refactor
18595 soname_spec='$libname$release$shared_ext$major'
18596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18598 irix5* | nonstopux*)
18599 libsuff= shlibsuff=
18602 case $LD in # libtool.m4 will add one of these switches to LD
18603 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18604 libsuff= shlibsuff= libmagic=32-bit;;
18605 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18606 libsuff=32 shlibsuff=N32 libmagic=N32;;
18607 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18608 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18609 *) libsuff= shlibsuff= libmagic=never-match;;
18613 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18614 shlibpath_overrides_runpath=no
18615 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18616 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18617 hardcode_into_libs=yes
18620 # No shared lib support for Linux oldld, aout, or coff.
18621 linux*oldld* | linux*aout* | linux*coff*)
18626 version_type=none # Android doesn't support versioned libraries.
18629 library_names_spec='$libname$release$shared_ext'
18630 soname_spec='$libname$release$shared_ext'
18632 shlibpath_var=LD_LIBRARY_PATH
18633 shlibpath_overrides_runpath=yes
18635 # This implies no fast_install, which is unacceptable.
18636 # Some rework will be needed to allow for fast_install
18637 # before this can be enabled.
18638 hardcode_into_libs=yes
18640 dynamic_linker='Android linker'
18641 # Don't embed -rpath directories since the linker doesn't support them.
18642 hardcode_libdir_flag_spec_CXX='-L$libdir'
18645 # This must be glibc/ELF.
18646 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18647 version_type=linux # correct to gnu/linux during the next big refactor
18650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18651 soname_spec='$libname$release$shared_ext$major'
18652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18653 shlibpath_var=LD_LIBRARY_PATH
18654 shlibpath_overrides_runpath=no
18656 # Some binutils ld are patched to set DT_RUNPATH
18657 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18658 $as_echo_n "(cached) " >&6
18660 lt_cv_shlibpath_overrides_runpath=no
18661 save_LDFLAGS=$LDFLAGS
18662 save_libdir=$libdir
18663 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18664 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666 /* end confdefs.h. */
18676 if ac_fn_cxx_try_link "$LINENO"; then :
18677 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18678 lt_cv_shlibpath_overrides_runpath=yes
18681 rm -f core conftest.err conftest.$ac_objext \
18682 conftest$ac_exeext conftest.$ac_ext
18683 LDFLAGS=$save_LDFLAGS
18684 libdir=$save_libdir
18688 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18690 # This implies no fast_install, which is unacceptable.
18691 # Some rework will be needed to allow for fast_install
18692 # before this can be enabled.
18693 hardcode_into_libs=yes
18695 # Ideally, we could use ldconfig to report *all* directores which are
18696 # searched for libraries, however this is still not possible. Aside from not
18697 # being certain /sbin/ldconfig is available, command
18698 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18699 # even though it is searched at run-time. Try to do the best guess by
18700 # appending ld.so.conf contents (and includes) to the search path.
18701 if test -f /etc/ld.so.conf; then
18702 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' ' '`
18703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18706 # We used to test for /lib/ld.so.1 and disable shared libraries on
18707 # powerpc, because MkLinux only supported shared libraries with the
18708 # GNU dynamic linker. Since this was broken with cross compilers,
18709 # most powerpc-linux boxes support dynamic linking these days and
18710 # people can always --disable-shared, the test was removed, and we
18711 # assume the GNU/Linux dynamic linker is in use.
18712 dynamic_linker='GNU/Linux ld.so'
18719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18720 soname_spec='${libname}${release}${shared_ext}$major'
18721 shlibpath_var=LD_LIBRARY_PATH
18722 shlibpath_overrides_runpath=no
18723 hardcode_into_libs=yes
18724 dynamic_linker='NetBSD ld.elf_so'
18731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18732 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18734 dynamic_linker='NetBSD (a.out) ld.so'
18736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18737 soname_spec='$libname$release$shared_ext$major'
18738 dynamic_linker='NetBSD ld.elf_so'
18740 shlibpath_var=LD_LIBRARY_PATH
18741 shlibpath_overrides_runpath=yes
18742 hardcode_into_libs=yes
18746 version_type=linux # correct to gnu/linux during the next big refactor
18747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18748 shlibpath_var=LD_LIBRARY_PATH
18749 shlibpath_overrides_runpath=yes
18756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18757 soname_spec='$libname$release$shared_ext$major'
18758 shlibpath_var=LD_LIBRARY_PATH
18759 shlibpath_overrides_runpath=no
18760 hardcode_into_libs=yes
18761 dynamic_linker='ldqnx.so'
18764 openbsd* | bitrig*)
18766 sys_lib_dlsearch_path_spec=/usr/lib
18768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18773 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18775 shlibpath_var=LD_LIBRARY_PATH
18776 shlibpath_overrides_runpath=yes
18780 libname_spec='$name'
18781 version_type=windows
18785 # OS/2 can only load a DLL with a base name of 8 characters or less.
18786 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18787 v=$($ECHO $release$versuffix | tr -d .-);
18788 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18789 $ECHO $n$v`$shared_ext'
18790 library_names_spec='${libname}_dll.$libext'
18791 dynamic_linker='OS/2 ld.exe'
18792 shlibpath_var=BEGINLIBPATH
18793 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18795 postinstall_cmds='base_file=`basename \$file`~
18796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18797 dldir=$destdir/`dirname \$dlpath`~
18798 test -d \$dldir || mkdir -p \$dldir~
18799 $install_prog $dir/$dlname \$dldir/$dlname~
18800 chmod a+x \$dldir/$dlname~
18801 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18802 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18805 dlpath=$dir/\$dldll~
18809 osf3* | osf4* | osf5*)
18813 soname_spec='$libname$release$shared_ext$major'
18814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18815 shlibpath_var=LD_LIBRARY_PATH
18816 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18825 version_type=linux # correct to gnu/linux during the next big refactor
18828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18829 soname_spec='$libname$release$shared_ext$major'
18830 shlibpath_var=LD_LIBRARY_PATH
18831 shlibpath_overrides_runpath=yes
18832 hardcode_into_libs=yes
18833 # ldd complains unless libraries are executable
18834 postinstall_cmds='chmod +x $lib'
18839 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18841 shlibpath_var=LD_LIBRARY_PATH
18842 shlibpath_overrides_runpath=yes
18843 if test yes = "$with_gnu_ld"; then
18850 version_type=linux # correct to gnu/linux during the next big refactor
18851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18852 soname_spec='$libname$release$shared_ext$major'
18853 shlibpath_var=LD_LIBRARY_PATH
18854 case $host_vendor in
18856 shlibpath_overrides_runpath=no
18858 runpath_var=LD_RUN_PATH
18866 shlibpath_overrides_runpath=no
18867 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18873 if test -d /usr/nec; then
18874 version_type=linux # correct to gnu/linux during the next big refactor
18875 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18876 soname_spec='$libname$shared_ext.$major'
18877 shlibpath_var=LD_LIBRARY_PATH
18881 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18886 soname_spec='$libname$release$shared_ext$major'
18887 shlibpath_var=LD_LIBRARY_PATH
18888 shlibpath_overrides_runpath=yes
18889 hardcode_into_libs=yes
18890 if test yes = "$with_gnu_ld"; then
18891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18893 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18900 sys_lib_dlsearch_path_spec='/usr/lib'
18904 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18905 version_type=linux # correct to gnu/linux during the next big refactor
18908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18909 shlibpath_var=LD_LIBRARY_PATH
18910 shlibpath_overrides_runpath=no
18911 hardcode_into_libs=yes
18915 version_type=linux # correct to gnu/linux during the next big refactor
18916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18917 soname_spec='$libname$release$shared_ext$major'
18918 shlibpath_var=LD_LIBRARY_PATH
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18926 $as_echo "$dynamic_linker" >&6; }
18927 test no = "$dynamic_linker" && can_build_shared=no
18929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18930 if test yes = "$GCC"; then
18931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18934 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18935 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18938 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18939 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18942 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18943 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18945 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18946 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18948 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18949 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18991 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18992 hardcode_action_CXX=
18993 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18994 test -n "$runpath_var_CXX" ||
18995 test yes = "$hardcode_automatic_CXX"; then
18997 # We can hardcode non-existent directories.
18998 if test no != "$hardcode_direct_CXX" &&
18999 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19000 # have to relink, otherwise we might link with an installed library
19001 # when we should be linking with a yet-to-be-installed one
19002 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19003 test no != "$hardcode_minus_L_CXX"; then
19004 # Linking always hardcodes the temporary library directory.
19005 hardcode_action_CXX=relink
19007 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19008 hardcode_action_CXX=immediate
19011 # We cannot hardcode anything, or else we can only hardcode existing
19013 hardcode_action_CXX=unsupported
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19016 $as_echo "$hardcode_action_CXX" >&6; }
19018 if test relink = "$hardcode_action_CXX" ||
19019 test yes = "$inherit_rpath_CXX"; then
19020 # Fast installation is not supported
19021 enable_fast_install=no
19022 elif test yes = "$shlibpath_overrides_runpath" ||
19023 test no = "$enable_shared"; then
19024 # Fast installation is not necessary
19025 enable_fast_install=needless
19034 fi # test -n "$compiler"
19037 CFLAGS=$lt_save_CFLAGS
19041 with_gnu_ld=$lt_save_with_gnu_ld
19042 lt_cv_path_LDCXX=$lt_cv_path_LD
19043 lt_cv_path_LD=$lt_save_path_LD
19044 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19045 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19046 fi # test yes != "$_lt_caught_CXX_error"
19049 ac_cpp='$CPP $CPPFLAGS'
19050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19068 ac_config_commands="$ac_config_commands libtool"
19073 # Only expand once:
19076 ## --------------------- ##
19077 ## End of libtool code ##
19078 ## --------------------- ##
19081 # Verify if finally libtool shared libraries will be built
19084 case "x$enable_shared" in # ((
19086 xc_lt_build_shared=$enable_shared
19089 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
19094 # Verify if finally libtool static libraries will be built
19097 case "x$enable_static" in # ((
19099 xc_lt_build_static=$enable_static
19102 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
19107 # Verify if libtool shared libraries should be linked using flag -version-info
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
19111 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
19112 xc_lt_shlib_use_version_info='yes'
19113 if test "x$version_type" = 'xnone'; then
19114 xc_lt_shlib_use_version_info='no'
19116 case $host_os in # (
19118 xc_lt_shlib_use_version_info='yes'
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
19122 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
19125 # Verify if libtool shared libraries should be linked using flag -no-undefined
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
19129 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
19130 xc_lt_shlib_use_no_undefined='no'
19131 if test "x$allow_undefined" = 'xno'; then
19132 xc_lt_shlib_use_no_undefined='yes'
19133 elif test "x$allow_undefined_flag" = 'xunsupported'; then
19134 xc_lt_shlib_use_no_undefined='yes'
19136 case $host_os in # (
19137 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
19138 xc_lt_shlib_use_no_undefined='yes'
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
19142 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
19145 # Verify if libtool shared libraries should be linked using flag -mimpure-text
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
19149 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
19150 xc_lt_shlib_use_mimpure_text='no'
19151 case $host_os in # (
19153 if test "x$GCC" = 'xyes'; then
19154 xc_lt_shlib_use_mimpure_text='yes'
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
19159 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
19162 # Find out wether libtool libraries would be built wit PIC
19165 case "x$pic_mode" in # ((((
19167 xc_lt_build_shared_with_pic='yes'
19168 xc_lt_build_static_with_pic='no'
19171 xc_lt_build_shared_with_pic='yes'
19172 xc_lt_build_static_with_pic='yes'
19175 xc_lt_build_shared_with_pic='no'
19176 xc_lt_build_static_with_pic='no'
19179 xc_lt_build_shared_with_pic='unknown'
19180 xc_lt_build_static_with_pic='unknown'
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
19182 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
19186 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
19188 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
19190 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
19192 $as_echo "$xc_lt_build_static_with_pic" >&6; }
19195 # Verify if libtool shared libraries will be built while static not built
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
19199 $as_echo_n "checking whether to build shared libraries only... " >&6; }
19200 if test "$xc_lt_build_shared" = 'yes' &&
19201 test "$xc_lt_build_static" = 'no'; then
19202 xc_lt_build_shared_only='yes'
19204 xc_lt_build_shared_only='no'
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
19207 $as_echo "$xc_lt_build_shared_only" >&6; }
19210 # Verify if libtool static libraries will be built while shared not built
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
19214 $as_echo_n "checking whether to build static libraries only... " >&6; }
19215 if test "$xc_lt_build_static" = 'yes' &&
19216 test "$xc_lt_build_shared" = 'no'; then
19217 xc_lt_build_static_only='yes'
19219 xc_lt_build_static_only='no'
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
19222 $as_echo "$xc_lt_build_static_only" >&6; }
19229 # Automake conditionals based on libtool related checks
19232 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
19233 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
19234 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
19236 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
19237 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
19240 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
19241 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
19242 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
19244 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
19245 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
19248 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
19249 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
19250 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
19252 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
19253 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
19258 # Due to libtool and automake machinery limitations of not allowing
19259 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
19260 # inclusion of these in shared or static libraries, we are forced to
19261 # build using separate configure runs for shared and static libraries
19262 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
19263 # to compile objects for each kind of library. Notice that relying on
19264 # the '-DPIC' CFLAG that libtool provides is not valid given that the
19265 # user might for example choose to build static libraries with PIC.
19269 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
19270 # targeting a static library and not building its shared counterpart.
19273 if test "x$xc_lt_build_static_only" = 'xyes'; then
19274 USE_CPPFLAG_CARES_STATICLIB_TRUE=
19275 USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
19277 USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
19278 USE_CPPFLAG_CARES_STATICLIB_FALSE=
19283 # Make staticlib CPPFLAG variable and its definition visible in output
19284 # files unconditionally, providing an empty definition unless strictly
19285 # targeting a static library and not building its shared counterpart.
19288 CPPFLAG_CARES_STATICLIB=
19289 if test "x$xc_lt_build_static_only" = 'xyes'; then
19290 CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
19297 compiler_id="unknown"
19300 flags_dbg_all="unknown"
19301 flags_dbg_yes="unknown"
19302 flags_dbg_off="unknown"
19303 flags_opt_all="unknown"
19304 flags_opt_yes="unknown"
19305 flags_opt_off="unknown"
19307 flags_prefer_cppflags="no"
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
19311 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
19313 if test -z "$SED"; then
19314 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19316 if test -z "$GREP"; then
19317 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322 /* end confdefs.h. */
19326 CURL_DEF_TOKEN __DECC
19331 if ac_fn_c_try_cpp "$LINENO"; then :
19333 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19334 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19335 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19336 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19337 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
19342 rm -f conftest.err conftest.i conftest.$ac_ext
19343 if test -z "$tmp_exp"; then
19344 curl_cv_have_def___DECC=no
19347 curl_cv_have_def___DECC=yes
19348 curl_cv_def___DECC=$tmp_exp
19353 if test -z "$SED"; then
19354 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19356 if test -z "$GREP"; then
19357 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19362 /* end confdefs.h. */
19366 CURL_DEF_TOKEN __DECC_VER
19371 if ac_fn_c_try_cpp "$LINENO"; then :
19373 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19374 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19375 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19376 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19377 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
19382 rm -f conftest.err conftest.i conftest.$ac_ext
19383 if test -z "$tmp_exp"; then
19384 curl_cv_have_def___DECC_VER=no
19387 curl_cv_have_def___DECC_VER=yes
19388 curl_cv_def___DECC_VER=$tmp_exp
19392 if test "$curl_cv_have_def___DECC" = "yes" &&
19393 test "$curl_cv_have_def___DECC_VER" = "yes"; then
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19395 $as_echo "yes" >&6; }
19396 compiler_id="DEC_C"
19397 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19398 flags_dbg_yes="-g2"
19399 flags_dbg_off="-g0"
19400 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
19401 flags_opt_yes="-O1"
19402 flags_opt_off="-O0"
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19405 $as_echo "no" >&6; }
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
19410 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
19412 if test -z "$SED"; then
19413 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19415 if test -z "$GREP"; then
19416 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421 /* end confdefs.h. */
19425 CURL_DEF_TOKEN __HP_cc
19430 if ac_fn_c_try_cpp "$LINENO"; then :
19432 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19433 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19434 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19435 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19436 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
19441 rm -f conftest.err conftest.i conftest.$ac_ext
19442 if test -z "$tmp_exp"; then
19443 curl_cv_have_def___HP_cc=no
19446 curl_cv_have_def___HP_cc=yes
19447 curl_cv_def___HP_cc=$tmp_exp
19451 if test "$curl_cv_have_def___HP_cc" = "yes"; then
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19453 $as_echo "yes" >&6; }
19454 compiler_id="HP_UX_C"
19455 flags_dbg_all="-g -s"
19458 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
19459 flags_opt_yes="+O2"
19460 flags_opt_off="+O0"
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19463 $as_echo "no" >&6; }
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
19468 $as_echo_n "checking if compiler is IBM C... " >&6; }
19470 if test -z "$SED"; then
19471 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19473 if test -z "$GREP"; then
19474 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h. */
19483 CURL_DEF_TOKEN __IBMC__
19488 if ac_fn_c_try_cpp "$LINENO"; then :
19490 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19491 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19492 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19493 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19494 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
19499 rm -f conftest.err conftest.i conftest.$ac_ext
19500 if test -z "$tmp_exp"; then
19501 curl_cv_have_def___IBMC__=no
19504 curl_cv_have_def___IBMC__=yes
19505 curl_cv_def___IBMC__=$tmp_exp
19509 if test "$curl_cv_have_def___IBMC__" = "yes"; then
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19511 $as_echo "yes" >&6; }
19512 compiler_id="IBM_C"
19513 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19516 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
19517 flags_opt_all="$flags_opt_all -qnooptimize"
19518 flags_opt_all="$flags_opt_all -qoptimize=0"
19519 flags_opt_all="$flags_opt_all -qoptimize=1"
19520 flags_opt_all="$flags_opt_all -qoptimize=2"
19521 flags_opt_all="$flags_opt_all -qoptimize=3"
19522 flags_opt_all="$flags_opt_all -qoptimize=4"
19523 flags_opt_all="$flags_opt_all -qoptimize=5"
19524 flags_opt_yes="-O2"
19525 flags_opt_off="-qnooptimize"
19526 flags_prefer_cppflags="yes"
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19529 $as_echo "no" >&6; }
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
19534 $as_echo_n "checking if compiler is Intel C... " >&6; }
19536 if test -z "$SED"; then
19537 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19539 if test -z "$GREP"; then
19540 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545 /* end confdefs.h. */
19548 #ifdef __INTEL_COMPILER
19549 CURL_DEF_TOKEN __INTEL_COMPILER
19554 if ac_fn_c_try_cpp "$LINENO"; then :
19556 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19557 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19558 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19559 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19560 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
19565 rm -f conftest.err conftest.i conftest.$ac_ext
19566 if test -z "$tmp_exp"; then
19567 curl_cv_have_def___INTEL_COMPILER=no
19570 curl_cv_have_def___INTEL_COMPILER=yes
19571 curl_cv_def___INTEL_COMPILER=$tmp_exp
19575 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19577 $as_echo "yes" >&6; }
19578 compiler_num="$curl_cv_def___INTEL_COMPILER"
19580 if test -z "$SED"; then
19581 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19583 if test -z "$GREP"; then
19584 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h. */
19593 CURL_DEF_TOKEN __unix__
19598 if ac_fn_c_try_cpp "$LINENO"; then :
19600 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19601 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19602 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19603 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19604 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
19609 rm -f conftest.err conftest.i conftest.$ac_ext
19610 if test -z "$tmp_exp"; then
19611 curl_cv_have_def___unix__=no
19614 curl_cv_have_def___unix__=yes
19615 curl_cv_def___unix__=$tmp_exp
19619 if test "$curl_cv_have_def___unix__" = "yes"; then
19620 compiler_id="INTEL_UNIX_C"
19621 flags_dbg_all="-g -g0"
19623 flags_dbg_off="-g0"
19624 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
19625 flags_opt_yes="-O2"
19626 flags_opt_off="-O0"
19628 compiler_id="INTEL_WINDOWS_C"
19629 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
19630 flags_dbg_all="$flags_dbg_all /debug"
19631 flags_dbg_all="$flags_dbg_all /debug:none"
19632 flags_dbg_all="$flags_dbg_all /debug:minimal"
19633 flags_dbg_all="$flags_dbg_all /debug:partial"
19634 flags_dbg_all="$flags_dbg_all /debug:full"
19635 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
19636 flags_dbg_all="$flags_dbg_all /debug:extended"
19637 flags_dbg_yes="/Zi /Oy-"
19638 flags_dbg_off="/debug:none /Oy-"
19639 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
19640 flags_opt_yes="/O2"
19641 flags_opt_off="/Od"
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19645 $as_echo "no" >&6; }
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
19650 $as_echo_n "checking if compiler is clang... " >&6; }
19652 if test -z "$SED"; then
19653 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19655 if test -z "$GREP"; then
19656 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h. */
19665 CURL_DEF_TOKEN __clang__
19670 if ac_fn_c_try_cpp "$LINENO"; then :
19672 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19673 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19674 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19675 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19676 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
19681 rm -f conftest.err conftest.i conftest.$ac_ext
19682 if test -z "$tmp_exp"; then
19683 curl_cv_have_def___clang__=no
19686 curl_cv_have_def___clang__=yes
19687 curl_cv_def___clang__=$tmp_exp
19691 if test "$curl_cv_have_def___clang__" = "yes"; then
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19693 $as_echo "yes" >&6; }
19694 compiler_id="CLANG"
19695 clangver=`$CC -dumpversion`
19696 clangvhi=`echo $clangver | cut -d . -f1`
19697 clangvlo=`echo $clangver | cut -d . -f2`
19698 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
19699 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19700 flags_dbg_all="$flags_dbg_all -ggdb"
19701 flags_dbg_all="$flags_dbg_all -gstabs"
19702 flags_dbg_all="$flags_dbg_all -gstabs+"
19703 flags_dbg_all="$flags_dbg_all -gcoff"
19704 flags_dbg_all="$flags_dbg_all -gxcoff"
19705 flags_dbg_all="$flags_dbg_all -gdwarf-2"
19706 flags_dbg_all="$flags_dbg_all -gvms"
19708 flags_dbg_off="-g0"
19709 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
19710 flags_opt_yes="-Os"
19711 flags_opt_off="-O0"
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19714 $as_echo "no" >&6; }
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
19719 $as_echo_n "checking if compiler is GNU C... " >&6; }
19721 if test -z "$SED"; then
19722 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19724 if test -z "$GREP"; then
19725 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730 /* end confdefs.h. */
19734 CURL_DEF_TOKEN __GNUC__
19739 if ac_fn_c_try_cpp "$LINENO"; then :
19741 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19742 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19743 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19744 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19745 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
19750 rm -f conftest.err conftest.i conftest.$ac_ext
19751 if test -z "$tmp_exp"; then
19752 curl_cv_have_def___GNUC__=no
19755 curl_cv_have_def___GNUC__=yes
19756 curl_cv_def___GNUC__=$tmp_exp
19760 if test "$curl_cv_have_def___GNUC__" = "yes" &&
19761 test "$compiler_id" = "unknown"; then
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19763 $as_echo "yes" >&6; }
19764 compiler_id="GNU_C"
19765 gccver=`$CC -dumpversion`
19766 gccvhi=`echo $gccver | cut -d . -f1`
19767 gccvlo=`echo $gccver | cut -d . -f2`
19768 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
19769 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19770 flags_dbg_all="$flags_dbg_all -ggdb"
19771 flags_dbg_all="$flags_dbg_all -gstabs"
19772 flags_dbg_all="$flags_dbg_all -gstabs+"
19773 flags_dbg_all="$flags_dbg_all -gcoff"
19774 flags_dbg_all="$flags_dbg_all -gxcoff"
19775 flags_dbg_all="$flags_dbg_all -gdwarf-2"
19776 flags_dbg_all="$flags_dbg_all -gvms"
19778 flags_dbg_off="-g0"
19779 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
19780 flags_opt_yes="-O2"
19781 flags_opt_off="-O0"
19783 if test -z "$SED"; then
19784 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19786 if test -z "$GREP"; then
19787 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19792 /* end confdefs.h. */
19796 CURL_DEF_TOKEN _WIN32
19801 if ac_fn_c_try_cpp "$LINENO"; then :
19803 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19804 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19805 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19806 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19807 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
19812 rm -f conftest.err conftest.i conftest.$ac_ext
19813 if test -z "$tmp_exp"; then
19814 curl_cv_have_def__WIN32=no
19817 curl_cv_have_def__WIN32=yes
19818 curl_cv_def__WIN32=$tmp_exp
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824 $as_echo "no" >&6; }
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
19829 $as_echo_n "checking if compiler is LCC... " >&6; }
19831 if test -z "$SED"; then
19832 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19834 if test -z "$GREP"; then
19835 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19840 /* end confdefs.h. */
19844 CURL_DEF_TOKEN __LCC__
19849 if ac_fn_c_try_cpp "$LINENO"; then :
19851 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19852 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19853 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19854 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19855 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
19860 rm -f conftest.err conftest.i conftest.$ac_ext
19861 if test -z "$tmp_exp"; then
19862 curl_cv_have_def___LCC__=no
19865 curl_cv_have_def___LCC__=yes
19866 curl_cv_def___LCC__=$tmp_exp
19870 if test "$curl_cv_have_def___LCC__" = "yes"; then
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19872 $as_echo "yes" >&6; }
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19882 $as_echo "no" >&6; }
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
19887 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
19889 if test -z "$SED"; then
19890 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19892 if test -z "$GREP"; then
19893 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19898 /* end confdefs.h. */
19902 CURL_DEF_TOKEN __GNUC__
19907 if ac_fn_c_try_cpp "$LINENO"; then :
19909 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19910 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19911 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19912 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19913 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
19918 rm -f conftest.err conftest.i conftest.$ac_ext
19919 if test -z "$tmp_exp"; then
19920 curl_cv_have_def___GNUC__=no
19923 curl_cv_have_def___GNUC__=yes
19924 curl_cv_def___GNUC__=$tmp_exp
19929 if test -z "$SED"; then
19930 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19932 if test -z "$GREP"; then
19933 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h. */
19941 #ifdef _COMPILER_VERSION
19942 CURL_DEF_TOKEN _COMPILER_VERSION
19947 if ac_fn_c_try_cpp "$LINENO"; then :
19949 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19950 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19951 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19952 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19953 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
19958 rm -f conftest.err conftest.i conftest.$ac_ext
19959 if test -z "$tmp_exp"; then
19960 curl_cv_have_def__COMPILER_VERSION=no
19963 curl_cv_have_def__COMPILER_VERSION=yes
19964 curl_cv_def__COMPILER_VERSION=$tmp_exp
19969 if test -z "$SED"; then
19970 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19972 if test -z "$GREP"; then
19973 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19978 /* end confdefs.h. */
19981 #ifdef _SGI_COMPILER_VERSION
19982 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
19987 if ac_fn_c_try_cpp "$LINENO"; then :
19989 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19990 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19991 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19992 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19993 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
19998 rm -f conftest.err conftest.i conftest.$ac_ext
19999 if test -z "$tmp_exp"; then
20000 curl_cv_have_def__SGI_COMPILER_VERSION=no
20003 curl_cv_have_def__SGI_COMPILER_VERSION=yes
20004 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
20008 if test "$curl_cv_have_def___GNUC__" = "no" &&
20009 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
20010 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20012 $as_echo "yes" >&6; }
20013 compiler_id="SGI_MIPSPRO_C"
20014 flags_dbg_all="-g -g0 -g1 -g2 -g3"
20016 flags_dbg_off="-g0"
20017 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
20018 flags_opt_yes="-O2"
20019 flags_opt_off="-O0"
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20022 $as_echo "no" >&6; }
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
20027 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
20029 if test -z "$SED"; then
20030 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20032 if test -z "$GREP"; then
20033 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038 /* end confdefs.h. */
20042 CURL_DEF_TOKEN __GNUC__
20047 if ac_fn_c_try_cpp "$LINENO"; then :
20049 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20050 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20051 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20052 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20053 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
20058 rm -f conftest.err conftest.i conftest.$ac_ext
20059 if test -z "$tmp_exp"; then
20060 curl_cv_have_def___GNUC__=no
20063 curl_cv_have_def___GNUC__=yes
20064 curl_cv_def___GNUC__=$tmp_exp
20069 if test -z "$SED"; then
20070 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20072 if test -z "$GREP"; then
20073 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20078 /* end confdefs.h. */
20082 CURL_DEF_TOKEN __sgi
20087 if ac_fn_c_try_cpp "$LINENO"; then :
20089 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20090 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20091 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20092 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20093 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
20098 rm -f conftest.err conftest.i conftest.$ac_ext
20099 if test -z "$tmp_exp"; then
20100 curl_cv_have_def___sgi=no
20103 curl_cv_have_def___sgi=yes
20104 curl_cv_def___sgi=$tmp_exp
20108 if test "$curl_cv_have_def___GNUC__" = "no" &&
20109 test "$curl_cv_have_def___sgi" = "yes" &&
20110 test "$compiler_id" = "unknown"; then
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20112 $as_echo "yes" >&6; }
20113 compiler_id="SGI_MIPS_C"
20114 flags_dbg_all="-g -g0 -g1 -g2 -g3"
20116 flags_dbg_off="-g0"
20117 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
20118 flags_opt_yes="-O2"
20119 flags_opt_off="-O0"
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20122 $as_echo "no" >&6; }
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
20127 $as_echo_n "checking if compiler is SunPro C... " >&6; }
20129 if test -z "$SED"; then
20130 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20132 if test -z "$GREP"; then
20133 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20138 /* end confdefs.h. */
20142 CURL_DEF_TOKEN __SUNPRO_C
20147 if ac_fn_c_try_cpp "$LINENO"; then :
20149 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20150 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20151 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20152 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20153 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
20158 rm -f conftest.err conftest.i conftest.$ac_ext
20159 if test -z "$tmp_exp"; then
20160 curl_cv_have_def___SUNPRO_C=no
20163 curl_cv_have_def___SUNPRO_C=yes
20164 curl_cv_def___SUNPRO_C=$tmp_exp
20168 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20170 $as_echo "yes" >&6; }
20171 compiler_id="SUNPRO_C"
20172 flags_dbg_all="-g -s"
20175 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
20176 flags_opt_yes="-xO2"
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20180 $as_echo "no" >&6; }
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
20185 $as_echo_n "checking if compiler is Tiny C... " >&6; }
20187 if test -z "$SED"; then
20188 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20190 if test -z "$GREP"; then
20191 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20196 /* end confdefs.h. */
20200 CURL_DEF_TOKEN __TINYC__
20205 if ac_fn_c_try_cpp "$LINENO"; then :
20207 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20208 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20209 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20210 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20211 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
20216 rm -f conftest.err conftest.i conftest.$ac_ext
20217 if test -z "$tmp_exp"; then
20218 curl_cv_have_def___TINYC__=no
20221 curl_cv_have_def___TINYC__=yes
20222 curl_cv_def___TINYC__=$tmp_exp
20226 if test "$curl_cv_have_def___TINYC__" = "yes"; then
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20228 $as_echo "yes" >&6; }
20229 compiler_id="TINY_C"
20230 flags_dbg_all="-g -b"
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20238 $as_echo "no" >&6; }
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
20243 $as_echo_n "checking if compiler is Watcom C... " >&6; }
20245 if test -z "$SED"; then
20246 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20248 if test -z "$GREP"; then
20249 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20254 /* end confdefs.h. */
20258 CURL_DEF_TOKEN __WATCOMC__
20263 if ac_fn_c_try_cpp "$LINENO"; then :
20265 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20266 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20267 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20268 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20269 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
20274 rm -f conftest.err conftest.i conftest.$ac_ext
20275 if test -z "$tmp_exp"; then
20276 curl_cv_have_def___WATCOMC__=no
20279 curl_cv_have_def___WATCOMC__=yes
20280 curl_cv_def___WATCOMC__=$tmp_exp
20284 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20286 $as_echo "yes" >&6; }
20288 if test -z "$SED"; then
20289 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20291 if test -z "$GREP"; then
20292 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20297 /* end confdefs.h. */
20301 CURL_DEF_TOKEN __UNIX__
20306 if ac_fn_c_try_cpp "$LINENO"; then :
20308 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20309 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20310 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20311 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20312 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
20317 rm -f conftest.err conftest.i conftest.$ac_ext
20318 if test -z "$tmp_exp"; then
20319 curl_cv_have_def___UNIX__=no
20322 curl_cv_have_def___UNIX__=yes
20323 curl_cv_def___UNIX__=$tmp_exp
20327 if test "$curl_cv_have_def___UNIX__" = "yes"; then
20328 compiler_id="WATCOM_UNIX_C"
20329 flags_dbg_all="-g1 -g1+ -g2 -g3"
20330 flags_dbg_yes="-g2"
20332 flags_opt_all="-O0 -O1 -O2 -O3"
20333 flags_opt_yes="-O2"
20334 flags_opt_off="-O0"
20336 compiler_id="WATCOM_WINDOWS_C"
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20346 $as_echo "no" >&6; }
20350 if test "$compiler_id" = "unknown"; then
20353 *** Warning: This configure script does not have information about the
20354 *** compiler you are using, relative to the flags required to enable or
20355 *** disable generation of debug info, optimization options or warnings.
20357 *** Whatever settings are present in CFLAGS will be used for this run.
20359 *** If you wish to help the c-ares project to better support your compiler
20360 *** you can report this and the required info on the c-ares development
20361 *** mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
20369 eval _sqz_input=\$$1
20370 for _sqz_token in $_sqz_input; do
20371 if test -z "$_sqz_result"; then
20372 _sqz_result="$_sqz_token"
20374 _sqz_result="$_sqz_result $_sqz_token"
20377 eval $1=\$_sqz_result
20383 if test "$compiler_id" != "unknown"; then
20385 if test "$compiler_id" = "GNU_C" ||
20386 test "$compiler_id" = "CLANG"; then
20388 if test "$compiler_id" = "GNU_C" ||
20389 test "$compiler_id" = "CLANG"; then
20390 tmp_has_include="no"
20391 tmp_chg_FLAGS="$CFLAGS"
20392 for word1 in $tmp_chg_FLAGS; do
20395 tmp_has_include="yes"
20399 if test "$tmp_has_include" = "yes"; then
20400 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
20401 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
20402 CFLAGS="$tmp_chg_FLAGS"
20405 tmp_has_include="no"
20406 tmp_chg_FLAGS="$CPPFLAGS"
20407 for word1 in $tmp_chg_FLAGS; do
20410 tmp_has_include="yes"
20414 if test "$tmp_has_include" = "yes"; then
20415 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
20416 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
20417 CPPFLAGS="$tmp_chg_FLAGS"
20424 tmp_save_CPPFLAGS="$CPPFLAGS"
20425 tmp_save_CFLAGS="$CFLAGS"
20429 case "$compiler_id" in
20433 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
20438 tmp_CFLAGS="$tmp_CFLAGS -std1"
20439 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
20440 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
20441 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
20446 tmp_CFLAGS="$tmp_CFLAGS"
20451 tmp_CFLAGS="$tmp_CFLAGS -z"
20452 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
20457 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
20458 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
20459 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
20464 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
20465 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
20466 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
20471 tmp_CFLAGS="$tmp_CFLAGS"
20476 tmp_CFLAGS="$tmp_CFLAGS -n"
20481 tmp_CFLAGS="$tmp_CFLAGS"
20486 tmp_CFLAGS="$tmp_CFLAGS"
20491 tmp_CFLAGS="$tmp_CFLAGS"
20496 tmp_CFLAGS="$tmp_CFLAGS"
20501 tmp_CFLAGS="$tmp_CFLAGS"
20506 tmp_CFLAGS="$tmp_CFLAGS"
20511 squeeze tmp_CPPFLAGS
20514 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
20516 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
20517 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
20518 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20522 tmp_compiler_works="unknown"
20523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20524 /* end confdefs.h. */
20539 if ac_fn_c_try_compile "$LINENO"; then :
20541 tmp_compiler_works="yes"
20545 tmp_compiler_works="no"
20547 sed 's/^/cc-fail: /' conftest.err >&6
20551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20552 if test "$tmp_compiler_works" = "yes"; then
20553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20554 /* end confdefs.h. */
20569 if ac_fn_c_try_link "$LINENO"; then :
20571 tmp_compiler_works="yes"
20575 tmp_compiler_works="no"
20577 sed 's/^/link-fail: /' conftest.err >&6
20581 rm -f core conftest.err conftest.$ac_objext \
20582 conftest$ac_exeext conftest.$ac_ext
20584 if test "x$cross_compiling" != "xyes" &&
20585 test "$tmp_compiler_works" = "yes"; then
20586 if test "$cross_compiling" = yes; then :
20587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20589 as_fn_error $? "cannot run test program while cross compiling
20590 See \`config.log' for more details" "$LINENO" 5; }
20592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593 /* end confdefs.h. */
20597 # include <stdlib.h>
20611 if ac_fn_c_try_run "$LINENO"; then :
20613 tmp_compiler_works="yes"
20617 tmp_compiler_works="no"
20619 echo "run-fail: test program exited with status $ac_status" >&6
20623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20624 conftest.$ac_objext conftest.beam conftest.$ac_ext
20628 if test "$tmp_compiler_works" = "yes"; then
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20631 $as_echo "yes" >&6; }
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20633 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20638 $as_echo "no" >&6; }
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20640 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
20641 CPPFLAGS="$tmp_save_CPPFLAGS"
20642 CFLAGS="$tmp_save_CFLAGS"
20652 if test "$compiler_id" != "unknown"; then
20654 tmp_save_CFLAGS="$CFLAGS"
20655 tmp_save_CPPFLAGS="$CPPFLAGS"
20658 tmp_CFLAGS="$CFLAGS"
20659 tmp_CPPFLAGS="$CPPFLAGS"
20662 for word1 in $tmp_CFLAGS; do
20663 ac_var_strip_word="no"
20664 for word2 in $flags_dbg_all; do
20665 if test "$word1" = "$word2"; then
20666 ac_var_strip_word="yes"
20669 if test "$ac_var_strip_word" = "no"; then
20670 ac_var_stripped="$ac_var_stripped $word1"
20673 tmp_CFLAGS="$ac_var_stripped"
20678 for word1 in $tmp_CPPFLAGS; do
20679 ac_var_strip_word="no"
20680 for word2 in $flags_dbg_all; do
20681 if test "$word1" = "$word2"; then
20682 ac_var_strip_word="yes"
20685 if test "$ac_var_strip_word" = "no"; then
20686 ac_var_stripped="$ac_var_stripped $word1"
20689 tmp_CPPFLAGS="$ac_var_stripped"
20690 squeeze tmp_CPPFLAGS
20693 if test "$want_debug" = "yes"; then
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
20695 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
20696 tmp_options="$flags_dbg_yes"
20698 if test "$want_debug" = "no"; then
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
20700 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
20701 tmp_options="$flags_dbg_off"
20704 if test "$flags_prefer_cppflags" = "yes"; then
20705 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
20706 CFLAGS="$tmp_CFLAGS"
20708 CPPFLAGS="$tmp_CPPFLAGS"
20709 CFLAGS="$tmp_CFLAGS $tmp_options"
20714 tmp_compiler_works="unknown"
20715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h. */
20731 if ac_fn_c_try_compile "$LINENO"; then :
20733 tmp_compiler_works="yes"
20737 tmp_compiler_works="no"
20739 sed 's/^/cc-fail: /' conftest.err >&6
20743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20744 if test "$tmp_compiler_works" = "yes"; then
20745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20746 /* end confdefs.h. */
20761 if ac_fn_c_try_link "$LINENO"; then :
20763 tmp_compiler_works="yes"
20767 tmp_compiler_works="no"
20769 sed 's/^/link-fail: /' conftest.err >&6
20773 rm -f core conftest.err conftest.$ac_objext \
20774 conftest$ac_exeext conftest.$ac_ext
20776 if test "x$cross_compiling" != "xyes" &&
20777 test "$tmp_compiler_works" = "yes"; then
20778 if test "$cross_compiling" = yes; then :
20779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20781 as_fn_error $? "cannot run test program while cross compiling
20782 See \`config.log' for more details" "$LINENO" 5; }
20784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h. */
20789 # include <stdlib.h>
20803 if ac_fn_c_try_run "$LINENO"; then :
20805 tmp_compiler_works="yes"
20809 tmp_compiler_works="no"
20811 echo "run-fail: test program exited with status $ac_status" >&6
20815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20816 conftest.$ac_objext conftest.beam conftest.$ac_ext
20820 if test "$tmp_compiler_works" = "yes"; then
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20823 $as_echo "yes" >&6; }
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
20825 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20830 $as_echo "no" >&6; }
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
20832 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
20833 CPPFLAGS="$tmp_save_CPPFLAGS"
20834 CFLAGS="$tmp_save_CFLAGS"
20843 if test "$compiler_id" != "unknown"; then
20845 tmp_save_CFLAGS="$CFLAGS"
20846 tmp_save_CPPFLAGS="$CPPFLAGS"
20849 tmp_CFLAGS="$CFLAGS"
20850 tmp_CPPFLAGS="$CPPFLAGS"
20851 honor_optimize_option="yes"
20854 if test "$want_optimize" = "assume_no" ||
20855 test "$want_optimize" = "assume_yes"; then
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
20857 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
20860 ac_var_match_word="no"
20861 for word1 in $tmp_CFLAGS; do
20862 for word2 in $flags_opt_all; do
20863 if test "$word1" = "$word2"; then
20864 ac_var_match_word="yes"
20869 if test "$ac_var_match_word" = "yes"; then
20871 honor_optimize_option="no"
20878 ac_var_match_word="no"
20879 for word1 in $tmp_CPPFLAGS; do
20880 for word2 in $flags_opt_all; do
20881 if test "$word1" = "$word2"; then
20882 ac_var_match_word="yes"
20887 if test "$ac_var_match_word" = "yes"; then
20889 honor_optimize_option="no"
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
20895 $as_echo "$honor_optimize_option" >&6; }
20896 if test "$honor_optimize_option" = "yes"; then
20897 if test "$want_optimize" = "assume_yes"; then
20898 want_optimize="yes"
20900 if test "$want_optimize" = "assume_no"; then
20906 if test "$honor_optimize_option" = "yes"; then
20909 for word1 in $tmp_CFLAGS; do
20910 ac_var_strip_word="no"
20911 for word2 in $flags_opt_all; do
20912 if test "$word1" = "$word2"; then
20913 ac_var_strip_word="yes"
20916 if test "$ac_var_strip_word" = "no"; then
20917 ac_var_stripped="$ac_var_stripped $word1"
20920 tmp_CFLAGS="$ac_var_stripped"
20925 for word1 in $tmp_CPPFLAGS; do
20926 ac_var_strip_word="no"
20927 for word2 in $flags_opt_all; do
20928 if test "$word1" = "$word2"; then
20929 ac_var_strip_word="yes"
20932 if test "$ac_var_strip_word" = "no"; then
20933 ac_var_stripped="$ac_var_stripped $word1"
20936 tmp_CPPFLAGS="$ac_var_stripped"
20937 squeeze tmp_CPPFLAGS
20939 if test "$want_optimize" = "yes"; then
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
20941 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
20942 tmp_options="$flags_opt_yes"
20944 if test "$want_optimize" = "no"; then
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
20946 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
20947 tmp_options="$flags_opt_off"
20949 if test "$flags_prefer_cppflags" = "yes"; then
20950 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
20951 CFLAGS="$tmp_CFLAGS"
20953 CPPFLAGS="$tmp_CPPFLAGS"
20954 CFLAGS="$tmp_CFLAGS $tmp_options"
20959 tmp_compiler_works="unknown"
20960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20961 /* end confdefs.h. */
20976 if ac_fn_c_try_compile "$LINENO"; then :
20978 tmp_compiler_works="yes"
20982 tmp_compiler_works="no"
20984 sed 's/^/cc-fail: /' conftest.err >&6
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989 if test "$tmp_compiler_works" = "yes"; then
20990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20991 /* end confdefs.h. */
21006 if ac_fn_c_try_link "$LINENO"; then :
21008 tmp_compiler_works="yes"
21012 tmp_compiler_works="no"
21014 sed 's/^/link-fail: /' conftest.err >&6
21018 rm -f core conftest.err conftest.$ac_objext \
21019 conftest$ac_exeext conftest.$ac_ext
21021 if test "x$cross_compiling" != "xyes" &&
21022 test "$tmp_compiler_works" = "yes"; then
21023 if test "$cross_compiling" = yes; then :
21024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21026 as_fn_error $? "cannot run test program while cross compiling
21027 See \`config.log' for more details" "$LINENO" 5; }
21029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21030 /* end confdefs.h. */
21034 # include <stdlib.h>
21048 if ac_fn_c_try_run "$LINENO"; then :
21050 tmp_compiler_works="yes"
21054 tmp_compiler_works="no"
21056 echo "run-fail: test program exited with status $ac_status" >&6
21060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21061 conftest.$ac_objext conftest.beam conftest.$ac_ext
21065 if test "$tmp_compiler_works" = "yes"; then
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21068 $as_echo "yes" >&6; }
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
21070 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21075 $as_echo "no" >&6; }
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
21077 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
21078 CPPFLAGS="$tmp_save_CPPFLAGS"
21079 CFLAGS="$tmp_save_CFLAGS"
21089 if test "$compiler_id" != "unknown"; then
21091 tmp_save_CPPFLAGS="$CPPFLAGS"
21092 tmp_save_CFLAGS="$CFLAGS"
21096 case "$compiler_id" in
21100 if test "$want_warnings" = "yes"; then
21101 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
21102 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
21103 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
21104 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
21105 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
21106 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
21107 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
21108 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
21109 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
21110 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
21111 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
21112 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
21113 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
21114 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
21115 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
21116 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
21117 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
21119 if test "$compiler_num" -ge "101"; then
21120 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
21127 if test "$want_warnings" = "yes"; then
21128 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
21134 if test "$want_warnings" = "yes"; then
21136 if test "x$cross_compiling" != "xyes" ||
21137 test "$compiler_num" -ge "300"; then
21138 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
21141 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
21143 if test "$compiler_num" -ge "104"; then
21144 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
21145 if test "x$cross_compiling" != "xyes" ||
21146 test "$compiler_num" -ge "300"; then
21147 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
21151 if test "$compiler_num" -ge "207"; then
21152 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
21153 if test "x$cross_compiling" != "xyes" ||
21154 test "$compiler_num" -ge "300"; then
21155 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
21156 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
21160 if test "$compiler_num" -ge "295"; then
21161 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
21164 if test "$compiler_num" -ge "296"; then
21165 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
21166 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
21167 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
21170 if test "$compiler_num" -ge "297"; then
21171 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
21174 if test "$compiler_num" -ge "300"; then
21175 tmp_CFLAGS="$tmp_CFLAGS"
21178 if test "$compiler_num" -ge "303"; then
21179 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
21182 if test "$compiler_num" -ge "304"; then
21183 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
21186 if test "$compiler_num" -ge "400"; then
21187 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
21190 if test "$compiler_num" -ge "402"; then
21191 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
21194 if test "$compiler_num" -ge "403"; then
21195 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
21196 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
21197 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
21198 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
21201 if test "$compiler_num" -ge "405"; then
21202 if test "$curl_cv_have_def__WIN32" = "yes"; then
21203 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
21209 if test "$compiler_num" -ge "300"; then
21210 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
21212 if test "x$cross_compiling" = "xyes"; then
21213 if test "$compiler_num" -ge "104"; then
21214 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
21216 if test "$compiler_num" -ge "207"; then
21217 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
21218 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
21226 if test "$want_warnings" = "yes"; then
21227 tmp_CFLAGS="$tmp_CFLAGS +w1"
21233 tmp_CFLAGS="$tmp_CFLAGS"
21238 if test "$want_warnings" = "yes"; then
21239 if test "$compiler_num" -gt "600"; then
21240 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
21241 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
21242 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
21243 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
21244 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
21245 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
21246 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
21247 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
21248 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
21249 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
21250 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
21253 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
21254 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
21255 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
21256 if test "$compiler_num" -ge "1000"; then
21257 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
21263 tmp_CFLAGS="$tmp_CFLAGS"
21268 if test "$want_warnings" = "yes"; then
21269 tmp_CFLAGS="$tmp_CFLAGS"
21275 if test "$want_warnings" = "yes"; then
21276 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
21282 if test "$want_warnings" = "yes"; then
21283 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
21284 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
21290 if test "$want_warnings" = "yes"; then
21291 tmp_CFLAGS="$tmp_CFLAGS -v"
21297 if test "$want_warnings" = "yes"; then
21298 tmp_CFLAGS="$tmp_CFLAGS -Wall"
21299 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
21300 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
21306 if test "$want_warnings" = "yes"; then
21307 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
21313 tmp_CFLAGS="$tmp_CFLAGS"
21318 squeeze tmp_CPPFLAGS
21321 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
21323 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
21324 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
21325 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21329 tmp_compiler_works="unknown"
21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21346 if ac_fn_c_try_compile "$LINENO"; then :
21348 tmp_compiler_works="yes"
21352 tmp_compiler_works="no"
21354 sed 's/^/cc-fail: /' conftest.err >&6
21358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21359 if test "$tmp_compiler_works" = "yes"; then
21360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21361 /* end confdefs.h. */
21376 if ac_fn_c_try_link "$LINENO"; then :
21378 tmp_compiler_works="yes"
21382 tmp_compiler_works="no"
21384 sed 's/^/link-fail: /' conftest.err >&6
21388 rm -f core conftest.err conftest.$ac_objext \
21389 conftest$ac_exeext conftest.$ac_ext
21391 if test "x$cross_compiling" != "xyes" &&
21392 test "$tmp_compiler_works" = "yes"; then
21393 if test "$cross_compiling" = yes; then :
21394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21396 as_fn_error $? "cannot run test program while cross compiling
21397 See \`config.log' for more details" "$LINENO" 5; }
21399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21400 /* end confdefs.h. */
21404 # include <stdlib.h>
21418 if ac_fn_c_try_run "$LINENO"; then :
21420 tmp_compiler_works="yes"
21424 tmp_compiler_works="no"
21426 echo "run-fail: test program exited with status $ac_status" >&6
21430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21431 conftest.$ac_objext conftest.beam conftest.$ac_ext
21435 if test "$tmp_compiler_works" = "yes"; then
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21438 $as_echo "yes" >&6; }
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21440 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21445 $as_echo "no" >&6; }
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21447 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
21448 CPPFLAGS="$tmp_save_CPPFLAGS"
21449 CFLAGS="$tmp_save_CFLAGS"
21458 if test "$compiler_id" = "INTEL_UNIX_C"; then
21460 if test "$compiler_num" -ge "1000"; then
21461 CFLAGS="$CFLAGS -shared-intel"
21462 elif test "$compiler_num" -ge "900"; then
21463 CFLAGS="$CFLAGS -i-dynamic"
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
21470 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
21471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21472 /* end confdefs.h. */
21479 force compilation error
21486 if ac_fn_c_try_compile "$LINENO"; then :
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21489 $as_echo "no" >&6; }
21490 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21495 $as_echo "yes" >&6; }
21498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
21502 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
21503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h. */
21507 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
21519 if ac_fn_c_try_compile "$LINENO"; then :
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21522 $as_echo "no" >&6; }
21523 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21528 $as_echo "yes" >&6; }
21531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
21535 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
21536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21537 /* end confdefs.h. */
21540 # include <stdlib.h>
21554 int j = rand(i[0]);
21563 if ac_fn_c_try_compile "$LINENO"; then :
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21566 $as_echo "no" >&6; }
21567 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21572 $as_echo "yes" >&6; }
21575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
21579 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
21580 supports_symbol_hiding="no"
21581 symbol_hiding_CFLAGS=""
21582 symbol_hiding_EXTERN=""
21585 case "$compiler_id" in
21587 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21588 tmp_CFLAGS="-fvisibility=hidden"
21589 supports_symbol_hiding="yes"
21592 if test "$compiler_num" -ge "304"; then
21593 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21594 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21595 tmp_CFLAGS="-fvisibility=hidden"
21596 supports_symbol_hiding="yes"
21601 if test "$compiler_num" -ge "900"; then
21602 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21603 tmp_save_CFLAGS="$CFLAGS"
21604 CFLAGS="$CFLAGS -fvisibility=hidden"
21605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606 /* end confdefs.h. */
21609 # include <stdio.h>
21614 printf("icc fvisibility bug test");
21621 if ac_fn_c_try_link "$LINENO"; then :
21623 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21624 tmp_CFLAGS="-fvisibility=hidden"
21625 supports_symbol_hiding="yes"
21628 rm -f core conftest.err conftest.$ac_objext \
21629 conftest$ac_exeext conftest.$ac_ext
21630 CFLAGS="$tmp_save_CFLAGS"
21635 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
21636 tmp_EXTERN="__global"
21637 tmp_CFLAGS="-xldscope=hidden"
21638 supports_symbol_hiding="yes"
21642 if test "$supports_symbol_hiding" = "yes"; then
21643 tmp_save_CFLAGS="$CFLAGS"
21644 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21647 /* end confdefs.h. */
21650 $tmp_EXTERN char *dummy(char *buff);
21651 char *dummy(char *buff)
21663 char *r = dummy(&b[0]);
21672 if ac_fn_c_try_compile "$LINENO"; then :
21674 supports_symbol_hiding="yes"
21675 if test -f conftest.err; then
21676 grep 'visibility' conftest.err >/dev/null
21677 if test "$?" -eq "0"; then
21678 supports_symbol_hiding="no"
21684 supports_symbol_hiding="no"
21686 sed 's/^/cc-src: /' conftest.$ac_ext >&6
21687 sed 's/^/cc-err: /' conftest.err >&6
21691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21692 CFLAGS="$tmp_save_CFLAGS"
21694 if test "$supports_symbol_hiding" = "yes"; then
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21696 $as_echo "yes" >&6; }
21697 symbol_hiding_CFLAGS="$tmp_CFLAGS"
21698 symbol_hiding_EXTERN="$tmp_EXTERN"
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21701 $as_echo "no" >&6; }
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
21709 $as_echo_n "checking for windows.h... " >&6; }
21710 if ${ac_cv_header_windows_h+:} false; then :
21711 $as_echo_n "(cached) " >&6
21714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21715 /* end confdefs.h. */
21719 #ifndef WIN32_LEAN_AND_MEAN
21720 #define WIN32_LEAN_AND_MEAN
21722 #include <windows.h>
21727 #if defined(__CYGWIN__) || defined(__CEGCC__)
21728 HAVE_WINDOWS_H shall not be defined.
21730 int dummy=2*WINVER;
21738 if ac_fn_c_try_compile "$LINENO"; then :
21740 ac_cv_header_windows_h="yes"
21744 ac_cv_header_windows_h="no"
21747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
21751 $as_echo "$ac_cv_header_windows_h" >&6; }
21752 case "$ac_cv_header_windows_h" in
21755 cat >>confdefs.h <<_ACEOF
21756 #define HAVE_WINDOWS_H 1
21760 cat >>confdefs.h <<_ACEOF
21761 #define WIN32_LEAN_AND_MEAN 1
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
21769 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
21770 if ${ac_cv_native_windows+:} false; then :
21771 $as_echo_n "(cached) " >&6
21774 if test "$ac_cv_header_windows_h" = "no"; then
21775 ac_cv_native_windows="no"
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h. */
21785 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
21786 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
21789 Not a native Windows build target.
21797 if ac_fn_c_try_compile "$LINENO"; then :
21799 ac_cv_native_windows="yes"
21803 ac_cv_native_windows="no"
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
21811 $as_echo "$ac_cv_native_windows" >&6; }
21812 if test "x$ac_cv_native_windows" = xyes; then
21813 DOING_NATIVE_WINDOWS_TRUE=
21814 DOING_NATIVE_WINDOWS_FALSE='#'
21816 DOING_NATIVE_WINDOWS_TRUE='#'
21817 DOING_NATIVE_WINDOWS_FALSE=
21821 case X-"$ac_cv_native_windows" in
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
21825 $as_echo_n "checking for winsock.h... " >&6; }
21826 if ${ac_cv_header_winsock_h+:} false; then :
21827 $as_echo_n "(cached) " >&6
21830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21835 #ifndef WIN32_LEAN_AND_MEAN
21836 #define WIN32_LEAN_AND_MEAN
21838 #include <windows.h>
21839 #include <winsock.h>
21844 #if defined(__CYGWIN__) || defined(__CEGCC__)
21845 HAVE_WINSOCK_H shall not be defined.
21847 int dummy=WSACleanup();
21855 if ac_fn_c_try_compile "$LINENO"; then :
21857 ac_cv_header_winsock_h="yes"
21861 ac_cv_header_winsock_h="no"
21864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
21868 $as_echo "$ac_cv_header_winsock_h" >&6; }
21869 case "$ac_cv_header_winsock_h" in
21872 cat >>confdefs.h <<_ACEOF
21873 #define HAVE_WINSOCK_H 1
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
21881 $as_echo_n "checking for winsock2.h... " >&6; }
21882 if ${ac_cv_header_winsock2_h+:} false; then :
21883 $as_echo_n "(cached) " >&6
21886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21887 /* end confdefs.h. */
21891 #ifndef WIN32_LEAN_AND_MEAN
21892 #define WIN32_LEAN_AND_MEAN
21894 #include <windows.h>
21895 #include <winsock2.h>
21900 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21901 HAVE_WINSOCK2_H shall not be defined.
21903 int dummy=2*IPPROTO_ESP;
21911 if ac_fn_c_try_compile "$LINENO"; then :
21913 ac_cv_header_winsock2_h="yes"
21917 ac_cv_header_winsock2_h="no"
21920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
21924 $as_echo "$ac_cv_header_winsock2_h" >&6; }
21925 case "$ac_cv_header_winsock2_h" in
21928 cat >>confdefs.h <<_ACEOF
21929 #define HAVE_WINSOCK2_H 1
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
21937 $as_echo_n "checking for ws2tcpip.h... " >&6; }
21938 if ${ac_cv_header_ws2tcpip_h+:} false; then :
21939 $as_echo_n "(cached) " >&6
21942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21943 /* end confdefs.h. */
21947 #ifndef WIN32_LEAN_AND_MEAN
21948 #define WIN32_LEAN_AND_MEAN
21950 #include <windows.h>
21951 #include <winsock2.h>
21952 #include <ws2tcpip.h>
21957 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21958 HAVE_WS2TCPIP_H shall not be defined.
21960 int dummy=2*IP_PKTINFO;
21968 if ac_fn_c_try_compile "$LINENO"; then :
21970 ac_cv_header_ws2tcpip_h="yes"
21974 ac_cv_header_ws2tcpip_h="no"
21977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
21981 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
21982 case "$ac_cv_header_ws2tcpip_h" in
21985 cat >>confdefs.h <<_ACEOF
21986 #define HAVE_WS2TCPIP_H 1
21992 CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600"
21995 ac_cv_header_winsock_h="no"
21996 ac_cv_header_winsock2_h="no"
21997 ac_cv_header_ws2tcpip_h="no"
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22004 $as_echo_n "checking if X/Open network library is required... " >&6; }
22005 tst_lib_xnet_required="no"
22006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22007 /* end confdefs.h. */
22012 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22014 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22017 force compilation error
22023 if ac_fn_c_try_compile "$LINENO"; then :
22025 tst_lib_xnet_required="yes"
22026 LIBS="$LIBS -lxnet"
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22031 $as_echo "$tst_lib_xnet_required" >&6; }
22034 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22035 if test "x$ac_cv_func_gethostbyname" = xyes; then :
22036 HAVE_GETHOSTBYNAME="1"
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22040 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22041 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
22042 $as_echo_n "(cached) " >&6
22044 ac_check_lib_save_LIBS=$LIBS
22046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h. */
22053 char gethostbyname ();
22056 return gethostbyname ();
22061 if ac_fn_c_try_link "$LINENO"; then :
22062 ac_cv_lib_nsl_gethostbyname=yes
22064 ac_cv_lib_nsl_gethostbyname=no
22066 rm -f core conftest.err conftest.$ac_objext \
22067 conftest$ac_exeext conftest.$ac_ext
22068 LIBS=$ac_check_lib_save_LIBS
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22071 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22072 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
22073 HAVE_GETHOSTBYNAME="1"
22082 if test "$HAVE_GETHOSTBYNAME" != "1"
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22085 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
22086 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
22087 $as_echo_n "(cached) " >&6
22089 ac_check_lib_save_LIBS=$LIBS
22090 LIBS="-lsocket $LIBS"
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22098 char gethostbyname ();
22101 return gethostbyname ();
22106 if ac_fn_c_try_link "$LINENO"; then :
22107 ac_cv_lib_socket_gethostbyname=yes
22109 ac_cv_lib_socket_gethostbyname=no
22111 rm -f core conftest.err conftest.$ac_objext \
22112 conftest$ac_exeext conftest.$ac_ext
22113 LIBS=$ac_check_lib_save_LIBS
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22116 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
22117 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
22118 HAVE_GETHOSTBYNAME="1"
22119 LIBS="$LIBS -lsocket"
22125 if test "$HAVE_GETHOSTBYNAME" != "1"
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22128 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
22129 my_ac_save_LIBS=$LIBS
22130 LIBS="-lnsl -lsocket $LIBS"
22131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22132 /* end confdefs.h. */
22146 if ac_fn_c_try_link "$LINENO"; then :
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22149 $as_echo "yes" >&6; }
22150 HAVE_GETHOSTBYNAME="1"
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22155 $as_echo "no" >&6; }
22156 LIBS=$my_ac_save_LIBS
22159 rm -f core conftest.err conftest.$ac_objext \
22160 conftest$ac_exeext conftest.$ac_ext
22163 if test "$HAVE_GETHOSTBYNAME" != "1"
22165 if test "$ac_cv_header_windows_h" = "yes"; then
22166 if test "$ac_cv_header_winsock_h" = "yes"; then
22169 winsock_LIB="-lwinsock"
22172 winsock_LIB="-lwsock32"
22176 if test "$ac_cv_header_winsock2_h" = "yes"; then
22177 winsock_LIB="-lws2_32"
22179 if test ! -z "$winsock_LIB"; then
22180 my_ac_save_LIBS=$LIBS
22181 LIBS="$winsock_LIB $LIBS"
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22183 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
22184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22185 /* end confdefs.h. */
22188 #ifdef HAVE_WINDOWS_H
22189 #ifndef WIN32_LEAN_AND_MEAN
22190 #define WIN32_LEAN_AND_MEAN
22192 #include <windows.h>
22193 #ifdef HAVE_WINSOCK2_H
22194 #include <winsock2.h>
22196 #ifdef HAVE_WINSOCK_H
22197 #include <winsock.h>
22205 gethostbyname("www.dummysite.com");
22212 if ac_fn_c_try_link "$LINENO"; then :
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22215 $as_echo "yes" >&6; }
22216 HAVE_GETHOSTBYNAME="1"
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22221 $as_echo "no" >&6; }
22223 LIBS=$my_ac_save_LIBS
22226 rm -f core conftest.err conftest.$ac_objext \
22227 conftest$ac_exeext conftest.$ac_ext
22232 if test "$HAVE_GETHOSTBYNAME" != "1"
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22235 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
22236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22237 /* end confdefs.h. */
22240 /* Older Minix versions may need <net/gen/netdb.h> here instead */
22246 gethostbyname("www.dummysite.com");
22253 if ac_fn_c_try_link "$LINENO"; then :
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22256 $as_echo "yes" >&6; }
22257 HAVE_GETHOSTBYNAME="1"
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22262 $as_echo "no" >&6; }
22265 rm -f core conftest.err conftest.$ac_objext \
22266 conftest$ac_exeext conftest.$ac_ext
22269 if test "$HAVE_GETHOSTBYNAME" != "1"
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22272 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
22273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h. */
22283 gethostbyname("www.dummysite.com");
22290 if ac_fn_c_try_link "$LINENO"; then :
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22293 $as_echo "yes" >&6; }
22294 HAVE_GETHOSTBYNAME="1"
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22299 $as_echo "no" >&6; }
22302 rm -f core conftest.err conftest.$ac_objext \
22303 conftest$ac_exeext conftest.$ac_ext
22306 if test "$HAVE_GETHOSTBYNAME" != "1"
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
22309 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
22310 if ${ac_cv_lib_net_gethostbyname+:} false; then :
22311 $as_echo_n "(cached) " >&6
22313 ac_check_lib_save_LIBS=$LIBS
22315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22316 /* end confdefs.h. */
22322 char gethostbyname ();
22325 return gethostbyname ();
22330 if ac_fn_c_try_link "$LINENO"; then :
22331 ac_cv_lib_net_gethostbyname=yes
22333 ac_cv_lib_net_gethostbyname=no
22335 rm -f core conftest.err conftest.$ac_objext \
22336 conftest$ac_exeext conftest.$ac_ext
22337 LIBS=$ac_check_lib_save_LIBS
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
22340 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
22341 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
22342 HAVE_GETHOSTBYNAME="1"
22350 if test "$HAVE_GETHOSTBYNAME" != "1"; then
22351 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22354 if test "x$host_vendor" = "xapple"; then :
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5
22357 $as_echo_n "checking for library containing res_servicename... " >&6; }
22358 if ${ac_cv_search_res_servicename+:} false; then :
22359 $as_echo_n "(cached) " >&6
22361 ac_func_search_save_LIBS=$LIBS
22362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22363 /* end confdefs.h. */
22369 char res_servicename ();
22372 return res_servicename ();
22377 for ac_lib in '' resolv; do
22378 if test -z "$ac_lib"; then
22379 ac_res="none required"
22382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22384 if ac_fn_c_try_link "$LINENO"; then :
22385 ac_cv_search_res_servicename=$ac_res
22387 rm -f core conftest.err conftest.$ac_objext \
22389 if ${ac_cv_search_res_servicename+:} false; then :
22393 if ${ac_cv_search_res_servicename+:} false; then :
22396 ac_cv_search_res_servicename=no
22398 rm conftest.$ac_ext
22399 LIBS=$ac_func_search_save_LIBS
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5
22402 $as_echo "$ac_cv_search_res_servicename" >&6; }
22403 ac_res=$ac_cv_search_res_servicename
22404 if test "$ac_res" != no; then :
22405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22408 $as_echo "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
22413 as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5
22420 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22421 if test "x$ac_cv_func_strcasecmp" = xyes; then :
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
22425 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
22426 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
22427 $as_echo_n "(cached) " >&6
22429 ac_check_lib_save_LIBS=$LIBS
22430 LIBS="-lresolve $LIBS"
22431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22432 /* end confdefs.h. */
22438 char strcasecmp ();
22441 return strcasecmp ();
22446 if ac_fn_c_try_link "$LINENO"; then :
22447 ac_cv_lib_resolve_strcasecmp=yes
22449 ac_cv_lib_resolve_strcasecmp=no
22451 rm -f core conftest.err conftest.$ac_objext \
22452 conftest$ac_exeext conftest.$ac_ext
22453 LIBS=$ac_check_lib_save_LIBS
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
22456 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
22457 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
22458 cat >>confdefs.h <<_ACEOF
22459 #define HAVE_LIBRESOLVE 1
22462 LIBS="-lresolve $LIBS"
22469 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
22471 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
22472 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
22473 $as_echo_n "(cached) " >&6
22475 ac_check_lib_save_LIBS=$LIBS
22476 LIBS="-lresolve -lnsl $LIBS"
22477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22478 /* end confdefs.h. */
22484 char strcasecmp ();
22487 return strcasecmp ();
22492 if ac_fn_c_try_link "$LINENO"; then :
22493 ac_cv_lib_resolve_strcasecmp=yes
22495 ac_cv_lib_resolve_strcasecmp=no
22497 rm -f core conftest.err conftest.$ac_objext \
22498 conftest$ac_exeext conftest.$ac_ext
22499 LIBS=$ac_check_lib_save_LIBS
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
22502 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
22503 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
22504 LIBS="-lresolve $LIBS"
22508 ac_cv_func_strcasecmp="no"
22511 cares_includes_winsock2="\
22512 /* includes start */
22513 #ifdef HAVE_WINDOWS_H
22514 # ifndef WIN32_LEAN_AND_MEAN
22515 # define WIN32_LEAN_AND_MEAN
22517 # include <windows.h>
22518 # ifdef HAVE_WINSOCK2_H
22519 # include <winsock2.h>
22521 # ifdef HAVE_WINSOCK_H
22522 # include <winsock.h>
22526 /* includes end */"
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22529 $as_echo_n "checking for windows.h... " >&6; }
22530 if ${ac_cv_header_windows_h+:} false; then :
22531 $as_echo_n "(cached) " >&6
22534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22535 /* end confdefs.h. */
22539 #ifndef WIN32_LEAN_AND_MEAN
22540 #define WIN32_LEAN_AND_MEAN
22542 #include <windows.h>
22547 #if defined(__CYGWIN__) || defined(__CEGCC__)
22548 HAVE_WINDOWS_H shall not be defined.
22550 int dummy=2*WINVER;
22558 if ac_fn_c_try_compile "$LINENO"; then :
22560 ac_cv_header_windows_h="yes"
22564 ac_cv_header_windows_h="no"
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
22571 $as_echo "$ac_cv_header_windows_h" >&6; }
22572 case "$ac_cv_header_windows_h" in
22575 cat >>confdefs.h <<_ACEOF
22576 #define HAVE_WINDOWS_H 1
22580 cat >>confdefs.h <<_ACEOF
22581 #define WIN32_LEAN_AND_MEAN 1
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
22589 $as_echo_n "checking for winsock.h... " >&6; }
22590 if ${ac_cv_header_winsock_h+:} false; then :
22591 $as_echo_n "(cached) " >&6
22594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22595 /* end confdefs.h. */
22599 #ifndef WIN32_LEAN_AND_MEAN
22600 #define WIN32_LEAN_AND_MEAN
22602 #include <windows.h>
22603 #include <winsock.h>
22608 #if defined(__CYGWIN__) || defined(__CEGCC__)
22609 HAVE_WINSOCK_H shall not be defined.
22611 int dummy=WSACleanup();
22619 if ac_fn_c_try_compile "$LINENO"; then :
22621 ac_cv_header_winsock_h="yes"
22625 ac_cv_header_winsock_h="no"
22628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
22632 $as_echo "$ac_cv_header_winsock_h" >&6; }
22633 case "$ac_cv_header_winsock_h" in
22636 cat >>confdefs.h <<_ACEOF
22637 #define HAVE_WINSOCK_H 1
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22645 $as_echo_n "checking for winsock2.h... " >&6; }
22646 if ${ac_cv_header_winsock2_h+:} false; then :
22647 $as_echo_n "(cached) " >&6
22650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22651 /* end confdefs.h. */
22655 #ifndef WIN32_LEAN_AND_MEAN
22656 #define WIN32_LEAN_AND_MEAN
22658 #include <windows.h>
22659 #include <winsock2.h>
22664 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22665 HAVE_WINSOCK2_H shall not be defined.
22667 int dummy=2*IPPROTO_ESP;
22675 if ac_fn_c_try_compile "$LINENO"; then :
22677 ac_cv_header_winsock2_h="yes"
22681 ac_cv_header_winsock2_h="no"
22684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
22688 $as_echo "$ac_cv_header_winsock2_h" >&6; }
22689 case "$ac_cv_header_winsock2_h" in
22692 cat >>confdefs.h <<_ACEOF
22693 #define HAVE_WINSOCK2_H 1
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
22702 $as_echo_n "checking for connect in libraries... " >&6; }
22703 tst_connect_save_LIBS="$LIBS"
22704 tst_connect_need_LIBS="unknown"
22705 for tst_lib in '' '-lsocket' ; do
22706 if test "$tst_connect_need_LIBS" = "unknown"; then
22707 LIBS="$tst_lib $tst_connect_save_LIBS"
22708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22709 /* end confdefs.h. */
22712 $cares_includes_winsock2
22713 #ifndef HAVE_WINDOWS_H
22714 int connect(int, void*, int);
22720 if(0 != connect(0, 0, 0))
22728 if ac_fn_c_try_link "$LINENO"; then :
22730 tst_connect_need_LIBS="$tst_lib"
22733 rm -f core conftest.err conftest.$ac_objext \
22734 conftest$ac_exeext conftest.$ac_ext
22737 LIBS="$tst_connect_save_LIBS"
22739 case X-"$tst_connect_need_LIBS" in
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
22742 $as_echo "cannot find connect" >&6; }
22743 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22747 $as_echo "yes" >&6; }
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
22751 $as_echo "$tst_connect_need_LIBS" >&6; }
22752 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
22757 if test "x$host_vendor" = "xapple"; then :
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iOS minimum version 10 or later" >&5
22760 $as_echo_n "checking for iOS minimum version 10 or later... " >&6; }
22761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22762 /* end confdefs.h. */
22766 #include <TargetConditionals.h>
22771 #if TARGET_OS_IPHONE == 0 || __IPHONE_OS_VERSION_MIN_REQUIRED < 100000
22772 #error Not iOS 10 or later
22781 if ac_fn_c_try_compile "$LINENO"; then :
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22784 $as_echo "yes" >&6; }
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22790 $as_echo "no" >&6; }
22793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797 if test "x$host_vendor" = "xapple"; then :
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macOS minimum version 10.12 or later" >&5
22800 $as_echo_n "checking for macOS minimum version 10.12 or later... " >&6; }
22801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22802 /* end confdefs.h. */
22806 #include <TargetConditionals.h>
22811 #ifndef MAC_OS_X_VERSION_10_12
22812 # define MAC_OS_X_VERSION_10_12 101200
22814 #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
22815 #error Not macOS 10.12 or later
22824 if ac_fn_c_try_compile "$LINENO"; then :
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22827 $as_echo "yes" >&6; }
22828 ac_cv_macos_10_12="yes"
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22833 $as_echo "no" >&6; }
22836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22840 if test "x$host_vendor" != "xapple" || test "x$ac_cv_ios_10" = "xyes" || test "x$ac_cv_macos_10_12" = "xyes"; then
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22842 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22843 if ${ac_cv_header_time+:} false; then :
22844 $as_echo_n "(cached) " >&6
22846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22847 /* end confdefs.h. */
22848 #include <sys/types.h>
22849 #include <sys/time.h>
22854 if ((struct tm *) 0)
22860 if ac_fn_c_try_compile "$LINENO"; then :
22861 ac_cv_header_time=yes
22863 ac_cv_header_time=no
22865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22868 $as_echo "$ac_cv_header_time" >&6; }
22869 if test $ac_cv_header_time = yes; then
22871 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22876 for ac_header in sys/types.h sys/time.h time.h
22878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22879 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22881 cat >>confdefs.h <<_ACEOF
22882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
22890 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892 /* end confdefs.h. */
22895 #ifdef HAVE_SYS_TYPES_H
22896 #include <sys/types.h>
22898 #ifdef HAVE_SYS_TIME_H
22899 #include <sys/time.h>
22900 #ifdef TIME_WITH_SYS_TIME
22912 struct timespec ts;
22913 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22920 if ac_fn_c_try_compile "$LINENO"; then :
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22923 $as_echo "yes" >&6; }
22924 ac_cv_func_clock_gettime="yes"
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22929 $as_echo "no" >&6; }
22930 ac_cv_func_clock_gettime="no"
22933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 if test "$ac_cv_func_clock_gettime" = "yes"; then
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
22940 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
22942 curl_cv_save_LIBS="$LIBS"
22943 curl_cv_gclk_LIBS="unknown"
22945 for x_xlibs in '' '-lrt' '-lposix4' ; do
22946 if test "$curl_cv_gclk_LIBS" = "unknown"; then
22947 if test -z "$x_xlibs"; then
22948 LIBS="$curl_cv_save_LIBS"
22950 LIBS="$x_xlibs $curl_cv_save_LIBS"
22952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22953 /* end confdefs.h. */
22956 #ifdef HAVE_SYS_TYPES_H
22957 #include <sys/types.h>
22959 #ifdef HAVE_SYS_TIME_H
22960 #include <sys/time.h>
22961 #ifdef TIME_WITH_SYS_TIME
22973 struct timespec ts;
22974 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22981 if ac_fn_c_try_link "$LINENO"; then :
22983 curl_cv_gclk_LIBS="$x_xlibs"
22986 rm -f core conftest.err conftest.$ac_objext \
22987 conftest$ac_exeext conftest.$ac_ext
22991 LIBS="$curl_cv_save_LIBS"
22993 case X-"$curl_cv_gclk_LIBS" in
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
22996 $as_echo "cannot find clock_gettime" >&6; }
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22998 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22999 ac_cv_func_clock_gettime="no"
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23003 $as_echo "no additional lib required" >&6; }
23004 ac_cv_func_clock_gettime="yes"
23007 if test -z "$curl_cv_save_LIBS"; then
23008 LIBS="$curl_cv_gclk_LIBS"
23010 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
23013 $as_echo "$curl_cv_gclk_LIBS" >&6; }
23014 ac_cv_func_clock_gettime="yes"
23018 if test "x$cross_compiling" != "xyes" &&
23019 test "$ac_cv_func_clock_gettime" = "yes"; then
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
23021 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
23022 if test "$cross_compiling" = yes; then :
23023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23025 as_fn_error $? "cannot run test program while cross compiling
23026 See \`config.log' for more details" "$LINENO" 5; }
23028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h. */
23032 #ifdef HAVE_STDLIB_H
23033 #include <stdlib.h>
23035 #ifdef HAVE_SYS_TYPES_H
23036 #include <sys/types.h>
23038 #ifdef HAVE_SYS_TIME_H
23039 #include <sys/time.h>
23040 #ifdef TIME_WITH_SYS_TIME
23052 struct timespec ts;
23053 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23063 if ac_fn_c_try_run "$LINENO"; then :
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23066 $as_echo "yes" >&6; }
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23071 $as_echo "no" >&6; }
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23073 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23074 ac_cv_func_clock_gettime="no"
23075 LIBS="$curl_cv_save_LIBS"
23078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23079 conftest.$ac_objext conftest.beam conftest.$ac_ext
23084 case "$ac_cv_func_clock_gettime" in
23087 cat >>confdefs.h <<_ACEOF
23088 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
23100 $as_echo_n "checking whether to use libgcc... " >&6; }
23101 # Check whether --enable-libgcc was given.
23102 if test "${enable_libgcc+set}" = set; then :
23103 enableval=$enable_libgcc; case "$enableval" in
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23107 $as_echo "yes" >&6; }
23109 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23110 $as_echo "no" >&6; }
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23115 $as_echo "no" >&6; }
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23125 $as_echo_n "checking for ANSI C header files... " >&6; }
23126 if ${ac_cv_header_stdc+:} false; then :
23127 $as_echo_n "(cached) " >&6
23129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130 /* end confdefs.h. */
23131 #include <stdlib.h>
23132 #include <stdarg.h>
23133 #include <string.h>
23143 if ac_fn_c_try_compile "$LINENO"; then :
23144 ac_cv_header_stdc=yes
23146 ac_cv_header_stdc=no
23148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23150 if test $ac_cv_header_stdc = yes; then
23151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153 /* end confdefs.h. */
23154 #include <string.h>
23157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23158 $EGREP "memchr" >/dev/null 2>&1; then :
23161 ac_cv_header_stdc=no
23167 if test $ac_cv_header_stdc = yes; then
23168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23170 /* end confdefs.h. */
23171 #include <stdlib.h>
23174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23175 $EGREP "free" >/dev/null 2>&1; then :
23178 ac_cv_header_stdc=no
23184 if test $ac_cv_header_stdc = yes; then
23185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23186 if test "$cross_compiling" = yes; then :
23189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23190 /* end confdefs.h. */
23192 #include <stdlib.h>
23193 #if ((' ' & 0x0FF) == 0x020)
23194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23197 # define ISLOWER(c) \
23198 (('a' <= (c) && (c) <= 'i') \
23199 || ('j' <= (c) && (c) <= 'r') \
23200 || ('s' <= (c) && (c) <= 'z'))
23201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23209 for (i = 0; i < 256; i++)
23210 if (XOR (islower (i), ISLOWER (i))
23211 || toupper (i) != TOUPPER (i))
23216 if ac_fn_c_try_run "$LINENO"; then :
23219 ac_cv_header_stdc=no
23221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23222 conftest.$ac_objext conftest.beam conftest.$ac_ext
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23228 $as_echo "$ac_cv_header_stdc" >&6; }
23229 if test $ac_cv_header_stdc = yes; then
23231 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
23238 $as_echo_n "checking for malloc.h... " >&6; }
23239 if ${ac_cv_header_malloc_h+:} false; then :
23240 $as_echo_n "(cached) " >&6
23243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23244 /* end confdefs.h. */
23247 #include <malloc.h>
23252 void *p = malloc(10);
23253 void *q = calloc(10,10);
23262 if ac_fn_c_try_compile "$LINENO"; then :
23264 ac_cv_header_malloc_h="yes"
23268 ac_cv_header_malloc_h="no"
23271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
23275 $as_echo "$ac_cv_header_malloc_h" >&6; }
23276 if test "$ac_cv_header_malloc_h" = "yes"; then
23278 cat >>confdefs.h <<_ACEOF
23279 #define HAVE_MALLOC_H 1
23283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23284 /* end confdefs.h. */
23287 #include <stdlib.h>
23292 void *p = malloc(10);
23293 void *q = calloc(10,10);
23302 if ac_fn_c_try_compile "$LINENO"; then :
23304 curl_cv_need_header_malloc_h="no"
23308 curl_cv_need_header_malloc_h="yes"
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23313 case "$curl_cv_need_header_malloc_h" in
23316 cat >>confdefs.h <<_ACEOF
23317 #define NEED_MALLOC_H 1
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
23326 $as_echo_n "checking for memory.h... " >&6; }
23327 if ${ac_cv_header_memory_h+:} false; then :
23328 $as_echo_n "(cached) " >&6
23331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23332 /* end confdefs.h. */
23335 #include <memory.h>
23340 void *p = malloc(10);
23341 void *q = calloc(10,10);
23350 if ac_fn_c_try_compile "$LINENO"; then :
23352 ac_cv_header_memory_h="yes"
23356 ac_cv_header_memory_h="no"
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
23363 $as_echo "$ac_cv_header_memory_h" >&6; }
23364 if test "$ac_cv_header_memory_h" = "yes"; then
23366 cat >>confdefs.h <<_ACEOF
23367 #define HAVE_MEMORY_H 1
23371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23372 /* end confdefs.h. */
23375 #include <stdlib.h>
23380 void *p = malloc(10);
23381 void *q = calloc(10,10);
23390 if ac_fn_c_try_compile "$LINENO"; then :
23392 curl_cv_need_header_memory_h="no"
23396 curl_cv_need_header_memory_h="yes"
23399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23401 case "$curl_cv_need_header_memory_h" in
23404 cat >>confdefs.h <<_ACEOF
23405 #define NEED_MEMORY_H 1
23413 for ac_header in sys/types.h \
23432 arpa/nameser_compat.h \
23435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23436 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23437 #ifdef HAVE_SYS_TYPES_H
23438 #include <sys/types.h>
23440 #ifdef HAVE_SYS_TIME_H
23441 #include <sys/time.h>
23443 #ifdef HAVE_ARPA_NAMESER_H
23444 #include <arpa/nameser.h>
23447 #ifdef HAVE_SYS_SOCKET_H
23448 #include <sys/socket.h>
23450 #ifdef HAVE_NETINET_IN_H
23451 #include <netinet/in.h>
23456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23457 cat >>confdefs.h <<_ACEOF
23458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23467 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23468 if ${ac_cv_c_const+:} false; then :
23469 $as_echo_n "(cached) " >&6
23471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23472 /* end confdefs.h. */
23477 #ifndef __cplusplus
23478 /* Ultrix mips cc rejects this sort of thing. */
23479 typedef int charset[2];
23480 const charset cs = { 0, 0 };
23481 /* SunOS 4.1.1 cc rejects this. */
23482 char const *const *pcpcc;
23484 /* NEC SVR4.0.2 mips cc rejects this. */
23485 struct point {int x, y;};
23486 static struct point const zero = {0,0};
23487 /* AIX XL C 1.02.0.0 rejects this.
23488 It does not let you subtract one const X* pointer from another in
23489 an arm of an if-expression whose if-part is not a constant
23491 const char *g = "string";
23492 pcpcc = &g + (g ? g-g : 0);
23493 /* HPUX 7.0 cc rejects these. */
23495 ppc = (char**) pcpcc;
23496 pcpcc = (char const *const *) ppc;
23497 { /* SCO 3.2v4 cc rejects this sort of thing. */
23500 char const *s = 0 ? (char *) 0 : (char const *) 0;
23505 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23506 int x[] = {25, 17};
23507 const int *foo = &x[0];
23510 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23511 typedef const int *iptr;
23515 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23516 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23517 struct s { int j; const int *ap[3]; } bx;
23518 struct s *b = &bx; b->j = 5;
23520 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23521 const int foo = 10;
23522 if (!foo) return 0;
23524 return !cs[0] && !zero.x;
23531 if ac_fn_c_try_compile "$LINENO"; then :
23536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23539 $as_echo "$ac_cv_c_const" >&6; }
23540 if test $ac_cv_c_const = no; then
23542 $as_echo "#define const /**/" >>confdefs.h
23546 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23547 if test "x$ac_cv_type_size_t" = xyes; then :
23551 cat >>confdefs.h <<_ACEOF
23552 #define size_t unsigned int
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23558 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23559 if ${ac_cv_header_time+:} false; then :
23560 $as_echo_n "(cached) " >&6
23562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23563 /* end confdefs.h. */
23564 #include <sys/types.h>
23565 #include <sys/time.h>
23570 if ((struct tm *) 0)
23576 if ac_fn_c_try_compile "$LINENO"; then :
23577 ac_cv_header_time=yes
23579 ac_cv_header_time=no
23581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23584 $as_echo "$ac_cv_header_time" >&6; }
23585 if test $ac_cv_header_time = yes; then
23587 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23592 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
23594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23595 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23596 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23597 cat >>confdefs.h <<_ACEOF
23598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
23606 $as_echo_n "checking for struct timeval... " >&6; }
23607 if ${ac_cv_struct_timeval+:} false; then :
23608 $as_echo_n "(cached) " >&6
23611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23612 /* end confdefs.h. */
23616 #ifdef HAVE_WINDOWS_H
23617 #ifndef WIN32_LEAN_AND_MEAN
23618 #define WIN32_LEAN_AND_MEAN
23620 #include <windows.h>
23621 #ifdef HAVE_WINSOCK2_H
23622 #include <winsock2.h>
23624 #ifdef HAVE_WINSOCK_H
23625 #include <winsock.h>
23629 #ifdef HAVE_SYS_TYPES_H
23630 #include <sys/types.h>
23632 #ifdef HAVE_SYS_TIME_H
23633 #include <sys/time.h>
23634 #ifdef TIME_WITH_SYS_TIME
23642 #ifdef HAVE_SYS_SOCKET_H
23643 #include <sys/socket.h>
23658 if ac_fn_c_try_compile "$LINENO"; then :
23660 ac_cv_struct_timeval="yes"
23664 ac_cv_struct_timeval="no"
23667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
23671 $as_echo "$ac_cv_struct_timeval" >&6; }
23672 case "$ac_cv_struct_timeval" in
23675 cat >>confdefs.h <<_ACEOF
23676 #define HAVE_STRUCT_TIMEVAL 1
23683 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
23684 if test "x$ac_cv_type_long_long" = xyes; then :
23686 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
23693 if test "xyes" = "x$longlong"; then
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
23695 $as_echo_n "checking if numberLL works... " >&6; }
23696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23697 /* end confdefs.h. */
23704 long long val = 1000LL;
23711 if ac_fn_c_try_compile "$LINENO"; then :
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23714 $as_echo "yes" >&6; }
23716 $as_echo "#define HAVE_LL 1" >>confdefs.h
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23722 $as_echo "no" >&6; }
23725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23729 # check for ssize_t
23730 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23731 if test "x$ac_cv_type_ssize_t" = xyes; then :
23732 CARES_TYPEOF_ARES_SSIZE_T=ssize_t
23734 CARES_TYPEOF_ARES_SSIZE_T=int
23739 cat >>confdefs.h <<_ACEOF
23740 #define CARES_TYPEOF_ARES_SSIZE_T ${CARES_TYPEOF_ARES_SSIZE_T}
23745 # check for bool type
23746 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
23747 #ifdef HAVE_SYS_TYPES_H
23748 #include <sys/types.h>
23750 #ifdef HAVE_STDBOOL_H
23751 #include <stdbool.h>
23755 if test "x$ac_cv_type_bool" = xyes; then :
23758 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
23765 cares_includes_ws2tcpip="\
23766 /* includes start */
23767 #ifdef HAVE_WINDOWS_H
23768 # ifndef WIN32_LEAN_AND_MEAN
23769 # define WIN32_LEAN_AND_MEAN
23771 # include <windows.h>
23772 # ifdef HAVE_WINSOCK2_H
23773 # include <winsock2.h>
23774 # ifdef HAVE_WS2TCPIP_H
23775 # include <ws2tcpip.h>
23779 /* includes end */"
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
23782 $as_echo_n "checking for windows.h... " >&6; }
23783 if ${ac_cv_header_windows_h+:} false; then :
23784 $as_echo_n "(cached) " >&6
23787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23788 /* end confdefs.h. */
23792 #ifndef WIN32_LEAN_AND_MEAN
23793 #define WIN32_LEAN_AND_MEAN
23795 #include <windows.h>
23800 #if defined(__CYGWIN__) || defined(__CEGCC__)
23801 HAVE_WINDOWS_H shall not be defined.
23803 int dummy=2*WINVER;
23811 if ac_fn_c_try_compile "$LINENO"; then :
23813 ac_cv_header_windows_h="yes"
23817 ac_cv_header_windows_h="no"
23820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
23824 $as_echo "$ac_cv_header_windows_h" >&6; }
23825 case "$ac_cv_header_windows_h" in
23828 cat >>confdefs.h <<_ACEOF
23829 #define HAVE_WINDOWS_H 1
23833 cat >>confdefs.h <<_ACEOF
23834 #define WIN32_LEAN_AND_MEAN 1
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
23842 $as_echo_n "checking for winsock2.h... " >&6; }
23843 if ${ac_cv_header_winsock2_h+:} false; then :
23844 $as_echo_n "(cached) " >&6
23847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848 /* end confdefs.h. */
23852 #ifndef WIN32_LEAN_AND_MEAN
23853 #define WIN32_LEAN_AND_MEAN
23855 #include <windows.h>
23856 #include <winsock2.h>
23861 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23862 HAVE_WINSOCK2_H shall not be defined.
23864 int dummy=2*IPPROTO_ESP;
23872 if ac_fn_c_try_compile "$LINENO"; then :
23874 ac_cv_header_winsock2_h="yes"
23878 ac_cv_header_winsock2_h="no"
23881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
23885 $as_echo "$ac_cv_header_winsock2_h" >&6; }
23886 case "$ac_cv_header_winsock2_h" in
23889 cat >>confdefs.h <<_ACEOF
23890 #define HAVE_WINSOCK2_H 1
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
23898 $as_echo_n "checking for ws2tcpip.h... " >&6; }
23899 if ${ac_cv_header_ws2tcpip_h+:} false; then :
23900 $as_echo_n "(cached) " >&6
23903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23904 /* end confdefs.h. */
23908 #ifndef WIN32_LEAN_AND_MEAN
23909 #define WIN32_LEAN_AND_MEAN
23911 #include <windows.h>
23912 #include <winsock2.h>
23913 #include <ws2tcpip.h>
23918 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23919 HAVE_WS2TCPIP_H shall not be defined.
23921 int dummy=2*IP_PKTINFO;
23929 if ac_fn_c_try_compile "$LINENO"; then :
23931 ac_cv_header_ws2tcpip_h="yes"
23935 ac_cv_header_ws2tcpip_h="no"
23938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
23942 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
23943 case "$ac_cv_header_ws2tcpip_h" in
23946 cat >>confdefs.h <<_ACEOF
23947 #define HAVE_WS2TCPIP_H 1
23955 cares_includes_sys_socket="\
23956 /* includes start */
23957 #ifdef HAVE_SYS_TYPES_H
23958 # include <sys/types.h>
23960 #ifdef HAVE_SYS_SOCKET_H
23961 # include <sys/socket.h>
23963 /* includes end */"
23964 for ac_header in sys/types.h sys/socket.h
23966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23967 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_socket
23969 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23970 cat >>confdefs.h <<_ACEOF
23971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23980 cares_preprocess_callconv="\
23981 /* preprocess start */
23982 #ifdef HAVE_WINDOWS_H
23983 # define FUNCALLCONV __stdcall
23985 # define FUNCALLCONV
23987 /* preprocess end */"
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
23992 $as_echo_n "checking for ares_socklen_t data type... " >&6; }
23993 cares_typeof_ares_socklen_t="unknown"
23994 for arg1 in int SOCKET; do
23995 for arg2 in 'struct sockaddr' void; do
23996 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
23997 if test "$cares_typeof_ares_socklen_t" = "unknown"; then
23998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23999 /* end confdefs.h. */
24002 $cares_includes_ws2tcpip
24003 $cares_includes_sys_socket
24004 $cares_preprocess_callconv
24005 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
24011 if(0 != getpeername(0, 0, lenptr))
24019 if ac_fn_c_try_compile "$LINENO"; then :
24021 cares_typeof_ares_socklen_t="$t"
24024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24029 for t in socklen_t int; do
24030 if test "$cares_typeof_ares_socklen_t" = "void"; then
24031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24032 /* end confdefs.h. */
24035 $cares_includes_sys_socket
24036 typedef $t ares_socklen_t;
24041 ares_socklen_t dummy;
24048 if ac_fn_c_try_compile "$LINENO"; then :
24050 cares_typeof_ares_socklen_t="$t"
24053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
24057 $as_echo "$cares_typeof_ares_socklen_t" >&6; }
24058 if test "$cares_typeof_ares_socklen_t" = "void" ||
24059 test "$cares_typeof_ares_socklen_t" = "unknown"; then
24060 as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
24064 $as_echo_n "checking size of ares_socklen_t... " >&6; }
24065 cares_sizeof_ares_socklen_t="unknown"
24066 cares_pull_headers_socklen_t="unknown"
24067 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
24068 tst_pull_header_checks='none ws2tcpip'
24069 tst_size_checks='4'
24071 tst_pull_header_checks='none systypes syssocket'
24072 tst_size_checks='4 8 2'
24074 for tst_size in $tst_size_checks; do
24075 for tst_pull_headers in $tst_pull_header_checks; do
24076 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
24077 case $tst_pull_headers in
24079 tmp_includes="$cares_includes_ws2tcpip"
24082 tmp_includes="$cares_includes_sys_types"
24085 tmp_includes="$cares_includes_sys_socket"
24091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24092 /* end confdefs.h. */
24096 typedef $cares_typeof_ares_socklen_t ares_socklen_t;
24097 typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
24102 ares_socklen_t dummy;
24109 if ac_fn_c_try_compile "$LINENO"; then :
24111 cares_sizeof_ares_socklen_t="$tst_size"
24112 cares_pull_headers_socklen_t="$tst_pull_headers"
24115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
24120 $as_echo "$cares_sizeof_ares_socklen_t" >&6; }
24121 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
24122 as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
24125 case $cares_pull_headers_socklen_t in
24128 cat >>confdefs.h <<_EOF
24129 #define CARES_PULL_WS2TCPIP_H 1
24135 cat >>confdefs.h <<_EOF
24136 #define CARES_PULL_SYS_TYPES_H 1
24142 cat >>confdefs.h <<_EOF
24143 #define CARES_PULL_SYS_TYPES_H 1
24147 cat >>confdefs.h <<_EOF
24148 #define CARES_PULL_SYS_SOCKET_H 1
24154 cat >>confdefs.h <<_EOF
24155 #define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
24159 cat >>confdefs.h <<_EOF
24160 #define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
24166 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
24168 #ifdef HAVE_WINDOWS_H
24169 #ifndef WIN32_LEAN_AND_MEAN
24170 #define WIN32_LEAN_AND_MEAN
24172 #include <windows.h>
24173 #ifdef HAVE_WINSOCK2_H
24174 #include <winsock2.h>
24176 #ifdef HAVE_WINSOCK_H
24177 #include <winsock.h>
24181 #ifdef HAVE_SYS_TYPES_H
24182 #include <sys/types.h>
24184 #ifdef HAVE_SYS_SOCKET_H
24185 #include <sys/socket.h>
24187 #ifdef HAVE_NETINET_IN_H
24188 #include <netinet/in.h>
24190 #ifdef HAVE_ARPA_INET_H
24191 #include <arpa/inet.h>
24196 if test "x$ac_cv_type_in_addr_t" = xyes; then :
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
24201 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
24202 if ${curl_cv_in_addr_t_equiv+:} false; then :
24203 $as_echo_n "(cached) " >&6
24206 curl_cv_in_addr_t_equiv="unknown"
24207 for t in "unsigned long" int size_t unsigned long; do
24208 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
24209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24210 /* end confdefs.h. */
24214 #ifdef HAVE_WINDOWS_H
24215 #ifndef WIN32_LEAN_AND_MEAN
24216 #define WIN32_LEAN_AND_MEAN
24218 #include <windows.h>
24219 #ifdef HAVE_WINSOCK2_H
24220 #include <winsock2.h>
24222 #ifdef HAVE_WINSOCK_H
24223 #include <winsock.h>
24227 #ifdef HAVE_SYS_TYPES_H
24228 #include <sys/types.h>
24230 #ifdef HAVE_SYS_SOCKET_H
24231 #include <sys/socket.h>
24233 #ifdef HAVE_NETINET_IN_H
24234 #include <netinet/in.h>
24236 #ifdef HAVE_ARPA_INET_H
24237 #include <arpa/inet.h>
24244 $t data = inet_addr ("1.2.3.4");
24251 if ac_fn_c_try_link "$LINENO"; then :
24253 curl_cv_in_addr_t_equiv="$t"
24256 rm -f core conftest.err conftest.$ac_objext \
24257 conftest$ac_exeext conftest.$ac_ext
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
24263 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
24264 case "$curl_cv_in_addr_t_equiv" in
24266 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
24270 cat >>confdefs.h <<_ACEOF
24271 #define in_addr_t $curl_cv_in_addr_t_equiv
24282 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
24284 #ifdef HAVE_WINDOWS_H
24285 #ifndef WIN32_LEAN_AND_MEAN
24286 #define WIN32_LEAN_AND_MEAN
24288 #include <windows.h>
24289 #ifdef HAVE_WINSOCK2_H
24290 #include <winsock2.h>
24293 #ifdef HAVE_SYS_TYPES_H
24294 #include <sys/types.h>
24296 #ifdef HAVE_SYS_SOCKET_H
24297 #include <sys/socket.h>
24299 #ifdef HAVE_NETINET_IN_H
24300 #include <netinet/in.h>
24302 #ifdef HAVE_ARPA_INET_H
24303 #include <arpa/inet.h>
24308 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
24310 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
24317 for ac_header in signal.h
24319 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
24320 if test "x$ac_cv_header_signal_h" = xyes; then :
24321 cat >>confdefs.h <<_ACEOF
24322 #define HAVE_SIGNAL_H 1
24329 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
24330 #ifdef HAVE_SIGNAL_H
24331 #include <signal.h>
24335 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
24338 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
24343 case "$ac_cv_type_sig_atomic_t" in
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
24347 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
24348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24349 /* end confdefs.h. */
24352 #ifdef HAVE_SIGNAL_H
24353 #include <signal.h>
24359 static volatile sig_atomic_t dummy = 0;
24366 if ac_fn_c_try_link "$LINENO"; then :
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24369 $as_echo "no" >&6; }
24370 ac_cv_sig_atomic_t_volatile="no"
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24375 $as_echo "yes" >&6; }
24376 ac_cv_sig_atomic_t_volatile="yes"
24379 rm -f core conftest.err conftest.$ac_objext \
24380 conftest$ac_exeext conftest.$ac_ext
24382 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
24384 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24392 $as_echo_n "checking return type of signal handlers... " >&6; }
24393 if ${ac_cv_type_signal+:} false; then :
24394 $as_echo_n "(cached) " >&6
24396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24397 /* end confdefs.h. */
24398 #include <sys/types.h>
24399 #include <signal.h>
24403 return *(signal (0, 0)) (0) == 1;
24408 if ac_fn_c_try_compile "$LINENO"; then :
24409 ac_cv_type_signal=int
24411 ac_cv_type_signal=void
24413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24416 $as_echo "$ac_cv_type_signal" >&6; }
24418 cat >>confdefs.h <<_ACEOF
24419 #define RETSIGTYPE $ac_cv_type_signal
24425 for ac_header in sys/types.h sys/socket.h
24427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24428 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24430 cat >>confdefs.h <<_ACEOF
24431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
24440 $as_echo_n "checking for recv... " >&6; }
24441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24442 /* end confdefs.h. */
24446 #ifdef HAVE_WINDOWS_H
24447 #ifndef WIN32_LEAN_AND_MEAN
24448 #define WIN32_LEAN_AND_MEAN
24450 #include <windows.h>
24451 #ifdef HAVE_WINSOCK2_H
24452 #include <winsock2.h>
24454 #ifdef HAVE_WINSOCK_H
24455 #include <winsock.h>
24459 #ifdef HAVE_SYS_TYPES_H
24460 #include <sys/types.h>
24462 #ifdef HAVE_SYS_SOCKET_H
24463 #include <sys/socket.h>
24477 if ac_fn_c_try_link "$LINENO"; then :
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24480 $as_echo "yes" >&6; }
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24486 $as_echo "no" >&6; }
24490 rm -f core conftest.err conftest.$ac_objext \
24491 conftest$ac_exeext conftest.$ac_ext
24493 if test "$curl_cv_recv" = "yes"; then
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
24495 $as_echo_n "checking types of args and return type for recv... " >&6; }
24496 if ${curl_cv_func_recv_args+:} false; then :
24497 $as_echo_n "(cached) " >&6
24500 curl_cv_func_recv_args="unknown"
24501 for recv_retv in 'int' 'ssize_t'; do
24502 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24503 for recv_arg2 in 'char *' 'void *'; do
24504 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24505 for recv_arg4 in 'int' 'unsigned int'; do
24506 if test "$curl_cv_func_recv_args" = "unknown"; then
24507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24508 /* end confdefs.h. */
24512 #ifdef HAVE_WINDOWS_H
24513 #ifndef WIN32_LEAN_AND_MEAN
24514 #define WIN32_LEAN_AND_MEAN
24516 #include <windows.h>
24517 #ifdef HAVE_WINSOCK2_H
24518 #include <winsock2.h>
24520 #ifdef HAVE_WINSOCK_H
24521 #include <winsock.h>
24524 #define RECVCALLCONV PASCAL
24526 #ifdef HAVE_SYS_TYPES_H
24527 #include <sys/types.h>
24529 #ifdef HAVE_SYS_SOCKET_H
24530 #include <sys/socket.h>
24532 #define RECVCALLCONV
24534 extern $recv_retv RECVCALLCONV
24535 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
24543 $recv_arg4 flags=0;
24544 $recv_retv res = recv(s, buf, len, flags);
24551 if ac_fn_c_try_compile "$LINENO"; then :
24553 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
24556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
24566 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
24567 if test "$curl_cv_func_recv_args" = "unknown"; then
24568 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
24570 recv_prev_IFS=$IFS; IFS=','
24571 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
24576 cat >>confdefs.h <<_ACEOF
24577 #define RECV_TYPE_ARG1 $1
24581 cat >>confdefs.h <<_ACEOF
24582 #define RECV_TYPE_ARG2 $2
24586 cat >>confdefs.h <<_ACEOF
24587 #define RECV_TYPE_ARG3 $3
24591 cat >>confdefs.h <<_ACEOF
24592 #define RECV_TYPE_ARG4 $4
24596 cat >>confdefs.h <<_ACEOF
24597 #define RECV_TYPE_RETV $5
24602 cat >>confdefs.h <<_ACEOF
24603 #define HAVE_RECV 1
24606 ac_cv_func_recv="yes"
24609 as_fn_error $? "Unable to link function recv" "$LINENO" 5
24613 for ac_header in sys/types.h sys/socket.h
24615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24616 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24617 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24618 cat >>confdefs.h <<_ACEOF
24619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
24628 $as_echo_n "checking for recvfrom... " >&6; }
24629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24630 /* end confdefs.h. */
24634 #ifdef HAVE_WINDOWS_H
24635 #ifndef WIN32_LEAN_AND_MEAN
24636 #define WIN32_LEAN_AND_MEAN
24638 #include <windows.h>
24639 #ifdef HAVE_WINSOCK2_H
24640 #include <winsock2.h>
24642 #ifdef HAVE_WINSOCK_H
24643 #include <winsock.h>
24647 #ifdef HAVE_SYS_TYPES_H
24648 #include <sys/types.h>
24650 #ifdef HAVE_SYS_SOCKET_H
24651 #include <sys/socket.h>
24658 recvfrom(0, 0, 0, 0, 0, 0);
24665 if ac_fn_c_try_link "$LINENO"; then :
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24668 $as_echo "yes" >&6; }
24669 curl_cv_recvfrom="yes"
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24674 $as_echo "no" >&6; }
24675 curl_cv_recvfrom="no"
24678 rm -f core conftest.err conftest.$ac_objext \
24679 conftest$ac_exeext conftest.$ac_ext
24681 if test "$curl_cv_recvfrom" = "yes"; then
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
24683 $as_echo_n "checking types of args and return type for recvfrom... " >&6; }
24684 if ${curl_cv_func_recvfrom_args+:} false; then :
24685 $as_echo_n "(cached) " >&6
24688 curl_cv_func_recvfrom_args="unknown"
24689 for recvfrom_retv in 'int' 'ssize_t'; do
24690 for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24691 for recvfrom_arg2 in 'char *' 'void *'; do
24692 for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24693 for recvfrom_arg4 in 'int' 'unsigned int'; do
24694 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
24695 for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
24696 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
24697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24698 /* end confdefs.h. */
24702 #ifdef HAVE_WINDOWS_H
24703 #ifndef WIN32_LEAN_AND_MEAN
24704 #define WIN32_LEAN_AND_MEAN
24706 #include <windows.h>
24707 #ifdef HAVE_WINSOCK2_H
24708 #include <winsock2.h>
24710 #ifdef HAVE_WINSOCK_H
24711 #include <winsock.h>
24714 #define RECVFROMCALLCONV PASCAL
24716 #ifdef HAVE_SYS_TYPES_H
24717 #include <sys/types.h>
24719 #ifdef HAVE_SYS_SOCKET_H
24720 #include <sys/socket.h>
24722 #define RECVFROMCALLCONV
24724 extern $recvfrom_retv RECVFROMCALLCONV
24725 recvfrom($recvfrom_arg1, $recvfrom_arg2,
24726 $recvfrom_arg3, $recvfrom_arg4,
24727 $recvfrom_arg5, $recvfrom_arg6);
24732 $recvfrom_arg1 s=0;
24733 $recvfrom_arg2 buf=0;
24734 $recvfrom_arg3 len=0;
24735 $recvfrom_arg4 flags=0;
24736 $recvfrom_arg5 addr=0;
24737 $recvfrom_arg6 addrlen=0;
24738 $recvfrom_retv res=0;
24739 res = recvfrom(s, buf, len, flags, addr, addrlen);
24746 if ac_fn_c_try_compile "$LINENO"; then :
24748 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
24751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
24763 $as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
24764 # Nearly last minute change for this release starts here
24766 cat >>confdefs.h <<_ACEOF
24767 #define HAVE_RECVFROM 1
24770 ac_cv_func_recvfrom="yes"
24771 # Nearly last minute change for this release ends here
24772 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
24774 $as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
24776 recvfrom_prev_IFS=$IFS; IFS=','
24777 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
24778 IFS=$recvfrom_prev_IFS
24781 recvfrom_ptrt_arg2=$2
24782 recvfrom_qual_ptrt_arg5=$5
24783 recvfrom_ptrt_arg6=$6
24786 cat >>confdefs.h <<_ACEOF
24787 #define RECVFROM_TYPE_ARG1 $1
24791 cat >>confdefs.h <<_ACEOF
24792 #define RECVFROM_TYPE_ARG3 $3
24796 cat >>confdefs.h <<_ACEOF
24797 #define RECVFROM_TYPE_ARG4 $4
24801 cat >>confdefs.h <<_ACEOF
24802 #define RECVFROM_TYPE_RETV $7
24808 case $prev_sh_opts in
24816 case "$recvfrom_qual_ptrt_arg5" in
24818 recvfrom_qual_arg5=const
24819 recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
24822 recvfrom_qual_arg5=
24823 recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
24827 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
24828 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
24829 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
24832 cat >>confdefs.h <<_ACEOF
24833 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
24837 cat >>confdefs.h <<_ACEOF
24838 #define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5
24842 cat >>confdefs.h <<_ACEOF
24843 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
24847 cat >>confdefs.h <<_ACEOF
24848 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
24852 if test "$recvfrom_type_arg2" = "void"; then
24854 cat >>confdefs.h <<_ACEOF
24855 #define RECVFROM_TYPE_ARG2_IS_VOID 1
24859 if test "$recvfrom_type_arg5" = "void"; then
24861 cat >>confdefs.h <<_ACEOF
24862 #define RECVFROM_TYPE_ARG5_IS_VOID 1
24866 if test "$recvfrom_type_arg6" = "void"; then
24868 cat >>confdefs.h <<_ACEOF
24869 #define RECVFROM_TYPE_ARG6_IS_VOID 1
24874 case $prev_sh_opts in
24883 cat >>confdefs.h <<_ACEOF
24884 #define HAVE_RECVFROM 1
24887 ac_cv_func_recvfrom="yes"
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
24891 $as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
24893 $as_echo "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
24897 for ac_header in sys/types.h sys/socket.h
24899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24900 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24902 cat >>confdefs.h <<_ACEOF
24903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
24912 $as_echo_n "checking for send... " >&6; }
24913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24914 /* end confdefs.h. */
24918 #ifdef HAVE_WINDOWS_H
24919 #ifndef WIN32_LEAN_AND_MEAN
24920 #define WIN32_LEAN_AND_MEAN
24922 #include <windows.h>
24923 #ifdef HAVE_WINSOCK2_H
24924 #include <winsock2.h>
24926 #ifdef HAVE_WINSOCK_H
24927 #include <winsock.h>
24931 #ifdef HAVE_SYS_TYPES_H
24932 #include <sys/types.h>
24934 #ifdef HAVE_SYS_SOCKET_H
24935 #include <sys/socket.h>
24949 if ac_fn_c_try_link "$LINENO"; then :
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24952 $as_echo "yes" >&6; }
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24958 $as_echo "no" >&6; }
24962 rm -f core conftest.err conftest.$ac_objext \
24963 conftest$ac_exeext conftest.$ac_ext
24965 if test "$curl_cv_send" = "yes"; then
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
24967 $as_echo_n "checking types of args and return type for send... " >&6; }
24968 if ${curl_cv_func_send_args+:} false; then :
24969 $as_echo_n "(cached) " >&6
24972 curl_cv_func_send_args="unknown"
24973 for send_retv in 'int' 'ssize_t'; do
24974 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24975 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
24976 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24977 for send_arg4 in 'int' 'unsigned int'; do
24978 if test "$curl_cv_func_send_args" = "unknown"; then
24979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24980 /* end confdefs.h. */
24984 #ifdef HAVE_WINDOWS_H
24985 #ifndef WIN32_LEAN_AND_MEAN
24986 #define WIN32_LEAN_AND_MEAN
24988 #include <windows.h>
24989 #ifdef HAVE_WINSOCK2_H
24990 #include <winsock2.h>
24992 #ifdef HAVE_WINSOCK_H
24993 #include <winsock.h>
24996 #define SENDCALLCONV PASCAL
24998 #ifdef HAVE_SYS_TYPES_H
24999 #include <sys/types.h>
25001 #ifdef HAVE_SYS_SOCKET_H
25002 #include <sys/socket.h>
25004 #define SENDCALLCONV
25006 extern $send_retv SENDCALLCONV
25007 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
25014 $send_arg4 flags=0;
25015 $send_retv res = send(s, 0, len, flags);
25022 if ac_fn_c_try_compile "$LINENO"; then :
25024 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
25027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
25037 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
25038 if test "$curl_cv_func_send_args" = "unknown"; then
25039 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
25041 send_prev_IFS=$IFS; IFS=','
25042 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
25046 send_qual_type_arg2=$2
25049 cat >>confdefs.h <<_ACEOF
25050 #define SEND_TYPE_ARG1 $1
25054 cat >>confdefs.h <<_ACEOF
25055 #define SEND_TYPE_ARG3 $3
25059 cat >>confdefs.h <<_ACEOF
25060 #define SEND_TYPE_ARG4 $4
25064 cat >>confdefs.h <<_ACEOF
25065 #define SEND_TYPE_RETV $5
25071 case $prev_sh_opts in
25079 case "$send_qual_type_arg2" in
25081 send_qual_arg2=const
25082 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
25086 send_type_arg2=$send_qual_type_arg2
25091 cat >>confdefs.h <<_ACEOF
25092 #define SEND_QUAL_ARG2 $send_qual_arg2
25096 cat >>confdefs.h <<_ACEOF
25097 #define SEND_TYPE_ARG2 $send_type_arg2
25101 case $prev_sh_opts in
25110 cat >>confdefs.h <<_ACEOF
25111 #define HAVE_SEND 1
25114 ac_cv_func_send="yes"
25117 as_fn_error $? "Unable to link function send" "$LINENO" 5
25121 for ac_header in sys/types.h sys/socket.h
25123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25124 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25125 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25126 cat >>confdefs.h <<_ACEOF
25127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
25135 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
25136 if ${ac_cv_msg_nosignal+:} false; then :
25137 $as_echo_n "(cached) " >&6
25140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141 /* end confdefs.h. */
25145 #ifdef HAVE_WINDOWS_H
25146 #ifndef WIN32_LEAN_AND_MEAN
25147 #define WIN32_LEAN_AND_MEAN
25149 #include <windows.h>
25150 #ifdef HAVE_WINSOCK2_H
25151 #include <winsock2.h>
25153 #ifdef HAVE_WINSOCK_H
25154 #include <winsock.h>
25158 #ifdef HAVE_SYS_TYPES_H
25159 #include <sys/types.h>
25161 #ifdef HAVE_SYS_SOCKET_H
25162 #include <sys/socket.h>
25169 int flag=MSG_NOSIGNAL;
25176 if ac_fn_c_try_compile "$LINENO"; then :
25178 ac_cv_msg_nosignal="yes"
25182 ac_cv_msg_nosignal="no"
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
25189 $as_echo "$ac_cv_msg_nosignal" >&6; }
25190 case "$ac_cv_msg_nosignal" in
25193 cat >>confdefs.h <<_ACEOF
25194 #define HAVE_MSG_NOSIGNAL 1
25202 cares_includes_socket="\
25203 /* includes start */
25204 #ifdef HAVE_SYS_TYPES_H
25205 # include <sys/types.h>
25207 #ifdef HAVE_SOCKET_H
25208 # include <socket.h>
25210 /* includes end */"
25211 for ac_header in sys/types.h socket.h
25213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25214 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_socket
25216 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25217 cat >>confdefs.h <<_ACEOF
25218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25228 tst_links_closesocket="unknown"
25229 tst_proto_closesocket="unknown"
25230 tst_compi_closesocket="unknown"
25231 tst_allow_closesocket="unknown"
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
25234 $as_echo_n "checking if closesocket can be linked... " >&6; }
25235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25236 /* end confdefs.h. */
25239 $cares_includes_winsock2
25240 $cares_includes_socket
25245 if(0 != closesocket(0))
25253 if ac_fn_c_try_link "$LINENO"; then :
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25256 $as_echo "yes" >&6; }
25257 tst_links_closesocket="yes"
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25262 $as_echo "no" >&6; }
25263 tst_links_closesocket="no"
25266 rm -f core conftest.err conftest.$ac_objext \
25267 conftest$ac_exeext conftest.$ac_ext
25269 if test "$tst_links_closesocket" = "yes"; then
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
25271 $as_echo_n "checking if closesocket is prototyped... " >&6; }
25272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25273 /* end confdefs.h. */
25275 $cares_includes_winsock2
25276 $cares_includes_socket
25279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25280 $EGREP "closesocket" >/dev/null 2>&1; then :
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25283 $as_echo "yes" >&6; }
25284 tst_proto_closesocket="yes"
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25289 $as_echo "no" >&6; }
25290 tst_proto_closesocket="no"
25297 if test "$tst_proto_closesocket" = "yes"; then
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
25299 $as_echo_n "checking if closesocket is compilable... " >&6; }
25300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25301 /* end confdefs.h. */
25304 $cares_includes_winsock2
25305 $cares_includes_socket
25310 if(0 != closesocket(0))
25318 if ac_fn_c_try_compile "$LINENO"; then :
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25321 $as_echo "yes" >&6; }
25322 tst_compi_closesocket="yes"
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25327 $as_echo "no" >&6; }
25328 tst_compi_closesocket="no"
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25334 if test "$tst_compi_closesocket" = "yes"; then
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
25336 $as_echo_n "checking if closesocket usage allowed... " >&6; }
25337 if test "x$cares_disallow_closesocket" != "xyes"; then
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25339 $as_echo "yes" >&6; }
25340 tst_allow_closesocket="yes"
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25343 $as_echo "no" >&6; }
25344 tst_allow_closesocket="no"
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
25349 $as_echo_n "checking if closesocket might be used... " >&6; }
25350 if test "$tst_links_closesocket" = "yes" &&
25351 test "$tst_proto_closesocket" = "yes" &&
25352 test "$tst_compi_closesocket" = "yes" &&
25353 test "$tst_allow_closesocket" = "yes"; then
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25355 $as_echo "yes" >&6; }
25357 cat >>confdefs.h <<_ACEOF
25358 #define HAVE_CLOSESOCKET 1
25361 ac_cv_func_closesocket="yes"
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25364 $as_echo "no" >&6; }
25365 ac_cv_func_closesocket="no"
25370 tst_links_closesocket_camel="unknown"
25371 tst_proto_closesocket_camel="unknown"
25372 tst_compi_closesocket_camel="unknown"
25373 tst_allow_closesocket_camel="unknown"
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
25376 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
25377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25378 /* end confdefs.h. */
25381 $cares_includes_sys_socket
25386 if(0 != CloseSocket(0))
25394 if ac_fn_c_try_link "$LINENO"; then :
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25397 $as_echo "yes" >&6; }
25398 tst_links_closesocket_camel="yes"
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25403 $as_echo "no" >&6; }
25404 tst_links_closesocket_camel="no"
25407 rm -f core conftest.err conftest.$ac_objext \
25408 conftest$ac_exeext conftest.$ac_ext
25410 if test "$tst_links_closesocket_camel" = "yes"; then
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
25412 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h. */
25416 $cares_includes_sys_socket
25419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25420 $EGREP "CloseSocket" >/dev/null 2>&1; then :
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25423 $as_echo "yes" >&6; }
25424 tst_proto_closesocket_camel="yes"
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25429 $as_echo "no" >&6; }
25430 tst_proto_closesocket_camel="no"
25437 if test "$tst_proto_closesocket_camel" = "yes"; then
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
25439 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
25440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25441 /* end confdefs.h. */
25444 $cares_includes_sys_socket
25449 if(0 != CloseSocket(0))
25457 if ac_fn_c_try_compile "$LINENO"; then :
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25460 $as_echo "yes" >&6; }
25461 tst_compi_closesocket_camel="yes"
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25466 $as_echo "no" >&6; }
25467 tst_compi_closesocket_camel="no"
25470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25473 if test "$tst_compi_closesocket_camel" = "yes"; then
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
25475 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
25476 if test "x$cares_disallow_closesocket_camel" != "xyes"; then
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25478 $as_echo "yes" >&6; }
25479 tst_allow_closesocket_camel="yes"
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25482 $as_echo "no" >&6; }
25483 tst_allow_closesocket_camel="no"
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
25488 $as_echo_n "checking if CloseSocket might be used... " >&6; }
25489 if test "$tst_links_closesocket_camel" = "yes" &&
25490 test "$tst_proto_closesocket_camel" = "yes" &&
25491 test "$tst_compi_closesocket_camel" = "yes" &&
25492 test "$tst_allow_closesocket_camel" = "yes"; then
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25494 $as_echo "yes" >&6; }
25496 cat >>confdefs.h <<_ACEOF
25497 #define HAVE_CLOSESOCKET_CAMEL 1
25500 ac_cv_func_closesocket_camel="yes"
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25503 $as_echo "no" >&6; }
25504 ac_cv_func_closesocket_camel="no"
25509 tst_links_connect="unknown"
25510 tst_proto_connect="unknown"
25511 tst_compi_connect="unknown"
25512 tst_allow_connect="unknown"
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
25515 $as_echo_n "checking if connect can be linked... " >&6; }
25516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25517 /* end confdefs.h. */
25520 $cares_includes_winsock2
25521 $cares_includes_sys_socket
25522 $cares_includes_socket
25527 if(0 != connect(0, 0, 0))
25535 if ac_fn_c_try_link "$LINENO"; then :
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25538 $as_echo "yes" >&6; }
25539 tst_links_connect="yes"
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25544 $as_echo "no" >&6; }
25545 tst_links_connect="no"
25548 rm -f core conftest.err conftest.$ac_objext \
25549 conftest$ac_exeext conftest.$ac_ext
25551 if test "$tst_links_connect" = "yes"; then
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
25553 $as_echo_n "checking if connect is prototyped... " >&6; }
25554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25555 /* end confdefs.h. */
25557 $cares_includes_winsock2
25558 $cares_includes_sys_socket
25559 $cares_includes_socket
25562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25563 $EGREP "connect" >/dev/null 2>&1; then :
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25566 $as_echo "yes" >&6; }
25567 tst_proto_connect="yes"
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25572 $as_echo "no" >&6; }
25573 tst_proto_connect="no"
25580 if test "$tst_proto_connect" = "yes"; then
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
25582 $as_echo_n "checking if connect is compilable... " >&6; }
25583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25584 /* end confdefs.h. */
25587 $cares_includes_winsock2
25588 $cares_includes_sys_socket
25589 $cares_includes_socket
25594 if(0 != connect(0, 0, 0))
25602 if ac_fn_c_try_compile "$LINENO"; then :
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25605 $as_echo "yes" >&6; }
25606 tst_compi_connect="yes"
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25611 $as_echo "no" >&6; }
25612 tst_compi_connect="no"
25615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25618 if test "$tst_compi_connect" = "yes"; then
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
25620 $as_echo_n "checking if connect usage allowed... " >&6; }
25621 if test "x$cares_disallow_connect" != "xyes"; then
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25623 $as_echo "yes" >&6; }
25624 tst_allow_connect="yes"
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25627 $as_echo "no" >&6; }
25628 tst_allow_connect="no"
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
25633 $as_echo_n "checking if connect might be used... " >&6; }
25634 if test "$tst_links_connect" = "yes" &&
25635 test "$tst_proto_connect" = "yes" &&
25636 test "$tst_compi_connect" = "yes" &&
25637 test "$tst_allow_connect" = "yes"; then
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25639 $as_echo "yes" >&6; }
25641 cat >>confdefs.h <<_ACEOF
25642 #define HAVE_CONNECT 1
25645 ac_cv_func_connect="yes"
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25648 $as_echo "no" >&6; }
25649 ac_cv_func_connect="no"
25653 cares_includes_fcntl="\
25654 /* includes start */
25655 #ifdef HAVE_SYS_TYPES_H
25656 # include <sys/types.h>
25658 #ifdef HAVE_UNISTD_H
25659 # include <unistd.h>
25661 #ifdef HAVE_FCNTL_H
25662 # include <fcntl.h>
25664 /* includes end */"
25665 for ac_header in sys/types.h unistd.h fcntl.h
25667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25668 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_fcntl
25670 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25671 cat >>confdefs.h <<_ACEOF
25672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25682 tst_links_fcntl="unknown"
25683 tst_proto_fcntl="unknown"
25684 tst_compi_fcntl="unknown"
25685 tst_allow_fcntl="unknown"
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
25688 $as_echo_n "checking if fcntl can be linked... " >&6; }
25689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690 /* end confdefs.h. */
25693 #define fcntl innocuous_fcntl
25695 # include <limits.h>
25697 # include <assert.h>
25704 #if defined __stub_fcntl || defined __stub___fcntl
25716 if ac_fn_c_try_link "$LINENO"; then :
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25719 $as_echo "yes" >&6; }
25720 tst_links_fcntl="yes"
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25725 $as_echo "no" >&6; }
25726 tst_links_fcntl="no"
25729 rm -f core conftest.err conftest.$ac_objext \
25730 conftest$ac_exeext conftest.$ac_ext
25732 if test "$tst_links_fcntl" = "yes"; then
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
25734 $as_echo_n "checking if fcntl is prototyped... " >&6; }
25735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25736 /* end confdefs.h. */
25738 $cares_includes_fcntl
25741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25742 $EGREP "fcntl" >/dev/null 2>&1; then :
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25745 $as_echo "yes" >&6; }
25746 tst_proto_fcntl="yes"
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25751 $as_echo "no" >&6; }
25752 tst_proto_fcntl="no"
25759 if test "$tst_proto_fcntl" = "yes"; then
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
25761 $as_echo_n "checking if fcntl is compilable... " >&6; }
25762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25763 /* end confdefs.h. */
25766 $cares_includes_fcntl
25771 if(0 != fcntl(0, 0, 0))
25779 if ac_fn_c_try_compile "$LINENO"; then :
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25782 $as_echo "yes" >&6; }
25783 tst_compi_fcntl="yes"
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25788 $as_echo "no" >&6; }
25789 tst_compi_fcntl="no"
25792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25795 if test "$tst_compi_fcntl" = "yes"; then
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
25797 $as_echo_n "checking if fcntl usage allowed... " >&6; }
25798 if test "x$cares_disallow_fcntl" != "xyes"; then
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25800 $as_echo "yes" >&6; }
25801 tst_allow_fcntl="yes"
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25804 $as_echo "no" >&6; }
25805 tst_allow_fcntl="no"
25809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
25810 $as_echo_n "checking if fcntl might be used... " >&6; }
25811 if test "$tst_links_fcntl" = "yes" &&
25812 test "$tst_proto_fcntl" = "yes" &&
25813 test "$tst_compi_fcntl" = "yes" &&
25814 test "$tst_allow_fcntl" = "yes"; then
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25816 $as_echo "yes" >&6; }
25818 cat >>confdefs.h <<_ACEOF
25819 #define HAVE_FCNTL 1
25822 ac_cv_func_fcntl="yes"
25825 tst_compi_fcntl_o_nonblock="unknown"
25826 tst_allow_fcntl_o_nonblock="unknown"
25829 sunos4* | aix3* | beos*)
25830 cares_disallow_fcntl_o_nonblock="yes"
25834 if test "$ac_cv_func_fcntl" = "yes"; then
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
25836 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
25837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25838 /* end confdefs.h. */
25841 $cares_includes_fcntl
25847 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
25855 if ac_fn_c_try_compile "$LINENO"; then :
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25858 $as_echo "yes" >&6; }
25859 tst_compi_fcntl_o_nonblock="yes"
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25864 $as_echo "no" >&6; }
25865 tst_compi_fcntl_o_nonblock="no"
25868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25871 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
25873 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
25874 if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25876 $as_echo "yes" >&6; }
25877 tst_allow_fcntl_o_nonblock="yes"
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25880 $as_echo "no" >&6; }
25881 tst_allow_fcntl_o_nonblock="no"
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
25886 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
25887 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
25888 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25890 $as_echo "yes" >&6; }
25892 cat >>confdefs.h <<_ACEOF
25893 #define HAVE_FCNTL_O_NONBLOCK 1
25896 ac_cv_func_fcntl_o_nonblock="yes"
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25899 $as_echo "no" >&6; }
25900 ac_cv_func_fcntl_o_nonblock="no"
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25905 $as_echo "no" >&6; }
25906 ac_cv_func_fcntl="no"
25910 cares_includes_netdb="\
25911 /* includes start */
25912 #ifdef HAVE_SYS_TYPES_H
25913 # include <sys/types.h>
25915 #ifdef HAVE_NETDB_H
25916 # include <netdb.h>
25918 /* includes end */"
25919 for ac_header in sys/types.h netdb.h
25921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25922 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_netdb
25924 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25925 cat >>confdefs.h <<_ACEOF
25926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25936 tst_links_freeaddrinfo="unknown"
25937 tst_proto_freeaddrinfo="unknown"
25938 tst_compi_freeaddrinfo="unknown"
25939 tst_allow_freeaddrinfo="unknown"
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
25942 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
25943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25944 /* end confdefs.h. */
25947 $cares_includes_ws2tcpip
25948 $cares_includes_sys_socket
25949 $cares_includes_netdb
25961 if ac_fn_c_try_link "$LINENO"; then :
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25964 $as_echo "yes" >&6; }
25965 tst_links_freeaddrinfo="yes"
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25970 $as_echo "no" >&6; }
25971 tst_links_freeaddrinfo="no"
25974 rm -f core conftest.err conftest.$ac_objext \
25975 conftest$ac_exeext conftest.$ac_ext
25977 if test "$tst_links_freeaddrinfo" = "yes"; then
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
25979 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
25980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25981 /* end confdefs.h. */
25983 $cares_includes_ws2tcpip
25984 $cares_includes_sys_socket
25985 $cares_includes_netdb
25988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25989 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25992 $as_echo "yes" >&6; }
25993 tst_proto_freeaddrinfo="yes"
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25998 $as_echo "no" >&6; }
25999 tst_proto_freeaddrinfo="no"
26006 if test "$tst_proto_freeaddrinfo" = "yes"; then
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
26008 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
26009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26010 /* end confdefs.h. */
26013 $cares_includes_ws2tcpip
26014 $cares_includes_sys_socket
26015 $cares_includes_netdb
26027 if ac_fn_c_try_compile "$LINENO"; then :
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26030 $as_echo "yes" >&6; }
26031 tst_compi_freeaddrinfo="yes"
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26036 $as_echo "no" >&6; }
26037 tst_compi_freeaddrinfo="no"
26040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 if test "$tst_compi_freeaddrinfo" = "yes"; then
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
26045 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
26046 if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26048 $as_echo "yes" >&6; }
26049 tst_allow_freeaddrinfo="yes"
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26052 $as_echo "no" >&6; }
26053 tst_allow_freeaddrinfo="no"
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
26058 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
26059 if test "$tst_links_freeaddrinfo" = "yes" &&
26060 test "$tst_proto_freeaddrinfo" = "yes" &&
26061 test "$tst_compi_freeaddrinfo" = "yes" &&
26062 test "$tst_allow_freeaddrinfo" = "yes"; then
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26064 $as_echo "yes" >&6; }
26066 cat >>confdefs.h <<_ACEOF
26067 #define HAVE_FREEADDRINFO 1
26070 ac_cv_func_freeaddrinfo="yes"
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26073 $as_echo "no" >&6; }
26074 ac_cv_func_freeaddrinfo="no"
26078 cares_includes_stdlib="\
26079 /* includes start */
26080 #ifdef HAVE_SYS_TYPES_H
26081 # include <sys/types.h>
26083 #ifdef HAVE_STDLIB_H
26084 # include <stdlib.h>
26086 /* includes end */"
26087 for ac_header in sys/types.h stdlib.h
26089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26090 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stdlib
26092 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26093 cat >>confdefs.h <<_ACEOF
26094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26103 cares_includes_string="\
26104 /* includes start */
26105 #ifdef HAVE_SYS_TYPES_H
26106 # include <sys/types.h>
26108 #ifdef HAVE_STRING_H
26109 # include <string.h>
26111 #ifdef HAVE_STRINGS_H
26112 # include <strings.h>
26114 /* includes end */"
26115 for ac_header in sys/types.h string.h strings.h
26117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26118 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_string
26120 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26121 cat >>confdefs.h <<_ACEOF
26122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26132 tst_links_getaddrinfo="unknown"
26133 tst_proto_getaddrinfo="unknown"
26134 tst_compi_getaddrinfo="unknown"
26135 tst_works_getaddrinfo="unknown"
26136 tst_allow_getaddrinfo="unknown"
26137 tst_tsafe_getaddrinfo="unknown"
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
26140 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
26141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26142 /* end confdefs.h. */
26145 $cares_includes_ws2tcpip
26146 $cares_includes_sys_socket
26147 $cares_includes_netdb
26152 if(0 != getaddrinfo(0, 0, 0, 0))
26160 if ac_fn_c_try_link "$LINENO"; then :
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26163 $as_echo "yes" >&6; }
26164 tst_links_getaddrinfo="yes"
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26169 $as_echo "no" >&6; }
26170 tst_links_getaddrinfo="no"
26173 rm -f core conftest.err conftest.$ac_objext \
26174 conftest$ac_exeext conftest.$ac_ext
26176 if test "$tst_links_getaddrinfo" = "yes"; then
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
26178 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
26179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26180 /* end confdefs.h. */
26182 $cares_includes_ws2tcpip
26183 $cares_includes_sys_socket
26184 $cares_includes_netdb
26187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26188 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26191 $as_echo "yes" >&6; }
26192 tst_proto_getaddrinfo="yes"
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26197 $as_echo "no" >&6; }
26198 tst_proto_getaddrinfo="no"
26205 if test "$tst_proto_getaddrinfo" = "yes"; then
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
26207 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
26208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26209 /* end confdefs.h. */
26212 $cares_includes_ws2tcpip
26213 $cares_includes_sys_socket
26214 $cares_includes_netdb
26219 if(0 != getaddrinfo(0, 0, 0, 0))
26227 if ac_fn_c_try_compile "$LINENO"; then :
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26230 $as_echo "yes" >&6; }
26231 tst_compi_getaddrinfo="yes"
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26236 $as_echo "no" >&6; }
26237 tst_compi_getaddrinfo="no"
26240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26243 if test "x$cross_compiling" != "xyes" &&
26244 test "$tst_compi_getaddrinfo" = "yes"; then
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
26246 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
26247 if test "$cross_compiling" = yes; then :
26248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26250 as_fn_error $? "cannot run test program while cross compiling
26251 See \`config.log' for more details" "$LINENO" 5; }
26253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26254 /* end confdefs.h. */
26257 $cares_includes_ws2tcpip
26258 $cares_includes_stdlib
26259 $cares_includes_string
26260 $cares_includes_sys_socket
26261 $cares_includes_netdb
26266 struct addrinfo hints;
26267 struct addrinfo *ai = 0;
26270 memset(&hints, 0, sizeof(hints));
26271 hints.ai_flags = AI_NUMERICHOST;
26272 hints.ai_family = AF_UNSPEC;
26273 hints.ai_socktype = SOCK_STREAM;
26274 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
26276 exit(1); /* fail */
26285 if ac_fn_c_try_run "$LINENO"; then :
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26288 $as_echo "yes" >&6; }
26289 tst_works_getaddrinfo="yes"
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26294 $as_echo "no" >&6; }
26295 tst_works_getaddrinfo="no"
26298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26299 conftest.$ac_objext conftest.beam conftest.$ac_ext
26304 if test "$tst_compi_getaddrinfo" = "yes" &&
26305 test "$tst_works_getaddrinfo" != "no"; then
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
26307 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
26308 if test "x$cares_disallow_getaddrinfo" != "xyes"; then
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26310 $as_echo "yes" >&6; }
26311 tst_allow_getaddrinfo="yes"
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26314 $as_echo "no" >&6; }
26315 tst_allow_getaddrinfo="no"
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
26320 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
26321 if test "$tst_links_getaddrinfo" = "yes" &&
26322 test "$tst_proto_getaddrinfo" = "yes" &&
26323 test "$tst_compi_getaddrinfo" = "yes" &&
26324 test "$tst_allow_getaddrinfo" = "yes" &&
26325 test "$tst_works_getaddrinfo" != "no"; then
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26327 $as_echo "yes" >&6; }
26329 cat >>confdefs.h <<_ACEOF
26330 #define HAVE_GETADDRINFO 1
26333 ac_cv_func_getaddrinfo="yes"
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26336 $as_echo "no" >&6; }
26337 ac_cv_func_getaddrinfo="no"
26338 ac_cv_func_getaddrinfo_threadsafe="no"
26341 if test "$ac_cv_func_getaddrinfo" = "yes"; then
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
26343 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
26345 aix[1234].* | aix5.[01].*)
26346 tst_tsafe_getaddrinfo="no"
26349 tst_tsafe_getaddrinfo="yes"
26352 tst_tsafe_getaddrinfo="no"
26355 tst_tsafe_getaddrinfo="yes"
26357 freebsd[1234].* | freebsd5.[1234]*)
26358 tst_tsafe_getaddrinfo="no"
26361 tst_tsafe_getaddrinfo="yes"
26363 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
26364 tst_tsafe_getaddrinfo="no"
26367 tst_tsafe_getaddrinfo="yes"
26370 tst_tsafe_getaddrinfo="no"
26373 tst_tsafe_getaddrinfo="yes"
26376 tst_tsafe_getaddrinfo="no"
26379 tst_tsafe_getaddrinfo="yes"
26382 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
26383 test "$ac_cv_native_windows" = "yes"; then
26384 tst_tsafe_getaddrinfo="yes"
26386 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
26389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26390 /* end confdefs.h. */
26393 $cares_includes_sys_socket
26394 $cares_includes_netdb
26401 force compilation error
26407 if ac_fn_c_try_compile "$LINENO"; then :
26409 tst_symbol_defined="yes"
26413 tst_symbol_defined="no"
26416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26417 if test "$tst_symbol_defined" = "yes"; then
26418 curl_cv_have_def_h_errno=yes
26421 curl_cv_have_def_h_errno=no
26425 if test "$curl_cv_have_def_h_errno" = "yes"; then
26426 tst_h_errno_macro="yes"
26428 tst_h_errno_macro="no"
26430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26431 /* end confdefs.h. */
26434 $cares_includes_sys_socket
26435 $cares_includes_netdb
26449 if ac_fn_c_try_compile "$LINENO"; then :
26451 tst_h_errno_modifiable_lvalue="yes"
26455 tst_h_errno_modifiable_lvalue="no"
26458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26460 /* end confdefs.h. */
26467 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
26469 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
26472 force compilation error
26480 if ac_fn_c_try_compile "$LINENO"; then :
26482 tst_h_errno_sbs_issue_7="yes"
26486 tst_h_errno_sbs_issue_7="no"
26489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26490 if test "$tst_h_errno_macro" = "no" &&
26491 test "$tst_h_errno_modifiable_lvalue" = "no" &&
26492 test "$tst_h_errno_sbs_issue_7" = "no"; then
26493 tst_tsafe_getaddrinfo="no"
26495 tst_tsafe_getaddrinfo="yes"
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
26499 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
26500 if test "$tst_tsafe_getaddrinfo" = "yes"; then
26502 cat >>confdefs.h <<_ACEOF
26503 #define HAVE_GETADDRINFO_THREADSAFE 1
26506 ac_cv_func_getaddrinfo_threadsafe="yes"
26508 ac_cv_func_getaddrinfo_threadsafe="no"
26514 tst_links_getenv="unknown"
26515 tst_proto_getenv="unknown"
26516 tst_compi_getenv="unknown"
26517 tst_allow_getenv="unknown"
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
26520 $as_echo_n "checking if getenv can be linked... " >&6; }
26521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26522 /* end confdefs.h. */
26525 #define getenv innocuous_getenv
26527 # include <limits.h>
26529 # include <assert.h>
26536 #if defined __stub_getenv || defined __stub___getenv
26548 if ac_fn_c_try_link "$LINENO"; then :
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26551 $as_echo "yes" >&6; }
26552 tst_links_getenv="yes"
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26557 $as_echo "no" >&6; }
26558 tst_links_getenv="no"
26561 rm -f core conftest.err conftest.$ac_objext \
26562 conftest$ac_exeext conftest.$ac_ext
26564 if test "$tst_links_getenv" = "yes"; then
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
26566 $as_echo_n "checking if getenv is prototyped... " >&6; }
26567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26568 /* end confdefs.h. */
26570 $cares_includes_stdlib
26573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26574 $EGREP "getenv" >/dev/null 2>&1; then :
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26577 $as_echo "yes" >&6; }
26578 tst_proto_getenv="yes"
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26583 $as_echo "no" >&6; }
26584 tst_proto_getenv="no"
26591 if test "$tst_proto_getenv" = "yes"; then
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
26593 $as_echo_n "checking if getenv is compilable... " >&6; }
26594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26595 /* end confdefs.h. */
26598 $cares_includes_stdlib
26611 if ac_fn_c_try_compile "$LINENO"; then :
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26614 $as_echo "yes" >&6; }
26615 tst_compi_getenv="yes"
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26620 $as_echo "no" >&6; }
26621 tst_compi_getenv="no"
26624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26627 if test "$tst_compi_getenv" = "yes"; then
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
26629 $as_echo_n "checking if getenv usage allowed... " >&6; }
26630 if test "x$cares_disallow_getenv" != "xyes"; then
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26632 $as_echo "yes" >&6; }
26633 tst_allow_getenv="yes"
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26636 $as_echo "no" >&6; }
26637 tst_allow_getenv="no"
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
26642 $as_echo_n "checking if getenv might be used... " >&6; }
26643 if test "$tst_links_getenv" = "yes" &&
26644 test "$tst_proto_getenv" = "yes" &&
26645 test "$tst_compi_getenv" = "yes" &&
26646 test "$tst_allow_getenv" = "yes"; then
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26648 $as_echo "yes" >&6; }
26650 cat >>confdefs.h <<_ACEOF
26651 #define HAVE_GETENV 1
26654 ac_cv_func_getenv="yes"
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26657 $as_echo "no" >&6; }
26658 ac_cv_func_getenv="no"
26663 tst_links_gethostbyaddr="unknown"
26664 tst_proto_gethostbyaddr="unknown"
26665 tst_compi_gethostbyaddr="unknown"
26666 tst_allow_gethostbyaddr="unknown"
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
26669 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
26670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26671 /* end confdefs.h. */
26674 $cares_includes_winsock2
26675 $cares_includes_netdb
26680 if(0 != gethostbyaddr(0, 0, 0))
26688 if ac_fn_c_try_link "$LINENO"; then :
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26691 $as_echo "yes" >&6; }
26692 tst_links_gethostbyaddr="yes"
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26697 $as_echo "no" >&6; }
26698 tst_links_gethostbyaddr="no"
26701 rm -f core conftest.err conftest.$ac_objext \
26702 conftest$ac_exeext conftest.$ac_ext
26704 if test "$tst_links_gethostbyaddr" = "yes"; then
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
26706 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
26707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26708 /* end confdefs.h. */
26710 $cares_includes_winsock2
26711 $cares_includes_netdb
26714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26715 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26718 $as_echo "yes" >&6; }
26719 tst_proto_gethostbyaddr="yes"
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26724 $as_echo "no" >&6; }
26725 tst_proto_gethostbyaddr="no"
26732 if test "$tst_proto_gethostbyaddr" = "yes"; then
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
26734 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
26735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26736 /* end confdefs.h. */
26739 $cares_includes_winsock2
26740 $cares_includes_netdb
26745 if(0 != gethostbyaddr(0, 0, 0))
26753 if ac_fn_c_try_compile "$LINENO"; then :
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26756 $as_echo "yes" >&6; }
26757 tst_compi_gethostbyaddr="yes"
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26762 $as_echo "no" >&6; }
26763 tst_compi_gethostbyaddr="no"
26766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26769 if test "$tst_compi_gethostbyaddr" = "yes"; then
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
26771 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
26772 if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26774 $as_echo "yes" >&6; }
26775 tst_allow_gethostbyaddr="yes"
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26778 $as_echo "no" >&6; }
26779 tst_allow_gethostbyaddr="no"
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
26784 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
26785 if test "$tst_links_gethostbyaddr" = "yes" &&
26786 test "$tst_proto_gethostbyaddr" = "yes" &&
26787 test "$tst_compi_gethostbyaddr" = "yes" &&
26788 test "$tst_allow_gethostbyaddr" = "yes"; then
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26790 $as_echo "yes" >&6; }
26792 cat >>confdefs.h <<_ACEOF
26793 #define HAVE_GETHOSTBYADDR 1
26796 ac_cv_func_gethostbyaddr="yes"
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26799 $as_echo "no" >&6; }
26800 ac_cv_func_gethostbyaddr="no"
26805 tst_links_gethostbyname="unknown"
26806 tst_proto_gethostbyname="unknown"
26807 tst_compi_gethostbyname="unknown"
26808 tst_allow_gethostbyname="unknown"
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
26811 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
26812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26813 /* end confdefs.h. */
26816 $cares_includes_winsock2
26817 $cares_includes_netdb
26822 if(0 != gethostbyname(0))
26830 if ac_fn_c_try_link "$LINENO"; then :
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26833 $as_echo "yes" >&6; }
26834 tst_links_gethostbyname="yes"
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26839 $as_echo "no" >&6; }
26840 tst_links_gethostbyname="no"
26843 rm -f core conftest.err conftest.$ac_objext \
26844 conftest$ac_exeext conftest.$ac_ext
26846 if test "$tst_links_gethostbyname" = "yes"; then
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
26848 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
26849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26850 /* end confdefs.h. */
26852 $cares_includes_winsock2
26853 $cares_includes_netdb
26856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26857 $EGREP "gethostbyname" >/dev/null 2>&1; then :
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26860 $as_echo "yes" >&6; }
26861 tst_proto_gethostbyname="yes"
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26866 $as_echo "no" >&6; }
26867 tst_proto_gethostbyname="no"
26874 if test "$tst_proto_gethostbyname" = "yes"; then
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
26876 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
26877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26878 /* end confdefs.h. */
26881 $cares_includes_winsock2
26882 $cares_includes_netdb
26887 if(0 != gethostbyname(0))
26895 if ac_fn_c_try_compile "$LINENO"; then :
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26898 $as_echo "yes" >&6; }
26899 tst_compi_gethostbyname="yes"
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26904 $as_echo "no" >&6; }
26905 tst_compi_gethostbyname="no"
26908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26911 if test "$tst_compi_gethostbyname" = "yes"; then
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
26913 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
26914 if test "x$cares_disallow_gethostbyname" != "xyes"; then
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26916 $as_echo "yes" >&6; }
26917 tst_allow_gethostbyname="yes"
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26920 $as_echo "no" >&6; }
26921 tst_allow_gethostbyname="no"
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
26926 $as_echo_n "checking if gethostbyname might be used... " >&6; }
26927 if test "$tst_links_gethostbyname" = "yes" &&
26928 test "$tst_proto_gethostbyname" = "yes" &&
26929 test "$tst_compi_gethostbyname" = "yes" &&
26930 test "$tst_allow_gethostbyname" = "yes"; then
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26932 $as_echo "yes" >&6; }
26934 cat >>confdefs.h <<_ACEOF
26935 #define HAVE_GETHOSTBYNAME 1
26938 ac_cv_func_gethostbyname="yes"
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26941 $as_echo "no" >&6; }
26942 ac_cv_func_gethostbyname="no"
26946 cares_includes_unistd="\
26947 /* includes start */
26948 #ifdef HAVE_SYS_TYPES_H
26949 # include <sys/types.h>
26951 #ifdef HAVE_UNISTD_H
26952 # include <unistd.h>
26954 /* includes end */"
26955 for ac_header in sys/types.h unistd.h
26957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26958 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_unistd
26960 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26961 cat >>confdefs.h <<_ACEOF
26962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26972 tst_links_gethostname="unknown"
26973 tst_proto_gethostname="unknown"
26974 tst_compi_gethostname="unknown"
26975 tst_allow_gethostname="unknown"
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
26978 $as_echo_n "checking if gethostname can be linked... " >&6; }
26979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26980 /* end confdefs.h. */
26983 $cares_includes_winsock2
26984 $cares_includes_unistd
26989 if(0 != gethostname(0, 0))
26997 if ac_fn_c_try_link "$LINENO"; then :
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27000 $as_echo "yes" >&6; }
27001 tst_links_gethostname="yes"
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27006 $as_echo "no" >&6; }
27007 tst_links_gethostname="no"
27010 rm -f core conftest.err conftest.$ac_objext \
27011 conftest$ac_exeext conftest.$ac_ext
27013 if test "$tst_links_gethostname" = "yes"; then
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
27015 $as_echo_n "checking if gethostname is prototyped... " >&6; }
27016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27017 /* end confdefs.h. */
27019 $cares_includes_winsock2
27020 $cares_includes_unistd
27023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27024 $EGREP "gethostname" >/dev/null 2>&1; then :
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27027 $as_echo "yes" >&6; }
27028 tst_proto_gethostname="yes"
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27033 $as_echo "no" >&6; }
27034 tst_proto_gethostname="no"
27041 if test "$tst_proto_gethostname" = "yes"; then
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
27043 $as_echo_n "checking if gethostname is compilable... " >&6; }
27044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27045 /* end confdefs.h. */
27048 $cares_includes_winsock2
27049 $cares_includes_unistd
27054 if(0 != gethostname(0, 0))
27062 if ac_fn_c_try_compile "$LINENO"; then :
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27065 $as_echo "yes" >&6; }
27066 tst_compi_gethostname="yes"
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27071 $as_echo "no" >&6; }
27072 tst_compi_gethostname="no"
27075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078 if test "$tst_compi_gethostname" = "yes"; then
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
27080 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
27081 tst_gethostname_type_arg2="unknown"
27082 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
27083 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
27084 if test "$tst_gethostname_type_arg2" = "unknown"; then
27085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27086 /* end confdefs.h. */
27089 $cares_includes_winsock2
27090 $cares_includes_unistd
27091 $cares_preprocess_callconv
27092 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
27097 if(0 != gethostname(0, 0))
27105 if ac_fn_c_try_compile "$LINENO"; then :
27107 tst_gethostname_type_arg2="$tst_arg2"
27110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
27115 $as_echo "$tst_gethostname_type_arg2" >&6; }
27116 if test "$tst_gethostname_type_arg2" != "unknown"; then
27118 cat >>confdefs.h <<_ACEOF
27119 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
27125 if test "$tst_compi_gethostname" = "yes"; then
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
27127 $as_echo_n "checking if gethostname usage allowed... " >&6; }
27128 if test "x$cares_disallow_gethostname" != "xyes"; then
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27130 $as_echo "yes" >&6; }
27131 tst_allow_gethostname="yes"
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27134 $as_echo "no" >&6; }
27135 tst_allow_gethostname="no"
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
27140 $as_echo_n "checking if gethostname might be used... " >&6; }
27141 if test "$tst_links_gethostname" = "yes" &&
27142 test "$tst_proto_gethostname" = "yes" &&
27143 test "$tst_compi_gethostname" = "yes" &&
27144 test "$tst_allow_gethostname" = "yes"; then
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27146 $as_echo "yes" >&6; }
27148 cat >>confdefs.h <<_ACEOF
27149 #define HAVE_GETHOSTNAME 1
27152 ac_cv_func_gethostname="yes"
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27155 $as_echo "no" >&6; }
27156 ac_cv_func_gethostname="no"
27161 tst_links_getservbyport_r="unknown"
27162 tst_proto_getservbyport_r="unknown"
27163 tst_compi_getservbyport_r="unknown"
27164 tst_allow_getservbyport_r="unknown"
27165 tst_nargs_getservbyport_r="unknown"
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
27168 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h. */
27173 #define getservbyport_r innocuous_getservbyport_r
27175 # include <limits.h>
27177 # include <assert.h>
27179 #undef getservbyport_r
27183 char getservbyport_r ();
27184 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
27190 return getservbyport_r ();
27196 if ac_fn_c_try_link "$LINENO"; then :
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27199 $as_echo "yes" >&6; }
27200 tst_links_getservbyport_r="yes"
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27205 $as_echo "no" >&6; }
27206 tst_links_getservbyport_r="no"
27209 rm -f core conftest.err conftest.$ac_objext \
27210 conftest$ac_exeext conftest.$ac_ext
27212 if test "$tst_links_getservbyport_r" = "yes"; then
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
27214 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
27215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27216 /* end confdefs.h. */
27218 $cares_includes_netdb
27221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27222 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27225 $as_echo "yes" >&6; }
27226 tst_proto_getservbyport_r="yes"
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27231 $as_echo "no" >&6; }
27232 tst_proto_getservbyport_r="no"
27239 if test "$tst_proto_getservbyport_r" = "yes"; then
27240 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
27242 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
27243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27244 /* end confdefs.h. */
27247 $cares_includes_netdb
27252 if(0 != getservbyport_r(0, 0, 0, 0))
27260 if ac_fn_c_try_compile "$LINENO"; then :
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27263 $as_echo "yes" >&6; }
27264 tst_compi_getservbyport_r="yes"
27265 tst_nargs_getservbyport_r="4"
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27270 $as_echo "no" >&6; }
27271 tst_compi_getservbyport_r="no"
27274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27276 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
27278 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
27279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27280 /* end confdefs.h. */
27283 $cares_includes_netdb
27288 if(0 != getservbyport_r(0, 0, 0, 0, 0))
27296 if ac_fn_c_try_compile "$LINENO"; then :
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27299 $as_echo "yes" >&6; }
27300 tst_compi_getservbyport_r="yes"
27301 tst_nargs_getservbyport_r="5"
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27306 $as_echo "no" >&6; }
27307 tst_compi_getservbyport_r="no"
27310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27312 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
27314 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
27315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27316 /* end confdefs.h. */
27319 $cares_includes_netdb
27324 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
27332 if ac_fn_c_try_compile "$LINENO"; then :
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27335 $as_echo "yes" >&6; }
27336 tst_compi_getservbyport_r="yes"
27337 tst_nargs_getservbyport_r="6"
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27342 $as_echo "no" >&6; }
27343 tst_compi_getservbyport_r="no"
27346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
27349 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
27350 if test "$tst_compi_getservbyport_r" = "yes"; then
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27352 $as_echo "yes" >&6; }
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27355 $as_echo "no" >&6; }
27359 if test "$tst_compi_getservbyport_r" = "yes"; then
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
27361 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
27362 if test "x$cares_disallow_getservbyport_r" != "xyes"; then
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27364 $as_echo "yes" >&6; }
27365 tst_allow_getservbyport_r="yes"
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27368 $as_echo "no" >&6; }
27369 tst_allow_getservbyport_r="no"
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
27374 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
27375 if test "$tst_links_getservbyport_r" = "yes" &&
27376 test "$tst_proto_getservbyport_r" = "yes" &&
27377 test "$tst_compi_getservbyport_r" = "yes" &&
27378 test "$tst_allow_getservbyport_r" = "yes"; then
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27380 $as_echo "yes" >&6; }
27382 cat >>confdefs.h <<_ACEOF
27383 #define HAVE_GETSERVBYPORT_R 1
27387 cat >>confdefs.h <<_ACEOF
27388 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
27391 if test "$tst_nargs_getservbyport_r" -eq "4"; then
27393 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
27397 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
27400 ac_cv_func_getservbyport_r="yes"
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27403 $as_echo "no" >&6; }
27404 ac_cv_func_getservbyport_r="no"
27408 cares_includes_arpa_inet="\
27409 /* includes start */
27410 #ifdef HAVE_SYS_TYPES_H
27411 # include <sys/types.h>
27413 #ifdef HAVE_SYS_SOCKET_H
27414 # include <sys/socket.h>
27416 #ifdef HAVE_NETINET_IN_H
27417 # include <netinet/in.h>
27419 #ifdef HAVE_ARPA_INET_H
27420 # include <arpa/inet.h>
27422 /* includes end */"
27423 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
27425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27426 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_arpa_inet
27428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27429 cat >>confdefs.h <<_ACEOF
27430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27440 tst_links_inet_net_pton="unknown"
27441 tst_proto_inet_net_pton="unknown"
27442 tst_compi_inet_net_pton="unknown"
27443 tst_works_inet_net_pton="unknown"
27444 tst_allow_inet_net_pton="unknown"
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
27447 $as_echo_n "checking if inet_net_pton can be linked... " >&6; }
27448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27449 /* end confdefs.h. */
27452 #define inet_net_pton innocuous_inet_net_pton
27454 # include <limits.h>
27456 # include <assert.h>
27458 #undef inet_net_pton
27462 char inet_net_pton ();
27463 #if defined __stub_inet_net_pton || defined __stub___inet_net_pton
27469 return inet_net_pton ();
27475 if ac_fn_c_try_link "$LINENO"; then :
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27478 $as_echo "yes" >&6; }
27479 tst_links_inet_net_pton="yes"
27483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27484 $as_echo "no" >&6; }
27485 tst_links_inet_net_pton="no"
27488 rm -f core conftest.err conftest.$ac_objext \
27489 conftest$ac_exeext conftest.$ac_ext
27491 if test "$tst_links_inet_net_pton" = "yes"; then
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
27493 $as_echo_n "checking if inet_net_pton is prototyped... " >&6; }
27494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27495 /* end confdefs.h. */
27497 $cares_includes_arpa_inet
27500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27501 $EGREP "inet_net_pton" >/dev/null 2>&1; then :
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27504 $as_echo "yes" >&6; }
27505 tst_proto_inet_net_pton="yes"
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27510 $as_echo "no" >&6; }
27511 tst_proto_inet_net_pton="no"
27518 if test "$tst_proto_inet_net_pton" = "yes"; then
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
27520 $as_echo_n "checking if inet_net_pton is compilable... " >&6; }
27521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27522 /* end confdefs.h. */
27525 $cares_includes_arpa_inet
27530 if(0 != inet_net_pton(0, 0, 0, 0))
27538 if ac_fn_c_try_compile "$LINENO"; then :
27540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27541 $as_echo "yes" >&6; }
27542 tst_compi_inet_net_pton="yes"
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27547 $as_echo "no" >&6; }
27548 tst_compi_inet_net_pton="no"
27551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27554 if test "x$cross_compiling" != "xyes" &&
27555 test "$tst_compi_inet_net_pton" = "yes"; then
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
27557 $as_echo_n "checking if inet_net_pton seems to work... " >&6; }
27558 if test "$cross_compiling" = yes; then :
27559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27561 as_fn_error $? "cannot run test program while cross compiling
27562 See \`config.log' for more details" "$LINENO" 5; }
27564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27565 /* end confdefs.h. */
27568 $cares_includes_stdlib
27569 $cares_includes_arpa_inet
27570 $cares_includes_string
27575 unsigned char ipv6a[16+1];
27576 unsigned char ipv4a[4+1];
27577 const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
27578 const char *ipv6net2 = "::fffe:7f00:1";
27579 const char *ipv6net3 = "7f20:1::/64";
27580 const char *ipv6net4 = "7f20:1::/2147483649";
27581 const char *ipv4net1 = "192.168.100.1";
27582 const char *ipv4net2 = "192.168.100/32";
27583 const char *ipv4net3 = "192.168.100.1/2147483649";
27585 memset(ipv4a, 1, sizeof(ipv4a));
27586 if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
27587 exit(1); /* fail */
27589 if( (ipv4a[0x00] != 0xc0) ||
27590 (ipv4a[0x01] != 0xa8) ||
27591 (ipv4a[0x02] != 0x64) ||
27592 (ipv4a[0x03] != 0x01) ||
27593 (ipv4a[0x04] != 0x01) )
27594 exit(1); /* fail */
27596 memset(ipv4a, 1, sizeof(ipv4a));
27597 if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
27598 exit(1); /* fail */
27600 if( (ipv4a[0x00] != 0xc0) ||
27601 (ipv4a[0x01] != 0xa8) ||
27602 (ipv4a[0x02] != 0x64) ||
27603 (ipv4a[0x03] != 0x00) ||
27604 (ipv4a[0x04] != 0x01) )
27605 exit(1); /* fail */
27607 memset(ipv4a, 1, sizeof(ipv4a));
27608 if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
27609 exit(1); /* fail */
27611 memset(ipv6a, 1, sizeof(ipv6a));
27612 if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
27613 exit(1); /* fail */
27615 if( (ipv6a[0x00] != 0xfe) ||
27616 (ipv6a[0x01] != 0x80) ||
27617 (ipv6a[0x08] != 0x02) ||
27618 (ipv6a[0x09] != 0x14) ||
27619 (ipv6a[0x0a] != 0x4f) ||
27620 (ipv6a[0x0b] != 0xff) ||
27621 (ipv6a[0x0c] != 0xfe) ||
27622 (ipv6a[0x0d] != 0x0b) ||
27623 (ipv6a[0x0e] != 0x76) ||
27624 (ipv6a[0x0f] != 0xc8) ||
27625 (ipv6a[0x10] != 0x01) )
27626 exit(1); /* fail */
27628 if( (ipv6a[0x02] != 0x0) ||
27629 (ipv6a[0x03] != 0x0) ||
27630 (ipv6a[0x04] != 0x0) ||
27631 (ipv6a[0x05] != 0x0) ||
27632 (ipv6a[0x06] != 0x0) ||
27633 (ipv6a[0x07] != 0x0) )
27634 exit(1); /* fail */
27636 memset(ipv6a, 0, sizeof(ipv6a));
27637 ipv6a[0x10] = 0x01;
27638 if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
27639 exit(1); /* fail */
27641 if( (ipv6a[0x0a] != 0xff) ||
27642 (ipv6a[0x0b] != 0xfe) ||
27643 (ipv6a[0x0c] != 0x7f) ||
27644 (ipv6a[0x0f] != 0x01) ||
27645 (ipv6a[0x10] != 0x01) )
27646 exit(1); /* fail */
27648 if( (ipv6a[0x00] != 0x0) ||
27649 (ipv6a[0x01] != 0x0) ||
27650 (ipv6a[0x02] != 0x0) ||
27651 (ipv6a[0x03] != 0x0) ||
27652 (ipv6a[0x04] != 0x0) ||
27653 (ipv6a[0x05] != 0x0) ||
27654 (ipv6a[0x06] != 0x0) ||
27655 (ipv6a[0x07] != 0x0) ||
27656 (ipv6a[0x08] != 0x0) ||
27657 (ipv6a[0x09] != 0x0) ||
27658 (ipv6a[0x0d] != 0x0) ||
27659 (ipv6a[0x0e] != 0x0) )
27660 exit(1); /* fail */
27662 memset(ipv6a, 1, sizeof(ipv6a));
27663 if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
27664 exit(1); /* fail */
27665 if( (ipv6a[0x00] != 0x7f) ||
27666 (ipv6a[0x01] != 0x20) ||
27667 (ipv6a[0x03] != 0x01) ||
27668 (ipv6a[0x08] != 0x01) ||
27669 (ipv6a[0x09] != 0x01) ||
27670 (ipv6a[0x0a] != 0x01) ||
27671 (ipv6a[0x0b] != 0x01) ||
27672 (ipv6a[0x0c] != 0x01) ||
27673 (ipv6a[0x0d] != 0x01) ||
27674 (ipv6a[0x0e] != 0x01) ||
27675 (ipv6a[0x0f] != 0x01) ||
27676 (ipv6a[0x10] != 0x01) )
27677 exit(1); /* fail */
27678 if( (ipv6a[0x02] != 0x0) ||
27679 (ipv6a[0x04] != 0x0) ||
27680 (ipv6a[0x05] != 0x0) ||
27681 (ipv6a[0x06] != 0x0) ||
27682 (ipv6a[0x07] != 0x0) ||
27683 (ipv6a[0x07] != 0x0) )
27684 exit(1); /* fail */
27686 memset(ipv6a, 1, sizeof(ipv6a));
27687 if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
27688 exit(1); /* fail */
27697 if ac_fn_c_try_run "$LINENO"; then :
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27700 $as_echo "yes" >&6; }
27701 tst_works_inet_net_pton="yes"
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27706 $as_echo "no" >&6; }
27707 tst_works_inet_net_pton="no"
27710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27711 conftest.$ac_objext conftest.beam conftest.$ac_ext
27716 if test "$tst_compi_inet_net_pton" = "yes" &&
27717 test "$tst_works_inet_net_pton" != "no"; then
27718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
27719 $as_echo_n "checking if inet_net_pton usage allowed... " >&6; }
27720 if test "x$cares_disallow_inet_net_pton" != "xyes"; then
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27722 $as_echo "yes" >&6; }
27723 tst_allow_inet_net_pton="yes"
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27726 $as_echo "no" >&6; }
27727 tst_allow_inet_net_pton="no"
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
27732 $as_echo_n "checking if inet_net_pton might be used... " >&6; }
27733 if test "$tst_links_inet_net_pton" = "yes" &&
27734 test "$tst_proto_inet_net_pton" = "yes" &&
27735 test "$tst_compi_inet_net_pton" = "yes" &&
27736 test "$tst_allow_inet_net_pton" = "yes" &&
27737 test "$tst_works_inet_net_pton" != "no"; then
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27739 $as_echo "yes" >&6; }
27741 cat >>confdefs.h <<_ACEOF
27742 #define HAVE_INET_NET_PTON 1
27745 ac_cv_func_inet_net_pton="yes"
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27748 $as_echo "no" >&6; }
27749 ac_cv_func_inet_net_pton="no"
27754 tst_links_inet_ntop="unknown"
27755 tst_proto_inet_ntop="unknown"
27756 tst_compi_inet_ntop="unknown"
27757 tst_works_inet_ntop="unknown"
27758 tst_allow_inet_ntop="unknown"
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
27761 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
27762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27763 /* end confdefs.h. */
27766 #define inet_ntop innocuous_inet_ntop
27768 # include <limits.h>
27770 # include <assert.h>
27777 #if defined __stub_inet_ntop || defined __stub___inet_ntop
27783 return inet_ntop ();
27789 if ac_fn_c_try_link "$LINENO"; then :
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27792 $as_echo "yes" >&6; }
27793 tst_links_inet_ntop="yes"
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27798 $as_echo "no" >&6; }
27799 tst_links_inet_ntop="no"
27802 rm -f core conftest.err conftest.$ac_objext \
27803 conftest$ac_exeext conftest.$ac_ext
27805 if test "$tst_links_inet_ntop" = "yes"; then
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
27807 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
27808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27809 /* end confdefs.h. */
27811 $cares_includes_arpa_inet
27814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27815 $EGREP "inet_ntop" >/dev/null 2>&1; then :
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27818 $as_echo "yes" >&6; }
27819 tst_proto_inet_ntop="yes"
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27824 $as_echo "no" >&6; }
27825 tst_proto_inet_ntop="no"
27832 if test "$tst_proto_inet_ntop" = "yes"; then
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
27834 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
27835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27836 /* end confdefs.h. */
27839 $cares_includes_arpa_inet
27844 if(0 != inet_ntop(0, 0, 0, 0))
27852 if ac_fn_c_try_compile "$LINENO"; then :
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27855 $as_echo "yes" >&6; }
27856 tst_compi_inet_ntop="yes"
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27861 $as_echo "no" >&6; }
27862 tst_compi_inet_ntop="no"
27865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27868 if test "x$cross_compiling" != "xyes" &&
27869 test "$tst_compi_inet_ntop" = "yes"; then
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
27871 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
27872 if test "$cross_compiling" = yes; then :
27873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27875 as_fn_error $? "cannot run test program while cross compiling
27876 See \`config.log' for more details" "$LINENO" 5; }
27878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27879 /* end confdefs.h. */
27882 $cares_includes_stdlib
27883 $cares_includes_arpa_inet
27884 $cares_includes_string
27889 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
27890 char ipv4res[sizeof "255.255.255.255"];
27891 unsigned char ipv6a[26];
27892 unsigned char ipv4a[5];
27903 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
27905 exit(1); /* fail */
27906 if(ipv4ptr != ipv4res)
27907 exit(1); /* fail */
27909 exit(1); /* fail */
27910 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
27911 exit(1); /* fail */
27914 memset(ipv6a, 0, sizeof(ipv6a));
27927 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
27929 exit(1); /* fail */
27930 if(ipv6ptr != ipv6res)
27931 exit(1); /* fail */
27933 exit(1); /* fail */
27934 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
27935 exit(1); /* fail */
27944 if ac_fn_c_try_run "$LINENO"; then :
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27947 $as_echo "yes" >&6; }
27948 tst_works_inet_ntop="yes"
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27953 $as_echo "no" >&6; }
27954 tst_works_inet_ntop="no"
27957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27958 conftest.$ac_objext conftest.beam conftest.$ac_ext
27963 if test "$tst_compi_inet_ntop" = "yes" &&
27964 test "$tst_works_inet_ntop" != "no"; then
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
27966 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
27967 if test "x$cares_disallow_inet_ntop" != "xyes"; then
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27969 $as_echo "yes" >&6; }
27970 tst_allow_inet_ntop="yes"
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27973 $as_echo "no" >&6; }
27974 tst_allow_inet_ntop="no"
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
27979 $as_echo_n "checking if inet_ntop might be used... " >&6; }
27980 if test "$tst_links_inet_ntop" = "yes" &&
27981 test "$tst_proto_inet_ntop" = "yes" &&
27982 test "$tst_compi_inet_ntop" = "yes" &&
27983 test "$tst_allow_inet_ntop" = "yes" &&
27984 test "$tst_works_inet_ntop" != "no"; then
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27986 $as_echo "yes" >&6; }
27988 cat >>confdefs.h <<_ACEOF
27989 #define HAVE_INET_NTOP 1
27992 ac_cv_func_inet_ntop="yes"
27994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27995 $as_echo "no" >&6; }
27996 ac_cv_func_inet_ntop="no"
28001 tst_links_inet_pton="unknown"
28002 tst_proto_inet_pton="unknown"
28003 tst_compi_inet_pton="unknown"
28004 tst_works_inet_pton="unknown"
28005 tst_allow_inet_pton="unknown"
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
28008 $as_echo_n "checking if inet_pton can be linked... " >&6; }
28009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010 /* end confdefs.h. */
28013 #define inet_pton innocuous_inet_pton
28015 # include <limits.h>
28017 # include <assert.h>
28024 #if defined __stub_inet_pton || defined __stub___inet_pton
28030 return inet_pton ();
28036 if ac_fn_c_try_link "$LINENO"; then :
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28039 $as_echo "yes" >&6; }
28040 tst_links_inet_pton="yes"
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28045 $as_echo "no" >&6; }
28046 tst_links_inet_pton="no"
28049 rm -f core conftest.err conftest.$ac_objext \
28050 conftest$ac_exeext conftest.$ac_ext
28052 if test "$tst_links_inet_pton" = "yes"; then
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
28054 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
28055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28056 /* end confdefs.h. */
28058 $cares_includes_arpa_inet
28061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28062 $EGREP "inet_pton" >/dev/null 2>&1; then :
28064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28065 $as_echo "yes" >&6; }
28066 tst_proto_inet_pton="yes"
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28071 $as_echo "no" >&6; }
28072 tst_proto_inet_pton="no"
28079 if test "$tst_proto_inet_pton" = "yes"; then
28080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
28081 $as_echo_n "checking if inet_pton is compilable... " >&6; }
28082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28083 /* end confdefs.h. */
28086 $cares_includes_arpa_inet
28091 if(0 != inet_pton(0, 0, 0))
28099 if ac_fn_c_try_compile "$LINENO"; then :
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28102 $as_echo "yes" >&6; }
28103 tst_compi_inet_pton="yes"
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28108 $as_echo "no" >&6; }
28109 tst_compi_inet_pton="no"
28112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28115 if test "x$cross_compiling" != "xyes" &&
28116 test "$tst_compi_inet_pton" = "yes"; then
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
28118 $as_echo_n "checking if inet_pton seems to work... " >&6; }
28119 if test "$cross_compiling" = yes; then :
28120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28122 as_fn_error $? "cannot run test program while cross compiling
28123 See \`config.log' for more details" "$LINENO" 5; }
28125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28126 /* end confdefs.h. */
28129 $cares_includes_stdlib
28130 $cares_includes_arpa_inet
28131 $cares_includes_string
28136 unsigned char ipv6a[16+1];
28137 unsigned char ipv4a[4+1];
28138 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
28139 const char *ipv4src = "192.168.100.1";
28141 memset(ipv4a, 1, sizeof(ipv4a));
28142 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
28143 exit(1); /* fail */
28145 if( (ipv4a[0] != 0xc0) ||
28146 (ipv4a[1] != 0xa8) ||
28147 (ipv4a[2] != 0x64) ||
28148 (ipv4a[3] != 0x01) ||
28149 (ipv4a[4] != 0x01) )
28150 exit(1); /* fail */
28152 memset(ipv6a, 1, sizeof(ipv6a));
28153 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
28154 exit(1); /* fail */
28156 if( (ipv6a[0] != 0xfe) ||
28157 (ipv6a[1] != 0x80) ||
28158 (ipv6a[8] != 0x02) ||
28159 (ipv6a[9] != 0x14) ||
28160 (ipv6a[10] != 0x4f) ||
28161 (ipv6a[11] != 0xff) ||
28162 (ipv6a[12] != 0xfe) ||
28163 (ipv6a[13] != 0x0b) ||
28164 (ipv6a[14] != 0x76) ||
28165 (ipv6a[15] != 0xc8) ||
28166 (ipv6a[16] != 0x01) )
28167 exit(1); /* fail */
28169 if( (ipv6a[2] != 0x0) ||
28170 (ipv6a[3] != 0x0) ||
28171 (ipv6a[4] != 0x0) ||
28172 (ipv6a[5] != 0x0) ||
28173 (ipv6a[6] != 0x0) ||
28174 (ipv6a[7] != 0x0) )
28175 exit(1); /* fail */
28184 if ac_fn_c_try_run "$LINENO"; then :
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28187 $as_echo "yes" >&6; }
28188 tst_works_inet_pton="yes"
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28193 $as_echo "no" >&6; }
28194 tst_works_inet_pton="no"
28197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28198 conftest.$ac_objext conftest.beam conftest.$ac_ext
28203 if test "$tst_compi_inet_pton" = "yes" &&
28204 test "$tst_works_inet_pton" != "no"; then
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
28206 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
28207 if test "x$cares_disallow_inet_pton" != "xyes"; then
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28209 $as_echo "yes" >&6; }
28210 tst_allow_inet_pton="yes"
28212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28213 $as_echo "no" >&6; }
28214 tst_allow_inet_pton="no"
28218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
28219 $as_echo_n "checking if inet_pton might be used... " >&6; }
28220 if test "$tst_links_inet_pton" = "yes" &&
28221 test "$tst_proto_inet_pton" = "yes" &&
28222 test "$tst_compi_inet_pton" = "yes" &&
28223 test "$tst_allow_inet_pton" = "yes" &&
28224 test "$tst_works_inet_pton" != "no"; then
28225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28226 $as_echo "yes" >&6; }
28228 cat >>confdefs.h <<_ACEOF
28229 #define HAVE_INET_PTON 1
28232 ac_cv_func_inet_pton="yes"
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28235 $as_echo "no" >&6; }
28236 ac_cv_func_inet_pton="no"
28240 cares_includes_stropts="\
28241 /* includes start */
28242 #ifdef HAVE_SYS_TYPES_H
28243 # include <sys/types.h>
28245 #ifdef HAVE_UNISTD_H
28246 # include <unistd.h>
28248 #ifdef HAVE_SYS_SOCKET_H
28249 # include <sys/socket.h>
28251 #ifdef HAVE_SYS_IOCTL_H
28252 # include <sys/ioctl.h>
28254 #ifdef HAVE_STROPTS_H
28255 # include <stropts.h>
28257 /* includes end */"
28258 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
28260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stropts
28263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28264 cat >>confdefs.h <<_ACEOF
28265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28275 tst_links_ioctl="unknown"
28276 tst_proto_ioctl="unknown"
28277 tst_compi_ioctl="unknown"
28278 tst_allow_ioctl="unknown"
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
28281 $as_echo_n "checking if ioctl can be linked... " >&6; }
28282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28283 /* end confdefs.h. */
28286 #define ioctl innocuous_ioctl
28288 # include <limits.h>
28290 # include <assert.h>
28297 #if defined __stub_ioctl || defined __stub___ioctl
28309 if ac_fn_c_try_link "$LINENO"; then :
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28312 $as_echo "yes" >&6; }
28313 tst_links_ioctl="yes"
28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28318 $as_echo "no" >&6; }
28319 tst_links_ioctl="no"
28322 rm -f core conftest.err conftest.$ac_objext \
28323 conftest$ac_exeext conftest.$ac_ext
28325 if test "$tst_links_ioctl" = "yes"; then
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
28327 $as_echo_n "checking if ioctl is prototyped... " >&6; }
28328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28329 /* end confdefs.h. */
28331 $cares_includes_stropts
28334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28335 $EGREP "ioctl" >/dev/null 2>&1; then :
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28338 $as_echo "yes" >&6; }
28339 tst_proto_ioctl="yes"
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28344 $as_echo "no" >&6; }
28345 tst_proto_ioctl="no"
28352 if test "$tst_proto_ioctl" = "yes"; then
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
28354 $as_echo_n "checking if ioctl is compilable... " >&6; }
28355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28356 /* end confdefs.h. */
28359 $cares_includes_stropts
28364 if(0 != ioctl(0, 0, 0))
28372 if ac_fn_c_try_compile "$LINENO"; then :
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28375 $as_echo "yes" >&6; }
28376 tst_compi_ioctl="yes"
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28381 $as_echo "no" >&6; }
28382 tst_compi_ioctl="no"
28385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28388 if test "$tst_compi_ioctl" = "yes"; then
28389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
28390 $as_echo_n "checking if ioctl usage allowed... " >&6; }
28391 if test "x$cares_disallow_ioctl" != "xyes"; then
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28393 $as_echo "yes" >&6; }
28394 tst_allow_ioctl="yes"
28396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28397 $as_echo "no" >&6; }
28398 tst_allow_ioctl="no"
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
28403 $as_echo_n "checking if ioctl might be used... " >&6; }
28404 if test "$tst_links_ioctl" = "yes" &&
28405 test "$tst_proto_ioctl" = "yes" &&
28406 test "$tst_compi_ioctl" = "yes" &&
28407 test "$tst_allow_ioctl" = "yes"; then
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28409 $as_echo "yes" >&6; }
28411 cat >>confdefs.h <<_ACEOF
28412 #define HAVE_IOCTL 1
28415 ac_cv_func_ioctl="yes"
28418 tst_compi_ioctl_fionbio="unknown"
28419 tst_allow_ioctl_fionbio="unknown"
28421 if test "$ac_cv_func_ioctl" = "yes"; then
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
28423 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
28424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28425 /* end confdefs.h. */
28428 $cares_includes_stropts
28434 if(0 != ioctl(0, FIONBIO, &flags))
28442 if ac_fn_c_try_compile "$LINENO"; then :
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28445 $as_echo "yes" >&6; }
28446 tst_compi_ioctl_fionbio="yes"
28450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28451 $as_echo "no" >&6; }
28452 tst_compi_ioctl_fionbio="no"
28455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28458 if test "$tst_compi_ioctl_fionbio" = "yes"; then
28459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
28460 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
28461 if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28463 $as_echo "yes" >&6; }
28464 tst_allow_ioctl_fionbio="yes"
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28467 $as_echo "no" >&6; }
28468 tst_allow_ioctl_fionbio="no"
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
28473 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
28474 if test "$tst_compi_ioctl_fionbio" = "yes" &&
28475 test "$tst_allow_ioctl_fionbio" = "yes"; then
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28477 $as_echo "yes" >&6; }
28479 cat >>confdefs.h <<_ACEOF
28480 #define HAVE_IOCTL_FIONBIO 1
28483 ac_cv_func_ioctl_fionbio="yes"
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28486 $as_echo "no" >&6; }
28487 ac_cv_func_ioctl_fionbio="no"
28492 tst_compi_ioctl_siocgifaddr="unknown"
28493 tst_allow_ioctl_siocgifaddr="unknown"
28495 if test "$ac_cv_func_ioctl" = "yes"; then
28496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
28497 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
28498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28499 /* end confdefs.h. */
28502 $cares_includes_stropts
28503 #include <net/if.h>
28509 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
28517 if ac_fn_c_try_compile "$LINENO"; then :
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28520 $as_echo "yes" >&6; }
28521 tst_compi_ioctl_siocgifaddr="yes"
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28526 $as_echo "no" >&6; }
28527 tst_compi_ioctl_siocgifaddr="no"
28530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28533 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
28534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
28535 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
28536 if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28538 $as_echo "yes" >&6; }
28539 tst_allow_ioctl_siocgifaddr="yes"
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28542 $as_echo "no" >&6; }
28543 tst_allow_ioctl_siocgifaddr="no"
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
28548 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
28549 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
28550 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28552 $as_echo "yes" >&6; }
28554 cat >>confdefs.h <<_ACEOF
28555 #define HAVE_IOCTL_SIOCGIFADDR 1
28558 ac_cv_func_ioctl_siocgifaddr="yes"
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28561 $as_echo "no" >&6; }
28562 ac_cv_func_ioctl_siocgifaddr="no"
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28567 $as_echo "no" >&6; }
28568 ac_cv_func_ioctl="no"
28573 tst_links_ioctlsocket="unknown"
28574 tst_proto_ioctlsocket="unknown"
28575 tst_compi_ioctlsocket="unknown"
28576 tst_allow_ioctlsocket="unknown"
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
28579 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
28580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28581 /* end confdefs.h. */
28584 $cares_includes_winsock2
28589 if(0 != ioctlsocket(0, 0, 0))
28597 if ac_fn_c_try_link "$LINENO"; then :
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28600 $as_echo "yes" >&6; }
28601 tst_links_ioctlsocket="yes"
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28606 $as_echo "no" >&6; }
28607 tst_links_ioctlsocket="no"
28610 rm -f core conftest.err conftest.$ac_objext \
28611 conftest$ac_exeext conftest.$ac_ext
28613 if test "$tst_links_ioctlsocket" = "yes"; then
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
28615 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
28616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28617 /* end confdefs.h. */
28619 $cares_includes_winsock2
28622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28623 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28626 $as_echo "yes" >&6; }
28627 tst_proto_ioctlsocket="yes"
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28632 $as_echo "no" >&6; }
28633 tst_proto_ioctlsocket="no"
28640 if test "$tst_proto_ioctlsocket" = "yes"; then
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
28642 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
28643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28644 /* end confdefs.h. */
28647 $cares_includes_winsock2
28652 if(0 != ioctlsocket(0, 0, 0))
28660 if ac_fn_c_try_compile "$LINENO"; then :
28662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28663 $as_echo "yes" >&6; }
28664 tst_compi_ioctlsocket="yes"
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28669 $as_echo "no" >&6; }
28670 tst_compi_ioctlsocket="no"
28673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28676 if test "$tst_compi_ioctlsocket" = "yes"; then
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
28678 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
28679 if test "x$cares_disallow_ioctlsocket" != "xyes"; then
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28681 $as_echo "yes" >&6; }
28682 tst_allow_ioctlsocket="yes"
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28685 $as_echo "no" >&6; }
28686 tst_allow_ioctlsocket="no"
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
28691 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
28692 if test "$tst_links_ioctlsocket" = "yes" &&
28693 test "$tst_proto_ioctlsocket" = "yes" &&
28694 test "$tst_compi_ioctlsocket" = "yes" &&
28695 test "$tst_allow_ioctlsocket" = "yes"; then
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28697 $as_echo "yes" >&6; }
28699 cat >>confdefs.h <<_ACEOF
28700 #define HAVE_IOCTLSOCKET 1
28703 ac_cv_func_ioctlsocket="yes"
28706 tst_compi_ioctlsocket_fionbio="unknown"
28707 tst_allow_ioctlsocket_fionbio="unknown"
28709 if test "$ac_cv_func_ioctlsocket" = "yes"; then
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
28711 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
28712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28713 /* end confdefs.h. */
28716 $cares_includes_winsock2
28722 if(0 != ioctlsocket(0, FIONBIO, &flags))
28730 if ac_fn_c_try_compile "$LINENO"; then :
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28733 $as_echo "yes" >&6; }
28734 tst_compi_ioctlsocket_fionbio="yes"
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28739 $as_echo "no" >&6; }
28740 tst_compi_ioctlsocket_fionbio="no"
28743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28746 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
28748 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
28749 if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28751 $as_echo "yes" >&6; }
28752 tst_allow_ioctlsocket_fionbio="yes"
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28755 $as_echo "no" >&6; }
28756 tst_allow_ioctlsocket_fionbio="no"
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
28761 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
28762 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
28763 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28765 $as_echo "yes" >&6; }
28767 cat >>confdefs.h <<_ACEOF
28768 #define HAVE_IOCTLSOCKET_FIONBIO 1
28771 ac_cv_func_ioctlsocket_fionbio="yes"
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28774 $as_echo "no" >&6; }
28775 ac_cv_func_ioctlsocket_fionbio="no"
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28780 $as_echo "no" >&6; }
28781 ac_cv_func_ioctlsocket="no"
28786 tst_links_ioctlsocket_camel="unknown"
28787 tst_proto_ioctlsocket_camel="unknown"
28788 tst_compi_ioctlsocket_camel="unknown"
28789 tst_allow_ioctlsocket_camel="unknown"
28791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
28792 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
28793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28794 /* end confdefs.h. */
28797 #define IoctlSocket innocuous_IoctlSocket
28799 # include <limits.h>
28801 # include <assert.h>
28807 char IoctlSocket ();
28808 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
28814 return IoctlSocket ();
28820 if ac_fn_c_try_link "$LINENO"; then :
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28823 $as_echo "yes" >&6; }
28824 tst_links_ioctlsocket_camel="yes"
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28829 $as_echo "no" >&6; }
28830 tst_links_ioctlsocket_camel="no"
28833 rm -f core conftest.err conftest.$ac_objext \
28834 conftest$ac_exeext conftest.$ac_ext
28836 if test "$tst_links_ioctlsocket_camel" = "yes"; then
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
28838 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
28839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28840 /* end confdefs.h. */
28842 $cares_includes_stropts
28845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28846 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28849 $as_echo "yes" >&6; }
28850 tst_proto_ioctlsocket_camel="yes"
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28855 $as_echo "no" >&6; }
28856 tst_proto_ioctlsocket_camel="no"
28863 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
28865 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
28866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28867 /* end confdefs.h. */
28870 $cares_includes_stropts
28875 if(0 != IoctlSocket(0, 0, 0))
28883 if ac_fn_c_try_compile "$LINENO"; then :
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28886 $as_echo "yes" >&6; }
28887 tst_compi_ioctlsocket_camel="yes"
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28892 $as_echo "no" >&6; }
28893 tst_compi_ioctlsocket_camel="no"
28896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28899 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
28901 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
28902 if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28904 $as_echo "yes" >&6; }
28905 tst_allow_ioctlsocket_camel="yes"
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28908 $as_echo "no" >&6; }
28909 tst_allow_ioctlsocket_camel="no"
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
28914 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
28915 if test "$tst_links_ioctlsocket_camel" = "yes" &&
28916 test "$tst_proto_ioctlsocket_camel" = "yes" &&
28917 test "$tst_compi_ioctlsocket_camel" = "yes" &&
28918 test "$tst_allow_ioctlsocket_camel" = "yes"; then
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28920 $as_echo "yes" >&6; }
28922 cat >>confdefs.h <<_ACEOF
28923 #define HAVE_IOCTLSOCKET_CAMEL 1
28926 ac_cv_func_ioctlsocket_camel="yes"
28929 tst_compi_ioctlsocket_camel_fionbio="unknown"
28930 tst_allow_ioctlsocket_camel_fionbio="unknown"
28932 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
28933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
28934 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
28935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28936 /* end confdefs.h. */
28939 $cares_includes_stropts
28945 if(0 != ioctlsocket(0, FIONBIO, &flags))
28953 if ac_fn_c_try_compile "$LINENO"; then :
28955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28956 $as_echo "yes" >&6; }
28957 tst_compi_ioctlsocket_camel_fionbio="yes"
28961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28962 $as_echo "no" >&6; }
28963 tst_compi_ioctlsocket_camel_fionbio="no"
28966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28969 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
28971 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
28972 if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28974 $as_echo "yes" >&6; }
28975 tst_allow_ioctlsocket_camel_fionbio="yes"
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28978 $as_echo "no" >&6; }
28979 tst_allow_ioctlsocket_camel_fionbio="no"
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
28984 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
28985 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
28986 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28988 $as_echo "yes" >&6; }
28990 cat >>confdefs.h <<_ACEOF
28991 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
28994 ac_cv_func_ioctlsocket_camel_fionbio="yes"
28996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28997 $as_echo "no" >&6; }
28998 ac_cv_func_ioctlsocket_camel_fionbio="no"
29002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29003 $as_echo "no" >&6; }
29004 ac_cv_func_ioctlsocket_camel="no"
29009 tst_links_setsockopt="unknown"
29010 tst_proto_setsockopt="unknown"
29011 tst_compi_setsockopt="unknown"
29012 tst_allow_setsockopt="unknown"
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
29015 $as_echo_n "checking if setsockopt can be linked... " >&6; }
29016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29017 /* end confdefs.h. */
29020 $cares_includes_winsock2
29021 $cares_includes_sys_socket
29026 if(0 != setsockopt(0, 0, 0, 0, 0))
29034 if ac_fn_c_try_link "$LINENO"; then :
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29037 $as_echo "yes" >&6; }
29038 tst_links_setsockopt="yes"
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29043 $as_echo "no" >&6; }
29044 tst_links_setsockopt="no"
29047 rm -f core conftest.err conftest.$ac_objext \
29048 conftest$ac_exeext conftest.$ac_ext
29050 if test "$tst_links_setsockopt" = "yes"; then
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
29052 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
29053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29054 /* end confdefs.h. */
29056 $cares_includes_winsock2
29057 $cares_includes_sys_socket
29060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29061 $EGREP "setsockopt" >/dev/null 2>&1; then :
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29064 $as_echo "yes" >&6; }
29065 tst_proto_setsockopt="yes"
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29070 $as_echo "no" >&6; }
29071 tst_proto_setsockopt="no"
29078 if test "$tst_proto_setsockopt" = "yes"; then
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
29080 $as_echo_n "checking if setsockopt is compilable... " >&6; }
29081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29082 /* end confdefs.h. */
29085 $cares_includes_winsock2
29086 $cares_includes_sys_socket
29091 if(0 != setsockopt(0, 0, 0, 0, 0))
29099 if ac_fn_c_try_compile "$LINENO"; then :
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29102 $as_echo "yes" >&6; }
29103 tst_compi_setsockopt="yes"
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29108 $as_echo "no" >&6; }
29109 tst_compi_setsockopt="no"
29112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29115 if test "$tst_compi_setsockopt" = "yes"; then
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
29117 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
29118 if test "x$cares_disallow_setsockopt" != "xyes"; then
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29120 $as_echo "yes" >&6; }
29121 tst_allow_setsockopt="yes"
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29124 $as_echo "no" >&6; }
29125 tst_allow_setsockopt="no"
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
29130 $as_echo_n "checking if setsockopt might be used... " >&6; }
29131 if test "$tst_links_setsockopt" = "yes" &&
29132 test "$tst_proto_setsockopt" = "yes" &&
29133 test "$tst_compi_setsockopt" = "yes" &&
29134 test "$tst_allow_setsockopt" = "yes"; then
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29136 $as_echo "yes" >&6; }
29138 cat >>confdefs.h <<_ACEOF
29139 #define HAVE_SETSOCKOPT 1
29142 ac_cv_func_setsockopt="yes"
29145 tst_compi_setsockopt_so_nonblock="unknown"
29146 tst_allow_setsockopt_so_nonblock="unknown"
29148 if test "$ac_cv_func_setsockopt" = "yes"; then
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
29150 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
29151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29152 /* end confdefs.h. */
29155 $cares_includes_winsock2
29156 $cares_includes_sys_socket
29161 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
29169 if ac_fn_c_try_compile "$LINENO"; then :
29171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29172 $as_echo "yes" >&6; }
29173 tst_compi_setsockopt_so_nonblock="yes"
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29178 $as_echo "no" >&6; }
29179 tst_compi_setsockopt_so_nonblock="no"
29182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29185 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
29187 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
29188 if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29190 $as_echo "yes" >&6; }
29191 tst_allow_setsockopt_so_nonblock="yes"
29193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29194 $as_echo "no" >&6; }
29195 tst_allow_setsockopt_so_nonblock="no"
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
29200 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
29201 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
29202 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29204 $as_echo "yes" >&6; }
29206 cat >>confdefs.h <<_ACEOF
29207 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
29210 ac_cv_func_setsockopt_so_nonblock="yes"
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29213 $as_echo "no" >&6; }
29214 ac_cv_func_setsockopt_so_nonblock="no"
29218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29219 $as_echo "no" >&6; }
29220 ac_cv_func_setsockopt="no"
29225 tst_links_socket="unknown"
29226 tst_proto_socket="unknown"
29227 tst_compi_socket="unknown"
29228 tst_allow_socket="unknown"
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
29231 $as_echo_n "checking if socket can be linked... " >&6; }
29232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29233 /* end confdefs.h. */
29236 $cares_includes_winsock2
29237 $cares_includes_sys_socket
29238 $cares_includes_socket
29243 if(0 != socket(0, 0, 0))
29251 if ac_fn_c_try_link "$LINENO"; then :
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29254 $as_echo "yes" >&6; }
29255 tst_links_socket="yes"
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29260 $as_echo "no" >&6; }
29261 tst_links_socket="no"
29264 rm -f core conftest.err conftest.$ac_objext \
29265 conftest$ac_exeext conftest.$ac_ext
29267 if test "$tst_links_socket" = "yes"; then
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
29269 $as_echo_n "checking if socket is prototyped... " >&6; }
29270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29271 /* end confdefs.h. */
29273 $cares_includes_winsock2
29274 $cares_includes_sys_socket
29275 $cares_includes_socket
29278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29279 $EGREP "socket" >/dev/null 2>&1; then :
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29282 $as_echo "yes" >&6; }
29283 tst_proto_socket="yes"
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29288 $as_echo "no" >&6; }
29289 tst_proto_socket="no"
29296 if test "$tst_proto_socket" = "yes"; then
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
29298 $as_echo_n "checking if socket is compilable... " >&6; }
29299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29300 /* end confdefs.h. */
29303 $cares_includes_winsock2
29304 $cares_includes_sys_socket
29305 $cares_includes_socket
29310 if(0 != socket(0, 0, 0))
29318 if ac_fn_c_try_compile "$LINENO"; then :
29320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29321 $as_echo "yes" >&6; }
29322 tst_compi_socket="yes"
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29327 $as_echo "no" >&6; }
29328 tst_compi_socket="no"
29331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29334 if test "$tst_compi_socket" = "yes"; then
29335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
29336 $as_echo_n "checking if socket usage allowed... " >&6; }
29337 if test "x$cares_disallow_socket" != "xyes"; then
29338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29339 $as_echo "yes" >&6; }
29340 tst_allow_socket="yes"
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29343 $as_echo "no" >&6; }
29344 tst_allow_socket="no"
29348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
29349 $as_echo_n "checking if socket might be used... " >&6; }
29350 if test "$tst_links_socket" = "yes" &&
29351 test "$tst_proto_socket" = "yes" &&
29352 test "$tst_compi_socket" = "yes" &&
29353 test "$tst_allow_socket" = "yes"; then
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29355 $as_echo "yes" >&6; }
29357 cat >>confdefs.h <<_ACEOF
29358 #define HAVE_SOCKET 1
29361 ac_cv_func_socket="yes"
29363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29364 $as_echo "no" >&6; }
29365 ac_cv_func_socket="no"
29370 tst_links_strcasecmp="unknown"
29371 tst_proto_strcasecmp="unknown"
29372 tst_compi_strcasecmp="unknown"
29373 tst_allow_strcasecmp="unknown"
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
29376 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
29377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29378 /* end confdefs.h. */
29381 #define strcasecmp innocuous_strcasecmp
29383 # include <limits.h>
29385 # include <assert.h>
29391 char strcasecmp ();
29392 #if defined __stub_strcasecmp || defined __stub___strcasecmp
29398 return strcasecmp ();
29404 if ac_fn_c_try_link "$LINENO"; then :
29406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29407 $as_echo "yes" >&6; }
29408 tst_links_strcasecmp="yes"
29412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29413 $as_echo "no" >&6; }
29414 tst_links_strcasecmp="no"
29417 rm -f core conftest.err conftest.$ac_objext \
29418 conftest$ac_exeext conftest.$ac_ext
29420 if test "$tst_links_strcasecmp" = "yes"; then
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
29422 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
29423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29424 /* end confdefs.h. */
29426 $cares_includes_string
29429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29430 $EGREP "strcasecmp" >/dev/null 2>&1; then :
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29433 $as_echo "yes" >&6; }
29434 tst_proto_strcasecmp="yes"
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29439 $as_echo "no" >&6; }
29440 tst_proto_strcasecmp="no"
29447 if test "$tst_proto_strcasecmp" = "yes"; then
29448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
29449 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
29450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29451 /* end confdefs.h. */
29454 $cares_includes_string
29459 if(0 != strcasecmp(0, 0))
29467 if ac_fn_c_try_compile "$LINENO"; then :
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29470 $as_echo "yes" >&6; }
29471 tst_compi_strcasecmp="yes"
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29476 $as_echo "no" >&6; }
29477 tst_compi_strcasecmp="no"
29480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29483 if test "$tst_compi_strcasecmp" = "yes"; then
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
29485 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
29486 if test "x$cares_disallow_strcasecmp" != "xyes"; then
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29488 $as_echo "yes" >&6; }
29489 tst_allow_strcasecmp="yes"
29491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29492 $as_echo "no" >&6; }
29493 tst_allow_strcasecmp="no"
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
29498 $as_echo_n "checking if strcasecmp might be used... " >&6; }
29499 if test "$tst_links_strcasecmp" = "yes" &&
29500 test "$tst_proto_strcasecmp" = "yes" &&
29501 test "$tst_compi_strcasecmp" = "yes" &&
29502 test "$tst_allow_strcasecmp" = "yes"; then
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29504 $as_echo "yes" >&6; }
29506 cat >>confdefs.h <<_ACEOF
29507 #define HAVE_STRCASECMP 1
29510 ac_cv_func_strcasecmp="yes"
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29513 $as_echo "no" >&6; }
29514 ac_cv_func_strcasecmp="no"
29519 tst_links_strcmpi="unknown"
29520 tst_proto_strcmpi="unknown"
29521 tst_compi_strcmpi="unknown"
29522 tst_allow_strcmpi="unknown"
29524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
29525 $as_echo_n "checking if strcmpi can be linked... " >&6; }
29526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29527 /* end confdefs.h. */
29530 #define strcmpi innocuous_strcmpi
29532 # include <limits.h>
29534 # include <assert.h>
29541 #if defined __stub_strcmpi || defined __stub___strcmpi
29553 if ac_fn_c_try_link "$LINENO"; then :
29555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29556 $as_echo "yes" >&6; }
29557 tst_links_strcmpi="yes"
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29562 $as_echo "no" >&6; }
29563 tst_links_strcmpi="no"
29566 rm -f core conftest.err conftest.$ac_objext \
29567 conftest$ac_exeext conftest.$ac_ext
29569 if test "$tst_links_strcmpi" = "yes"; then
29570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
29571 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
29572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29573 /* end confdefs.h. */
29575 $cares_includes_string
29578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29579 $EGREP "strcmpi" >/dev/null 2>&1; then :
29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29582 $as_echo "yes" >&6; }
29583 tst_proto_strcmpi="yes"
29587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29588 $as_echo "no" >&6; }
29589 tst_proto_strcmpi="no"
29596 if test "$tst_proto_strcmpi" = "yes"; then
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
29598 $as_echo_n "checking if strcmpi is compilable... " >&6; }
29599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29600 /* end confdefs.h. */
29603 $cares_includes_string
29608 if(0 != strcmpi(0, 0))
29616 if ac_fn_c_try_compile "$LINENO"; then :
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29619 $as_echo "yes" >&6; }
29620 tst_compi_strcmpi="yes"
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29625 $as_echo "no" >&6; }
29626 tst_compi_strcmpi="no"
29629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29632 if test "$tst_compi_strcmpi" = "yes"; then
29633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
29634 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
29635 if test "x$cares_disallow_strcmpi" != "xyes"; then
29636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29637 $as_echo "yes" >&6; }
29638 tst_allow_strcmpi="yes"
29640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29641 $as_echo "no" >&6; }
29642 tst_allow_strcmpi="no"
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
29647 $as_echo_n "checking if strcmpi might be used... " >&6; }
29648 if test "$tst_links_strcmpi" = "yes" &&
29649 test "$tst_proto_strcmpi" = "yes" &&
29650 test "$tst_compi_strcmpi" = "yes" &&
29651 test "$tst_allow_strcmpi" = "yes"; then
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29653 $as_echo "yes" >&6; }
29655 cat >>confdefs.h <<_ACEOF
29656 #define HAVE_STRCMPI 1
29659 ac_cv_func_strcmpi="yes"
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29662 $as_echo "no" >&6; }
29663 ac_cv_func_strcmpi="no"
29668 tst_links_strdup="unknown"
29669 tst_proto_strdup="unknown"
29670 tst_compi_strdup="unknown"
29671 tst_allow_strdup="unknown"
29673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
29674 $as_echo_n "checking if strdup can be linked... " >&6; }
29675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29676 /* end confdefs.h. */
29679 #define strdup innocuous_strdup
29681 # include <limits.h>
29683 # include <assert.h>
29690 #if defined __stub_strdup || defined __stub___strdup
29702 if ac_fn_c_try_link "$LINENO"; then :
29704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29705 $as_echo "yes" >&6; }
29706 tst_links_strdup="yes"
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29711 $as_echo "no" >&6; }
29712 tst_links_strdup="no"
29715 rm -f core conftest.err conftest.$ac_objext \
29716 conftest$ac_exeext conftest.$ac_ext
29718 if test "$tst_links_strdup" = "yes"; then
29719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
29720 $as_echo_n "checking if strdup is prototyped... " >&6; }
29721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29722 /* end confdefs.h. */
29724 $cares_includes_string
29727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29728 $EGREP "strdup" >/dev/null 2>&1; then :
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29731 $as_echo "yes" >&6; }
29732 tst_proto_strdup="yes"
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29737 $as_echo "no" >&6; }
29738 tst_proto_strdup="no"
29745 if test "$tst_proto_strdup" = "yes"; then
29746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
29747 $as_echo_n "checking if strdup is compilable... " >&6; }
29748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29749 /* end confdefs.h. */
29752 $cares_includes_string
29765 if ac_fn_c_try_compile "$LINENO"; then :
29767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29768 $as_echo "yes" >&6; }
29769 tst_compi_strdup="yes"
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29774 $as_echo "no" >&6; }
29775 tst_compi_strdup="no"
29778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29781 if test "$tst_compi_strdup" = "yes"; then
29782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
29783 $as_echo_n "checking if strdup usage allowed... " >&6; }
29784 if test "x$cares_disallow_strdup" != "xyes"; then
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29786 $as_echo "yes" >&6; }
29787 tst_allow_strdup="yes"
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29790 $as_echo "no" >&6; }
29791 tst_allow_strdup="no"
29795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
29796 $as_echo_n "checking if strdup might be used... " >&6; }
29797 if test "$tst_links_strdup" = "yes" &&
29798 test "$tst_proto_strdup" = "yes" &&
29799 test "$tst_compi_strdup" = "yes" &&
29800 test "$tst_allow_strdup" = "yes"; then
29801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29802 $as_echo "yes" >&6; }
29804 cat >>confdefs.h <<_ACEOF
29805 #define HAVE_STRDUP 1
29808 ac_cv_func_strdup="yes"
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29811 $as_echo "no" >&6; }
29812 ac_cv_func_strdup="no"
29817 tst_links_stricmp="unknown"
29818 tst_proto_stricmp="unknown"
29819 tst_compi_stricmp="unknown"
29820 tst_allow_stricmp="unknown"
29822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
29823 $as_echo_n "checking if stricmp can be linked... " >&6; }
29824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29825 /* end confdefs.h. */
29828 #define stricmp innocuous_stricmp
29830 # include <limits.h>
29832 # include <assert.h>
29839 #if defined __stub_stricmp || defined __stub___stricmp
29851 if ac_fn_c_try_link "$LINENO"; then :
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29854 $as_echo "yes" >&6; }
29855 tst_links_stricmp="yes"
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29860 $as_echo "no" >&6; }
29861 tst_links_stricmp="no"
29864 rm -f core conftest.err conftest.$ac_objext \
29865 conftest$ac_exeext conftest.$ac_ext
29867 if test "$tst_links_stricmp" = "yes"; then
29868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
29869 $as_echo_n "checking if stricmp is prototyped... " >&6; }
29870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29871 /* end confdefs.h. */
29873 $cares_includes_string
29876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29877 $EGREP "stricmp" >/dev/null 2>&1; then :
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29880 $as_echo "yes" >&6; }
29881 tst_proto_stricmp="yes"
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29886 $as_echo "no" >&6; }
29887 tst_proto_stricmp="no"
29894 if test "$tst_proto_stricmp" = "yes"; then
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
29896 $as_echo_n "checking if stricmp is compilable... " >&6; }
29897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29898 /* end confdefs.h. */
29901 $cares_includes_string
29906 if(0 != stricmp(0, 0))
29914 if ac_fn_c_try_compile "$LINENO"; then :
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29917 $as_echo "yes" >&6; }
29918 tst_compi_stricmp="yes"
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29923 $as_echo "no" >&6; }
29924 tst_compi_stricmp="no"
29927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29930 if test "$tst_compi_stricmp" = "yes"; then
29931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
29932 $as_echo_n "checking if stricmp usage allowed... " >&6; }
29933 if test "x$cares_disallow_stricmp" != "xyes"; then
29934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29935 $as_echo "yes" >&6; }
29936 tst_allow_stricmp="yes"
29938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29939 $as_echo "no" >&6; }
29940 tst_allow_stricmp="no"
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
29945 $as_echo_n "checking if stricmp might be used... " >&6; }
29946 if test "$tst_links_stricmp" = "yes" &&
29947 test "$tst_proto_stricmp" = "yes" &&
29948 test "$tst_compi_stricmp" = "yes" &&
29949 test "$tst_allow_stricmp" = "yes"; then
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29951 $as_echo "yes" >&6; }
29953 cat >>confdefs.h <<_ACEOF
29954 #define HAVE_STRICMP 1
29957 ac_cv_func_stricmp="yes"
29959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29960 $as_echo "no" >&6; }
29961 ac_cv_func_stricmp="no"
29966 tst_links_strncasecmp="unknown"
29967 tst_proto_strncasecmp="unknown"
29968 tst_compi_strncasecmp="unknown"
29969 tst_allow_strncasecmp="unknown"
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
29972 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
29973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29974 /* end confdefs.h. */
29977 #define strncasecmp innocuous_strncasecmp
29979 # include <limits.h>
29981 # include <assert.h>
29987 char strncasecmp ();
29988 #if defined __stub_strncasecmp || defined __stub___strncasecmp
29994 return strncasecmp ();
30000 if ac_fn_c_try_link "$LINENO"; then :
30002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30003 $as_echo "yes" >&6; }
30004 tst_links_strncasecmp="yes"
30008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30009 $as_echo "no" >&6; }
30010 tst_links_strncasecmp="no"
30013 rm -f core conftest.err conftest.$ac_objext \
30014 conftest$ac_exeext conftest.$ac_ext
30016 if test "$tst_links_strncasecmp" = "yes"; then
30017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
30018 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
30019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30020 /* end confdefs.h. */
30022 $cares_includes_string
30025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30026 $EGREP "strncasecmp" >/dev/null 2>&1; then :
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30029 $as_echo "yes" >&6; }
30030 tst_proto_strncasecmp="yes"
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30035 $as_echo "no" >&6; }
30036 tst_proto_strncasecmp="no"
30043 if test "$tst_proto_strncasecmp" = "yes"; then
30044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
30045 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
30046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30047 /* end confdefs.h. */
30050 $cares_includes_string
30055 if(0 != strncasecmp(0, 0, 0))
30063 if ac_fn_c_try_compile "$LINENO"; then :
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30066 $as_echo "yes" >&6; }
30067 tst_compi_strncasecmp="yes"
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30072 $as_echo "no" >&6; }
30073 tst_compi_strncasecmp="no"
30076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30079 if test "$tst_compi_strncasecmp" = "yes"; then
30080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
30081 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
30082 if test "x$cares_disallow_strncasecmp" != "xyes"; then
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30084 $as_echo "yes" >&6; }
30085 tst_allow_strncasecmp="yes"
30087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30088 $as_echo "no" >&6; }
30089 tst_allow_strncasecmp="no"
30093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
30094 $as_echo_n "checking if strncasecmp might be used... " >&6; }
30095 if test "$tst_links_strncasecmp" = "yes" &&
30096 test "$tst_proto_strncasecmp" = "yes" &&
30097 test "$tst_compi_strncasecmp" = "yes" &&
30098 test "$tst_allow_strncasecmp" = "yes"; then
30099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30100 $as_echo "yes" >&6; }
30102 cat >>confdefs.h <<_ACEOF
30103 #define HAVE_STRNCASECMP 1
30106 ac_cv_func_strncasecmp="yes"
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30109 $as_echo "no" >&6; }
30110 ac_cv_func_strncasecmp="no"
30115 tst_links_strncmpi="unknown"
30116 tst_proto_strncmpi="unknown"
30117 tst_compi_strncmpi="unknown"
30118 tst_allow_strncmpi="unknown"
30120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
30121 $as_echo_n "checking if strncmpi can be linked... " >&6; }
30122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30123 /* end confdefs.h. */
30126 #define strncmpi innocuous_strncmpi
30128 # include <limits.h>
30130 # include <assert.h>
30137 #if defined __stub_strncmpi || defined __stub___strncmpi
30143 return strncmpi ();
30149 if ac_fn_c_try_link "$LINENO"; then :
30151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30152 $as_echo "yes" >&6; }
30153 tst_links_strncmpi="yes"
30157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30158 $as_echo "no" >&6; }
30159 tst_links_strncmpi="no"
30162 rm -f core conftest.err conftest.$ac_objext \
30163 conftest$ac_exeext conftest.$ac_ext
30165 if test "$tst_links_strncmpi" = "yes"; then
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
30167 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
30168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30169 /* end confdefs.h. */
30171 $cares_includes_string
30174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30175 $EGREP "strncmpi" >/dev/null 2>&1; then :
30177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30178 $as_echo "yes" >&6; }
30179 tst_proto_strncmpi="yes"
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30184 $as_echo "no" >&6; }
30185 tst_proto_strncmpi="no"
30192 if test "$tst_proto_strncmpi" = "yes"; then
30193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
30194 $as_echo_n "checking if strncmpi is compilable... " >&6; }
30195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30196 /* end confdefs.h. */
30199 $cares_includes_string
30204 if(0 != strncmpi(0, 0))
30212 if ac_fn_c_try_compile "$LINENO"; then :
30214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30215 $as_echo "yes" >&6; }
30216 tst_compi_strncmpi="yes"
30220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30221 $as_echo "no" >&6; }
30222 tst_compi_strncmpi="no"
30225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30228 if test "$tst_compi_strncmpi" = "yes"; then
30229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
30230 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
30231 if test "x$cares_disallow_strncmpi" != "xyes"; then
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30233 $as_echo "yes" >&6; }
30234 tst_allow_strncmpi="yes"
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30237 $as_echo "no" >&6; }
30238 tst_allow_strncmpi="no"
30242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
30243 $as_echo_n "checking if strncmpi might be used... " >&6; }
30244 if test "$tst_links_strncmpi" = "yes" &&
30245 test "$tst_proto_strncmpi" = "yes" &&
30246 test "$tst_compi_strncmpi" = "yes" &&
30247 test "$tst_allow_strncmpi" = "yes"; then
30248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30249 $as_echo "yes" >&6; }
30251 cat >>confdefs.h <<_ACEOF
30252 #define HAVE_STRNCMPI 1
30255 ac_cv_func_strncmpi="yes"
30257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30258 $as_echo "no" >&6; }
30259 ac_cv_func_strncmpi="no"
30264 tst_links_strnicmp="unknown"
30265 tst_proto_strnicmp="unknown"
30266 tst_compi_strnicmp="unknown"
30267 tst_allow_strnicmp="unknown"
30269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
30270 $as_echo_n "checking if strnicmp can be linked... " >&6; }
30271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30272 /* end confdefs.h. */
30275 #define strnicmp innocuous_strnicmp
30277 # include <limits.h>
30279 # include <assert.h>
30286 #if defined __stub_strnicmp || defined __stub___strnicmp
30292 return strnicmp ();
30298 if ac_fn_c_try_link "$LINENO"; then :
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30301 $as_echo "yes" >&6; }
30302 tst_links_strnicmp="yes"
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30307 $as_echo "no" >&6; }
30308 tst_links_strnicmp="no"
30311 rm -f core conftest.err conftest.$ac_objext \
30312 conftest$ac_exeext conftest.$ac_ext
30314 if test "$tst_links_strnicmp" = "yes"; then
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
30316 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
30317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30318 /* end confdefs.h. */
30320 $cares_includes_string
30323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30324 $EGREP "strnicmp" >/dev/null 2>&1; then :
30326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30327 $as_echo "yes" >&6; }
30328 tst_proto_strnicmp="yes"
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30333 $as_echo "no" >&6; }
30334 tst_proto_strnicmp="no"
30341 if test "$tst_proto_strnicmp" = "yes"; then
30342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
30343 $as_echo_n "checking if strnicmp is compilable... " >&6; }
30344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30345 /* end confdefs.h. */
30348 $cares_includes_string
30353 if(0 != strnicmp(0, 0))
30361 if ac_fn_c_try_compile "$LINENO"; then :
30363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30364 $as_echo "yes" >&6; }
30365 tst_compi_strnicmp="yes"
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30370 $as_echo "no" >&6; }
30371 tst_compi_strnicmp="no"
30374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30377 if test "$tst_compi_strnicmp" = "yes"; then
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
30379 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
30380 if test "x$cares_disallow_strnicmp" != "xyes"; then
30381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30382 $as_echo "yes" >&6; }
30383 tst_allow_strnicmp="yes"
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30386 $as_echo "no" >&6; }
30387 tst_allow_strnicmp="no"
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
30392 $as_echo_n "checking if strnicmp might be used... " >&6; }
30393 if test "$tst_links_strnicmp" = "yes" &&
30394 test "$tst_proto_strnicmp" = "yes" &&
30395 test "$tst_compi_strnicmp" = "yes" &&
30396 test "$tst_allow_strnicmp" = "yes"; then
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30398 $as_echo "yes" >&6; }
30400 cat >>confdefs.h <<_ACEOF
30401 #define HAVE_STRNICMP 1
30404 ac_cv_func_strnicmp="yes"
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30407 $as_echo "no" >&6; }
30408 ac_cv_func_strnicmp="no"
30412 cares_includes_sys_uio="\
30413 /* includes start */
30414 #ifdef HAVE_SYS_TYPES_H
30415 # include <sys/types.h>
30417 #ifdef HAVE_SYS_UIO_H
30418 # include <sys/uio.h>
30420 /* includes end */"
30421 for ac_header in sys/types.h sys/uio.h
30423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30424 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_uio
30426 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30427 cat >>confdefs.h <<_ACEOF
30428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30438 tst_links_writev="unknown"
30439 tst_proto_writev="unknown"
30440 tst_compi_writev="unknown"
30441 tst_allow_writev="unknown"
30443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
30444 $as_echo_n "checking if writev can be linked... " >&6; }
30445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30446 /* end confdefs.h. */
30449 #define writev innocuous_writev
30451 # include <limits.h>
30453 # include <assert.h>
30460 #if defined __stub_writev || defined __stub___writev
30472 if ac_fn_c_try_link "$LINENO"; then :
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30475 $as_echo "yes" >&6; }
30476 tst_links_writev="yes"
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30481 $as_echo "no" >&6; }
30482 tst_links_writev="no"
30485 rm -f core conftest.err conftest.$ac_objext \
30486 conftest$ac_exeext conftest.$ac_ext
30488 if test "$tst_links_writev" = "yes"; then
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
30490 $as_echo_n "checking if writev is prototyped... " >&6; }
30491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30492 /* end confdefs.h. */
30494 $cares_includes_sys_uio
30497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30498 $EGREP "writev" >/dev/null 2>&1; then :
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30501 $as_echo "yes" >&6; }
30502 tst_proto_writev="yes"
30506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30507 $as_echo "no" >&6; }
30508 tst_proto_writev="no"
30515 if test "$tst_proto_writev" = "yes"; then
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
30517 $as_echo_n "checking if writev is compilable... " >&6; }
30518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30519 /* end confdefs.h. */
30522 $cares_includes_sys_uio
30527 if(0 != writev(0, 0, 0))
30535 if ac_fn_c_try_compile "$LINENO"; then :
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30538 $as_echo "yes" >&6; }
30539 tst_compi_writev="yes"
30543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30544 $as_echo "no" >&6; }
30545 tst_compi_writev="no"
30548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30551 if test "$tst_compi_writev" = "yes"; then
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
30553 $as_echo_n "checking if writev usage allowed... " >&6; }
30554 if test "x$cares_disallow_writev" != "xyes"; then
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30556 $as_echo "yes" >&6; }
30557 tst_allow_writev="yes"
30559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30560 $as_echo "no" >&6; }
30561 tst_allow_writev="no"
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
30566 $as_echo_n "checking if writev might be used... " >&6; }
30567 if test "$tst_links_writev" = "yes" &&
30568 test "$tst_proto_writev" = "yes" &&
30569 test "$tst_compi_writev" = "yes" &&
30570 test "$tst_allow_writev" = "yes"; then
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30572 $as_echo "yes" >&6; }
30574 cat >>confdefs.h <<_ACEOF
30575 #define HAVE_WRITEV 1
30578 ac_cv_func_writev="yes"
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30581 $as_echo "no" >&6; }
30582 ac_cv_func_writev="no"
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
30589 $as_echo_n "checking for PF_INET6... " >&6; }
30590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30591 /* end confdefs.h. */
30595 #ifdef HAVE_WINDOWS_H
30596 #ifndef WIN32_LEAN_AND_MEAN
30597 #define WIN32_LEAN_AND_MEAN
30599 #include <windows.h>
30600 #ifdef HAVE_WINSOCK2_H
30601 #include <winsock2.h>
30604 #ifdef HAVE_SYS_TYPES_H
30605 #include <sys/types.h>
30607 #ifdef HAVE_SYS_SOCKET_H
30608 #include <sys/socket.h>
30620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30621 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
30629 if test "$ac_constant" = "yes" ; then
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30631 $as_echo "yes" >&6; }
30633 cat >>confdefs.h <<_ACEOF
30634 #define HAVE_PF_INET6 1
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30640 $as_echo "no" >&6; }
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
30647 $as_echo_n "checking for AF_INET6... " >&6; }
30648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30649 /* end confdefs.h. */
30653 #ifdef HAVE_WINDOWS_H
30654 #ifndef WIN32_LEAN_AND_MEAN
30655 #define WIN32_LEAN_AND_MEAN
30657 #include <windows.h>
30658 #ifdef HAVE_WINSOCK2_H
30659 #include <winsock2.h>
30662 #ifdef HAVE_SYS_TYPES_H
30663 #include <sys/types.h>
30665 #ifdef HAVE_SYS_SOCKET_H
30666 #include <sys/socket.h>
30678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30679 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
30687 if test "$ac_constant" = "yes" ; then
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30689 $as_echo "yes" >&6; }
30691 cat >>confdefs.h <<_ACEOF
30692 #define HAVE_AF_INET6 1
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30698 $as_echo "no" >&6; }
30705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
30706 $as_echo_n "checking for struct in6_addr... " >&6; }
30707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30708 /* end confdefs.h. */
30711 #ifdef HAVE_WINDOWS_H
30712 #ifndef WIN32_LEAN_AND_MEAN
30713 #define WIN32_LEAN_AND_MEAN
30715 #include <windows.h>
30716 #ifdef HAVE_WINSOCK2_H
30717 #include <winsock2.h>
30718 #ifdef HAVE_WS2TCPIP_H
30719 #include <ws2tcpip.h>
30723 #ifdef HAVE_SYS_TYPES_H
30724 #include <sys/types.h>
30726 #ifdef HAVE_NETINET_IN_H
30727 #include <netinet/in.h>
30734 struct in6_addr struct_instance;
30740 if ac_fn_c_try_compile "$LINENO"; then :
30745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30746 if test "$ac_struct" = "yes" ; then
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30748 $as_echo "yes" >&6; }
30750 cat >>confdefs.h <<_ACEOF
30751 #define HAVE_STRUCT_IN6_ADDR 1
30756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30757 $as_echo "no" >&6; }
30763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
30764 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
30765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30766 /* end confdefs.h. */
30769 #ifdef HAVE_WINDOWS_H
30770 #ifndef WIN32_LEAN_AND_MEAN
30771 #define WIN32_LEAN_AND_MEAN
30773 #include <windows.h>
30774 #ifdef HAVE_WINSOCK2_H
30775 #include <winsock2.h>
30776 #ifdef HAVE_WS2TCPIP_H
30777 #include <ws2tcpip.h>
30781 #ifdef HAVE_SYS_TYPES_H
30782 #include <sys/types.h>
30784 #ifdef HAVE_NETINET_IN_H
30785 #include <netinet/in.h>
30792 struct sockaddr_in6 struct_instance;
30798 if ac_fn_c_try_compile "$LINENO"; then :
30803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30804 if test "$ac_struct" = "yes" ; then
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30806 $as_echo "yes" >&6; }
30808 cat >>confdefs.h <<_ACEOF
30809 #define HAVE_STRUCT_SOCKADDR_IN6 1
30811 ac_have_sockaddr_in6=yes
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30815 $as_echo "no" >&6; }
30820 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
30822 #ifdef HAVE_WINDOWS_H
30823 #ifndef WIN32_LEAN_AND_MEAN
30824 #define WIN32_LEAN_AND_MEAN
30826 #include <windows.h>
30827 #ifdef HAVE_WINSOCK2_H
30828 #include <winsock2.h>
30829 #ifdef HAVE_WS2TCPIP_H
30830 #include <ws2tcpip.h>
30834 #ifdef HAVE_SYS_TYPES_H
30835 #include <sys/types.h>
30837 #ifdef HAVE_NETINET_IN_H
30838 #include <netinet/in.h>
30843 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
30845 cat >>confdefs.h <<_ACEOF
30846 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
30853 ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
30855 #ifdef HAVE_WINDOWS_H
30856 #ifndef WIN32_LEAN_AND_MEAN
30857 #define WIN32_LEAN_AND_MEAN
30859 #include <windows.h>
30860 #ifdef HAVE_WINSOCK2_H
30861 #include <winsock2.h>
30862 #ifdef HAVE_WS2TCPIP_H
30863 #include <ws2tcpip.h>
30867 #ifdef HAVE_SYS_TYPES_H
30868 #include <sys/types.h>
30870 #ifdef HAVE_NETINET_IN_H
30871 #include <netinet/in.h>
30873 #ifdef HAVE_SYS_SOCKET_H
30874 #include <sys/socket.h>
30876 #ifdef HAVE_NETDB_H
30883 if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
30885 cat >>confdefs.h <<_ACEOF
30886 #define HAVE_STRUCT_ADDRINFO 1
30893 for ac_func in bitncmp \
30898 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30899 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30900 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30901 cat >>confdefs.h <<_ACEOF
30902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
30910 $as_echo_n "checking deeper for $func... " >&6; }
30911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30912 /* end confdefs.h. */
30926 if ac_fn_c_try_link "$LINENO"; then :
30928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30929 $as_echo "yes" >&6; }
30930 eval "ac_cv_func_$func=yes"
30932 cat >>confdefs.h <<_ACEOF
30933 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
30940 $as_echo "but still no" >&6; }
30943 rm -f core conftest.err conftest.$ac_objext \
30944 conftest$ac_exeext conftest.$ac_ext
30950 ac_fn_c_check_func "$LINENO" "__system_property_get" "ac_cv_func___system_property_get"
30951 if test "x$ac_cv_func___system_property_get" = xyes; then :
30954 $as_echo "#define HAVE___SYSTEM_PROPERTY_GET 1" >>confdefs.h
30961 for ac_header in sys/types.h sys/socket.h netdb.h
30963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30964 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30966 cat >>confdefs.h <<_ACEOF
30967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
30976 $as_echo_n "checking for getnameinfo... " >&6; }
30977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30978 /* end confdefs.h. */
30981 #define getnameinfo innocuous_getnameinfo
30983 # include <limits.h>
30985 # include <assert.h>
30991 char getnameinfo ();
30992 #if defined __stub_getnameinfo || defined __stub___getnameinfo
30998 return getnameinfo ();
31004 if ac_fn_c_try_link "$LINENO"; then :
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31007 $as_echo "yes" >&6; }
31008 curl_cv_getnameinfo="yes"
31012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31013 $as_echo "no" >&6; }
31014 curl_cv_getnameinfo="no"
31017 rm -f core conftest.err conftest.$ac_objext \
31018 conftest$ac_exeext conftest.$ac_ext
31020 if test "$curl_cv_getnameinfo" != "yes"; then
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
31022 $as_echo_n "checking deeper for getnameinfo... " >&6; }
31023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31024 /* end confdefs.h. */
31038 if ac_fn_c_try_link "$LINENO"; then :
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31041 $as_echo "yes" >&6; }
31042 curl_cv_getnameinfo="yes"
31046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31047 $as_echo "but still no" >&6; }
31048 curl_cv_getnameinfo="no"
31051 rm -f core conftest.err conftest.$ac_objext \
31052 conftest$ac_exeext conftest.$ac_ext
31055 if test "$curl_cv_getnameinfo" != "yes"; then
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
31057 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
31058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31059 /* end confdefs.h. */
31063 #ifdef HAVE_WINDOWS_H
31064 #ifndef WIN32_LEAN_AND_MEAN
31065 #define WIN32_LEAN_AND_MEAN
31067 #include <windows.h>
31068 #ifdef HAVE_WINSOCK2_H
31069 #include <winsock2.h>
31070 #ifdef HAVE_WS2TCPIP_H
31071 #include <ws2tcpip.h>
31075 #ifdef HAVE_SYS_TYPES_H
31076 #include <sys/types.h>
31078 #ifdef HAVE_SYS_SOCKET_H
31079 #include <sys/socket.h>
31081 #ifdef HAVE_NETDB_H
31089 getnameinfo(0, 0, 0, 0, 0, 0, 0);
31096 if ac_fn_c_try_link "$LINENO"; then :
31098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31099 $as_echo "yes" >&6; }
31100 curl_cv_getnameinfo="yes"
31104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31105 $as_echo "but still no" >&6; }
31106 curl_cv_getnameinfo="no"
31109 rm -f core conftest.err conftest.$ac_objext \
31110 conftest$ac_exeext conftest.$ac_ext
31113 if test "$curl_cv_getnameinfo" = "yes"; then
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
31115 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
31116 if ${curl_cv_func_getnameinfo_args+:} false; then :
31117 $as_echo_n "(cached) " >&6
31120 curl_cv_func_getnameinfo_args="unknown"
31121 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
31122 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
31123 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
31124 for gni_arg7 in 'int' 'unsigned int'; do
31125 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
31126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31127 /* end confdefs.h. */
31131 #ifdef HAVE_WINDOWS_H
31132 #ifndef WIN32_LEAN_AND_MEAN
31133 #define WIN32_LEAN_AND_MEAN
31135 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
31136 #undef _WIN32_WINNT
31137 #define _WIN32_WINNT 0x0501
31139 #include <windows.h>
31140 #ifdef HAVE_WINSOCK2_H
31141 #include <winsock2.h>
31142 #ifdef HAVE_WS2TCPIP_H
31143 #include <ws2tcpip.h>
31146 #define GNICALLCONV WSAAPI
31148 #ifdef HAVE_SYS_TYPES_H
31149 #include <sys/types.h>
31151 #ifdef HAVE_SYS_SOCKET_H
31152 #include <sys/socket.h>
31154 #ifdef HAVE_NETDB_H
31157 #define GNICALLCONV
31159 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
31160 char *, $gni_arg46,
31161 char *, $gni_arg46,
31168 $gni_arg46 hostlen=0;
31169 $gni_arg46 servlen=0;
31171 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
31178 if ac_fn_c_try_compile "$LINENO"; then :
31180 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
31183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
31192 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
31193 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
31194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
31195 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
31197 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
31199 gni_prev_IFS=$IFS; IFS=','
31200 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
31204 gni_qual_type_arg1=$1
31207 cat >>confdefs.h <<_ACEOF
31208 #define GETNAMEINFO_TYPE_ARG2 $2
31212 cat >>confdefs.h <<_ACEOF
31213 #define GETNAMEINFO_TYPE_ARG46 $3
31217 cat >>confdefs.h <<_ACEOF
31218 #define GETNAMEINFO_TYPE_ARG7 $4
31224 case $prev_sh_opts in
31232 case "$gni_qual_type_arg1" in
31234 gni_qual_arg1=const
31235 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
31239 gni_type_arg1=$gni_qual_type_arg1
31244 cat >>confdefs.h <<_ACEOF
31245 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
31249 cat >>confdefs.h <<_ACEOF
31250 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
31254 case $prev_sh_opts in
31263 cat >>confdefs.h <<_ACEOF
31264 #define HAVE_GETNAMEINFO 1
31267 ac_cv_func_getnameinfo="yes"
31273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
31274 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
31275 if ${ac_cv_c_bigendian+:} false; then :
31276 $as_echo_n "(cached) " >&6
31278 ac_cv_c_bigendian=unknown
31279 # See if we're dealing with a universal compiler.
31280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31281 /* end confdefs.h. */
31282 #ifndef __APPLE_CC__
31283 not a universal capable compiler
31288 if ac_fn_c_try_compile "$LINENO"; then :
31290 # Check for potential -arch flags. It is not universal unless
31291 # there are at least two -arch flags with different values.
31294 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
31295 if test -n "$ac_prev"; then
31297 i?86 | x86_64 | ppc | ppc64)
31298 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
31301 ac_cv_c_bigendian=universal
31307 elif test "x$ac_word" = "x-arch"; then
31312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31313 if test $ac_cv_c_bigendian = unknown; then
31314 # See if sys/param.h defines the BYTE_ORDER macro.
31315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31316 /* end confdefs.h. */
31317 #include <sys/types.h>
31318 #include <sys/param.h>
31322 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
31323 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
31325 bogus endian macros
31332 if ac_fn_c_try_compile "$LINENO"; then :
31333 # It does; now see whether it defined to BIG_ENDIAN or not.
31334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31335 /* end confdefs.h. */
31336 #include <sys/types.h>
31337 #include <sys/param.h>
31341 #if BYTE_ORDER != BIG_ENDIAN
31349 if ac_fn_c_try_compile "$LINENO"; then :
31350 ac_cv_c_bigendian=yes
31352 ac_cv_c_bigendian=no
31354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31358 if test $ac_cv_c_bigendian = unknown; then
31359 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
31360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31361 /* end confdefs.h. */
31362 #include <limits.h>
31366 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
31367 bogus endian macros
31374 if ac_fn_c_try_compile "$LINENO"; then :
31375 # It does; now see whether it defined to _BIG_ENDIAN or not.
31376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31377 /* end confdefs.h. */
31378 #include <limits.h>
31382 #ifndef _BIG_ENDIAN
31390 if ac_fn_c_try_compile "$LINENO"; then :
31391 ac_cv_c_bigendian=yes
31393 ac_cv_c_bigendian=no
31395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31399 if test $ac_cv_c_bigendian = unknown; then
31400 # Compile a test program.
31401 if test "$cross_compiling" = yes; then :
31402 # Try to guess by grepping values from an object file.
31403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31404 /* end confdefs.h. */
31405 short int ascii_mm[] =
31406 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
31407 short int ascii_ii[] =
31408 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
31409 int use_ascii (int i) {
31410 return ascii_mm[i] + ascii_ii[i];
31412 short int ebcdic_ii[] =
31413 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
31414 short int ebcdic_mm[] =
31415 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
31416 int use_ebcdic (int i) {
31417 return ebcdic_mm[i] + ebcdic_ii[i];
31423 return use_ascii (foo) == use_ebcdic (foo);
31428 if ac_fn_c_try_compile "$LINENO"; then :
31429 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
31430 ac_cv_c_bigendian=yes
31432 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31433 if test "$ac_cv_c_bigendian" = unknown; then
31434 ac_cv_c_bigendian=no
31436 # finding both strings is unlikely to happen, but who knows?
31437 ac_cv_c_bigendian=unknown
31441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31444 /* end confdefs.h. */
31445 $ac_includes_default
31449 /* Are we little or big endian? From Harbison&Steele. */
31453 char c[sizeof (long int)];
31456 return u.c[sizeof (long int) - 1] == 1;
31462 if ac_fn_c_try_run "$LINENO"; then :
31463 ac_cv_c_bigendian=no
31465 ac_cv_c_bigendian=yes
31467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31468 conftest.$ac_objext conftest.beam conftest.$ac_ext
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
31474 $as_echo "$ac_cv_c_bigendian" >&6; }
31475 case $ac_cv_c_bigendian in #(
31478 $as_echo "#define ARES_BIG_ENDIAN 1" >>confdefs.h
31484 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
31488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
31489 $as_echo "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
31495 # Check whether --with-random was given.
31496 if test "${with_random+set}" = set; then :
31497 withval=$with_random; RANDOM_FILE="$withval"
31500 if test "$cross_compiling" = "no"; then
31501 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
31502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
31503 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
31504 if eval \${$as_ac_File+:} false; then :
31505 $as_echo_n "(cached) " >&6
31507 test "$cross_compiling" = yes &&
31508 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
31509 if test -r ""/dev/urandom""; then
31510 eval "$as_ac_File=yes"
31512 eval "$as_ac_File=no"
31515 eval ac_res=\$$as_ac_File
31516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31517 $as_echo "$ac_res" >&6; }
31518 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
31519 RANDOM_FILE="/dev/urandom"
31523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
31524 $as_echo "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
31531 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
31534 cat >>confdefs.h <<_ACEOF
31535 #define RANDOM_FILE "$RANDOM_FILE"
31541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
31542 $as_echo_n "checking whether to enable non-blocking communications... " >&6; }
31543 OPT_NONBLOCKING="default"
31544 # Check whether --enable-nonblocking was given.
31545 if test "${enable_nonblocking+set}" = set; then :
31546 enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
31549 case "$OPT_NONBLOCKING" in
31551 want_nonblocking="no"
31554 want_nonblocking="yes"
31557 want_nonblocking="yes"
31560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
31561 $as_echo "$want_nonblocking" >&6; }
31565 tst_method="unknown"
31566 if test "$want_nonblocking" = "yes"; then
31567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
31568 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
31569 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
31570 tst_method="fcntl O_NONBLOCK"
31571 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
31572 tst_method="ioctl FIONBIO"
31573 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
31574 tst_method="ioctlsocket FIONBIO"
31575 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
31576 tst_method="IoctlSocket FIONBIO"
31577 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
31578 tst_method="setsockopt SO_NONBLOCK"
31580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
31581 $as_echo "$tst_method" >&6; }
31582 if test "$tst_method" = "unknown"; then
31583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
31584 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
31587 if test "$tst_method" = "unknown"; then
31589 cat >>confdefs.h <<_ACEOF
31590 #define USE_BLOCKING_SOCKETS 1
31593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
31594 $as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
31599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
31600 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
31601 CFLAG_CARES_SYMBOL_HIDING=""
31602 doing_symbol_hiding="no"
31603 if test x"$ac_cv_native_windows" != "xyes" &&
31604 test "$want_symbol_hiding" = "yes" &&
31605 test "$supports_symbol_hiding" = "yes"; then
31606 doing_symbol_hiding="yes"
31607 CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
31609 cat >>confdefs.h <<_ACEOF
31610 #define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN
31613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31614 $as_echo "yes" >&6; }
31616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31617 $as_echo "no" >&6; }
31619 if test x$doing_symbol_hiding = xyes; then
31620 DOING_CARES_SYMBOL_HIDING_TRUE=
31621 DOING_CARES_SYMBOL_HIDING_FALSE='#'
31623 DOING_CARES_SYMBOL_HIDING_TRUE='#'
31624 DOING_CARES_SYMBOL_HIDING_FALSE=
31628 if test "$doing_symbol_hiding" = "yes"; then
31630 cat >>confdefs.h <<_ACEOF
31631 #define CARES_SYMBOL_HIDING 1
31637 CARES_PRIVATE_LIBS="$LIBS"
31640 CARES_CFLAG_EXTRAS=""
31641 if test X"$want_werror" = Xyes; then
31642 CARES_CFLAG_EXTRAS="-Werror"
31653 squeeze CARES_PRIVATE_LIBS
31658 for xc_word in $LIBS; do
31664 xc_bad_var_libs=yes
31668 if test $xc_bad_var_libs = yes; then
31669 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
31670 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
31671 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
31672 $as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
31676 xc_bad_var_ldflags=no
31677 for xc_word in $LDFLAGS; do
31680 xc_bad_var_ldflags=yes
31683 xc_bad_var_ldflags=yes
31686 xc_bad_var_ldflags=yes
31689 xc_bad_var_ldflags=yes
31693 if test $xc_bad_var_ldflags = yes; then
31694 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
31695 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
31696 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
31697 for xc_word in $LDFLAGS; do
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
31701 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
31704 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
31705 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
31708 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
31709 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31713 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31720 xc_bad_var_cppflags=no
31721 for xc_word in $CPPFLAGS; do
31724 xc_bad_var_cppflags=yes
31726 -L* | --library-path=*)
31727 xc_bad_var_cppflags=yes
31730 xc_bad_var_cppflags=yes
31734 if test $xc_bad_var_cppflags = yes; then
31735 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
31736 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
31737 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
31738 for xc_word in $CPPFLAGS; do
31741 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
31742 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
31744 -L* | --library-path=*)
31745 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
31746 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
31749 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31750 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31757 xc_bad_var_cflags=no
31758 for xc_word in $CFLAGS; do
31761 xc_bad_var_cflags=yes
31764 xc_bad_var_cflags=yes
31767 xc_bad_var_cflags=yes
31770 xc_bad_var_cflags=yes
31772 -L* | --library-path=*)
31773 xc_bad_var_cflags=yes
31776 xc_bad_var_cflags=yes
31780 if test $xc_bad_var_cflags = yes; then
31781 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
31782 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
31783 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
31784 for xc_word in $CFLAGS; do
31787 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
31788 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
31791 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
31792 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
31795 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
31796 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
31799 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
31800 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
31802 -L* | --library-path=*)
31803 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
31804 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
31807 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31808 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31814 if test $xc_bad_var_libs = yes ||
31815 test $xc_bad_var_cflags = yes ||
31816 test $xc_bad_var_ldflags = yes ||
31817 test $xc_bad_var_cppflags = yes; then
31818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
31819 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
31823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5
31824 $as_echo_n "checking whether to build tests... " >&6; }
31825 # Check whether --enable-tests was given.
31826 if test "${enable_tests+set}" = set; then :
31827 enableval=$enable_tests; build_tests="$enableval"
31829 if test "x$HAVE_CXX11" = "x1" && test "x$cross_compiling" = "xno" ; then
31839 if test "x$build_tests" = "xyes" ; then
31840 if test "x$HAVE_CXX11" = "0" ; then
31841 as_fn_error $? "*** Building tests requires a CXX11 compiler" "$LINENO" 5
31843 if test "x$cross_compiling" = "xyes" ; then
31844 as_fn_error $? "*** Tests not supported when cross compiling" "$LINENO" 5
31847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_tests" >&5
31848 $as_echo "$build_tests" >&6; }
31851 BUILD_SUBDIRS="include src docs"
31852 if test "x$build_tests" = "xyes" ; then
31855 subdirs="$subdirs test"
31857 BUILD_SUBDIRS="${BUILD_SUBDIRS} test"
31862 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/lib/Makefile src/tools/Makefile docs/Makefile libcares.pc"
31865 cat >confcache <<\_ACEOF
31866 # This file is a shell script that caches the results of configure
31867 # tests run on this system so they can be shared between configure
31868 # scripts and configure runs, see configure's option --config-cache.
31869 # It is not useful on other systems. If it contains results you don't
31870 # want to keep, you may remove or edit it.
31872 # config.status only pays attention to the cache file if you give it
31873 # the --recheck option to rerun configure.
31875 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31877 # following values.
31881 # The following way of writing the cache mishandles newlines in values,
31882 # but we know of no workaround that is simple, portable, and efficient.
31883 # So, we kill variables containing newlines.
31884 # Ultrix sh set writes to stderr and can't be redirected directly,
31885 # and sets the high bit in the cache file unless we assign to the vars.
31887 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31888 eval ac_val=\$$ac_var
31892 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31896 _ | IFS | as_nl) ;; #(
31897 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31898 *) { eval $ac_var=; unset $ac_var;} ;;
31904 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31905 *${as_nl}ac_space=\ *)
31906 # `set' does not quote correctly, so add quotes: double-quote
31907 # substitution turns \\\\ into \\, and sed turns \\ into \.
31910 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31913 # `set' quotes correctly as required by POSIX, so do not add quotes.
31914 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31923 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31925 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31927 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31928 if test -w "$cache_file"; then
31929 if test "x$cache_file" != "x/dev/null"; then
31930 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31931 $as_echo "$as_me: updating cache $cache_file" >&6;}
31932 if test ! -f "$cache_file" || test -h "$cache_file"; then
31933 cat confcache >"$cache_file"
31935 case $cache_file in #(
31937 mv -f confcache "$cache_file"$$ &&
31938 mv -f "$cache_file"$$ "$cache_file" ;; #(
31940 mv -f confcache "$cache_file" ;;
31945 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31946 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31951 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31952 # Let make expand exec_prefix.
31953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31955 DEFS=-DHAVE_CONFIG_H
31960 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31961 # 1. Remove the extension, and $U if already installed.
31962 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31963 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31964 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31965 # will be set to the directory where LIBOBJS objects are built.
31966 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31967 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31969 LIBOBJS=$ac_libobjs
31971 LTLIBOBJS=$ac_ltlibobjs
31974 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31975 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31978 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
31979 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
31980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
31983 $as_echo_n "checking that generated files are newer than configure... " >&6; }
31984 if test -n "$am_sleep_pid"; then
31985 # Hide warnings about reused PIDs.
31986 wait $am_sleep_pid 2>/dev/null
31988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
31989 $as_echo "done" >&6; }
31990 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31991 as_fn_error $? "conditional \"AMDEP\" was never defined.
31992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31994 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31995 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
31996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31998 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31999 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32002 if test -n "$EXEEXT"; then
32004 am__EXEEXT_FALSE='#'
32006 am__EXEEXT_TRUE='#'
32010 if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
32011 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
32012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32014 if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
32015 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
32016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32018 if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
32019 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
32020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32022 if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
32023 as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
32024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32026 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
32027 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
32028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32031 if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
32032 as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
32033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32036 : "${CONFIG_STATUS=./config.status}"
32038 ac_clean_files_save=$ac_clean_files
32039 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32041 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32043 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32045 # Generated by $as_me.
32046 # Run this file to recreate the current configuration.
32047 # Compiler output produced by configure, useful for debugging
32048 # configure, is in config.log if it exists.
32051 ac_cs_recheck=false
32054 SHELL=\${CONFIG_SHELL-$SHELL}
32057 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32058 ## -------------------- ##
32059 ## M4sh Initialization. ##
32060 ## -------------------- ##
32062 # Be more Bourne compatible
32063 DUALCASE=1; export DUALCASE # for MKS sh
32064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32067 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32068 # is contrary to our usage. Disable this feature.
32069 alias -g '${1+"$@"}'='"$@"'
32070 setopt NO_GLOB_SUBST
32072 case `(set -o) 2>/dev/null` in #(
32084 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32085 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32088 # Prefer a ksh shell builtin over an external printf program on Solaris,
32089 # but without wasting forks for bash or zsh.
32090 if test -z "$BASH_VERSION$ZSH_VERSION" \
32091 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32092 as_echo='print -r --'
32093 as_echo_n='print -rn --'
32094 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32095 as_echo='printf %s\n'
32096 as_echo_n='printf %s'
32098 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32099 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32100 as_echo_n='/usr/ucb/echo -n'
32102 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32103 as_echo_n_body='eval
32107 expr "X$arg" : "X\\(.*\\)$as_nl";
32108 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32110 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32112 export as_echo_n_body
32113 as_echo_n='sh -c $as_echo_n_body as_echo'
32115 export as_echo_body
32116 as_echo='sh -c $as_echo_body as_echo'
32122 # We need space, tab and new line, in precisely that order. Quoting is
32123 # there to prevent editors from complaining about space-tab.
32124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32125 # splitting by setting IFS to empty value.)
32128 # Find who we are. Look in the path if we contain no directory separator.
32131 *[\\/]* ) as_myself=$0 ;;
32132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32133 for as_dir in $PATH
32136 test -z "$as_dir" && as_dir=.
32137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32143 # We did not find ourselves, most probably we were run as `sh COMMAND'
32144 # in which case we are not to be found in the path.
32145 if test "x$as_myself" = x; then
32148 if test ! -f "$as_myself"; then
32149 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32153 # Unset variables that we do not need and which cause bugs (e.g. in
32154 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32155 # suppresses any "Segmentation fault" message there. '((' could
32156 # trigger a bug in pdksh 5.2.14.
32157 for as_var in BASH_ENV ENV MAIL MAILPATH
32158 do eval test x\${$as_var+set} = xset \
32159 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32172 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32175 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32176 # ----------------------------------------
32177 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32178 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32179 # script with STATUS, using 1 if that was 0.
32182 as_status=$1; test $as_status -eq 0 && as_status=1
32184 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32185 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32187 $as_echo "$as_me: error: $2" >&2
32188 as_fn_exit $as_status
32192 # as_fn_set_status STATUS
32193 # -----------------------
32194 # Set $? to STATUS, without forking.
32195 as_fn_set_status ()
32198 } # as_fn_set_status
32200 # as_fn_exit STATUS
32201 # -----------------
32202 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32206 as_fn_set_status $1
32212 # Portably unset VAR.
32215 { eval $1=; unset $1;}
32217 as_unset=as_fn_unset
32218 # as_fn_append VAR VALUE
32219 # ----------------------
32220 # Append the text in VALUE to the end of the definition contained in VAR. Take
32221 # advantage of any shell optimizations that allow amortized linear growth over
32222 # repeated appends, instead of the typical quadratic growth present in naive
32224 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32225 eval 'as_fn_append ()
32236 # as_fn_arith ARG...
32237 # ------------------
32238 # Perform arithmetic evaluation on the ARGs, and store the result in the
32239 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32240 # must be portable across $(()) and expr.
32241 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32242 eval 'as_fn_arith ()
32249 as_val=`expr "$@" || test $? -eq 1`
32254 if expr a : '\(a\)' >/dev/null 2>&1 &&
32255 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32261 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32262 as_basename=basename
32267 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32273 as_me=`$as_basename -- "$0" ||
32274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32275 X"$0" : 'X\(//\)$' \| \
32276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32278 sed '/^.*\/\([^/][^/]*\)\/*$/{
32292 # Avoid depending upon Character Ranges.
32293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32296 as_cr_digits='0123456789'
32297 as_cr_alnum=$as_cr_Letters$as_cr_digits
32299 ECHO_C= ECHO_N= ECHO_T=
32300 case `echo -n x` in #(((((
32302 case `echo 'xy\c'` in
32303 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32305 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32312 rm -f conf$$ conf$$.exe conf$$.file
32313 if test -d conf$$.dir; then
32314 rm -f conf$$.dir/conf$$.file
32317 mkdir conf$$.dir 2>/dev/null
32319 if (echo >conf$$.file) 2>/dev/null; then
32320 if ln -s conf$$.file conf$$ 2>/dev/null; then
32322 # ... but there are two gotchas:
32323 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32324 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32325 # In both cases, we have to default to `cp -pR'.
32326 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32328 elif ln conf$$.file conf$$ 2>/dev/null; then
32336 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32337 rmdir conf$$.dir 2>/dev/null
32342 # Create "$as_dir" as a directory, including parents if necessary.
32347 -*) as_dir=./$as_dir;;
32349 test -d "$as_dir" || eval $as_mkdir_p || {
32353 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32354 *) as_qdir=$as_dir;;
32356 as_dirs="'$as_qdir' $as_dirs"
32357 as_dir=`$as_dirname -- "$as_dir" ||
32358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32359 X"$as_dir" : 'X\(//\)[^/]' \| \
32360 X"$as_dir" : 'X\(//\)$' \| \
32361 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32362 $as_echo X"$as_dir" |
32363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32367 /^X\(\/\/\)[^/].*/{
32380 test -d "$as_dir" && break
32382 test -z "$as_dirs" || eval "mkdir $as_dirs"
32383 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32387 if mkdir -p . 2>/dev/null; then
32388 as_mkdir_p='mkdir -p "$as_dir"'
32390 test -d ./-p && rmdir ./-p
32395 # as_fn_executable_p FILE
32396 # -----------------------
32397 # Test if FILE is an executable regular file.
32398 as_fn_executable_p ()
32400 test -f "$1" && test -x "$1"
32401 } # as_fn_executable_p
32402 as_test_x='test -x'
32403 as_executable_p=as_fn_executable_p
32405 # Sed expression to map a string onto a valid CPP name.
32406 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32408 # Sed expression to map a string onto a valid variable name.
32409 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32413 ## ----------------------------------- ##
32414 ## Main body of $CONFIG_STATUS script. ##
32415 ## ----------------------------------- ##
32417 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32420 # Save the log message, to keep $0 and so on meaningful, and to
32421 # report actual input values of CONFIG_FILES etc. instead of their
32422 # values after options handling.
32424 This file was extended by c-ares $as_me 1.17.1, which was
32425 generated by GNU Autoconf 2.69. Invocation command line was
32427 CONFIG_FILES = $CONFIG_FILES
32428 CONFIG_HEADERS = $CONFIG_HEADERS
32429 CONFIG_LINKS = $CONFIG_LINKS
32430 CONFIG_COMMANDS = $CONFIG_COMMANDS
32433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32438 case $ac_config_files in *"
32439 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32442 case $ac_config_headers in *"
32443 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32448 # Files that config.status was made for.
32449 config_files="$ac_config_files"
32450 config_headers="$ac_config_headers"
32451 config_commands="$ac_config_commands"
32455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32457 \`$as_me' instantiates files and other configuration actions
32458 from templates according to the current configuration. Unless the files
32459 and actions are specified as TAGs, all are instantiated by default.
32461 Usage: $0 [OPTION]... [TAG]...
32463 -h, --help print this help, then exit
32464 -V, --version print version number and configuration settings, then exit
32465 --config print configuration, then exit
32466 -q, --quiet, --silent
32467 do not print progress messages
32468 -d, --debug don't remove temporary files
32469 --recheck update $as_me by reconfiguring in the same conditions
32470 --file=FILE[:TEMPLATE]
32471 instantiate the configuration file FILE
32472 --header=FILE[:TEMPLATE]
32473 instantiate the configuration header FILE
32475 Configuration files:
32478 Configuration headers:
32481 Configuration commands:
32484 Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>."
32487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32488 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32490 c-ares config.status 1.17.1
32491 configured by $0, generated by GNU Autoconf 2.69,
32492 with options \\"\$ac_cs_config\\"
32494 Copyright (C) 2012 Free Software Foundation, Inc.
32495 This config.status script is free software; the Free Software Foundation
32496 gives unlimited permission to copy, distribute and modify it."
32503 test -n "\$AWK" || AWK=awk
32506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32507 # The default lists apply if the user does not specify any file.
32513 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32514 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32518 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32530 # Handling of the options.
32531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32533 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32534 $as_echo "$ac_cs_version"; exit ;;
32535 --config | --confi | --conf | --con | --co | --c )
32536 $as_echo "$ac_cs_config"; exit ;;
32537 --debug | --debu | --deb | --de | --d | -d )
32539 --file | --fil | --fi | --f )
32542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32543 '') as_fn_error $? "missing file argument" ;;
32545 as_fn_append CONFIG_FILES " '$ac_optarg'"
32546 ac_need_defaults=false;;
32547 --header | --heade | --head | --hea )
32550 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32552 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32553 ac_need_defaults=false;;
32555 # Conflict between --help and --header
32556 as_fn_error $? "ambiguous option: \`$1'
32557 Try \`$0 --help' for more information.";;
32558 --help | --hel | -h )
32559 $as_echo "$ac_cs_usage"; exit ;;
32560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32561 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32564 # This is an error.
32565 -*) as_fn_error $? "unrecognized option: \`$1'
32566 Try \`$0 --help' for more information." ;;
32568 *) as_fn_append ac_config_targets " $1"
32569 ac_need_defaults=false ;;
32575 ac_configure_extra_args=
32577 if $ac_cs_silent; then
32579 ac_configure_extra_args="$ac_configure_extra_args --silent"
32583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32584 if \$ac_cs_recheck; then
32585 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32587 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32588 CONFIG_SHELL='$SHELL'
32589 export CONFIG_SHELL
32594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32598 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32599 ## Running $as_me. ##
32605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32609 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
32612 # The HP-UX ksh and POSIX shell print the target directory to stdout
32613 # if CDPATH is set.
32614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32616 sed_quote_subst='$sed_quote_subst'
32617 double_quote_subst='$double_quote_subst'
32618 delay_variable_subst='$delay_variable_subst'
32619 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32620 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32621 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
32622 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
32623 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32624 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32625 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32626 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32627 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32628 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
32629 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32630 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32631 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
32632 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32633 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32634 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32635 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32636 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32637 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32638 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32639 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32640 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32641 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32642 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32643 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32644 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32645 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32646 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32647 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32648 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32649 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32650 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32651 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32652 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
32653 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
32654 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32655 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32656 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32657 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32658 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
32659 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
32660 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
32661 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32662 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32663 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
32664 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32665 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32666 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32667 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32668 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32669 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32670 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32671 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32672 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32673 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32674 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32675 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32676 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
32677 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32678 lt_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"`'
32679 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
32680 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
32681 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
32682 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
32683 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32684 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32685 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32686 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32687 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32688 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32689 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32690 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32691 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
32692 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32693 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32694 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32695 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32696 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32697 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32698 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32699 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32700 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32701 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32702 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32703 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32704 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32705 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32706 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32707 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32708 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32709 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32710 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32711 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32712 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32713 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32714 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32715 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32716 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32717 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32718 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32719 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32720 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32721 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32722 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32723 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32724 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32725 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32726 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32727 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32728 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32729 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32730 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32731 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32732 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32733 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32734 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32735 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32736 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32737 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32738 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32739 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32740 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32741 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32742 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32743 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32744 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32745 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32746 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32747 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
32748 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
32749 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32750 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32751 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32752 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32753 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32754 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32755 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32756 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32757 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32758 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32759 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32760 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32761 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32762 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32763 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32764 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32765 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32766 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32767 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32768 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32769 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32770 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32771 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32772 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32773 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32774 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32775 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32776 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32777 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32778 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32779 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32780 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32781 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32782 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32783 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32784 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32785 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32786 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32787 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32788 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32789 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32790 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32791 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32792 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32793 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32794 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32795 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32796 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32797 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32798 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32799 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32800 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32801 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32802 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32803 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32804 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32805 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32806 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32807 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32808 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32811 LTCFLAGS='$LTCFLAGS'
32812 compiler='$compiler_DEFAULT'
32814 # A function that is used when there is no print builtin or printf.
32815 func_fallback_echo ()
32817 eval 'cat <<_LTECHO_EOF
32822 # Quote evaled strings.
32839 deplibs_check_method \
32843 sharedlib_from_linklib_cmd \
32846 archiver_list_spec \
32852 lt_cv_sys_global_symbol_pipe \
32853 lt_cv_sys_global_symbol_to_cdecl \
32854 lt_cv_sys_global_symbol_to_import \
32855 lt_cv_sys_global_symbol_to_c_name_address \
32856 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32857 lt_cv_nm_interface \
32858 nm_file_list_spec \
32859 lt_cv_truncate_bin \
32860 lt_prog_compiler_no_builtin_flag \
32861 lt_prog_compiler_pic \
32862 lt_prog_compiler_wl \
32863 lt_prog_compiler_static \
32864 lt_cv_prog_compiler_c_o \
32873 export_dynamic_flag_spec \
32874 whole_archive_flag_spec \
32875 compiler_needs_object \
32877 allow_undefined_flag \
32878 no_undefined_flag \
32879 hardcode_libdir_flag_spec \
32880 hardcode_libdir_separator \
32884 variables_saved_for_relink \
32886 library_names_spec \
32888 install_override_mode \
32892 compiler_lib_search_dirs \
32897 compiler_lib_search_path \
32901 lt_prog_compiler_no_builtin_flag_CXX \
32902 lt_prog_compiler_pic_CXX \
32903 lt_prog_compiler_wl_CXX \
32904 lt_prog_compiler_static_CXX \
32905 lt_cv_prog_compiler_c_o_CXX \
32906 export_dynamic_flag_spec_CXX \
32907 whole_archive_flag_spec_CXX \
32908 compiler_needs_object_CXX \
32910 allow_undefined_flag_CXX \
32911 no_undefined_flag_CXX \
32912 hardcode_libdir_flag_spec_CXX \
32913 hardcode_libdir_separator_CXX \
32914 exclude_expsyms_CXX \
32915 include_expsyms_CXX \
32916 file_list_spec_CXX \
32917 compiler_lib_search_dirs_CXX \
32918 predep_objects_CXX \
32919 postdep_objects_CXX \
32922 compiler_lib_search_path_CXX; do
32923 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32924 *[\\\\\\\`\\"\\\$]*)
32925 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
32928 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32933 # Double-quote double-evaled strings.
32934 for var in reload_cmds \
32935 old_postinstall_cmds \
32936 old_postuninstall_cmds \
32938 extract_expsyms_cmds \
32939 old_archive_from_new_cmds \
32940 old_archive_from_expsyms_cmds \
32942 archive_expsym_cmds \
32944 module_expsym_cmds \
32945 export_symbols_cmds \
32949 postuninstall_cmds \
32951 sys_lib_search_path_spec \
32952 configure_time_dlsearch_path \
32953 configure_time_lt_sys_library_path \
32955 old_archive_cmds_CXX \
32956 old_archive_from_new_cmds_CXX \
32957 old_archive_from_expsyms_cmds_CXX \
32959 archive_expsym_cmds_CXX \
32961 module_expsym_cmds_CXX \
32962 export_symbols_cmds_CXX \
32964 postlink_cmds_CXX; do
32965 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32966 *[\\\\\\\`\\"\\\$]*)
32967 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
32970 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32975 ac_aux_dir='$ac_aux_dir'
32977 # See if we are running on zsh, and set the options that allow our
32978 # commands through without removal of \ escapes INIT.
32979 if test -n "\${ZSH_VERSION+set}"; then
32980 setopt NO_GLOB_SUBST
32996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32998 # Handling of arguments.
32999 for ac_config_target in $ac_config_targets
33001 case $ac_config_target in
33002 "src/lib/ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lib/ares_config.h" ;;
33003 "include/ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ares_build.h" ;;
33004 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33005 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33006 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33007 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
33008 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33009 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
33010 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
33011 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
33012 "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
33014 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33019 # If the user did not use the arguments to specify the items to instantiate,
33020 # then the envvar interface is used. Set only those that are not.
33021 # We use the long form for the default assignment because of an extremely
33022 # bizarre bug on SunOS 4.1.3.
33023 if $ac_need_defaults; then
33024 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33025 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33026 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33029 # Have a temporary directory for convenience. Make it in the build tree
33030 # simply because there is no reason against having it here, and in addition,
33031 # creating and moving files from /tmp can sometimes cause problems.
33032 # Hook for its removal unless debugging.
33033 # Note that there is a small window in which the directory will not be cleaned:
33034 # after its creation but before its name has been assigned to `$tmp'.
33038 trap 'exit_status=$?
33039 : "${ac_tmp:=$tmp}"
33040 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33042 trap 'as_fn_exit 1' 1 2 13 15
33044 # Create a (secure) tmp directory for tmp files.
33047 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33051 tmp=./conf$$-$RANDOM
33052 (umask 077 && mkdir "$tmp")
33053 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33056 # Set up the scripts for CONFIG_FILES section.
33057 # No need to generate them if there are no CONFIG_FILES.
33058 # This happens for instance with `./config.status config.h'.
33059 if test -n "$CONFIG_FILES"; then
33062 ac_cr=`echo X | tr X '\015'`
33063 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33064 # But we know of no other shell where ac_cr would be empty at this
33065 # point, so we can use a bashism as a fallback.
33066 if test "x$ac_cr" = x; then
33067 eval ac_cr=\$\'\\r\'
33069 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33070 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33073 ac_cs_awk_cr=$ac_cr
33076 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33081 echo "cat >conf$$subs.awk <<_ACEOF" &&
33082 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33084 } >conf$$subs.sh ||
33085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33086 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33088 for ac_last_try in false false false false false :; do
33089 . ./conf$$subs.sh ||
33090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33092 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33093 if test $ac_delim_n = $ac_delim_num; then
33095 elif $ac_last_try; then
33096 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33101 rm -f conf$$subs.sh
33103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33104 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33108 s/^/S["/; s/!.*/"]=/
33118 s/\(.\{148\}\)..*/\1/
33120 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33125 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33132 s/\(.\{148\}\)..*/\1/
33134 s/["\\]/\\&/g; s/^/"/; s/$/"/
33138 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33143 ' <conf$$subs.awk | sed '
33148 ' >>$CONFIG_STATUS || ac_write_fail=1
33149 rm -f conf$$subs.awk
33150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33152 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33153 for (key in S) S_is_set[key] = 1
33159 nfields = split(line, field, "@")
33161 len = length(field[1])
33162 for (i = 2; i < nfields; i++) {
33164 keylen = length(key)
33165 if (S_is_set[key]) {
33167 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33168 len += length(value) + length(field[++i])
33179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33180 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33181 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33184 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33185 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33188 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33189 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33190 # trailing colons and then remove the whole line if VPATH becomes empty
33191 # (actually we leave an empty line to preserve line numbers).
33192 if test "x$srcdir" = x.; then
33193 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33212 fi # test -n "$CONFIG_FILES"
33214 # Set up the scripts for CONFIG_HEADERS section.
33215 # No need to generate them if there are no CONFIG_HEADERS.
33216 # This happens for instance with `./config.status Makefile'.
33217 if test -n "$CONFIG_HEADERS"; then
33218 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33222 # Transform confdefs.h into an awk script `defines.awk', embedded as
33223 # here-document in config.status, that substitutes the proper values into
33224 # config.h.in to produce config.h.
33226 # Create a delimiter string that does not exist in confdefs.h, to ease
33227 # handling of long lines.
33229 for ac_last_try in false false :; do
33230 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33231 if test -z "$ac_tt"; then
33233 elif $ac_last_try; then
33234 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33240 # For the awk script, D is an array of macro values keyed by name,
33241 # likewise P contains macro parameters if any. Preserve backslash
33242 # newline sequences.
33244 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33246 s/.\{148\}/&'"$ac_delim"'/g
33249 s/^[ ]*#[ ]*define[ ][ ]*/ /
33256 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33258 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33263 D["\1"]=" \3\\\\\\n"\\/p
33265 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33270 s/.\{148\}/&'"$ac_delim"'/g
33275 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33278 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33280 ' <confdefs.h | sed '
33281 s/'"$ac_delim"'/"\\\
33282 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33285 for (key in D) D_is_set[key] = 1
33288 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33290 split(line, arg, " ")
33291 if (arg[1] == "#") {
33295 defundef = substr(arg[1], 2)
33298 split(mac1, mac2, "(") #)
33300 prefix = substr(line, 1, index(line, defundef) - 1)
33301 if (D_is_set[macro]) {
33302 # Preserve the white space surrounding the "#".
33303 print prefix "define", macro P[macro] D[macro]
33306 # Replace #undef with comments. This is necessary, for example,
33307 # in the case of _POSIX_SOURCE, which is predefined and required
33308 # on some systems where configure will not decide to define it.
33309 if (defundef == "undef") {
33310 print "/*", prefix defundef, macro, "*/"
33318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33319 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33320 fi # test -n "$CONFIG_HEADERS"
33323 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33328 :[FHLC]) ac_mode=$ac_tag; continue;;
33330 case $ac_mode$ac_tag in
33332 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33333 :[FH]-) ac_tag=-:-;;
33334 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33351 -) ac_f="$ac_tmp/stdin";;
33352 *) # Look for the file first in the build tree, then in the source tree
33353 # (if the path is not absolute). The absolute path cannot be DOS-style,
33354 # because $ac_f cannot contain `:'.
33358 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33360 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33362 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33363 as_fn_append ac_file_inputs " '$ac_f'"
33366 # Let's still pretend it is `configure' which instantiates (i.e., don't
33367 # use $as_me), people would be surprised to read:
33368 # /* config.h. Generated by config.status. */
33369 configure_input='Generated from '`
33370 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33372 if test x"$ac_file" != x-; then
33373 configure_input="$ac_file. $configure_input"
33374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33375 $as_echo "$as_me: creating $ac_file" >&6;}
33377 # Neutralize special characters interpreted by sed in replacement strings.
33378 case $configure_input in #(
33379 *\&* | *\|* | *\\* )
33380 ac_sed_conf_input=`$as_echo "$configure_input" |
33381 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33382 *) ac_sed_conf_input=$configure_input;;
33386 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33392 ac_dir=`$as_dirname -- "$ac_file" ||
33393 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33394 X"$ac_file" : 'X\(//\)[^/]' \| \
33395 X"$ac_file" : 'X\(//\)$' \| \
33396 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33397 $as_echo X"$ac_file" |
33398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33402 /^X\(\/\/\)[^/].*/{
33415 as_dir="$ac_dir"; as_fn_mkdir_p
33419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33422 # A ".." for each directory in $ac_dir_suffix.
33423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33424 case $ac_top_builddir_sub in
33425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33429 ac_abs_top_builddir=$ac_pwd
33430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33431 # for backward compatibility:
33432 ac_top_builddir=$ac_top_build_prefix
33435 .) # We are building in place.
33437 ac_top_srcdir=$ac_top_builddir_sub
33438 ac_abs_top_srcdir=$ac_pwd ;;
33439 [\\/]* | ?:[\\/]* ) # Absolute name.
33440 ac_srcdir=$srcdir$ac_dir_suffix;
33441 ac_top_srcdir=$srcdir
33442 ac_abs_top_srcdir=$srcdir ;;
33443 *) # Relative name.
33444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33445 ac_top_srcdir=$ac_top_build_prefix$srcdir
33446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33459 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33461 ac_MKDIR_P=$MKDIR_P
33463 [\\/$]* | ?:[\\/]* ) ;;
33464 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33469 # If the template does not know about datarootdir, expand it.
33470 # FIXME: This hack should be removed a few years after 2.60.
33471 ac_datarootdir_hack=; ac_datarootdir_seen=
33482 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33483 *datarootdir*) ac_datarootdir_seen=yes;;
33484 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33486 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33489 ac_datarootdir_hack='
33490 s&@datadir@&$datadir&g
33491 s&@docdir@&$docdir&g
33492 s&@infodir@&$infodir&g
33493 s&@localedir@&$localedir&g
33494 s&@mandir@&$mandir&g
33495 s&\\\${datarootdir}&$datarootdir&g' ;;
33499 # Neutralize VPATH when `$srcdir' = `.'.
33500 # Shell code in configure.ac might set extrasub.
33501 # FIXME: do we really want to maintain this feature?
33502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33503 ac_sed_extra="$ac_vpsub
33506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33509 s|@configure_input@|$ac_sed_conf_input|;t t
33510 s&@top_builddir@&$ac_top_builddir_sub&;t t
33511 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33512 s&@srcdir@&$ac_srcdir&;t t
33513 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33514 s&@top_srcdir@&$ac_top_srcdir&;t t
33515 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33516 s&@builddir@&$ac_builddir&;t t
33517 s&@abs_builddir@&$ac_abs_builddir&;t t
33518 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33519 s&@INSTALL@&$ac_INSTALL&;t t
33520 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33521 $ac_datarootdir_hack
33523 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33524 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33526 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33527 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33528 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33529 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33531 which seems to be undefined. Please make sure it is defined" >&5
33532 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33533 which seems to be undefined. Please make sure it is defined" >&2;}
33535 rm -f "$ac_tmp/stdin"
33537 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33538 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33540 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33546 if test x"$ac_file" != x-; then
33548 $as_echo "/* $configure_input */" \
33549 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33550 } >"$ac_tmp/config.h" \
33551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33552 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33554 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33557 mv "$ac_tmp/config.h" "$ac_file" \
33558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33561 $as_echo "/* $configure_input */" \
33562 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33563 || as_fn_error $? "could not create -" "$LINENO" 5
33565 # Compute "$ac_file"'s index in $config_headers.
33568 for _am_header in $config_headers :; do
33569 case $_am_header in
33570 $_am_arg | $_am_arg:* )
33573 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33576 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33577 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33578 X"$_am_arg" : 'X\(//\)[^/]' \| \
33579 X"$_am_arg" : 'X\(//\)$' \| \
33580 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33581 $as_echo X"$_am_arg" |
33582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33586 /^X\(\/\/\)[^/].*/{
33598 s/.*/./; q'`/stamp-h$_am_stamp_count
33601 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33602 $as_echo "$as_me: executing $ac_file commands" >&6;}
33607 case $ac_file$ac_mode in
33608 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33609 # Older Autoconf quotes --file arguments for eval, but not when files
33610 # are listed without --file. Let's play safe and only enable the eval
33611 # if we detect the quoting.
33612 # TODO: see whether this extra hack can be removed once we start
33613 # requiring Autoconf 2.70 or later.
33614 case $CONFIG_FILES in #(
33616 eval set x "$CONFIG_FILES" ;; #(
33618 set x $CONFIG_FILES ;; #(
33623 # Used to flag and report bootstrapping failures.
33627 # Strip MF so we end up with the name of the file.
33628 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
33629 # Check whether this is an Automake generated Makefile which includes
33630 # dependency-tracking related rules and includes.
33631 # Grep'ing the whole file directly is not great: AIX grep has a line
33632 # limit of 2048, but all sed's we know have understand at least 4000.
33633 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
33635 am_dirpart=`$as_dirname -- "$am_mf" ||
33636 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33637 X"$am_mf" : 'X\(//\)[^/]' \| \
33638 X"$am_mf" : 'X\(//\)$' \| \
33639 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
33640 $as_echo X"$am_mf" |
33641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33645 /^X\(\/\/\)[^/].*/{
33658 am_filepart=`$as_basename -- "$am_mf" ||
33659 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
33660 X"$am_mf" : 'X\(//\)$' \| \
33661 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
33662 $as_echo X/"$am_mf" |
33663 sed '/^.*\/\([^/][^/]*\)\/*$/{
33676 { echo "$as_me:$LINENO: cd "$am_dirpart" \
33677 && sed -e '/# am--include-marker/d' "$am_filepart" \
33678 | $MAKE -f - am--depfiles" >&5
33679 (cd "$am_dirpart" \
33680 && sed -e '/# am--include-marker/d' "$am_filepart" \
33681 | $MAKE -f - am--depfiles) >&5 2>&5
33683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684 (exit $ac_status); } || am_rc=$?
33686 if test $am_rc -ne 0; then
33687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33689 as_fn_error $? "Something went wrong bootstrapping makefile fragments
33690 for automatic dependency tracking. If GNU make was not used, consider
33691 re-running the configure script with MAKE=\"gmake\" (or whatever is
33692 necessary). You can also try re-running configure with the
33693 '--disable-dependency-tracking' option to at least be able to build
33694 the package (albeit without support for automatic dependency tracking).
33695 See \`config.log' for more details" "$LINENO" 5; }
33697 { am_dirpart=; unset am_dirpart;}
33698 { am_filepart=; unset am_filepart;}
33699 { am_mf=; unset am_mf;}
33700 { am_rc=; unset am_rc;}
33701 rm -f conftest-deps.mk
33706 # See if we are running on zsh, and set the options that allow our
33707 # commands through without removal of \ escapes.
33708 if test -n "${ZSH_VERSION+set}"; then
33709 setopt NO_GLOB_SUBST
33713 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33716 cat <<_LT_EOF >> "$cfgfile"
33718 # Generated automatically by $as_me ($PACKAGE) $VERSION
33719 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33721 # Provide generalized library-building support services.
33722 # Written by Gordon Matzigkeit, 1996
33724 # Copyright (C) 2014 Free Software Foundation, Inc.
33725 # This is free software; see the source for copying conditions. There is NO
33726 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
33728 # GNU Libtool is free software; you can redistribute it and/or modify
33729 # it under the terms of the GNU General Public License as published by
33730 # the Free Software Foundation; either version 2 of of the License, or
33731 # (at your option) any later version.
33733 # As a special exception to the GNU General Public License, if you
33734 # distribute this file as part of a program or library that is built
33735 # using GNU Libtool, you may include this file under the same
33736 # distribution terms that you use for the rest of that program.
33738 # GNU Libtool is distributed in the hope that it will be useful, but
33739 # WITHOUT ANY WARRANTY; without even the implied warranty of
33740 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33741 # GNU General Public License for more details.
33743 # You should have received a copy of the GNU General Public License
33744 # along with this program. If not, see <http://www.gnu.org/licenses/>.
33747 # The names of the tagged configurations supported by this script.
33748 available_tags='CXX '
33750 # Configured defaults for sys_lib_dlsearch_path munging.
33751 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
33753 # ### BEGIN LIBTOOL CONFIG
33755 # Which release of libtool.m4 was used?
33756 macro_version=$macro_version
33757 macro_revision=$macro_revision
33759 # Assembler program.
33762 # DLL creation program.
33763 DLLTOOL=$lt_DLLTOOL
33765 # Object dumper program.
33766 OBJDUMP=$lt_OBJDUMP
33768 # Whether or not to build shared libraries.
33769 build_libtool_libs=$enable_shared
33771 # Whether or not to build static libraries.
33772 build_old_libs=$enable_static
33774 # What type of objects to build.
33777 # Whether or not to optimize for fast installation.
33778 fast_install=$enable_fast_install
33780 # Shared archive member basename,for filename based shared library versioning on AIX.
33781 shared_archive_member_spec=$shared_archive_member_spec
33783 # Shell to use when invoking shell scripts.
33786 # An echo program that protects backslashes.
33789 # The PATH separator for the build system.
33790 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33793 host_alias=$host_alias
33797 # The build system.
33798 build_alias=$build_alias
33802 # A sed program that does not truncate output.
33805 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33806 Xsed="\$SED -e 1s/^X//"
33808 # A grep program that handles long lines.
33814 # A literal string matcher.
33817 # A BSD- or MS-compatible name lister.
33820 # Whether we need soft or hard links.
33823 # What is the maximum length of a command?
33824 max_cmd_len=$max_cmd_len
33826 # Object file suffix (normally "o").
33829 # Executable file suffix (normally "").
33832 # whether the shell understands "unset".
33835 # turn spaces into newlines.
33838 # turn newlines into spaces.
33841 # convert \$build file names to \$host format.
33842 to_host_file_cmd=$lt_cv_to_host_file_cmd
33844 # convert \$build files to toolchain format.
33845 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33847 # Method to check whether dependent libraries are shared objects.
33848 deplibs_check_method=$lt_deplibs_check_method
33850 # Command to use when deplibs_check_method = "file_magic".
33851 file_magic_cmd=$lt_file_magic_cmd
33853 # How to find potential files when deplibs_check_method = "file_magic".
33854 file_magic_glob=$lt_file_magic_glob
33856 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33857 want_nocaseglob=$lt_want_nocaseglob
33859 # Command to associate shared and link libraries.
33860 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33865 # Flags to create an archive.
33866 AR_FLAGS=$lt_AR_FLAGS
33868 # How to feed a file listing to the archiver.
33869 archiver_list_spec=$lt_archiver_list_spec
33871 # A symbol stripping program.
33874 # Commands used to install an old-style archive.
33876 old_postinstall_cmds=$lt_old_postinstall_cmds
33877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33879 # Whether to use a lock for old archive extraction.
33880 lock_old_archive_extraction=$lock_old_archive_extraction
33885 # LTCC compiler flags.
33886 LTCFLAGS=$lt_CFLAGS
33888 # Take the output of nm and produce a listing of raw symbols and C names.
33889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33891 # Transform the output of nm in a proper C declaration.
33892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33894 # Transform the output of nm into a list of symbols to manually relocate.
33895 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
33897 # Transform the output of nm in a C name address pair.
33898 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33900 # Transform the output of nm in a C name address pair when lib prefix is needed.
33901 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33903 # The name lister interface.
33904 nm_interface=$lt_lt_cv_nm_interface
33906 # Specify filename containing input files for \$NM.
33907 nm_file_list_spec=$lt_nm_file_list_spec
33909 # The root where to search for dependent libraries,and where our libraries should be installed.
33910 lt_sysroot=$lt_sysroot
33912 # Command to truncate a binary pipe.
33913 lt_truncate_bin=$lt_lt_cv_truncate_bin
33915 # The name of the directory that contains temporary libtool files.
33918 # Used to examine libraries when file_magic_cmd begins with "file".
33919 MAGIC_CMD=$MAGIC_CMD
33921 # Must we lock files when doing compilation?
33922 need_locks=$lt_need_locks
33925 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33927 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33928 DSYMUTIL=$lt_DSYMUTIL
33930 # Tool to change global to local symbols on Mac OS X.
33933 # Tool to manipulate fat objects and archives on Mac OS X.
33936 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33939 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33940 OTOOL64=$lt_OTOOL64
33942 # Old archive suffix (normally "a").
33945 # Shared library suffix (normally ".so").
33946 shrext_cmds=$lt_shrext_cmds
33948 # The commands to extract the exported symbol list from a shared archive.
33949 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33951 # Variables whose values should be saved in libtool wrapper scripts and
33952 # restored at link time.
33953 variables_saved_for_relink=$lt_variables_saved_for_relink
33955 # Do we need the "lib" prefix for modules?
33956 need_lib_prefix=$need_lib_prefix
33958 # Do we need a version for libraries?
33959 need_version=$need_version
33961 # Library versioning type.
33962 version_type=$version_type
33964 # Shared library runtime path variable.
33965 runpath_var=$runpath_var
33967 # Shared library path variable.
33968 shlibpath_var=$shlibpath_var
33970 # Is shlibpath searched before the hard-coded library search path?
33971 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33973 # Format of library name prefix.
33974 libname_spec=$lt_libname_spec
33976 # List of archive names. First name is the real one, the rest are links.
33977 # The last name is the one that the linker finds with -lNAME
33978 library_names_spec=$lt_library_names_spec
33980 # The coded name of the library, if different from the real name.
33981 soname_spec=$lt_soname_spec
33983 # Permission mode override for installation of shared libraries.
33984 install_override_mode=$lt_install_override_mode
33986 # Command to use after installation of a shared archive.
33987 postinstall_cmds=$lt_postinstall_cmds
33989 # Command to use after uninstallation of a shared archive.
33990 postuninstall_cmds=$lt_postuninstall_cmds
33992 # Commands used to finish a libtool library installation in a directory.
33993 finish_cmds=$lt_finish_cmds
33995 # As "finish_cmds", except a single script fragment to be evaled but
33997 finish_eval=$lt_finish_eval
33999 # Whether we should hardcode library paths into libraries.
34000 hardcode_into_libs=$hardcode_into_libs
34002 # Compile-time system search path for libraries.
34003 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34005 # Detected run-time system search path for libraries.
34006 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
34008 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
34009 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
34011 # Whether dlopen is supported.
34012 dlopen_support=$enable_dlopen
34014 # Whether dlopen of programs is supported.
34015 dlopen_self=$enable_dlopen_self
34017 # Whether dlopen of statically linked programs is supported.
34018 dlopen_self_static=$enable_dlopen_self_static
34020 # Commands to strip libraries.
34021 old_striplib=$lt_old_striplib
34022 striplib=$lt_striplib
34025 # The linker used to build libraries.
34028 # How to create reloadable object files.
34029 reload_flag=$lt_reload_flag
34030 reload_cmds=$lt_reload_cmds
34032 # Commands used to build an old-style archive.
34033 old_archive_cmds=$lt_old_archive_cmds
34035 # A language specific compiler.
34038 # Is the compiler the GNU compiler?
34041 # Compiler flag to turn off builtin functions.
34042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34044 # Additional compiler flags for building library objects.
34045 pic_flag=$lt_lt_prog_compiler_pic
34047 # How to pass a linker flag through the compiler.
34048 wl=$lt_lt_prog_compiler_wl
34050 # Compiler flag to prevent dynamic linking.
34051 link_static_flag=$lt_lt_prog_compiler_static
34053 # Does compiler simultaneously support -c and -o options?
34054 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34056 # Whether or not to add -lc for building shared libraries.
34057 build_libtool_need_lc=$archive_cmds_need_lc
34059 # Whether or not to disallow shared libs when runtime libs are static.
34060 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34062 # Compiler flag to allow reflexive dlopens.
34063 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34065 # Compiler flag to generate shared objects directly from archives.
34066 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34068 # Whether the compiler copes with passing no objects directly.
34069 compiler_needs_object=$lt_compiler_needs_object
34071 # Create an old-style archive from a shared archive.
34072 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34074 # Create a temporary old-style archive to link instead of a shared archive.
34075 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34077 # Commands used to build a shared archive.
34078 archive_cmds=$lt_archive_cmds
34079 archive_expsym_cmds=$lt_archive_expsym_cmds
34081 # Commands used to build a loadable module if different from building
34082 # a shared archive.
34083 module_cmds=$lt_module_cmds
34084 module_expsym_cmds=$lt_module_expsym_cmds
34086 # Whether we are building with GNU ld or not.
34087 with_gnu_ld=$lt_with_gnu_ld
34089 # Flag that allows shared libraries with undefined symbols to be built.
34090 allow_undefined_flag=$lt_allow_undefined_flag
34092 # Flag that enforces no undefined symbols.
34093 no_undefined_flag=$lt_no_undefined_flag
34095 # Flag to hardcode \$libdir into a binary during linking.
34096 # This must work even if \$libdir does not exist
34097 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34099 # Whether we need a single "-rpath" flag with a separated argument.
34100 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34102 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34103 # DIR into the resulting binary.
34104 hardcode_direct=$hardcode_direct
34106 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34107 # DIR into the resulting binary and the resulting library dependency is
34108 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
34109 # library is relocated.
34110 hardcode_direct_absolute=$hardcode_direct_absolute
34112 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34113 # into the resulting binary.
34114 hardcode_minus_L=$hardcode_minus_L
34116 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34117 # into the resulting binary.
34118 hardcode_shlibpath_var=$hardcode_shlibpath_var
34120 # Set to "yes" if building a shared library automatically hardcodes DIR
34121 # into the library and all subsequent libraries and executables linked
34123 hardcode_automatic=$hardcode_automatic
34125 # Set to yes if linker adds runtime paths of dependent libraries
34126 # to runtime path list.
34127 inherit_rpath=$inherit_rpath
34129 # Whether libtool must link a program against all its dependency libraries.
34130 link_all_deplibs=$link_all_deplibs
34132 # Set to "yes" if exported symbols are required.
34133 always_export_symbols=$always_export_symbols
34135 # The commands to list exported symbols.
34136 export_symbols_cmds=$lt_export_symbols_cmds
34138 # Symbols that should not be listed in the preloaded symbols.
34139 exclude_expsyms=$lt_exclude_expsyms
34141 # Symbols that must always be exported.
34142 include_expsyms=$lt_include_expsyms
34144 # Commands necessary for linking programs (against libraries) with templates.
34145 prelink_cmds=$lt_prelink_cmds
34147 # Commands necessary for finishing linking programs.
34148 postlink_cmds=$lt_postlink_cmds
34150 # Specify filename containing input files.
34151 file_list_spec=$lt_file_list_spec
34153 # How to hardcode a shared library path into an executable.
34154 hardcode_action=$hardcode_action
34156 # The directories searched by this compiler when creating a shared library.
34157 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34159 # Dependencies to place before and after the objects being linked to
34160 # create a shared library.
34161 predep_objects=$lt_predep_objects
34162 postdep_objects=$lt_postdep_objects
34163 predeps=$lt_predeps
34164 postdeps=$lt_postdeps
34166 # The library search path used internally by the compiler when linking
34167 # a shared library.
34168 compiler_lib_search_path=$lt_compiler_lib_search_path
34170 # ### END LIBTOOL CONFIG
34174 cat <<'_LT_EOF' >> "$cfgfile"
34176 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
34178 # func_munge_path_list VARIABLE PATH
34179 # -----------------------------------
34180 # VARIABLE is name of variable containing _space_ separated list of
34181 # directories to be munged by the contents of PATH, which is string
34184 # string "DIR[ DIR]" will be prepended to VARIABLE
34186 # string "DIR[ DIR]" will be appended to VARIABLE
34187 # "DIRP[:DIRP]::[DIRA:]DIRA"
34188 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
34189 # "DIRA[ DIRA]" will be appended to VARIABLE
34191 # VARIABLE will be replaced by "DIR[ DIR]"
34192 func_munge_path_list ()
34198 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
34201 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
34204 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
34205 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
34208 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
34214 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
34215 func_cc_basename ()
34217 for cc_temp in $*""; do
34219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34225 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
34229 # ### END FUNCTIONS SHARED WITH CONFIGURE
34235 cat <<\_LT_EOF >> "$cfgfile"
34236 # AIX sometimes has problems with the GCC collect2 program. For some
34237 # reason, if we set the COLLECT_NAMES environment variable, the problems
34238 # vanish in a puff of smoke.
34239 if test set != "${COLLECT_NAMES+set}"; then
34241 export COLLECT_NAMES
34248 ltmain=$ac_aux_dir/ltmain.sh
34251 # We use sed instead of cat because bash on DJGPP gets confused if
34252 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34253 # text mode, it properly converts lines to CR/LF. This bash problem
34254 # is reportedly fixed, but why not run on old versions too?
34255 sed '$q' "$ltmain" >> "$cfgfile" \
34256 || (rm -f "$cfgfile"; exit 1)
34258 mv -f "$cfgfile" "$ofile" ||
34259 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34263 cat <<_LT_EOF >> "$ofile"
34265 # ### BEGIN LIBTOOL TAG CONFIG: CXX
34267 # The linker used to build libraries.
34270 # How to create reloadable object files.
34271 reload_flag=$lt_reload_flag_CXX
34272 reload_cmds=$lt_reload_cmds_CXX
34274 # Commands used to build an old-style archive.
34275 old_archive_cmds=$lt_old_archive_cmds_CXX
34277 # A language specific compiler.
34278 CC=$lt_compiler_CXX
34280 # Is the compiler the GNU compiler?
34283 # Compiler flag to turn off builtin functions.
34284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34286 # Additional compiler flags for building library objects.
34287 pic_flag=$lt_lt_prog_compiler_pic_CXX
34289 # How to pass a linker flag through the compiler.
34290 wl=$lt_lt_prog_compiler_wl_CXX
34292 # Compiler flag to prevent dynamic linking.
34293 link_static_flag=$lt_lt_prog_compiler_static_CXX
34295 # Does compiler simultaneously support -c and -o options?
34296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34298 # Whether or not to add -lc for building shared libraries.
34299 build_libtool_need_lc=$archive_cmds_need_lc_CXX
34301 # Whether or not to disallow shared libs when runtime libs are static.
34302 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34304 # Compiler flag to allow reflexive dlopens.
34305 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34307 # Compiler flag to generate shared objects directly from archives.
34308 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34310 # Whether the compiler copes with passing no objects directly.
34311 compiler_needs_object=$lt_compiler_needs_object_CXX
34313 # Create an old-style archive from a shared archive.
34314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34316 # Create a temporary old-style archive to link instead of a shared archive.
34317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34319 # Commands used to build a shared archive.
34320 archive_cmds=$lt_archive_cmds_CXX
34321 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34323 # Commands used to build a loadable module if different from building
34324 # a shared archive.
34325 module_cmds=$lt_module_cmds_CXX
34326 module_expsym_cmds=$lt_module_expsym_cmds_CXX
34328 # Whether we are building with GNU ld or not.
34329 with_gnu_ld=$lt_with_gnu_ld_CXX
34331 # Flag that allows shared libraries with undefined symbols to be built.
34332 allow_undefined_flag=$lt_allow_undefined_flag_CXX
34334 # Flag that enforces no undefined symbols.
34335 no_undefined_flag=$lt_no_undefined_flag_CXX
34337 # Flag to hardcode \$libdir into a binary during linking.
34338 # This must work even if \$libdir does not exist
34339 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34341 # Whether we need a single "-rpath" flag with a separated argument.
34342 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34344 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34345 # DIR into the resulting binary.
34346 hardcode_direct=$hardcode_direct_CXX
34348 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34349 # DIR into the resulting binary and the resulting library dependency is
34350 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
34351 # library is relocated.
34352 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34354 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34355 # into the resulting binary.
34356 hardcode_minus_L=$hardcode_minus_L_CXX
34358 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34359 # into the resulting binary.
34360 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34362 # Set to "yes" if building a shared library automatically hardcodes DIR
34363 # into the library and all subsequent libraries and executables linked
34365 hardcode_automatic=$hardcode_automatic_CXX
34367 # Set to yes if linker adds runtime paths of dependent libraries
34368 # to runtime path list.
34369 inherit_rpath=$inherit_rpath_CXX
34371 # Whether libtool must link a program against all its dependency libraries.
34372 link_all_deplibs=$link_all_deplibs_CXX
34374 # Set to "yes" if exported symbols are required.
34375 always_export_symbols=$always_export_symbols_CXX
34377 # The commands to list exported symbols.
34378 export_symbols_cmds=$lt_export_symbols_cmds_CXX
34380 # Symbols that should not be listed in the preloaded symbols.
34381 exclude_expsyms=$lt_exclude_expsyms_CXX
34383 # Symbols that must always be exported.
34384 include_expsyms=$lt_include_expsyms_CXX
34386 # Commands necessary for linking programs (against libraries) with templates.
34387 prelink_cmds=$lt_prelink_cmds_CXX
34389 # Commands necessary for finishing linking programs.
34390 postlink_cmds=$lt_postlink_cmds_CXX
34392 # Specify filename containing input files.
34393 file_list_spec=$lt_file_list_spec_CXX
34395 # How to hardcode a shared library path into an executable.
34396 hardcode_action=$hardcode_action_CXX
34398 # The directories searched by this compiler when creating a shared library.
34399 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34401 # Dependencies to place before and after the objects being linked to
34402 # create a shared library.
34403 predep_objects=$lt_predep_objects_CXX
34404 postdep_objects=$lt_postdep_objects_CXX
34405 predeps=$lt_predeps_CXX
34406 postdeps=$lt_postdeps_CXX
34408 # The library search path used internally by the compiler when linking
34409 # a shared library.
34410 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34412 # ### END LIBTOOL TAG CONFIG: CXX
34423 ac_clean_files=$ac_clean_files_save
34425 test $ac_write_fail = 0 ||
34426 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34429 # configure is writing to config.log, and then calls config.status.
34430 # config.status does its own redirection, appending to config.log.
34431 # Unfortunately, on DOS this fails, as config.log is still kept open
34432 # by configure, so config.status won't be able to write to it; its
34433 # output is simply discarded. So we exec the FD to /dev/null,
34434 # effectively closing config.log, so it can be properly (re)opened and
34435 # appended to by config.status. When coming back to configure, we
34436 # need to make the FD available again.
34437 if test "$no_create" != yes; then
34439 ac_config_status_args=
34440 test "$silent" = yes &&
34441 ac_config_status_args="$ac_config_status_args --quiet"
34443 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34446 # would make configure fail if this is the last instruction.
34447 $ac_cs_success || as_fn_exit 1
34451 # CONFIG_SUBDIRS section.
34453 if test "$no_recursion" != yes; then
34455 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
34456 # so they do not pile up.
34457 ac_sub_configure_args=
34459 eval "set x $ac_configure_args"
34463 if test -n "$ac_prev"; then
34468 -cache-file | --cache-file | --cache-fil | --cache-fi \
34469 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34470 ac_prev=cache_file ;;
34471 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34472 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34475 --config-cache | -C)
34477 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34479 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34481 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34483 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34485 --disable-option-checking)
34489 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34491 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
34495 # Always prepend --prefix to ensure using the same prefix
34496 # in subdir configurations.
34497 ac_arg="--prefix=$prefix"
34499 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34501 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
34504 if test "$silent" = yes; then
34505 ac_sub_configure_args="--silent $ac_sub_configure_args"
34508 # Always prepend --disable-option-checking to silence warnings, since
34509 # different subdirs can have different --enable and --with options.
34510 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
34513 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34515 # Do not complain, so a configure script can configure whichever
34516 # parts of a large source tree are present.
34517 test -d "$srcdir/$ac_dir" || continue
34519 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34520 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
34521 $as_echo "$ac_msg" >&6
34522 as_dir="$ac_dir"; as_fn_mkdir_p
34526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34529 # A ".." for each directory in $ac_dir_suffix.
34530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34531 case $ac_top_builddir_sub in
34532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34536 ac_abs_top_builddir=$ac_pwd
34537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34538 # for backward compatibility:
34539 ac_top_builddir=$ac_top_build_prefix
34542 .) # We are building in place.
34544 ac_top_srcdir=$ac_top_builddir_sub
34545 ac_abs_top_srcdir=$ac_pwd ;;
34546 [\\/]* | ?:[\\/]* ) # Absolute name.
34547 ac_srcdir=$srcdir$ac_dir_suffix;
34548 ac_top_srcdir=$srcdir
34549 ac_abs_top_srcdir=$srcdir ;;
34550 *) # Relative name.
34551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34552 ac_top_srcdir=$ac_top_build_prefix$srcdir
34553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34560 # Check for guested configure; otherwise get Cygnus style configure.
34561 if test -f "$ac_srcdir/configure.gnu"; then
34562 ac_sub_configure=$ac_srcdir/configure.gnu
34563 elif test -f "$ac_srcdir/configure"; then
34564 ac_sub_configure=$ac_srcdir/configure
34565 elif test -f "$ac_srcdir/configure.in"; then
34566 # This should be Cygnus configure.
34567 ac_sub_configure=$ac_aux_dir/configure
34569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
34570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34574 # The recursion is here.
34575 if test -n "$ac_sub_configure"; then
34576 # Make the cache file name correct relative to the subdirectory.
34577 case $cache_file in
34578 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34579 *) # Relative name.
34580 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34583 { $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
34584 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34585 # The eval makes quoting arguments work.
34586 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34587 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34588 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
34594 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34596 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34600 ## ---------------------------------- ##
34601 ## Start of distclean amending code ##
34602 ## ---------------------------------- ##
34604 for xc_subdir in '.'
34607 if test ! -f "$xc_subdir/Makefile"; then
34608 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
34612 # Fetch dependency tracking file list from Makefile include lines.
34614 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
34615 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
34617 # --disable-dependency-tracking might have been used, consequently
34618 # there is nothing to amend without a dependency tracking file list.
34620 if test $xc_cnt_words -gt 0; then
34622 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
34623 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
34625 # Build Makefile specific patch hunk.
34627 xc_p="$xc_subdir/xc_patch.tmp"
34629 xc_rm_depfiles=`echo "$xc_inc_lines" \
34630 | $SED 's%include% -rm -f%' 2>/dev/null`
34632 xc_dep_subdirs=`echo "$xc_inc_lines" \
34633 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
34634 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
34637 echo "$xc_rm_depfiles" >$xc_p
34639 for xc_dep_dir in $xc_dep_subdirs; do
34640 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
34641 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
34642 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
34643 echo "${xc_tab}fi" >>$xc_p
34646 # Build Makefile patching sed scripts.
34648 xc_s1="$xc_subdir/xc_script_1.tmp"
34649 xc_s2="$xc_subdir/xc_script_2.tmp"
34650 xc_s3="$xc_subdir/xc_script_3.tmp"
34652 cat >$xc_s1 <<\_EOT
34653 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
34654 s/^.*(DEPDIR)/___xc_depdir_line___/
34656 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
34657 s/^.*(DEPDIR)/___xc_depdir_line___/
34661 cat >$xc_s2 <<\_EOT
34662 /___xc_depdir_line___$/{
34664 /___xc_depdir_line___$/D
34669 /^___xc_depdir_line___/{
34675 # Apply patch to Makefile and cleanup.
34677 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
34678 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
34679 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
34681 if test -f "$xc_subdir/Makefile.tmp3"; then
34682 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
34685 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
34686 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
34687 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
34689 test -f "$xc_p" && rm -f "$xc_p"
34690 test -f "$xc_s1" && rm -f "$xc_s1"
34691 test -f "$xc_s2" && rm -f "$xc_s2"
34692 test -f "$xc_s3" && rm -f "$xc_s3"
34698 ## -------------------------------- ##
34699 ## End of distclean amending code ##
34700 ## -------------------------------- ##