2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for c-ares 1.18.1.
5 # Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------------------- ##
16 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
17 ## -------------------------------- ##
19 xc_configure_preamble_ver_major='1'
20 xc_configure_preamble_ver_minor='0'
23 # Set IFS to space, tab and newline.
30 IFS="$xc_space$xc_tab$xc_newline"
33 # Set internationalization behavior variables.
44 # Some useful variables.
47 xc_msg_warn='configure: WARNING:'
48 xc_msg_abrt='Can not continue.'
49 xc_msg_err='configure: error:'
52 # Verify that 'echo' command is available, otherwise abort.
56 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
57 case "x$xc_tst_str" in # ((
62 # Try built-in echo, and fail.
63 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
69 # Verify that 'test' command is available, otherwise abort.
73 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
74 case "x$xc_tst_str" in # ((
79 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
85 # Verify that 'PATH' variable is set, otherwise abort.
89 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
90 case "x$xc_tst_str" in # ((
95 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
101 # Verify that 'expr' command is available, otherwise abort.
105 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
106 case "x$xc_tst_str" in # ((
111 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
117 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
121 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
122 | sed -e 's:unknown:success:' 2>/dev/null`
123 case "x$xc_tst_str" in # ((
128 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
134 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
138 (`echo "$xc_tst_str" 2>/dev/null \
139 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
140 case "x$xc_tst_str" in # ((
145 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
151 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
154 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
155 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
156 | tr -d "0123456789$xc_tab" 2>/dev/null`
157 case "x$xc_tst_str" in # ((
162 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
168 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
171 xc_tst_str='unknown unknown unknown unknown'
172 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
173 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
174 case "x$xc_tst_str" in # ((
179 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
185 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
189 xc_tst_str=`cat <<_EOT 2>/dev/null \
190 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
195 case "x$xc_tst_str" in # ((
200 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
206 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
209 # Directory count in 'PATH' when using a colon separator.
211 xc_tst_prev_IFS=$IFS; IFS=':'
212 for xc_tst_dir in $PATH; do
214 xc_tst_dirs_col="x$xc_tst_dirs_col"
217 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
219 # Directory count in 'PATH' when using a semicolon separator.
221 xc_tst_prev_IFS=$IFS; IFS=';'
222 for xc_tst_dir in $PATH; do
224 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
227 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
229 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
230 # When both counting methods give the same result we do not want to
231 # chose one over the other, and consider auto-detection not possible.
232 if test -z "$PATH_SEPARATOR"; then
233 # Stop dead until user provides 'PATH_SEPARATOR' definition.
234 echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
238 # Separator with the greater directory count is the auto-detected one.
239 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
240 xc_tst_auto_separator=';'
242 xc_tst_auto_separator=':'
244 if test -z "$PATH_SEPARATOR"; then
245 # Simply use the auto-detected one when not already set.
246 PATH_SEPARATOR=$xc_tst_auto_separator
247 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
248 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
251 xc_PATH_SEPARATOR=$PATH_SEPARATOR
253 xc_configure_preamble_result='yes'
256 ## -------------------- ##
257 ## M4sh Initialization. ##
258 ## -------------------- ##
260 # Be more Bourne compatible
261 DUALCASE=1; export DUALCASE # for MKS sh
263 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in #(
282 # Reset variables that may have inherited troublesome values from
285 # IFS needs to be set, to space, tab, and newline, in precisely that order.
286 # (If _AS_PATH_WALK were called with IFS unset, it would have the
287 # side effect of setting IFS to empty, thus disabling word splitting.)
288 # Quoting is to prevent editors from complaining about space-tab.
298 # Ensure predictable behavior from utilities with locale-dependent output.
304 # We cannot yet rely on "unset" to work, but we need these variables
305 # to be unset--not just set to an empty or harmless value--now, to
306 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
307 # also avoids known problems related to "unset" and subshell syntax
308 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
309 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
310 do eval test \${$as_var+y} \
311 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
314 # Ensure that fds 0, 1, and 2 are open.
315 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
316 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
317 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
321 # Find who we are. Look in the path if we contain no directory separator.
324 *[\\/]* ) as_myself=$0 ;;
325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
332 *) 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
351 # Use a proper internal environment variable to ensure we don't fall
352 # into an infinite loop, continuously re-executing ourselves.
353 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
354 _as_can_reexec=no; export _as_can_reexec;
355 # We cannot yet assume a decent shell, so we have to provide a
356 # neutralization value for shells without unset; and this also
357 # works around shells that cannot unset nonexistent variables.
358 # Preserve -v and -x to the replacement shell.
361 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
363 *v*x* | *x*v* ) as_opts=-vx ;;
368 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
369 # Admittedly, this is quite paranoid, since all the known shells bail
370 # out after a failed `exec'.
371 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
374 # We don't want this to propagate to other subprocesses.
375 { _as_can_reexec=; unset _as_can_reexec;}
376 if test "x$CONFIG_SHELL" = x; then
377 as_bourne_compatible="as_nop=:
378 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
382 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
383 # is contrary to our usage. Disable this feature.
384 alias -g '\${1+\"\$@\"}'='\"\$@\"'
387 case \`(set -o) 2>/dev/null\` in #(
395 as_required="as_fn_return () { (exit \$1); }
396 as_fn_success () { as_fn_return 0; }
397 as_fn_failure () { as_fn_return 1; }
398 as_fn_ret_success () { return 0; }
399 as_fn_ret_failure () { return 1; }
402 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
403 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
404 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
405 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
406 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
410 exitcode=1; echo positional parameters were not saved.
412 test x\$exitcode = x0 || exit 1
413 blah=\$(echo \$(echo blah))
414 test x\"\$blah\" = xblah || exit 1
416 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
417 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
418 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
419 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
420 test \$(( 1 + 1 )) = 2 || exit 1
422 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
423 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
424 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
425 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
426 PATH=/empty FPATH=/empty; export PATH FPATH
427 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
428 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
429 if (eval "$as_required") 2>/dev/null
435 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
441 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
447 *) as_dir=$as_dir/ ;;
452 for as_base in sh bash ksh sh5; do
453 # Try only shells that exist, to save several forks.
454 as_shell=$as_dir$as_base
455 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
456 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
458 CONFIG_SHELL=$as_shell as_have_required=yes
459 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
473 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
474 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
476 CONFIG_SHELL=$SHELL as_have_required=yes
481 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
504 if test x$as_have_required = xno
506 printf "%s\n" "$0: This script requires a shell more modern than all"
507 printf "%s\n" "$0: the shells that I found on your system."
508 if test ${ZSH_VERSION+y} ; then
509 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
510 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
512 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and c-ares mailing
513 $0: list: http://lists.haxx.se/listinfo/c-ares about your
514 $0: system, including any error possibly output before this
515 $0: message. Then install a modern shell, or manually run
516 $0: the script under such a shell if you do have one."
522 SHELL=${CONFIG_SHELL-/bin/sh}
524 # Unset more variables known to interfere with behavior of common tools.
525 CLICOLOR_FORCE= GREP_OPTIONS=
526 unset CLICOLOR_FORCE GREP_OPTIONS
528 ## --------------------- ##
529 ## M4sh Shell Functions. ##
530 ## --------------------- ##
533 # Portably unset VAR.
536 { eval $1=; unset $1;}
541 # as_fn_set_status STATUS
542 # -----------------------
543 # Set $? to STATUS, without forking.
551 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
560 # Do nothing but, unlike ":", preserve the value of $?.
569 # Create "$as_dir" as a directory, including parents if necessary.
574 -*) as_dir=./$as_dir;;
576 test -d "$as_dir" || eval $as_mkdir_p || {
580 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
583 as_dirs="'$as_qdir' $as_dirs"
584 as_dir=`$as_dirname -- "$as_dir" ||
585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
586 X"$as_dir" : 'X\(//\)[^/]' \| \
587 X"$as_dir" : 'X\(//\)$' \| \
588 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
589 printf "%s\n" X"$as_dir" |
590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
607 test -d "$as_dir" && break
609 test -z "$as_dirs" || eval "mkdir $as_dirs"
610 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
615 # as_fn_executable_p FILE
616 # -----------------------
617 # Test if FILE is an executable regular file.
618 as_fn_executable_p ()
620 test -f "$1" && test -x "$1"
621 } # as_fn_executable_p
622 # as_fn_append VAR VALUE
623 # ----------------------
624 # Append the text in VALUE to the end of the definition contained in VAR. Take
625 # advantage of any shell optimizations that allow amortized linear growth over
626 # repeated appends, instead of the typical quadratic growth present in naive
628 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
630 eval 'as_fn_append ()
643 # Perform arithmetic evaluation on the ARGs, and store the result in the
644 # global $as_val. Take advantage of shells that can avoid forks. The arguments
645 # must be portable across $(()) and expr.
646 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
655 as_val=`expr "$@" || test $? -eq 1`
661 # Do nothing but, unlike ":", preserve the value of $?.
668 # as_fn_error STATUS ERROR [LINENO LOG_FD]
669 # ----------------------------------------
670 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
671 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
672 # script with STATUS, using 1 if that was 0.
675 as_status=$1; test $as_status -eq 0 && as_status=1
677 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
680 printf "%s\n" "$as_me: error: $2" >&2
681 as_fn_exit $as_status
684 if expr a : '\(a\)' >/dev/null 2>&1 &&
685 test "X`expr 00001 : '.*\(...\)'`" = X001; then
691 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
697 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
703 as_me=`$as_basename -- "$0" ||
704 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
705 X"$0" : 'X\(//\)$' \| \
706 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
707 printf "%s\n" X/"$0" |
708 sed '/^.*\/\([^/][^/]*\)\/*$/{
722 # Avoid depending upon Character Ranges.
723 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
724 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
725 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
726 as_cr_digits='0123456789'
727 as_cr_alnum=$as_cr_Letters$as_cr_digits
730 as_lineno_1=$LINENO as_lineno_1a=$LINENO
731 as_lineno_2=$LINENO as_lineno_2a=$LINENO
732 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
733 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
734 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
746 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
750 chmod +x "$as_me.lineno" ||
751 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
753 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
754 # already done that, so ensure we don't try to do so again and fall
755 # in an infinite loop. This has already happened in practice.
756 _as_can_reexec=no; export _as_can_reexec
757 # Don't try to exec as it changes $[0], causing all sort of problems
758 # (the dirname of $[0] is not the place where we might find the
759 # original and so on. Autoconf is especially sensitive to this).
761 # Exit status is that of the last command.
766 # Determine whether it's possible to make 'echo' print without a newline.
767 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
768 # for compatibility with existing Makefiles.
769 ECHO_C= ECHO_N= ECHO_T=
770 case `echo -n x` in #(((((
772 case `echo 'xy\c'` in
773 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
775 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
782 # For backward compatibility with old third-party macros, we provide
783 # the shell variables $as_echo and $as_echo_n. New code should use
784 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
785 as_echo='printf %s\n'
786 as_echo_n='printf %s'
789 rm -f conf$$ conf$$.exe conf$$.file
790 if test -d conf$$.dir; then
791 rm -f conf$$.dir/conf$$.file
794 mkdir conf$$.dir 2>/dev/null
796 if (echo >conf$$.file) 2>/dev/null; then
797 if ln -s conf$$.file conf$$ 2>/dev/null; then
799 # ... but there are two gotchas:
800 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
801 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
802 # In both cases, we have to default to `cp -pR'.
803 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
805 elif ln conf$$.file conf$$ 2>/dev/null; then
813 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
814 rmdir conf$$.dir 2>/dev/null
816 if mkdir -p . 2>/dev/null; then
817 as_mkdir_p='mkdir -p "$as_dir"'
819 test -d ./-p && rmdir ./-p
824 as_executable_p=as_fn_executable_p
826 # Sed expression to map a string onto a valid CPP name.
827 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
829 # Sed expression to map a string onto a valid variable name.
830 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
832 SHELL=${CONFIG_SHELL-/bin/sh}
835 test -n "$DJDIR" || exec 7<&0 </dev/null
839 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
840 # so uname gets run too.
841 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
846 ac_default_prefix=/usr/local
848 ac_config_libobj_dir=.
855 # Identity of this package.
856 PACKAGE_NAME='c-ares'
857 PACKAGE_TARNAME='c-ares'
858 PACKAGE_VERSION='1.18.1'
859 PACKAGE_STRING='c-ares 1.18.1'
860 PACKAGE_BUGREPORT='c-ares mailing list: http://lists.haxx.se/listinfo/c-ares'
863 ac_unique_file="src/lib/ares_ipv6.h"
864 # Factoring default headers for most tests.
865 ac_includes_default="\
876 #ifdef HAVE_INTTYPES_H
877 # include <inttypes.h>
882 #ifdef HAVE_STRINGS_H
883 # include <strings.h>
885 #ifdef HAVE_SYS_TYPES_H
886 # include <sys/types.h>
888 #ifdef HAVE_SYS_STAT_H
889 # include <sys/stat.h>
896 enable_option_checking=no
897 ac_subst_vars='am__EXEEXT_FALSE
905 CFLAG_CARES_SYMBOL_HIDING
906 DOING_CARES_SYMBOL_HIDING_FALSE
907 DOING_CARES_SYMBOL_HIDING_TRUE
909 DOING_NATIVE_WINDOWS_FALSE
910 DOING_NATIVE_WINDOWS_TRUE
911 CPPFLAG_CARES_STATICLIB
912 USE_CPPFLAG_CARES_STATICLIB_FALSE
913 USE_CPPFLAG_CARES_STATICLIB_TRUE
914 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
915 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
916 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE
917 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE
918 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE
919 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE
962 INSTALL_STRIP_PROGRAM
998 CODE_COVERAGE_CXXFLAGS
1000 CODE_COVERAGE_CPPFLAGS
1007 CODE_COVERAGE_ENABLED
1008 CODE_COVERAGE_ENABLED_FALSE
1009 CODE_COVERAGE_ENABLED_TRUE
1015 AM_DEFAULT_VERBOSITY
1019 MAINTAINER_MODE_FALSE
1020 MAINTAINER_MODE_TRUE
1050 program_transform_name
1064 enable_option_checking
1065 enable_maintainer_mode
1071 enable_symbol_hiding
1072 enable_expose_statics
1074 enable_code_coverage
1075 enable_dependency_tracking
1090 ac_precious_vars='build_alias
1104 ac_subdirs_all='test'
1106 # Initialize some variables set by options.
1108 ac_init_version=false
1109 ac_unrecognized_opts=
1110 ac_unrecognized_sep=
1111 # The variables have the same names as the options, with
1112 # dashes changed to underlines.
1113 cache_file=/dev/null
1120 program_transform_name=s,x,x,
1128 # Installation directory options.
1129 # These are left unexpanded so users can "make install exec_prefix=/foo"
1130 # and all the variables that are supposed to be based on exec_prefix
1131 # by default will actually change.
1132 # Use braces instead of parens because sh, perl, etc. also accept them.
1133 # (The list follows the same order as the GNU Coding Standards.)
1134 bindir='${exec_prefix}/bin'
1135 sbindir='${exec_prefix}/sbin'
1136 libexecdir='${exec_prefix}/libexec'
1137 datarootdir='${prefix}/share'
1138 datadir='${datarootdir}'
1139 sysconfdir='${prefix}/etc'
1140 sharedstatedir='${prefix}/com'
1141 localstatedir='${prefix}/var'
1142 runstatedir='${localstatedir}/run'
1143 includedir='${prefix}/include'
1144 oldincludedir='/usr/include'
1145 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1146 infodir='${datarootdir}/info'
1151 libdir='${exec_prefix}/lib'
1152 localedir='${datarootdir}/locale'
1153 mandir='${datarootdir}/man'
1159 # If the previous option needs an argument, assign it.
1160 if test -n "$ac_prev"; then
1161 eval $ac_prev=\$ac_option
1167 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1172 case $ac_dashdash$ac_option in
1176 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1178 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1179 bindir=$ac_optarg ;;
1181 -build | --build | --buil | --bui | --bu)
1182 ac_prev=build_alias ;;
1183 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1184 build_alias=$ac_optarg ;;
1186 -cache-file | --cache-file | --cache-fil | --cache-fi \
1187 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1188 ac_prev=cache_file ;;
1189 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1190 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1191 cache_file=$ac_optarg ;;
1193 --config-cache | -C)
1194 cache_file=config.cache ;;
1196 -datadir | --datadir | --datadi | --datad)
1198 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1199 datadir=$ac_optarg ;;
1201 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1202 | --dataroo | --dataro | --datar)
1203 ac_prev=datarootdir ;;
1204 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1205 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1206 datarootdir=$ac_optarg ;;
1208 -disable-* | --disable-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1217 "enable_$ac_useropt"
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1222 eval enable_$ac_useropt=no ;;
1224 -docdir | --docdir | --docdi | --doc | --do)
1226 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1227 docdir=$ac_optarg ;;
1229 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1231 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1232 dvidir=$ac_optarg ;;
1234 -enable-* | --enable-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1243 "enable_$ac_useropt"
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1248 eval enable_$ac_useropt=\$ac_optarg ;;
1250 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1251 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1252 | --exec | --exe | --ex)
1253 ac_prev=exec_prefix ;;
1254 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1255 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1256 | --exec=* | --exe=* | --ex=*)
1257 exec_prefix=$ac_optarg ;;
1259 -gas | --gas | --ga | --g)
1260 # Obsolete; use --with-gas.
1263 -help | --help | --hel | --he | -h)
1264 ac_init_help=long ;;
1265 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1266 ac_init_help=recursive ;;
1267 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1268 ac_init_help=short ;;
1270 -host | --host | --hos | --ho)
1271 ac_prev=host_alias ;;
1272 -host=* | --host=* | --hos=* | --ho=*)
1273 host_alias=$ac_optarg ;;
1275 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1277 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1279 htmldir=$ac_optarg ;;
1281 -includedir | --includedir | --includedi | --included | --include \
1282 | --includ | --inclu | --incl | --inc)
1283 ac_prev=includedir ;;
1284 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1285 | --includ=* | --inclu=* | --incl=* | --inc=*)
1286 includedir=$ac_optarg ;;
1288 -infodir | --infodir | --infodi | --infod | --info | --inf)
1290 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1291 infodir=$ac_optarg ;;
1293 -libdir | --libdir | --libdi | --libd)
1295 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1296 libdir=$ac_optarg ;;
1298 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1299 | --libexe | --libex | --libe)
1300 ac_prev=libexecdir ;;
1301 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1302 | --libexe=* | --libex=* | --libe=*)
1303 libexecdir=$ac_optarg ;;
1305 -localedir | --localedir | --localedi | --localed | --locale)
1306 ac_prev=localedir ;;
1307 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1308 localedir=$ac_optarg ;;
1310 -localstatedir | --localstatedir | --localstatedi | --localstated \
1311 | --localstate | --localstat | --localsta | --localst | --locals)
1312 ac_prev=localstatedir ;;
1313 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1314 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1315 localstatedir=$ac_optarg ;;
1317 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1319 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1320 mandir=$ac_optarg ;;
1322 -nfp | --nfp | --nf)
1323 # Obsolete; use --without-fp.
1326 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1327 | --no-cr | --no-c | -n)
1330 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1331 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1334 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1335 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1336 | --oldin | --oldi | --old | --ol | --o)
1337 ac_prev=oldincludedir ;;
1338 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1339 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1340 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1341 oldincludedir=$ac_optarg ;;
1343 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1345 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1346 prefix=$ac_optarg ;;
1348 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1349 | --program-pre | --program-pr | --program-p)
1350 ac_prev=program_prefix ;;
1351 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1352 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1353 program_prefix=$ac_optarg ;;
1355 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1356 | --program-suf | --program-su | --program-s)
1357 ac_prev=program_suffix ;;
1358 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1359 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1360 program_suffix=$ac_optarg ;;
1362 -program-transform-name | --program-transform-name \
1363 | --program-transform-nam | --program-transform-na \
1364 | --program-transform-n | --program-transform- \
1365 | --program-transform | --program-transfor \
1366 | --program-transfo | --program-transf \
1367 | --program-trans | --program-tran \
1368 | --progr-tra | --program-tr | --program-t)
1369 ac_prev=program_transform_name ;;
1370 -program-transform-name=* | --program-transform-name=* \
1371 | --program-transform-nam=* | --program-transform-na=* \
1372 | --program-transform-n=* | --program-transform-=* \
1373 | --program-transform=* | --program-transfor=* \
1374 | --program-transfo=* | --program-transf=* \
1375 | --program-trans=* | --program-tran=* \
1376 | --progr-tra=* | --program-tr=* | --program-t=*)
1377 program_transform_name=$ac_optarg ;;
1379 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1381 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1382 pdfdir=$ac_optarg ;;
1384 -psdir | --psdir | --psdi | --psd | --ps)
1386 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1390 | -silent | --silent | --silen | --sile | --sil)
1393 -runstatedir | --runstatedir | --runstatedi | --runstated \
1394 | --runstate | --runstat | --runsta | --runst | --runs \
1395 | --run | --ru | --r)
1396 ac_prev=runstatedir ;;
1397 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1398 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1399 | --run=* | --ru=* | --r=*)
1400 runstatedir=$ac_optarg ;;
1402 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1404 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1406 sbindir=$ac_optarg ;;
1408 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1409 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1410 | --sharedst | --shareds | --shared | --share | --shar \
1412 ac_prev=sharedstatedir ;;
1413 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1414 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1415 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1417 sharedstatedir=$ac_optarg ;;
1419 -site | --site | --sit)
1421 -site=* | --site=* | --sit=*)
1424 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1426 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1427 srcdir=$ac_optarg ;;
1429 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1430 | --syscon | --sysco | --sysc | --sys | --sy)
1431 ac_prev=sysconfdir ;;
1432 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1433 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1434 sysconfdir=$ac_optarg ;;
1436 -target | --target | --targe | --targ | --tar | --ta | --t)
1437 ac_prev=target_alias ;;
1438 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1439 target_alias=$ac_optarg ;;
1441 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1444 -version | --version | --versio | --versi | --vers | -V)
1445 ac_init_version=: ;;
1448 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1449 # Reject names that are not valid shell variable names.
1450 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1451 as_fn_error $? "invalid package name: \`$ac_useropt'"
1452 ac_useropt_orig=$ac_useropt
1453 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1454 case $ac_user_opts in
1458 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1459 ac_unrecognized_sep=', ';;
1461 eval with_$ac_useropt=\$ac_optarg ;;
1463 -without-* | --without-*)
1464 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1465 # Reject names that are not valid shell variable names.
1466 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1467 as_fn_error $? "invalid package name: \`$ac_useropt'"
1468 ac_useropt_orig=$ac_useropt
1469 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1470 case $ac_user_opts in
1474 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1475 ac_unrecognized_sep=', ';;
1477 eval with_$ac_useropt=no ;;
1480 # Obsolete; use --with-x.
1483 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1484 | --x-incl | --x-inc | --x-in | --x-i)
1485 ac_prev=x_includes ;;
1486 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1487 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1488 x_includes=$ac_optarg ;;
1490 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1491 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1492 ac_prev=x_libraries ;;
1493 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1494 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1495 x_libraries=$ac_optarg ;;
1497 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1498 Try \`$0 --help' for more information"
1502 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1503 # Reject names that are not valid shell variable names.
1504 case $ac_envvar in #(
1505 '' | [0-9]* | *[!_$as_cr_alnum]* )
1506 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1508 eval $ac_envvar=\$ac_optarg
1509 export $ac_envvar ;;
1512 # FIXME: should be removed in autoconf 3.0.
1513 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1514 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1515 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1516 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1522 if test -n "$ac_prev"; then
1523 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1524 as_fn_error $? "missing argument to $ac_option"
1527 if test -n "$ac_unrecognized_opts"; then
1528 case $enable_option_checking in
1530 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1531 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1535 # Check all directory arguments for consistency.
1536 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1537 datadir sysconfdir sharedstatedir localstatedir includedir \
1538 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1539 libdir localedir mandir runstatedir
1541 eval ac_val=\$$ac_var
1542 # Remove trailing slashes.
1545 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1546 eval $ac_var=\$ac_val;;
1548 # Be sure to have absolute directory names.
1550 [\\/$]* | ?:[\\/]* ) continue;;
1551 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1553 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1556 # There might be people who depend on the old broken behavior: `$host'
1557 # used to hold the argument of --host etc.
1558 # FIXME: To remove some day.
1561 target=$target_alias
1563 # FIXME: To remove some day.
1564 if test "x$host_alias" != x; then
1565 if test "x$build_alias" = x; then
1566 cross_compiling=maybe
1567 elif test "x$build_alias" != "x$host_alias"; then
1573 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1575 test "$silent" = yes && exec 6>/dev/null
1578 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1579 ac_ls_di=`ls -di .` &&
1580 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1581 as_fn_error $? "working directory cannot be determined"
1582 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1583 as_fn_error $? "pwd does not report name of working directory"
1586 # Find the source files, if location was not specified.
1587 if test -z "$srcdir"; then
1588 ac_srcdir_defaulted=yes
1589 # Try the directory containing this script, then the parent directory.
1590 ac_confdir=`$as_dirname -- "$as_myself" ||
1591 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1592 X"$as_myself" : 'X\(//\)[^/]' \| \
1593 X"$as_myself" : 'X\(//\)$' \| \
1594 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1595 printf "%s\n" X"$as_myself" |
1596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1614 if test ! -r "$srcdir/$ac_unique_file"; then
1618 ac_srcdir_defaulted=no
1620 if test ! -r "$srcdir/$ac_unique_file"; then
1621 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1622 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1624 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1626 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1628 # When building in place, set srcdir=.
1629 if test "$ac_abs_confdir" = "$ac_pwd"; then
1632 # Remove unnecessary trailing slashes from srcdir.
1633 # Double slashes in file names in object file debugging info
1634 # mess up M-x gdb in Emacs.
1636 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1638 for ac_var in $ac_precious_vars; do
1639 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1640 eval ac_env_${ac_var}_value=\$${ac_var}
1641 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1642 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1646 # Report the --help message.
1648 if test "$ac_init_help" = "long"; then
1649 # Omit some internal or obsolete options to make the list less imposing.
1650 # This message is too long to be a string in the A/UX 3.1 sh.
1652 \`configure' configures c-ares 1.18.1 to adapt to many kinds of systems.
1654 Usage: $0 [OPTION]... [VAR=VALUE]...
1656 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1657 VAR=VALUE. See below for descriptions of some of the useful variables.
1659 Defaults for the options are specified in brackets.
1662 -h, --help display this help and exit
1663 --help=short display options specific to this package
1664 --help=recursive display the short help of all the included packages
1665 -V, --version display version information and exit
1666 -q, --quiet, --silent do not print \`checking ...' messages
1667 --cache-file=FILE cache test results in FILE [disabled]
1668 -C, --config-cache alias for \`--cache-file=config.cache'
1669 -n, --no-create do not create output files
1670 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1672 Installation directories:
1673 --prefix=PREFIX install architecture-independent files in PREFIX
1674 [$ac_default_prefix]
1675 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1678 By default, \`make install' will install all the files in
1679 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1680 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1681 for instance \`--prefix=\$HOME'.
1683 For better control, use the options below.
1685 Fine tuning of the installation directories:
1686 --bindir=DIR user executables [EPREFIX/bin]
1687 --sbindir=DIR system admin executables [EPREFIX/sbin]
1688 --libexecdir=DIR program executables [EPREFIX/libexec]
1689 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1690 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1691 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1692 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1693 --libdir=DIR object code libraries [EPREFIX/lib]
1694 --includedir=DIR C header files [PREFIX/include]
1695 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1696 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1697 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1698 --infodir=DIR info documentation [DATAROOTDIR/info]
1699 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1700 --mandir=DIR man documentation [DATAROOTDIR/man]
1701 --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares]
1702 --htmldir=DIR html documentation [DOCDIR]
1703 --dvidir=DIR dvi documentation [DOCDIR]
1704 --pdfdir=DIR pdf documentation [DOCDIR]
1705 --psdir=DIR ps documentation [DOCDIR]
1711 --program-prefix=PREFIX prepend PREFIX to installed program names
1712 --program-suffix=SUFFIX append SUFFIX to installed program names
1713 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1716 --build=BUILD configure for building on BUILD [guessed]
1717 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1721 if test -n "$ac_init_help"; then
1722 case $ac_init_help in
1723 short | recursive ) echo "Configuration of c-ares 1.18.1:";;
1728 --disable-option-checking ignore unrecognized --enable/--with options
1729 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1730 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1731 --enable-maintainer-mode
1732 enable make rules and dependencies not useful (and
1733 sometimes confusing) to the casual installer
1734 --enable-silent-rules less verbose build output (undo: "make V=1")
1735 --disable-silent-rules verbose build output (undo: "make V=0")
1736 --enable-debug Enable debug build options
1737 --disable-debug Disable debug build options
1738 --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1739 --disable-optimize Disable compiler optimizations
1740 --enable-warnings Enable strict compiler warnings
1741 --disable-warnings Disable strict compiler warnings
1742 --enable-werror Enable compiler warnings as errors
1743 --disable-werror Disable compiler warnings as errors
1744 --enable-symbol-hiding Enable hiding of library internal symbols
1745 --disable-symbol-hiding Disable hiding of library internal symbols
1746 --enable-expose-statics Enable exposure of internal static functions for
1748 --disable-expose-statics
1749 Disable exposure of internal static functions for
1751 --enable-code-coverage Whether to enable code coverage support
1752 --enable-dependency-tracking
1753 do not reject slow dependency extractors
1754 --disable-dependency-tracking
1755 speeds up one-time build
1756 --disable-largefile omit support for large files
1757 --enable-shared[=PKGS] build shared libraries [default=yes]
1758 --enable-static[=PKGS] build static libraries [default=yes]
1759 --enable-fast-install[=PKGS]
1760 optimize for fast installation [default=yes]
1761 --disable-libtool-lock avoid locking (might break parallel builds)
1762 --enable-libgcc use libgcc when linking
1763 --enable-nonblocking Enable non-blocking communications
1764 --disable-nonblocking Disable non-blocking communications
1765 --enable-tests build test suite
1768 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1769 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1770 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1771 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1773 --with-aix-soname=aix|svr4|both
1774 shared library versioning (aka "SONAME") variant to
1775 provide on AIX, [default=aix].
1776 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1777 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1778 compiler's sysroot if not specified).
1779 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1781 Some influential environment variables:
1782 CC C compiler command
1783 CFLAGS C compiler flags
1784 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1785 nonstandard directory <lib dir>
1786 LIBS libraries to pass to the linker, e.g. -l<library>
1787 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1788 you have headers in a nonstandard directory <include dir>
1790 CXX C++ compiler command
1791 CXXFLAGS C++ compiler flags
1793 User-defined run-time library search path.
1794 CXXCPP C++ preprocessor
1796 Use these variables to override the choices made by `configure' or to help
1797 it to find libraries and programs with nonstandard names/locations.
1799 Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>.
1804 if test "$ac_init_help" = "recursive"; then
1805 # If there are subdirs, report their specific --help.
1806 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1807 test -d "$ac_dir" ||
1808 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1815 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1816 # A ".." for each directory in $ac_dir_suffix.
1817 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1818 case $ac_top_builddir_sub in
1819 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1820 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1823 ac_abs_top_builddir=$ac_pwd
1824 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1825 # for backward compatibility:
1826 ac_top_builddir=$ac_top_build_prefix
1829 .) # We are building in place.
1831 ac_top_srcdir=$ac_top_builddir_sub
1832 ac_abs_top_srcdir=$ac_pwd ;;
1833 [\\/]* | ?:[\\/]* ) # Absolute name.
1834 ac_srcdir=$srcdir$ac_dir_suffix;
1835 ac_top_srcdir=$srcdir
1836 ac_abs_top_srcdir=$srcdir ;;
1838 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1839 ac_top_srcdir=$ac_top_build_prefix$srcdir
1840 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1844 cd "$ac_dir" || { ac_status=$?; continue; }
1845 # Check for configure.gnu first; this name is used for a wrapper for
1846 # Metaconfig's "Configure" on case-insensitive file systems.
1847 if test -f "$ac_srcdir/configure.gnu"; then
1849 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1850 elif test -f "$ac_srcdir/configure"; then
1852 $SHELL "$ac_srcdir/configure" --help=recursive
1854 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1856 cd "$ac_pwd" || { ac_status=$?; break; }
1860 test -n "$ac_init_help" && exit $ac_status
1861 if $ac_init_version; then
1863 c-ares configure 1.18.1
1864 generated by GNU Autoconf 2.71
1866 Copyright (C) 2021 Free Software Foundation, Inc.
1867 This configure script is free software; the Free Software Foundation
1868 gives unlimited permission to copy, distribute and modify it.
1873 ## ------------------------ ##
1874 ## Autoconf initialization. ##
1875 ## ------------------------ ##
1877 # ac_fn_c_try_compile LINENO
1878 # --------------------------
1879 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_c_try_compile ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext conftest.beam
1884 if { { ac_try="$ac_compile"
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 printf "%s\n" "$ac_try_echo"; } >&5
1891 (eval "$ac_compile") 2>conftest.err
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest.$ac_objext
1906 printf "%s\n" "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1914 } # ac_fn_c_try_compile
1916 # ac_fn_c_try_cpp LINENO
1917 # ----------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_cpp conftest.$ac_ext"
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 printf "%s\n" "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } > conftest.i && {
1938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1939 test ! -s conftest.err
1944 printf "%s\n" "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1954 # ac_fn_cxx_try_compile LINENO
1955 # ----------------------------
1956 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1957 ac_fn_cxx_try_compile ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 rm -f conftest.$ac_objext conftest.beam
1961 if { { ac_try="$ac_compile"
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 printf "%s\n" "$ac_try_echo"; } >&5
1968 (eval "$ac_compile") 2>conftest.err
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } && {
1977 test -z "$ac_cxx_werror_flag" ||
1978 test ! -s conftest.err
1979 } && test -s conftest.$ac_objext
1983 printf "%s\n" "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1991 } # ac_fn_cxx_try_compile
1993 # ac_fn_c_try_link LINENO
1994 # -----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded.
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2000 if { { ac_try="$ac_link"
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 printf "%s\n" "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>conftest.err
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && {
2016 test -z "$ac_c_werror_flag" ||
2017 test ! -s conftest.err
2018 } && test -s conftest$ac_exeext && {
2019 test "$cross_compiling" = yes ||
2020 test -x conftest$ac_exeext
2025 printf "%s\n" "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2030 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2031 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2032 # interfere with the next link command; also delete a directory that is
2033 # left behind by Apple's compiler. We do this before executing the actions.
2034 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 as_fn_set_status $ac_retval
2038 } # ac_fn_c_try_link
2040 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2041 # -------------------------------------------------------
2042 # Tests whether HEADER exists and can be compiled using the include files in
2043 # INCLUDES, setting the cache variable VAR accordingly.
2044 ac_fn_c_check_header_compile ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 printf %s "checking for $2... " >&6; }
2049 if eval test \${$3+y}
2051 printf %s "(cached) " >&6
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2058 if ac_fn_c_try_compile "$LINENO"
2064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 printf "%s\n" "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_header_compile
2073 # ac_fn_c_check_func LINENO FUNC VAR
2074 # ----------------------------------
2075 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2076 ac_fn_c_check_func ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 printf %s "checking for $2... " >&6; }
2081 if eval test \${$3+y}
2083 printf %s "(cached) " >&6
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2087 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2089 #define $2 innocuous_$2
2091 /* System header to define __stub macros and hopefully few prototypes,
2092 which can conflict with char $2 (); below. */
2097 /* Override any GCC internal prototype to avoid an error.
2098 Use char because int might match the return type of a GCC
2099 builtin and then its argument prototype would still apply. */
2104 /* The GNU C library defines this for functions which it implements
2105 to always fail with ENOSYS. Some functions are actually named
2106 something starting with __ and the normal name is an alias. */
2107 #if defined __stub_$2 || defined __stub___$2
2119 if ac_fn_c_try_link "$LINENO"
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2126 conftest$ac_exeext conftest.$ac_ext
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 printf "%s\n" "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_func
2135 # ac_fn_cxx_try_cpp LINENO
2136 # ------------------------
2137 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2138 ac_fn_cxx_try_cpp ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 if { { ac_try="$ac_cpp conftest.$ac_ext"
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 printf "%s\n" "$ac_try_echo"; } >&5
2148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } > conftest.i && {
2157 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2158 test ! -s conftest.err
2163 printf "%s\n" "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 as_fn_set_status $ac_retval
2171 } # ac_fn_cxx_try_cpp
2173 # ac_fn_cxx_try_link LINENO
2174 # -------------------------
2175 # Try to link conftest.$ac_ext, and return whether this succeeded.
2176 ac_fn_cxx_try_link ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2180 if { { ac_try="$ac_link"
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 printf "%s\n" "$ac_try_echo"; } >&5
2187 (eval "$ac_link") 2>conftest.err
2189 if test -s conftest.err; then
2190 grep -v '^ *+' conftest.err >conftest.er1
2191 cat conftest.er1 >&5
2192 mv -f conftest.er1 conftest.err
2194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && {
2196 test -z "$ac_cxx_werror_flag" ||
2197 test ! -s conftest.err
2198 } && test -s conftest$ac_exeext && {
2199 test "$cross_compiling" = yes ||
2200 test -x conftest$ac_exeext
2205 printf "%s\n" "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2210 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2211 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2212 # interfere with the next link command; also delete a directory that is
2213 # left behind by Apple's compiler. We do this before executing the actions.
2214 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 as_fn_set_status $ac_retval
2218 } # ac_fn_cxx_try_link
2220 # ac_fn_c_try_run LINENO
2221 # ----------------------
2222 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2223 # executables *can* be run.
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 if { { ac_try="$ac_link"
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 printf "%s\n" "$ac_try_echo"; } >&5
2234 (eval "$ac_link") 2>&5
2236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2238 { { case "(($ac_try" in
2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240 *) ac_try_echo=$ac_try;;
2242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2243 printf "%s\n" "$ac_try_echo"; } >&5
2244 (eval "$ac_try") 2>&5
2246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2247 test $ac_status = 0; }; }
2251 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2252 printf "%s\n" "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2255 ac_retval=$ac_status
2257 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 as_fn_set_status $ac_retval
2263 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2264 # ------------------------------------------------------------------
2265 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2266 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 as_decl_name=`echo $2|sed 's/ *(.*//'`
2271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2272 printf %s "checking whether $as_decl_name is declared... " >&6; }
2273 if eval test \${$3+y}
2275 printf %s "(cached) " >&6
2277 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2278 eval ac_save_FLAGS=\$$6
2279 as_fn_append $6 " $5"
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2286 #ifndef $as_decl_name
2288 (void) $as_decl_use;
2290 (void) $as_decl_name;
2298 if ac_fn_c_try_compile "$LINENO"
2304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2305 eval $6=\$ac_save_FLAGS
2309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 printf "%s\n" "$ac_res" >&6; }
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2313 } # ac_fn_check_decl
2315 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2316 # -------------------------------------------
2317 # Tests whether TYPE exists after having included INCLUDES, setting cache
2318 # variable VAR accordingly.
2319 ac_fn_c_check_type ()
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2323 printf %s "checking for $2... " >&6; }
2324 if eval test \${$3+y}
2326 printf %s "(cached) " >&6
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2341 if ac_fn_c_try_compile "$LINENO"
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2355 if ac_fn_c_try_compile "$LINENO"
2361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 printf "%s\n" "$ac_res" >&6; }
2368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370 } # ac_fn_c_check_type
2372 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2373 # ----------------------------------------------------
2374 # Tries to find if the field MEMBER exists in type AGGR, after including
2375 # INCLUDES, setting cache variable VAR accordingly.
2376 ac_fn_c_check_member ()
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2380 printf %s "checking for $2.$3... " >&6; }
2381 if eval test \${$4+y}
2383 printf %s "(cached) " >&6
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2398 if ac_fn_c_try_compile "$LINENO"
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2409 if (sizeof ac_aggr.$3)
2415 if ac_fn_c_try_compile "$LINENO"
2421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 printf "%s\n" "$ac_res" >&6; }
2428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2430 } # ac_fn_c_check_member
2431 ac_configure_args_raw=
2436 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2438 as_fn_append ac_configure_args_raw " '$ac_arg'"
2441 case $ac_configure_args_raw in
2445 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2446 ac_unsafe_a="$ac_unsafe_z#~"
2447 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2448 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2451 cat >config.log <<_ACEOF
2452 This file contains any messages produced by compilers while
2453 running configure, to aid debugging if configure makes a mistake.
2455 It was created by c-ares $as_me 1.18.1, which was
2456 generated by GNU Autoconf 2.71. Invocation command line was
2458 $ $0$ac_configure_args_raw
2468 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2469 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2470 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2471 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2472 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2474 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2475 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2477 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2478 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2479 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2480 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2481 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2482 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2483 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 case $as_dir in #(((
2494 *) as_dir=$as_dir/ ;;
2496 printf "%s\n" "PATH: $as_dir"
2512 # Keep a trace of the command line.
2513 # Strip out --no-create and --no-recursion so they do not pile up.
2514 # Strip out --silent because we don't want to record it for future runs.
2515 # Also quote any args containing shell meta-characters.
2516 # Make two passes to allow for proper duplicate-argument suppression.
2520 ac_must_keep_next=false
2526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2528 | -silent | --silent | --silen | --sile | --sil)
2531 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2534 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2536 as_fn_append ac_configure_args1 " '$ac_arg'"
2537 if test $ac_must_keep_next = true; then
2538 ac_must_keep_next=false # Got value, back to normal.
2541 *=* | --config-cache | -C | -disable-* | --disable-* \
2542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2544 | -with-* | --with-* | -without-* | --without-* | --x)
2545 case "$ac_configure_args0 " in
2546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2549 -* ) ac_must_keep_next=true ;;
2552 as_fn_append ac_configure_args " '$ac_arg'"
2557 { ac_configure_args0=; unset ac_configure_args0;}
2558 { ac_configure_args1=; unset ac_configure_args1;}
2560 # When interrupted or exit'd, cleanup temporary files, and complete
2561 # config.log. We remove comments because anyway the quotes in there
2562 # would cause problems or look ugly.
2563 # WARNING: Use '\'' to represent an apostrophe within the trap.
2564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2565 trap 'exit_status=$?
2568 # Save into config.log some information that might help in debugging.
2572 printf "%s\n" "## ---------------- ##
2573 ## Cache variables. ##
2574 ## ---------------- ##"
2576 # The following way of writing the cache mishandles newlines in values,
2578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2579 eval ac_val=\$$ac_var
2583 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2584 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2587 _ | IFS | as_nl) ;; #(
2588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2589 *) { eval $ac_var=; unset $ac_var;} ;;
2594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2595 *${as_nl}ac_space=\ *)
2597 "s/'\''/'\''\\\\'\'''\''/g;
2598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2608 printf "%s\n" "## ----------------- ##
2609 ## Output variables. ##
2610 ## ----------------- ##"
2612 for ac_var in $ac_subst_vars
2614 eval ac_val=\$$ac_var
2616 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2618 printf "%s\n" "$ac_var='\''$ac_val'\''"
2622 if test -n "$ac_subst_files"; then
2623 printf "%s\n" "## ------------------- ##
2624 ## File substitutions. ##
2625 ## ------------------- ##"
2627 for ac_var in $ac_subst_files
2629 eval ac_val=\$$ac_var
2631 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2633 printf "%s\n" "$ac_var='\''$ac_val'\''"
2638 if test -s confdefs.h; then
2639 printf "%s\n" "## ----------- ##
2646 test "$ac_signal" != 0 &&
2647 printf "%s\n" "$as_me: caught signal $ac_signal"
2648 printf "%s\n" "$as_me: exit $exit_status"
2650 rm -f core *.core core.conftest.* &&
2651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2654 for ac_signal in 1 2 13 15; do
2655 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2660 rm -f -r conftest* confdefs.h
2662 printf "%s\n" "/* confdefs.h */" > confdefs.h
2664 # Predefined preprocessor variables.
2666 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2668 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2670 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2672 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2674 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2676 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2679 # Let the site file select an alternate cache file if it wants to.
2680 # Prefer an explicitly selected file to automatically selected ones.
2681 if test -n "$CONFIG_SITE"; then
2682 ac_site_files="$CONFIG_SITE"
2683 elif test "x$prefix" != xNONE; then
2684 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2686 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2689 for ac_site_file in $ac_site_files
2691 case $ac_site_file in #(
2695 ac_site_file=./$ac_site_file ;;
2697 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2699 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2700 sed 's/^/| /' "$ac_site_file" >&5
2702 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2704 as_fn_error $? "failed to load site script $ac_site_file
2705 See \`config.log' for more details" "$LINENO" 5; }
2709 if test -r "$cache_file"; then
2710 # Some versions of bash will fail to source /dev/null (special files
2711 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2712 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2714 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2716 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2717 *) . "./$cache_file";;
2721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2722 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2726 # Test code for whether the C compiler supports C89 (global declarations)
2727 ac_c_conftest_c89_globals='
2728 /* Does the compiler advertise C89 conformance?
2729 Do not test the value of __STDC__, because some compilers set it to 0
2730 while being otherwise adequately conformant. */
2731 #if !defined __STDC__
2732 # error "Compiler does not advertise C89 conformance"
2738 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2739 struct buf { int x; };
2740 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2741 static char *e (p, i)
2747 static char *f (char * (*g) (char **, int), char **p, ...)
2752 s = g (p, va_arg (v,int));
2757 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2758 function prototypes and stuff, but not \xHH hex character constants.
2759 These do not provoke an error unfortunately, instead are silently treated
2760 as an "x". The following induces an error, until -std is added to get
2761 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2762 array size at least. It is necessary to write \x00 == 0 to get something
2763 that is true only with -std. */
2764 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2766 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2767 inside strings and character constants. */
2768 #define FOO(x) '\''x'\''
2769 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2771 int test (int i, double x);
2772 struct s1 {int (*f) (int a);};
2773 struct s2 {int (*f) (double a);};
2774 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2777 # Test code for whether the C compiler supports C89 (body of main).
2778 ac_c_conftest_c89_main='
2779 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2782 # Test code for whether the C compiler supports C99 (global declarations)
2783 ac_c_conftest_c99_globals='
2784 // Does the compiler advertise C99 conformance?
2785 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2786 # error "Compiler does not advertise C99 conformance"
2789 #include <stdbool.h>
2790 extern int puts (const char *);
2791 extern int printf (const char *, ...);
2792 extern int dprintf (int, const char *, ...);
2793 extern void *malloc (size_t);
2795 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2796 // dprintf is used instead of fprintf to avoid needing to declare
2798 #define debug(...) dprintf (2, __VA_ARGS__)
2799 #define showlist(...) puts (#__VA_ARGS__)
2800 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2802 test_varargs_macros (void)
2807 debug ("X = %d\n", x);
2808 showlist (The first, second, and third items.);
2809 report (x>y, "x is %d but y is %d", x, y);
2812 // Check long long types.
2813 #define BIG64 18446744073709551615ull
2814 #define BIG32 4294967295ul
2815 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2817 #error "your preprocessor is broken"
2821 #error "your preprocessor is broken"
2823 static long long int bignum = -9223372036854775807LL;
2824 static unsigned long long int ubignum = BIG64;
2826 struct incomplete_array
2834 const wchar_t *name;
2838 typedef const char *ccp;
2841 test_restrict (ccp restrict text)
2843 // See if C++-style comments work.
2844 // Iterate through items via the restricted pointer.
2845 // Also check for declarations in for loops.
2846 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2851 // Check varargs and va_copy.
2853 test_varargs (const char *format, ...)
2856 va_start (args, format);
2858 va_copy (args_copy, args);
2860 const char *str = "";
2868 case '\''s'\'': // string
2869 str = va_arg (args_copy, const char *);
2871 case '\''d'\'': // int
2872 number = va_arg (args_copy, int);
2874 case '\''f'\'': // float
2875 fnumber = va_arg (args_copy, double);
2884 return *str && number && fnumber;
2888 # Test code for whether the C compiler supports C99 (body of main).
2889 ac_c_conftest_c99_main='
2891 _Bool success = false;
2892 success |= (argc != 0);
2895 if (test_restrict ("String literal") == 0)
2897 char *restrict newvar = "Another string";
2900 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2901 test_varargs_macros ();
2903 // Check flexible array members.
2904 struct incomplete_array *ia =
2905 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2907 for (int i = 0; i < ia->datasize; ++i)
2908 ia->data[i] = i * 1.234;
2910 // Check named initializers.
2911 struct named_init ni = {
2913 .name = L"Test wide string",
2914 .average = 543.34343,
2919 int dynamic_array[ni.number];
2920 dynamic_array[0] = argv[0][0];
2921 dynamic_array[ni.number - 1] = 543;
2923 // work around unused variable warnings
2924 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2925 || dynamic_array[ni.number - 1] != 543);
2928 # Test code for whether the C compiler supports C11 (global declarations)
2929 ac_c_conftest_c11_globals='
2930 // Does the compiler advertise C11 conformance?
2931 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2932 # error "Compiler does not advertise C11 conformance"
2936 char _Alignas (double) aligned_as_double;
2937 char _Alignas (0) no_special_alignment;
2938 extern char aligned_as_int;
2939 char _Alignas (0) _Alignas (int) aligned_as_int;
2944 int_alignment = _Alignof (int),
2945 int_array_alignment = _Alignof (int[100]),
2946 char_alignment = _Alignof (char)
2948 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2951 int _Noreturn does_not_return (void) { for (;;) continue; }
2953 // Check _Static_assert.
2954 struct test_static_assert
2957 _Static_assert (sizeof (int) <= sizeof (long int),
2958 "_Static_assert does not work in struct");
2962 // Check UTF-8 literals.
2963 #define u8 syntax error!
2964 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2966 // Check duplicate typedefs.
2967 typedef long *long_ptr;
2968 typedef long int *long_ptr;
2969 typedef long_ptr long_ptr;
2971 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2975 struct { int i; int j; };
2976 struct { int k; long int l; } w;
2982 # Test code for whether the C compiler supports C11 (body of main).
2983 ac_c_conftest_c11_main='
2984 _Static_assert ((offsetof (struct anonymous, i)
2985 == offsetof (struct anonymous, w.k)),
2986 "Anonymous union alignment botch");
2992 # Test code for whether the C compiler supports C11 (complete).
2993 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2994 ${ac_c_conftest_c99_globals}
2995 ${ac_c_conftest_c11_globals}
2998 main (int argc, char **argv)
3001 ${ac_c_conftest_c89_main}
3002 ${ac_c_conftest_c99_main}
3003 ${ac_c_conftest_c11_main}
3008 # Test code for whether the C compiler supports C99 (complete).
3009 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3010 ${ac_c_conftest_c99_globals}
3013 main (int argc, char **argv)
3016 ${ac_c_conftest_c89_main}
3017 ${ac_c_conftest_c99_main}
3022 # Test code for whether the C compiler supports C89 (complete).
3023 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3026 main (int argc, char **argv)
3029 ${ac_c_conftest_c89_main}
3034 # Test code for whether the C++ compiler supports C++98 (global declarations)
3035 ac_cxx_conftest_cxx98_globals='
3036 // Does the compiler advertise C++98 conformance?
3037 #if !defined __cplusplus || __cplusplus < 199711L
3038 # error "Compiler does not advertise C++98 conformance"
3041 // These inclusions are to reject old compilers that
3042 // lack the unsuffixed header files.
3044 #include <exception>
3046 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3047 extern void assert (int);
3049 extern int strcmp (const char *, const char *);
3052 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3053 using std::exception;
3058 void test_exception_syntax()
3062 } catch (const char *s) {
3063 // Extra parentheses suppress a warning when building autoconf itself,
3064 // due to lint rules shared with more typical C programs.
3065 assert (!(strcmp) (s, "test"));
3069 template <typename T> struct test_template
3072 explicit test_template(T t) : val(t) {}
3073 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3076 } // anonymous namespace
3079 # Test code for whether the C++ compiler supports C++98 (body of main)
3080 ac_cxx_conftest_cxx98_main='
3084 test_exception_syntax ();
3085 test_template<double> tt (2.0);
3086 assert (tt.add (4) == 6.0);
3087 assert (true && !false);
3091 # Test code for whether the C++ compiler supports C++11 (global declarations)
3092 ac_cxx_conftest_cxx11_globals='
3093 // Does the compiler advertise C++ 2011 conformance?
3094 #if !defined __cplusplus || __cplusplus < 201103L
3095 # error "Compiler does not advertise C++11 conformance"
3100 constexpr int get_val() { return 20; }
3111 delegate(int n) : n(n) {}
3112 delegate(): delegate(2354) {}
3114 virtual int getval() { return this->n; };
3119 class overridden : public delegate
3122 overridden(int n): delegate(n) {}
3123 virtual int getval() override final { return this->n * 2; }
3129 nocopy(int i): i(i) {}
3131 nocopy(const nocopy&) = delete;
3132 nocopy & operator=(const nocopy&) = delete;
3137 // for testing lambda expressions
3138 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3143 // for testing variadic templates and trailing return types
3144 template <typename V> auto sum(V first) -> V
3148 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3150 return first + sum(rest...);
3155 # Test code for whether the C++ compiler supports C++11 (body of main)
3156 ac_cxx_conftest_cxx11_main='
3158 // Test auto and decltype
3160 auto a2 = 48573953.4;
3161 auto a3 = "String literal";
3164 for (auto i = a3; *i; ++i) { total += *i; }
3166 decltype(a2) a4 = 34895.034;
3170 short sa[cxx11test::get_val()] = { 0 };
3173 // Test initializer lists
3174 cxx11test::testinit il = { 4323, 435234.23544 };
3177 // Test range-based for
3178 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3179 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3180 for (auto &x : array) { x += 23; }
3183 // Test lambda expressions
3184 using cxx11test::eval;
3185 assert (eval ([](int x) { return x*2; }, 21) == 42);
3187 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3189 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3193 // Test use of variadic templates
3194 using cxx11test::sum;
3197 auto c = sum(1.0, 2.0, 3.0);
3200 // Test constructor delegation
3201 cxx11test::delegate d1;
3202 cxx11test::delegate d2();
3203 cxx11test::delegate d3(45);
3206 // Test override and final
3207 cxx11test::overridden o1(55464);
3214 // Test template brackets
3215 test_template<::test_template<int>> v(test_template<int>(12));
3219 char const *utf8 = u8"UTF-8 string \u2500";
3220 char16_t const *utf16 = u"UTF-8 string \u2500";
3221 char32_t const *utf32 = U"UTF-32 string \u2500";
3225 # Test code for whether the C compiler supports C++11 (complete).
3226 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3227 ${ac_cxx_conftest_cxx11_globals}
3230 main (int argc, char **argv)
3233 ${ac_cxx_conftest_cxx98_main}
3234 ${ac_cxx_conftest_cxx11_main}
3239 # Test code for whether the C compiler supports C++98 (complete).
3240 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3242 main (int argc, char **argv)
3245 ${ac_cxx_conftest_cxx98_main}
3250 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3251 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3252 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3253 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3254 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3255 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3256 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3257 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3258 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3259 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3261 # Auxiliary files required by this configure script.
3262 ac_aux_files="ltmain.sh missing compile install-sh config.guess config.sub"
3264 # Locations in which to look for auxiliary files.
3265 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3267 # Search for a directory containing all of the required auxiliary files,
3268 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3269 # If we don't find one directory that contains all the files we need,
3270 # we report the set of missing files from the *first* directory in
3271 # $ac_aux_dir_candidates and give up.
3272 ac_missing_aux_files=""
3273 ac_first_candidate=:
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $ac_aux_dir_candidates
3280 case $as_dir in #(((
3283 *) as_dir=$as_dir/ ;;
3287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3288 ac_aux_dir_found=yes
3290 for ac_aux in $ac_aux_files
3292 # As a special case, if "install-sh" is required, that requirement
3293 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3294 # and $ac_install_sh is set appropriately for whichever one is found.
3295 if test x"$ac_aux" = x"install-sh"
3297 if test -f "${as_dir}install-sh"; then
3298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3299 ac_install_sh="${as_dir}install-sh -c"
3300 elif test -f "${as_dir}install.sh"; then
3301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3302 ac_install_sh="${as_dir}install.sh -c"
3303 elif test -f "${as_dir}shtool"; then
3304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3305 ac_install_sh="${as_dir}shtool install -c"
3308 if $ac_first_candidate; then
3309 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3315 if test -f "${as_dir}${ac_aux}"; then
3316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3319 if $ac_first_candidate; then
3320 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3327 if test "$ac_aux_dir_found" = yes; then
3328 ac_aux_dir="$as_dir"
3331 ac_first_candidate=false
3340 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3344 # These three variables are undocumented and unsupported,
3345 # and are intended to be withdrawn in a future Autoconf release.
3346 # They can cause serious problems if a builder's source tree is in a directory
3347 # whose full name contains unusual characters.
3348 if test -f "${ac_aux_dir}config.guess"; then
3349 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3351 if test -f "${ac_aux_dir}config.sub"; then
3352 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3354 if test -f "$ac_aux_dir/configure"; then
3355 ac_configure="$SHELL ${ac_aux_dir}configure"
3358 # Check that the precious variables saved in the cache have kept the same
3360 ac_cache_corrupted=false
3361 for ac_var in $ac_precious_vars; do
3362 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3363 eval ac_new_set=\$ac_env_${ac_var}_set
3364 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3365 eval ac_new_val=\$ac_env_${ac_var}_value
3366 case $ac_old_set,$ac_new_set in
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3369 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3370 ac_cache_corrupted=: ;;
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3373 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3374 ac_cache_corrupted=: ;;
3377 if test "x$ac_old_val" != "x$ac_new_val"; then
3378 # differences in whitespace do not lead to failure.
3379 ac_old_val_w=`echo x $ac_old_val`
3380 ac_new_val_w=`echo x $ac_new_val`
3381 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3383 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3384 ac_cache_corrupted=:
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3387 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3388 eval $ac_var=\$ac_old_val
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3391 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3393 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3396 # Pass precious variables to config.status.
3397 if test "$ac_new_set" = set; then
3399 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3400 *) ac_arg=$ac_var=$ac_new_val ;;
3402 case " $ac_configure_args " in
3403 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3404 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3408 if $ac_cache_corrupted; then
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3412 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3413 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3414 and start over" "$LINENO" 5
3416 ## -------------------- ##
3417 ## Main body of script. ##
3418 ## -------------------- ##
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 CARES_VERSION_INFO="7:1:5"
3432 ac_config_headers="$ac_config_headers src/lib/ares_config.h include/ares_build.h"
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3437 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3438 # Check whether --enable-maintainer-mode was given.
3439 if test ${enable_maintainer_mode+y}
3441 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3443 USE_MAINTAINER_MODE=no
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3447 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3448 if test $USE_MAINTAINER_MODE = yes; then
3449 MAINTAINER_MODE_TRUE=
3450 MAINTAINER_MODE_FALSE='#'
3452 MAINTAINER_MODE_TRUE='#'
3453 MAINTAINER_MODE_FALSE=
3456 MAINT=$MAINTAINER_MODE_TRUE
3459 # Check whether --enable-silent-rules was given.
3460 if test ${enable_silent_rules+y}
3462 enableval=$enable_silent_rules;
3465 case $enable_silent_rules in # (((
3466 yes) AM_DEFAULT_VERBOSITY=0;;
3467 no) AM_DEFAULT_VERBOSITY=1;;
3468 *) AM_DEFAULT_VERBOSITY=0;;
3470 am_make=${MAKE-make}
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3472 printf %s "checking whether $am_make supports nested variables... " >&6; }
3473 if test ${am_cv_make_support_nested_variables+y}
3475 printf %s "(cached) " >&6
3477 if printf "%s\n" 'TRUE=$(BAR$(V))
3483 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3484 am_cv_make_support_nested_variables=yes
3486 am_cv_make_support_nested_variables=no
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3490 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3491 if test $am_cv_make_support_nested_variables = yes; then
3493 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3495 AM_V=$AM_DEFAULT_VERBOSITY
3496 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3506 printf %s "checking whether to enable debug build options... " >&6; }
3507 OPT_DEBUG_BUILD="default"
3508 # Check whether --enable-debug was given.
3509 if test ${enable_debug+y}
3511 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3514 case "$OPT_DEBUG_BUILD" in
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3526 printf "%s\n" "$want_debug" >&6; }
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3530 printf %s "checking whether to enable compiler optimizer... " >&6; }
3531 OPT_COMPILER_OPTIMIZE="default"
3532 # Check whether --enable-optimize was given.
3533 if test ${enable_optimize+y}
3535 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3538 case "$OPT_COMPILER_OPTIMIZE" in
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 printf "%s\n" "no" >&6; }
3545 if test "$want_debug" = "yes"; then
3546 want_optimize="assume_no"
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
3548 printf "%s\n" "not specified (assuming no)" >&6; }
3550 want_optimize="assume_yes"
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
3552 printf "%s\n" "not specified (assuming yes)" >&6; }
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3558 printf "%s\n" "yes" >&6; }
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3564 printf %s "checking whether to enable strict compiler warnings... " >&6; }
3565 OPT_COMPILER_WARNINGS="default"
3566 # Check whether --enable-warnings was given.
3567 if test ${enable_warnings+y}
3569 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3572 case "$OPT_COMPILER_WARNINGS" in
3577 want_warnings="$want_debug"
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3584 printf "%s\n" "$want_warnings" >&6; }
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3588 printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3589 OPT_COMPILER_WERROR="default"
3590 # Check whether --enable-werror was given.
3591 if test ${enable_werror+y}
3593 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3596 case "$OPT_COMPILER_WERROR" in
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3608 printf "%s\n" "$want_werror" >&6; }
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3612 printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3613 OPT_SYMBOL_HIDING="default"
3614 # Check whether --enable-symbol-hiding was given.
3615 if test ${enable_symbol_hiding+y}
3617 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3620 case "$OPT_SYMBOL_HIDING" in
3622 want_symbol_hiding="no"
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 printf "%s\n" "no" >&6; }
3627 want_symbol_hiding="yes"
3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 printf "%s\n" "yes" >&6; }
3632 want_symbol_hiding="yes"
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3634 printf "%s\n" "yes" >&6; }
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to expose internal static functions for testing" >&5
3640 printf %s "checking whether to expose internal static functions for testing... " >&6; }
3641 OPT_EXPOSE_STATICS="default"
3642 # Check whether --enable-expose-statics was given.
3643 if test ${enable_expose_statics+y}
3645 enableval=$enable_expose_statics; OPT_EXPOSE_STATICS=$enableval
3648 case "$OPT_EXPOSE_STATICS" in
3650 want_expose_statics="no"
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 printf "%s\n" "no" >&6; }
3655 want_expose_statics="no"
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 printf "%s\n" "no" >&6; }
3660 want_expose_statics="yes"
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3662 printf "%s\n" "yes" >&6; }
3665 if test "$want_expose_statics" = "yes"; then
3667 printf "%s\n" "#define CARES_EXPOSE_STATICS 1" >>confdefs.h
3673 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3676 if test -z "$xc_configure_preamble_result"; then
3677 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3681 # Check that 'PATH_SEPARATOR' has already been set.
3684 if test -z "$xc_PATH_SEPARATOR"; then
3685 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3687 if test -z "$PATH_SEPARATOR"; then
3688 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3691 printf %s "checking for path separator... " >&6; }
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3693 printf "%s\n" "$PATH_SEPARATOR" >&6; }
3694 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3696 printf %s "checking for initial path separator... " >&6; }
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3698 printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3699 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3703 # Extract the first word of "sed", so it can be a program name with args.
3704 set dummy sed; ac_word=$2
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 printf %s "checking for $ac_word... " >&6; }
3707 if test ${ac_cv_path_SED+y}
3709 printf %s "(cached) " >&6
3713 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3718 for as_dir in $as_dummy
3721 case $as_dir in #(((
3724 *) as_dir=$as_dir/ ;;
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3728 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3736 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3741 if test -n "$SED"; then
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3743 printf "%s\n" "$SED" >&6; }
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 printf "%s\n" "no" >&6; }
3750 if test -z "$SED" || test "$SED" = "not_found"; then
3751 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3755 # Extract the first word of "grep", so it can be a program name with args.
3756 set dummy grep; ac_word=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s "checking for $ac_word... " >&6; }
3759 if test ${ac_cv_path_GREP+y}
3761 printf %s "(cached) " >&6
3765 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3770 for as_dir in $as_dummy
3773 case $as_dir in #(((
3776 *) as_dir=$as_dir/ ;;
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3780 ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3788 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3792 GREP=$ac_cv_path_GREP
3793 if test -n "$GREP"; then
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3795 printf "%s\n" "$GREP" >&6; }
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 printf "%s\n" "no" >&6; }
3802 if test -z "$GREP" || test "$GREP" = "not_found"; then
3803 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3807 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3809 printf %s "checking for egrep... " >&6; }
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3812 printf "%s\n" "$EGREP" >&6; }
3814 # Extract the first word of "egrep", so it can be a program name with args.
3815 set dummy egrep; ac_word=$2
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817 printf %s "checking for $ac_word... " >&6; }
3818 if test ${ac_cv_path_EGREP+y}
3820 printf %s "(cached) " >&6
3824 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3829 for as_dir in $as_dummy
3832 case $as_dir in #(((
3835 *) as_dir=$as_dir/ ;;
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3839 ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
3840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3847 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3851 EGREP=$ac_cv_path_EGREP
3852 if test -n "$EGREP"; then
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3854 printf "%s\n" "$EGREP" >&6; }
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 printf "%s\n" "no" >&6; }
3862 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3863 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3867 if test -z "$AR"; then
3868 if test -n "$ac_tool_prefix"; then
3869 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3870 set dummy ${ac_tool_prefix}ar; ac_word=$2
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 printf %s "checking for $ac_word... " >&6; }
3873 if test ${ac_cv_path_AR+y}
3875 printf %s "(cached) " >&6
3879 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3884 for as_dir in $as_dummy
3887 case $as_dir in #(((
3890 *) as_dir=$as_dir/ ;;
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3894 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3906 if test -n "$AR"; then
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3908 printf "%s\n" "$AR" >&6; }
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 printf "%s\n" "no" >&6; }
3916 if test -z "$ac_cv_path_AR"; then
3918 # Extract the first word of "ar", so it can be a program name with args.
3919 set dummy ar; ac_word=$2
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 printf %s "checking for $ac_word... " >&6; }
3922 if test ${ac_cv_path_ac_pt_AR+y}
3924 printf %s "(cached) " >&6
3928 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3933 for as_dir in $as_dummy
3936 case $as_dir in #(((
3939 *) as_dir=$as_dir/ ;;
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
3944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3954 ac_pt_AR=$ac_cv_path_ac_pt_AR
3955 if test -n "$ac_pt_AR"; then
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3957 printf "%s\n" "$ac_pt_AR" >&6; }
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 printf "%s\n" "no" >&6; }
3963 if test "x$ac_pt_AR" = x; then
3966 case $cross_compiling:$ac_tool_warned in
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3969 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3970 ac_tool_warned=yes ;;
3978 if test -z "$AR" || test "$AR" = "not_found"; then
3979 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3998 # allow to override gcov location
4000 # Check whether --with-gcov was given.
4001 if test ${with_gcov+y}
4003 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
4005 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
4010 printf %s "checking whether to build with code coverage support... " >&6; }
4011 # Check whether --enable-code-coverage was given.
4012 if test ${enable_code_coverage+y}
4014 enableval=$enable_code_coverage;
4016 enable_code_coverage=no
4020 if test "x$enable_code_coverage" = xyes; then
4021 CODE_COVERAGE_ENABLED_TRUE=
4022 CODE_COVERAGE_ENABLED_FALSE='#'
4024 CODE_COVERAGE_ENABLED_TRUE='#'
4025 CODE_COVERAGE_ENABLED_FALSE=
4028 CODE_COVERAGE_ENABLED=$enable_code_coverage
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
4031 printf "%s\n" "$enable_code_coverage" >&6; }
4033 if test "x$enable_code_coverage" = xyes
4037 for ac_prog in gawk mawk nawk awk
4039 # Extract the first word of "$ac_prog", so it can be a program name with args.
4040 set dummy $ac_prog; ac_word=$2
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 printf %s "checking for $ac_word... " >&6; }
4043 if test ${ac_cv_prog_AWK+y}
4045 printf %s "(cached) " >&6
4047 if test -n "$AWK"; then
4048 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 case $as_dir in #(((
4057 *) as_dir=$as_dir/ ;;
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_AWK="$ac_prog"
4062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4072 if test -n "$AWK"; then
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4074 printf "%s\n" "$AWK" >&6; }
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 printf "%s\n" "no" >&6; }
4081 test -n "$AWK" && break
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
4085 printf %s "checking for GNU make... " >&6; }
4086 if test ${_cv_gnu_make_command+y}
4088 printf %s "(cached) " >&6
4090 _cv_gnu_make_command="" ;
4091 for a in "$MAKE" make gmake gnumake ; do
4092 if test -z "$a" ; then continue ; fi ;
4093 if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
4094 _cv_gnu_make_command=$a ;
4095 AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
4096 ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
4102 printf "%s\n" "$_cv_gnu_make_command" >&6; }
4103 if test "x$_cv_gnu_make_command" = x""
4109 if test "x$_cv_gnu_make_command" = x""
4115 if test "x$_cv_gnu_make_command" = x""
4117 { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
4119 ax_cv_gnu_make_command=${_cv_gnu_make_command}
4121 if test "x$_cv_gnu_make_command" = x""
4123 as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
4130 if test -n "$ac_tool_prefix"; then
4131 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
4132 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 printf %s "checking for $ac_word... " >&6; }
4135 if test ${ac_cv_prog_GCOV+y}
4137 printf %s "(cached) " >&6
4139 if test -n "$GCOV"; then
4140 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 case $as_dir in #(((
4149 *) as_dir=$as_dir/ ;;
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
4154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4163 GCOV=$ac_cv_prog_GCOV
4164 if test -n "$GCOV"; then
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
4166 printf "%s\n" "$GCOV" >&6; }
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 printf "%s\n" "no" >&6; }
4174 if test -z "$ac_cv_prog_GCOV"; then
4176 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
4177 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 printf %s "checking for $ac_word... " >&6; }
4180 if test ${ac_cv_prog_ac_ct_GCOV+y}
4182 printf %s "(cached) " >&6
4184 if test -n "$ac_ct_GCOV"; then
4185 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 case $as_dir in #(((
4194 *) as_dir=$as_dir/ ;;
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4198 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
4199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4208 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
4209 if test -n "$ac_ct_GCOV"; then
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
4211 printf "%s\n" "$ac_ct_GCOV" >&6; }
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 printf "%s\n" "no" >&6; }
4217 if test "x$ac_ct_GCOV" = x; then
4220 case $cross_compiling:$ac_tool_warned in
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned=yes ;;
4229 GCOV="$ac_cv_prog_GCOV"
4232 if test "X$GCOV" = "X:"
4234 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
4238 if test "$GCC" = "no"
4241 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
4245 # Extract the first word of "lcov", so it can be a program name with args.
4246 set dummy lcov; ac_word=$2
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 printf %s "checking for $ac_word... " >&6; }
4249 if test ${ac_cv_prog_LCOV+y}
4251 printf %s "(cached) " >&6
4253 if test -n "$LCOV"; then
4254 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 case $as_dir in #(((
4263 *) as_dir=$as_dir/ ;;
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_LCOV="lcov"
4268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4277 LCOV=$ac_cv_prog_LCOV
4278 if test -n "$LCOV"; then
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
4280 printf "%s\n" "$LCOV" >&6; }
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 printf "%s\n" "no" >&6; }
4287 # Extract the first word of "genhtml", so it can be a program name with args.
4288 set dummy genhtml; ac_word=$2
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290 printf %s "checking for $ac_word... " >&6; }
4291 if test ${ac_cv_prog_GENHTML+y}
4293 printf %s "(cached) " >&6
4295 if test -n "$GENHTML"; then
4296 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 case $as_dir in #(((
4305 *) as_dir=$as_dir/ ;;
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4309 ac_cv_prog_GENHTML="genhtml"
4310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4319 GENHTML=$ac_cv_prog_GENHTML
4320 if test -n "$GENHTML"; then
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
4322 printf "%s\n" "$GENHTML" >&6; }
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 printf "%s\n" "no" >&6; }
4330 if test x"$LCOV" = x
4333 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
4337 if test x"$GENHTML" = x
4340 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
4344 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
4345 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4346 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4347 CODE_COVERAGE_LIBS="-lgcov"
4373 # Make sure we can run config.sub.
4374 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4375 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4378 printf %s "checking build system type... " >&6; }
4379 if test ${ac_cv_build+y}
4381 printf %s "(cached) " >&6
4383 ac_build_alias=$build_alias
4384 test "x$ac_build_alias" = x &&
4385 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4386 test "x$ac_build_alias" = x &&
4387 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4388 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4389 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4393 printf "%s\n" "$ac_cv_build" >&6; }
4394 case $ac_cv_build in
4396 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4399 ac_save_IFS=$IFS; IFS='-'
4405 # Remember, the first character of IFS is used to create $*,
4406 # except with old shells:
4409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4413 printf %s "checking host system type... " >&6; }
4414 if test ${ac_cv_host+y}
4416 printf %s "(cached) " >&6
4418 if test "x$host_alias" = x; then
4419 ac_cv_host=$ac_cv_build
4421 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4422 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4427 printf "%s\n" "$ac_cv_host" >&6; }
4430 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4433 ac_save_IFS=$IFS; IFS='-'
4439 # Remember, the first character of IFS is used to create $*,
4440 # except with old shells:
4443 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4447 printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
4451 xc_prog_cc_prev_IFS=$IFS
4452 xc_prog_cc_prev_LIBS=$LIBS
4453 xc_prog_cc_prev_CFLAGS=$CFLAGS
4454 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4455 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4460 for xc_word in $LIBS; do
4470 if test $xc_bad_var_libs = yes; then
4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4472 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
4474 printf "%s\n" "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
4478 xc_bad_var_ldflags=no
4479 for xc_word in $LDFLAGS; do
4482 xc_bad_var_ldflags=yes
4485 xc_bad_var_ldflags=yes
4488 xc_bad_var_ldflags=yes
4491 xc_bad_var_ldflags=yes
4495 if test $xc_bad_var_ldflags = yes; then
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4497 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4498 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
4499 for xc_word in $LDFLAGS; do
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4503 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4507 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4511 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4515 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4522 xc_bad_var_cppflags=no
4523 for xc_word in $CPPFLAGS; do
4526 xc_bad_var_cppflags=yes
4528 -L* | --library-path=*)
4529 xc_bad_var_cppflags=yes
4532 xc_bad_var_cppflags=yes
4536 if test $xc_bad_var_cppflags = yes; then
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4538 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4539 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
4540 for xc_word in $CPPFLAGS; do
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4544 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4546 -L* | --library-path=*)
4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4548 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4552 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4559 xc_bad_var_cflags=no
4560 for xc_word in $CFLAGS; do
4563 xc_bad_var_cflags=yes
4566 xc_bad_var_cflags=yes
4569 xc_bad_var_cflags=yes
4572 xc_bad_var_cflags=yes
4574 -L* | --library-path=*)
4575 xc_bad_var_cflags=yes
4578 xc_bad_var_cflags=yes
4582 if test $xc_bad_var_cflags = yes; then
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4584 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4585 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
4586 for xc_word in $CFLAGS; do
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4590 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4594 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4598 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4602 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4604 -L* | --library-path=*)
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4606 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4610 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4616 if test $xc_bad_var_libs = yes ||
4617 test $xc_bad_var_cflags = yes ||
4618 test $xc_bad_var_ldflags = yes ||
4619 test $xc_bad_var_cppflags = yes; then
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4621 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4625 # Find a good install program. We prefer a C program (faster),
4626 # so one script is as good as another. But avoid the broken or
4627 # incompatible versions:
4628 # SysV /etc/install, /usr/sbin/install
4629 # SunOS /usr/etc/install
4630 # IRIX /sbin/install
4632 # AmigaOS /C/install, which installs bootblocks on floppy discs
4633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4636 # OS/2's system install, which has a completely different semantic
4637 # ./install, which can be erroneously created by make from ./install.sh.
4638 # Reject install programs that cannot install multiple files.
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4640 printf %s "checking for a BSD-compatible install... " >&6; }
4641 if test -z "$INSTALL"; then
4642 if test ${ac_cv_path_install+y}
4644 printf %s "(cached) " >&6
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 case $as_dir in #(((
4653 *) as_dir=$as_dir/ ;;
4655 # Account for fact that we put trailing slashes in our PATH walk.
4658 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4659 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4662 # OSF1 and SCO ODT 3.0 have their own names for install.
4663 # Don't use installbsd from OSF since it installs stuff as root
4665 for ac_prog in ginstall scoinst install; do
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4668 if test $ac_prog = install &&
4669 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4670 # AIX install. It has an incompatible calling convention.
4672 elif test $ac_prog = install &&
4673 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4674 # program-specific install script used by HP pwplus--don't use.
4677 rm -rf conftest.one conftest.two conftest.dir
4678 echo one > conftest.one
4679 echo two > conftest.two
4681 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4682 test -s conftest.one && test -s conftest.two &&
4683 test -s conftest.dir/conftest.one &&
4684 test -s conftest.dir/conftest.two
4686 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4699 rm -rf conftest.one conftest.two conftest.dir
4702 if test ${ac_cv_path_install+y}; then
4703 INSTALL=$ac_cv_path_install
4705 # As a last resort, use the slow shell script. Don't cache a
4706 # value for INSTALL within a source directory, because that will
4707 # break other packages using the cache if that directory is
4708 # removed, or if the value is a relative name.
4709 INSTALL=$ac_install_sh
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4713 printf "%s\n" "$INSTALL" >&6; }
4715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4716 # It thinks the first close brace ends the variable substitution.
4717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4733 # Expand $ac_aux_dir to an absolute path.
4734 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4737 ac_cpp='$CPP $CPPFLAGS'
4738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741 if test -n "$ac_tool_prefix"; then
4742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 printf %s "checking for $ac_word... " >&6; }
4746 if test ${ac_cv_prog_CC+y}
4748 printf %s "(cached) " >&6
4750 if test -n "$CC"; then
4751 ac_cv_prog_CC="$CC" # Let the user override the test.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 case $as_dir in #(((
4760 *) as_dir=$as_dir/ ;;
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4775 if test -n "$CC"; then
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4777 printf "%s\n" "$CC" >&6; }
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 printf "%s\n" "no" >&6; }
4785 if test -z "$ac_cv_prog_CC"; then
4787 # Extract the first word of "gcc", so it can be a program name with args.
4788 set dummy gcc; ac_word=$2
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 printf %s "checking for $ac_word... " >&6; }
4791 if test ${ac_cv_prog_ac_ct_CC+y}
4793 printf %s "(cached) " >&6
4795 if test -n "$ac_ct_CC"; then
4796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 case $as_dir in #(((
4805 *) as_dir=$as_dir/ ;;
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4809 ac_cv_prog_ac_ct_CC="gcc"
4810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4820 if test -n "$ac_ct_CC"; then
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4822 printf "%s\n" "$ac_ct_CC" >&6; }
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 printf "%s\n" "no" >&6; }
4828 if test "x$ac_ct_CC" = x; then
4831 case $cross_compiling:$ac_tool_warned in
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4834 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4835 ac_tool_warned=yes ;;
4843 if test -z "$CC"; then
4844 if test -n "$ac_tool_prefix"; then
4845 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4846 set dummy ${ac_tool_prefix}cc; ac_word=$2
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 printf %s "checking for $ac_word... " >&6; }
4849 if test ${ac_cv_prog_CC+y}
4851 printf %s "(cached) " >&6
4853 if test -n "$CC"; then
4854 ac_cv_prog_CC="$CC" # Let the user override the test.
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 case $as_dir in #(((
4863 *) as_dir=$as_dir/ ;;
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4867 ac_cv_prog_CC="${ac_tool_prefix}cc"
4868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4878 if test -n "$CC"; then
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4880 printf "%s\n" "$CC" >&6; }
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 printf "%s\n" "no" >&6; }
4889 if test -z "$CC"; then
4890 # Extract the first word of "cc", so it can be a program name with args.
4891 set dummy cc; ac_word=$2
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 printf %s "checking for $ac_word... " >&6; }
4894 if test ${ac_cv_prog_CC+y}
4896 printf %s "(cached) " >&6
4898 if test -n "$CC"; then
4899 ac_cv_prog_CC="$CC" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 case $as_dir in #(((
4909 *) as_dir=$as_dir/ ;;
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4913 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4914 ac_prog_rejected=yes
4918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4925 if test $ac_prog_rejected = yes; then
4926 # We found a bogon in the path, so make sure we never use it.
4927 set dummy $ac_cv_prog_CC
4929 if test $# != 0; then
4930 # We chose a different compiler from the bogus one.
4931 # However, it has the same basename, so the bogon will be chosen
4932 # first if we set CC to just the basename; use the full file name.
4934 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4940 if test -n "$CC"; then
4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4942 printf "%s\n" "$CC" >&6; }
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 printf "%s\n" "no" >&6; }
4950 if test -z "$CC"; then
4951 if test -n "$ac_tool_prefix"; then
4952 for ac_prog in cl.exe
4954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 printf %s "checking for $ac_word... " >&6; }
4958 if test ${ac_cv_prog_CC+y}
4960 printf %s "(cached) " >&6
4962 if test -n "$CC"; then
4963 ac_cv_prog_CC="$CC" # Let the user override the test.
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 case $as_dir in #(((
4972 *) as_dir=$as_dir/ ;;
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4987 if test -n "$CC"; then
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4989 printf "%s\n" "$CC" >&6; }
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 printf "%s\n" "no" >&6; }
4996 test -n "$CC" && break
4999 if test -z "$CC"; then
5001 for ac_prog in cl.exe
5003 # Extract the first word of "$ac_prog", so it can be a program name with args.
5004 set dummy $ac_prog; ac_word=$2
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 printf %s "checking for $ac_word... " >&6; }
5007 if test ${ac_cv_prog_ac_ct_CC+y}
5009 printf %s "(cached) " >&6
5011 if test -n "$ac_ct_CC"; then
5012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 case $as_dir in #(((
5021 *) as_dir=$as_dir/ ;;
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_ac_ct_CC="$ac_prog"
5026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5036 if test -n "$ac_ct_CC"; then
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5038 printf "%s\n" "$ac_ct_CC" >&6; }
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 printf "%s\n" "no" >&6; }
5045 test -n "$ac_ct_CC" && break
5048 if test "x$ac_ct_CC" = x; then
5051 case $cross_compiling:$ac_tool_warned in
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5054 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5055 ac_tool_warned=yes ;;
5062 if test -z "$CC"; then
5063 if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}clang; ac_word=$2
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 printf %s "checking for $ac_word... " >&6; }
5068 if test ${ac_cv_prog_CC+y}
5070 printf %s "(cached) " >&6
5072 if test -n "$CC"; then
5073 ac_cv_prog_CC="$CC" # Let the user override the test.
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 case $as_dir in #(((
5082 *) as_dir=$as_dir/ ;;
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5086 ac_cv_prog_CC="${ac_tool_prefix}clang"
5087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5097 if test -n "$CC"; then
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5099 printf "%s\n" "$CC" >&6; }
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 printf "%s\n" "no" >&6; }
5107 if test -z "$ac_cv_prog_CC"; then
5109 # Extract the first word of "clang", so it can be a program name with args.
5110 set dummy clang; ac_word=$2
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 printf %s "checking for $ac_word... " >&6; }
5113 if test ${ac_cv_prog_ac_ct_CC+y}
5115 printf %s "(cached) " >&6
5117 if test -n "$ac_ct_CC"; then
5118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 case $as_dir in #(((
5127 *) as_dir=$as_dir/ ;;
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5131 ac_cv_prog_ac_ct_CC="clang"
5132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5142 if test -n "$ac_ct_CC"; then
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5144 printf "%s\n" "$ac_ct_CC" >&6; }
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 printf "%s\n" "no" >&6; }
5150 if test "x$ac_ct_CC" = x; then
5153 case $cross_compiling:$ac_tool_warned in
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157 ac_tool_warned=yes ;;
5168 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5169 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5170 as_fn_error $? "no acceptable C compiler found in \$PATH
5171 See \`config.log' for more details" "$LINENO" 5; }
5173 # Provide some information about the compiler.
5174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5177 for ac_option in --version -v -V -qversion -version; do
5178 { { ac_try="$ac_compiler $ac_option >&5"
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5184 printf "%s\n" "$ac_try_echo"; } >&5
5185 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5187 if test -s conftest.err; then
5189 ... rest of stderr output deleted ...
5190 10q' conftest.err >conftest.er1
5191 cat conftest.er1 >&5
5193 rm -f conftest.er1 conftest.err
5194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5195 test $ac_status = 0; }
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5209 ac_clean_files_save=$ac_clean_files
5210 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5211 # Try to create an executable without -o first, disregard a.out.
5212 # It will help us diagnose broken compilers, and finding out an intuition
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5215 printf %s "checking whether the C compiler works... " >&6; }
5216 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5218 # The possible output files:
5219 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5222 for ac_file in $ac_files
5225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5226 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5231 if { { ac_try="$ac_link_default"
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5237 printf "%s\n" "$ac_try_echo"; } >&5
5238 (eval "$ac_link_default") 2>&5
5240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5241 test $ac_status = 0; }
5243 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5244 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5245 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5246 # so that the user can short-circuit this test for compilers unknown to
5248 for ac_file in $ac_files ''
5250 test -f "$ac_file" || continue
5252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5255 # We found the default executable, but exeext='' is most
5259 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5261 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5263 # We set ac_cv_exeext here because the later test for it is not
5264 # safe: cross compilers may not add the suffix if given an `-o'
5265 # argument, so we may need to know it at that point already.
5266 # Even if this section looks crufty: it has the advantage of
5273 test "$ac_cv_exeext" = no && ac_cv_exeext=
5278 if test -z "$ac_file"
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 printf "%s\n" "no" >&6; }
5282 printf "%s\n" "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5286 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5287 as_fn_error 77 "C compiler cannot create executables
5288 See \`config.log' for more details" "$LINENO" 5; }
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291 printf "%s\n" "yes" >&6; }
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5294 printf %s "checking for C compiler default output file name... " >&6; }
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5296 printf "%s\n" "$ac_file" >&6; }
5297 ac_exeext=$ac_cv_exeext
5299 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5300 ac_clean_files=$ac_clean_files_save
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5302 printf %s "checking for suffix of executables... " >&6; }
5303 if { { ac_try="$ac_link"
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5309 printf "%s\n" "$ac_try_echo"; } >&5
5310 (eval "$ac_link") 2>&5
5312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5313 test $ac_status = 0; }
5315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5316 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5317 # work properly (i.e., refer to `conftest.exe'), while it won't with
5319 for ac_file in conftest.exe conftest conftest.*; do
5320 test -f "$ac_file" || continue
5322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5329 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5330 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5331 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5332 See \`config.log' for more details" "$LINENO" 5; }
5334 rm -f conftest conftest$ac_cv_exeext
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5336 printf "%s\n" "$ac_cv_exeext" >&6; }
5338 rm -f conftest.$ac_ext
5339 EXEEXT=$ac_cv_exeext
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5347 FILE *f = fopen ("conftest.out", "w");
5348 return ferror (f) || fclose (f) != 0;
5354 ac_clean_files="$ac_clean_files conftest.out"
5355 # Check that the compiler produces executables we can run. If not, either
5356 # the compiler is broken, or we cross compile.
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5358 printf %s "checking whether we are cross compiling... " >&6; }
5359 if test "$cross_compiling" != yes; then
5360 { { ac_try="$ac_link"
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5366 printf "%s\n" "$ac_try_echo"; } >&5
5367 (eval "$ac_link") 2>&5
5369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5370 test $ac_status = 0; }
5371 if { ac_try='./conftest$ac_cv_exeext'
5372 { { case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5377 printf "%s\n" "$ac_try_echo"; } >&5
5378 (eval "$ac_try") 2>&5
5380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5381 test $ac_status = 0; }; }; then
5384 if test "$cross_compiling" = maybe; then
5387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5388 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5389 as_fn_error 77 "cannot run C compiled programs.
5390 If you meant to cross compile, use \`--host'.
5391 See \`config.log' for more details" "$LINENO" 5; }
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5396 printf "%s\n" "$cross_compiling" >&6; }
5398 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5399 ac_clean_files=$ac_clean_files_save
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5401 printf %s "checking for suffix of object files... " >&6; }
5402 if test ${ac_cv_objext+y}
5404 printf %s "(cached) " >&6
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5417 rm -f conftest.o conftest.obj
5418 if { { ac_try="$ac_compile"
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5424 printf "%s\n" "$ac_try_echo"; } >&5
5425 (eval "$ac_compile") 2>&5
5427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5428 test $ac_status = 0; }
5430 for ac_file in conftest.o conftest.obj conftest.*; do
5431 test -f "$ac_file" || continue;
5433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5439 printf "%s\n" "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5442 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5443 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5444 as_fn_error $? "cannot compute suffix of object files: cannot compile
5445 See \`config.log' for more details" "$LINENO" 5; }
5447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5450 printf "%s\n" "$ac_cv_objext" >&6; }
5451 OBJEXT=$ac_cv_objext
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5454 printf %s "checking whether the compiler supports GNU C... " >&6; }
5455 if test ${ac_cv_c_compiler_gnu+y}
5457 printf %s "(cached) " >&6
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5473 if ac_fn_c_try_compile "$LINENO"
5479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5484 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5487 if test $ac_compiler_gnu = yes; then
5492 ac_test_CFLAGS=${CFLAGS+y}
5493 ac_save_CFLAGS=$CFLAGS
5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5495 printf %s "checking whether $CC accepts -g... " >&6; }
5496 if test ${ac_cv_prog_cc_g+y}
5498 printf %s "(cached) " >&6
5500 ac_save_c_werror_flag=$ac_c_werror_flag
5501 ac_c_werror_flag=yes
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5515 if ac_fn_c_try_compile "$LINENO"
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5531 if ac_fn_c_try_compile "$LINENO"
5535 ac_c_werror_flag=$ac_save_c_werror_flag
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5548 if ac_fn_c_try_compile "$LINENO"
5552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5557 ac_c_werror_flag=$ac_save_c_werror_flag
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5560 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5561 if test $ac_test_CFLAGS; then
5562 CFLAGS=$ac_save_CFLAGS
5563 elif test $ac_cv_prog_cc_g = yes; then
5564 if test "$GCC" = yes; then
5570 if test "$GCC" = yes; then
5577 if test x$ac_prog_cc_stdc = xno
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5580 printf %s "checking for $CC option to enable C11 features... " >&6; }
5581 if test ${ac_cv_prog_cc_c11+y}
5583 printf %s "(cached) " >&6
5585 ac_cv_prog_cc_c11=no
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 $ac_c_conftest_c11_program
5591 for ac_arg in '' -std=gnu11
5593 CC="$ac_save_CC $ac_arg"
5594 if ac_fn_c_try_compile "$LINENO"
5596 ac_cv_prog_cc_c11=$ac_arg
5598 rm -f core conftest.err conftest.$ac_objext conftest.beam
5599 test "x$ac_cv_prog_cc_c11" != "xno" && break
5601 rm -f conftest.$ac_ext
5605 if test "x$ac_cv_prog_cc_c11" = xno
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5608 printf "%s\n" "unsupported" >&6; }
5610 if test "x$ac_cv_prog_cc_c11" = x
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5613 printf "%s\n" "none needed" >&6; }
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5616 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5617 CC="$CC $ac_cv_prog_cc_c11"
5619 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5623 if test x$ac_prog_cc_stdc = xno
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5626 printf %s "checking for $CC option to enable C99 features... " >&6; }
5627 if test ${ac_cv_prog_cc_c99+y}
5629 printf %s "(cached) " >&6
5631 ac_cv_prog_cc_c99=no
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 $ac_c_conftest_c99_program
5637 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5639 CC="$ac_save_CC $ac_arg"
5640 if ac_fn_c_try_compile "$LINENO"
5642 ac_cv_prog_cc_c99=$ac_arg
5644 rm -f core conftest.err conftest.$ac_objext conftest.beam
5645 test "x$ac_cv_prog_cc_c99" != "xno" && break
5647 rm -f conftest.$ac_ext
5651 if test "x$ac_cv_prog_cc_c99" = xno
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5654 printf "%s\n" "unsupported" >&6; }
5656 if test "x$ac_cv_prog_cc_c99" = x
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5659 printf "%s\n" "none needed" >&6; }
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5662 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5663 CC="$CC $ac_cv_prog_cc_c99"
5665 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5669 if test x$ac_prog_cc_stdc = xno
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5672 printf %s "checking for $CC option to enable C89 features... " >&6; }
5673 if test ${ac_cv_prog_cc_c89+y}
5675 printf %s "(cached) " >&6
5677 ac_cv_prog_cc_c89=no
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 $ac_c_conftest_c89_program
5683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5685 CC="$ac_save_CC $ac_arg"
5686 if ac_fn_c_try_compile "$LINENO"
5688 ac_cv_prog_cc_c89=$ac_arg
5690 rm -f core conftest.err conftest.$ac_objext conftest.beam
5691 test "x$ac_cv_prog_cc_c89" != "xno" && break
5693 rm -f conftest.$ac_ext
5697 if test "x$ac_cv_prog_cc_c89" = xno
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5700 printf "%s\n" "unsupported" >&6; }
5702 if test "x$ac_cv_prog_cc_c89" = x
5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5705 printf "%s\n" "none needed" >&6; }
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5708 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5709 CC="$CC $ac_cv_prog_cc_c89"
5711 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5717 ac_cpp='$CPP $CPPFLAGS'
5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5724 ac_cpp='$CPP $CPPFLAGS'
5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5729 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5730 if test ${am_cv_prog_cc_c_o+y}
5732 printf %s "(cached) " >&6
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5745 # Make sure it works both with $CC and with simple cc.
5746 # Following AC_PROG_CC_C_O, we do the test twice because some
5747 # compilers refuse to overwrite an existing .o file with -o,
5748 # though they will create one.
5749 am_cv_prog_cc_c_o=yes
5751 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5752 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } \
5756 && test -f conftest2.$ac_objext; then
5759 am_cv_prog_cc_c_o=no
5763 rm -f core conftest*
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5767 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5768 if test "$am_cv_prog_cc_c_o" != yes; then
5769 # Losing compiler, so override with the script.
5770 # FIXME: It is wrong to rewrite CC.
5771 # But if we don't then we get into trouble of one sort or another.
5772 # A longer-term fix would be to have automake use am__CC in this case,
5773 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5774 CC="$am_aux_dir/compile $CC"
5777 ac_cpp='$CPP $CPPFLAGS'
5778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785 ac_cpp='$CPP $CPPFLAGS'
5786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5790 printf %s "checking how to run the C preprocessor... " >&6; }
5791 # On Suns, sometimes $CPP names a directory.
5792 if test -n "$CPP" && test -d "$CPP"; then
5795 if test -z "$CPP"; then
5796 if test ${ac_cv_prog_CPP+y}
5798 printf %s "(cached) " >&6
5800 # Double quotes because $CC needs to be expanded
5801 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5804 for ac_c_preproc_warn_flag in '' yes
5806 # Use a header file that comes with gcc, so configuring glibc
5807 # with a fresh cross-compiler works.
5808 # On the NeXT, cc -E runs the code through the compiler's parser,
5809 # not just through cpp. "Syntax error" is here to catch this case.
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5815 if ac_fn_c_try_cpp "$LINENO"
5819 # Broken: fails on valid input.
5822 rm -f conftest.err conftest.i conftest.$ac_ext
5824 # OK, works on sane cases. Now check whether nonexistent headers
5825 # can be detected and how.
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 #include <ac_nonexistent.h>
5830 if ac_fn_c_try_cpp "$LINENO"
5832 # Broken: success on invalid input.
5835 # Passes both tests.
5839 rm -f conftest.err conftest.i conftest.$ac_ext
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.i conftest.err conftest.$ac_ext
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5858 printf "%s\n" "$CPP" >&6; }
5860 for ac_c_preproc_warn_flag in '' yes
5862 # Use a header file that comes with gcc, so configuring glibc
5863 # with a fresh cross-compiler works.
5864 # On the NeXT, cc -E runs the code through the compiler's parser,
5865 # not just through cpp. "Syntax error" is here to catch this case.
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5871 if ac_fn_c_try_cpp "$LINENO"
5875 # Broken: fails on valid input.
5878 rm -f conftest.err conftest.i conftest.$ac_ext
5880 # OK, works on sane cases. Now check whether nonexistent headers
5881 # can be detected and how.
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 #include <ac_nonexistent.h>
5886 if ac_fn_c_try_cpp "$LINENO"
5888 # Broken: success on invalid input.
5891 # Passes both tests.
5895 rm -f conftest.err conftest.i conftest.$ac_ext
5898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5899 rm -f conftest.i conftest.err conftest.$ac_ext
5904 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5905 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5906 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5907 See \`config.log' for more details" "$LINENO" 5; }
5911 ac_cpp='$CPP $CPPFLAGS'
5912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917 IFS=$xc_prog_cc_prev_IFS
5918 LIBS=$xc_prog_cc_prev_LIBS
5919 CFLAGS=$xc_prog_cc_prev_CFLAGS
5920 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5921 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5934 ac_cpp='$CXXCPP $CPPFLAGS'
5935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5938 if test -z "$CXX"; then
5939 if test -n "$CCC"; then
5942 if test -n "$ac_tool_prefix"; then
5943 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 printf %s "checking for $ac_word... " >&6; }
5949 if test ${ac_cv_prog_CXX+y}
5951 printf %s "(cached) " >&6
5953 if test -n "$CXX"; then
5954 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 case $as_dir in #(((
5963 *) as_dir=$as_dir/ ;;
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5967 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5978 if test -n "$CXX"; then
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5980 printf "%s\n" "$CXX" >&6; }
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 printf "%s\n" "no" >&6; }
5987 test -n "$CXX" && break
5990 if test -z "$CXX"; then
5992 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5994 # Extract the first word of "$ac_prog", so it can be a program name with args.
5995 set dummy $ac_prog; ac_word=$2
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 printf %s "checking for $ac_word... " >&6; }
5998 if test ${ac_cv_prog_ac_ct_CXX+y}
6000 printf %s "(cached) " >&6
6002 if test -n "$ac_ct_CXX"; then
6003 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 case $as_dir in #(((
6012 *) as_dir=$as_dir/ ;;
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_ac_ct_CXX="$ac_prog"
6017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6026 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6027 if test -n "$ac_ct_CXX"; then
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6029 printf "%s\n" "$ac_ct_CXX" >&6; }
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 printf "%s\n" "no" >&6; }
6036 test -n "$ac_ct_CXX" && break
6039 if test "x$ac_ct_CXX" = x; then
6042 case $cross_compiling:$ac_tool_warned in
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6054 # Provide some information about the compiler.
6055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6058 for ac_option in --version -v -V -qversion; do
6059 { { ac_try="$ac_compiler $ac_option >&5"
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6065 printf "%s\n" "$ac_try_echo"; } >&5
6066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6068 if test -s conftest.err; then
6070 ... rest of stderr output deleted ...
6071 10q' conftest.err >conftest.er1
6072 cat conftest.er1 >&5
6074 rm -f conftest.er1 conftest.err
6075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6076 test $ac_status = 0; }
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6080 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6081 if test ${ac_cv_cxx_compiler_gnu+y}
6083 printf %s "(cached) " >&6
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6099 if ac_fn_cxx_try_compile "$LINENO"
6105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6106 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6110 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6113 if test $ac_compiler_gnu = yes; then
6118 ac_test_CXXFLAGS=${CXXFLAGS+y}
6119 ac_save_CXXFLAGS=$CXXFLAGS
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6121 printf %s "checking whether $CXX accepts -g... " >&6; }
6122 if test ${ac_cv_prog_cxx_g+y}
6124 printf %s "(cached) " >&6
6126 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6127 ac_cxx_werror_flag=yes
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6141 if ac_fn_cxx_try_compile "$LINENO"
6143 ac_cv_prog_cxx_g=yes
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6157 if ac_fn_cxx_try_compile "$LINENO"
6161 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6174 if ac_fn_cxx_try_compile "$LINENO"
6176 ac_cv_prog_cxx_g=yes
6178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6183 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6186 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6187 if test $ac_test_CXXFLAGS; then
6188 CXXFLAGS=$ac_save_CXXFLAGS
6189 elif test $ac_cv_prog_cxx_g = yes; then
6190 if test "$GXX" = yes; then
6196 if test "$GXX" = yes; then
6202 ac_prog_cxx_stdcxx=no
6203 if test x$ac_prog_cxx_stdcxx = xno
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6206 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6207 if test ${ac_cv_prog_cxx_11+y}
6209 printf %s "(cached) " >&6
6211 ac_cv_prog_cxx_11=no
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 $ac_cxx_conftest_cxx11_program
6217 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6219 CXX="$ac_save_CXX $ac_arg"
6220 if ac_fn_cxx_try_compile "$LINENO"
6222 ac_cv_prog_cxx_cxx11=$ac_arg
6224 rm -f core conftest.err conftest.$ac_objext conftest.beam
6225 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6227 rm -f conftest.$ac_ext
6231 if test "x$ac_cv_prog_cxx_cxx11" = xno
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6234 printf "%s\n" "unsupported" >&6; }
6236 if test "x$ac_cv_prog_cxx_cxx11" = x
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6239 printf "%s\n" "none needed" >&6; }
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6242 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6243 CXX="$CXX $ac_cv_prog_cxx_cxx11"
6245 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6246 ac_prog_cxx_stdcxx=cxx11
6249 if test x$ac_prog_cxx_stdcxx = xno
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6252 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6253 if test ${ac_cv_prog_cxx_98+y}
6255 printf %s "(cached) " >&6
6257 ac_cv_prog_cxx_98=no
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 $ac_cxx_conftest_cxx98_program
6263 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6265 CXX="$ac_save_CXX $ac_arg"
6266 if ac_fn_cxx_try_compile "$LINENO"
6268 ac_cv_prog_cxx_cxx98=$ac_arg
6270 rm -f core conftest.err conftest.$ac_objext conftest.beam
6271 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6273 rm -f conftest.$ac_ext
6277 if test "x$ac_cv_prog_cxx_cxx98" = xno
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6280 printf "%s\n" "unsupported" >&6; }
6282 if test "x$ac_cv_prog_cxx_cxx98" = x
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6285 printf "%s\n" "none needed" >&6; }
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6288 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6289 CXX="$CXX $ac_cv_prog_cxx_cxx98"
6291 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6292 ac_prog_cxx_stdcxx=cxx98
6297 ac_cpp='$CXXCPP $CPPFLAGS'
6298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6303 ax_cxx_compile_cxx11_required=false
6305 ac_cpp='$CXXCPP $CPPFLAGS'
6306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6311 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
6312 if test ${ax_cv_cxx_compile_cxx11+y}
6314 printf %s "(cached) " >&6
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6319 template <typename T>
6322 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6328 struct Child : public Base {
6329 virtual void f() override {}
6332 typedef check<check<bool>> right_angle_brackets;
6337 typedef check<int> check_type;
6339 check_type&& cr = static_cast<check_type&&>(c);
6344 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6345 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
6346 namespace test_template_alias_sfinae {
6349 template<typename T>
6350 using member = typename T::member_type;
6352 template<typename T>
6355 template<typename T>
6356 void func(member<T>*) {}
6366 if ac_fn_cxx_try_compile "$LINENO"
6368 ax_cv_cxx_compile_cxx11=yes
6370 ax_cv_cxx_compile_cxx11=no
6372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6375 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
6376 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6382 if test x$ac_success = xno; then
6383 for switch in -std=c++11 -std=c++0x; do
6384 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6386 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6387 if eval test \${$cachevar+y}
6389 printf %s "(cached) " >&6
6391 ac_save_CXXFLAGS="$CXXFLAGS"
6392 CXXFLAGS="$CXXFLAGS $switch"
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6396 template <typename T>
6399 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6405 struct Child : public Base {
6406 virtual void f() override {}
6409 typedef check<check<bool>> right_angle_brackets;
6414 typedef check<int> check_type;
6416 check_type&& cr = static_cast<check_type&&>(c);
6421 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6422 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
6423 namespace test_template_alias_sfinae {
6426 template<typename T>
6427 using member = typename T::member_type;
6429 template<typename T>
6432 template<typename T>
6433 void func(member<T>*) {}
6443 if ac_fn_cxx_try_compile "$LINENO"
6449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6450 CXXFLAGS="$ac_save_CXXFLAGS"
6452 eval ac_res=\$$cachevar
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6454 printf "%s\n" "$ac_res" >&6; }
6455 if eval test x\$$cachevar = xyes; then
6456 CXXFLAGS="$CXXFLAGS $switch"
6463 ac_cpp='$CPP $CPPFLAGS'
6464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6468 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6469 if test x$ac_success = xno; then
6470 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6473 if test x$ac_success = xno; then
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6476 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
6480 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
6488 am__api_version='1.16'
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6491 printf %s "checking whether build environment is sane... " >&6; }
6492 # Reject unsafe characters in $srcdir or the absolute working directory
6493 # name. Accept space and tab only in the latter.
6497 *[\\\"\#\$\&\'\`$am_lf]*)
6498 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6501 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6502 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6505 # Do 'set' in a subshell so we don't clobber the current shell's
6506 # arguments. Must try -L first in case configure is actually a
6507 # symlink; some systems play weird games with the mod time of symlinks
6508 # (eg FreeBSD returns the mod time of the symlink's containing
6512 for am_try in 1 2; do
6513 echo "timestamp, slept: $am_has_slept" > conftest.file
6514 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6515 if test "$*" = "X"; then
6517 set X `ls -t "$srcdir/configure" conftest.file`
6519 if test "$*" != "X $srcdir/configure conftest.file" \
6520 && test "$*" != "X conftest.file $srcdir/configure"; then
6522 # If neither matched, then we have a broken ls. This can happen
6523 # if, for instance, CONFIG_SHELL is bash and it inherits a
6524 # broken ls alias from the environment. This has actually
6525 # happened. Such a system could not be considered "sane".
6526 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6527 alias in your environment" "$LINENO" 5
6529 if test "$2" = conftest.file || test $am_try -eq 2; then
6536 test "$2" = conftest.file
6542 as_fn_error $? "newly created file is older than distributed files!
6543 Check your system clock" "$LINENO" 5
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6546 printf "%s\n" "yes" >&6; }
6547 # If we didn't sleep, we still need to ensure time stamps of config.status and
6548 # generated files are strictly newer.
6550 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6557 test "$program_prefix" != NONE &&
6558 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6559 # Use a double $ so make ignores it.
6560 test "$program_suffix" != NONE &&
6561 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6562 # Double any \ or $.
6563 # By default was `s,x,x', remove it if useless.
6564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6565 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
6568 if test x"${MISSING+set}" != xset; then
6569 MISSING="\${SHELL} '$am_aux_dir/missing'"
6571 # Use eval to expand $SHELL
6572 if eval "$MISSING --is-lightweight"; then
6573 am_missing_run="$MISSING "
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6577 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6580 if test x"${install_sh+set}" != xset; then
6583 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6585 install_sh="\${SHELL} $am_aux_dir/install-sh"
6589 # Installed binaries are usually stripped using 'strip' when the user
6590 # run "make install-strip". However 'strip' might not be the right
6591 # tool to use in cross-compilation environments, therefore Automake
6592 # will honor the 'STRIP' environment variable to overrule this program.
6593 if test "$cross_compiling" != no; then
6594 if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}strip; ac_word=$2
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 printf %s "checking for $ac_word... " >&6; }
6599 if test ${ac_cv_prog_STRIP+y}
6601 printf %s "(cached) " >&6
6603 if test -n "$STRIP"; then
6604 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 case $as_dir in #(((
6613 *) as_dir=$as_dir/ ;;
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6617 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6627 STRIP=$ac_cv_prog_STRIP
6628 if test -n "$STRIP"; then
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6630 printf "%s\n" "$STRIP" >&6; }
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 printf "%s\n" "no" >&6; }
6638 if test -z "$ac_cv_prog_STRIP"; then
6640 # Extract the first word of "strip", so it can be a program name with args.
6641 set dummy strip; ac_word=$2
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 printf %s "checking for $ac_word... " >&6; }
6644 if test ${ac_cv_prog_ac_ct_STRIP+y}
6646 printf %s "(cached) " >&6
6648 if test -n "$ac_ct_STRIP"; then
6649 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 case $as_dir in #(((
6658 *) as_dir=$as_dir/ ;;
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6662 ac_cv_prog_ac_ct_STRIP="strip"
6663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6672 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6673 if test -n "$ac_ct_STRIP"; then
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6675 printf "%s\n" "$ac_ct_STRIP" >&6; }
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 printf "%s\n" "no" >&6; }
6681 if test "x$ac_ct_STRIP" = x; then
6684 case $cross_compiling:$ac_tool_warned in
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6687 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6688 ac_tool_warned=yes ;;
6693 STRIP="$ac_cv_prog_STRIP"
6697 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6701 printf %s "checking for a race-free mkdir -p... " >&6; }
6702 if test -z "$MKDIR_P"; then
6703 if test ${ac_cv_path_mkdir+y}
6705 printf %s "(cached) " >&6
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6711 case $as_dir in #(((
6714 *) as_dir=$as_dir/ ;;
6716 for ac_prog in mkdir gmkdir; do
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6719 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6720 'mkdir ('*'coreutils) '* | \
6722 'mkdir (fileutils) '4.1*)
6723 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6733 test -d ./--version && rmdir ./--version
6734 if test ${ac_cv_path_mkdir+y}; then
6735 MKDIR_P="$ac_cv_path_mkdir -p"
6737 # As a last resort, use the slow shell script. Don't cache a
6738 # value for MKDIR_P within a source directory, because that will
6739 # break other packages using the cache if that directory is
6740 # removed, or if the value is a relative name.
6741 MKDIR_P="$ac_install_sh -d"
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6745 printf "%s\n" "$MKDIR_P" >&6; }
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6748 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6750 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6751 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6753 printf %s "(cached) " >&6
6755 cat >conftest.make <<\_ACEOF
6758 @echo '@@@%%%=$(MAKE)=@@@%%%'
6760 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6761 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6763 eval ac_cv_prog_make_${ac_make}_set=yes;;
6765 eval ac_cv_prog_make_${ac_make}_set=no;;
6769 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6771 printf "%s\n" "yes" >&6; }
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 printf "%s\n" "no" >&6; }
6776 SET_MAKE="MAKE=${MAKE-make}"
6779 rm -rf .tst 2>/dev/null
6780 mkdir .tst 2>/dev/null
6781 if test -d .tst; then
6786 rmdir .tst 2>/dev/null
6788 DEPDIR="${am__leading_dot}deps"
6790 ac_config_commands="$ac_config_commands depfiles"
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6793 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6794 cat > confinc.mk << 'END'
6796 @echo this is the am__doit target >confinc.out
6801 # BSD make does it like this.
6802 echo '.include "confinc.mk" # ignored' > confmf.BSD
6803 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
6804 echo 'include confinc.mk # ignored' > confmf.GNU
6806 for s in GNU BSD; do
6807 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6808 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }
6812 case $?:`cat confinc.out 2>/dev/null` in #(
6813 '0:this is the am__doit target') :
6816 am__include='.include' am__quote='"' ;; #(
6818 am__include='include' am__quote='' ;;
6823 if test "$am__include" != "#"; then
6824 _am_result="yes ($s style)"
6828 rm -f confinc.* confmf.*
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6830 printf "%s\n" "${_am_result}" >&6; }
6832 # Check whether --enable-dependency-tracking was given.
6833 if test ${enable_dependency_tracking+y}
6835 enableval=$enable_dependency_tracking;
6838 if test "x$enable_dependency_tracking" != xno; then
6839 am_depcomp="$ac_aux_dir/depcomp"
6843 if test "x$enable_dependency_tracking" != xno; then
6852 ## --------------------------------------- ##
6853 ## Start of automake initialization code ##
6854 ## --------------------------------------- ##
6856 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6857 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6858 # is not polluted with repeated "-I."
6859 am__isrc=' -I$(srcdir)'
6860 # test to see if srcdir already configured
6861 if test -f $srcdir/config.status; then
6862 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6866 # test whether we have cygpath
6867 if test -z "$CYGPATH_W"; then
6868 if (cygpath --version) >/dev/null 2>/dev/null; then
6869 CYGPATH_W='cygpath -w'
6876 # Define the identity of the package.
6881 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6884 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6886 # Some tools Automake needs.
6888 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6891 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6894 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6897 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6900 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6902 # For better backward compatibility. To be removed once Automake 1.9.x
6903 # dies out for good. For more background, see:
6904 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6905 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6906 mkdir_p='$(MKDIR_P)'
6908 # We need awk for the "check" target (and possibly the TAP driver). The
6909 # system "awk" is bad on some platforms.
6910 # Always define AMTAR for backward compatibility. Yes, it's still used
6911 # in the wild :-( We should find a proper way to deprecate it ...
6915 # We'll loop over all known methods to create a tar archive until one works.
6916 _am_tools='gnutar pax cpio none'
6918 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6924 depcc="$CC" am_compiler_list=
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6927 printf %s "checking dependency style of $depcc... " >&6; }
6928 if test ${am_cv_CC_dependencies_compiler_type+y}
6930 printf %s "(cached) " >&6
6932 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6933 # We make a subdir and do the tests there. Otherwise we can end up
6934 # making bogus files that we don't know about and never remove. For
6935 # instance it was reported that on HP-UX the gcc test will end up
6936 # making a dummy file named 'D' -- because '-MD' means "put the output
6940 # Copy depcomp to subdir because otherwise we won't find it if we're
6941 # using a relative directory.
6942 cp "$am_depcomp" conftest.dir
6944 # We will build objects and dependencies in a subdirectory because
6945 # it helps to detect inapplicable dependency modes. For instance
6946 # both Tru64's cc and ICC support -MD to output dependencies as a
6947 # side effect of compilation, but ICC will put the dependencies in
6948 # the current directory while Tru64 will put them in the object
6952 am_cv_CC_dependencies_compiler_type=none
6953 if test "$am_compiler_list" = ""; then
6954 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6957 case " $depcc " in #(
6958 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6961 for depmode in $am_compiler_list; do
6962 # Setup a source with many dependencies, because some compilers
6963 # like to wrap large dependency lists on column 80 (with \), and
6964 # we should not choose a depcomp mode which is confused by this.
6966 # We need to recreate these files for each test, as the compiler may
6967 # overwrite some of them when testing with obscure command lines.
6968 # This happens at least with the AIX C compiler.
6970 for i in 1 2 3 4 5 6; do
6971 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6972 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6973 # Solaris 10 /bin/sh.
6974 echo '/* dummy */' > sub/conftst$i.h
6976 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6978 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6979 # mode. It turns out that the SunPro C++ compiler does not properly
6980 # handle '-M -o', and we need to detect this. Also, some Intel
6981 # versions had trouble with output in subdirs.
6982 am__obj=sub/conftest.${OBJEXT-o}
6983 am__minus_obj="-o $am__obj"
6986 # This depmode causes a compiler race in universal mode.
6987 test "$am__universal" = false || continue
6990 # After this tag, mechanisms are not by side-effect, so they'll
6991 # only be used when explicitly requested.
6992 if test "x$enable_dependency_tracking" = xyes; then
6998 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6999 # This compiler won't grok '-c -o', but also, the minuso test has
7000 # not run yet. These depmodes are late enough in the game, and
7001 # so weak that their functioning should not be impacted.
7002 am__obj=conftest.${OBJEXT-o}
7007 if depmode=$depmode \
7008 source=sub/conftest.c object=$am__obj \
7009 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7010 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7011 >/dev/null 2>conftest.err &&
7012 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7014 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7016 # icc doesn't choke on unknown options, it will just issue warnings
7017 # or remarks (even with -Werror). So we grep stderr for any message
7018 # that says an option was ignored or not supported.
7019 # When given -MP, icc 7.0 and 7.1 complain thusly:
7020 # icc: Command line warning: ignoring option '-M'; no argument required
7021 # The diagnosis changed in icc 8.0:
7022 # icc: Command line remark: option '-MP' not supported
7023 if (grep 'ignoring option' conftest.err ||
7024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7025 am_cv_CC_dependencies_compiler_type=$depmode
7034 am_cv_CC_dependencies_compiler_type=none
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7039 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
7040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7043 test "x$enable_dependency_tracking" != xno \
7044 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7046 am__fastdepCC_FALSE='#'
7048 am__fastdepCC_TRUE='#'
7049 am__fastdepCC_FALSE=
7053 depcc="$CXX" am_compiler_list=
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7056 printf %s "checking dependency style of $depcc... " >&6; }
7057 if test ${am_cv_CXX_dependencies_compiler_type+y}
7059 printf %s "(cached) " >&6
7061 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7062 # We make a subdir and do the tests there. Otherwise we can end up
7063 # making bogus files that we don't know about and never remove. For
7064 # instance it was reported that on HP-UX the gcc test will end up
7065 # making a dummy file named 'D' -- because '-MD' means "put the output
7069 # Copy depcomp to subdir because otherwise we won't find it if we're
7070 # using a relative directory.
7071 cp "$am_depcomp" conftest.dir
7073 # We will build objects and dependencies in a subdirectory because
7074 # it helps to detect inapplicable dependency modes. For instance
7075 # both Tru64's cc and ICC support -MD to output dependencies as a
7076 # side effect of compilation, but ICC will put the dependencies in
7077 # the current directory while Tru64 will put them in the object
7081 am_cv_CXX_dependencies_compiler_type=none
7082 if test "$am_compiler_list" = ""; then
7083 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7086 case " $depcc " in #(
7087 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7090 for depmode in $am_compiler_list; do
7091 # Setup a source with many dependencies, because some compilers
7092 # like to wrap large dependency lists on column 80 (with \), and
7093 # we should not choose a depcomp mode which is confused by this.
7095 # We need to recreate these files for each test, as the compiler may
7096 # overwrite some of them when testing with obscure command lines.
7097 # This happens at least with the AIX C compiler.
7099 for i in 1 2 3 4 5 6; do
7100 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7101 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7102 # Solaris 10 /bin/sh.
7103 echo '/* dummy */' > sub/conftst$i.h
7105 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7107 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7108 # mode. It turns out that the SunPro C++ compiler does not properly
7109 # handle '-M -o', and we need to detect this. Also, some Intel
7110 # versions had trouble with output in subdirs.
7111 am__obj=sub/conftest.${OBJEXT-o}
7112 am__minus_obj="-o $am__obj"
7115 # This depmode causes a compiler race in universal mode.
7116 test "$am__universal" = false || continue
7119 # After this tag, mechanisms are not by side-effect, so they'll
7120 # only be used when explicitly requested.
7121 if test "x$enable_dependency_tracking" = xyes; then
7127 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7128 # This compiler won't grok '-c -o', but also, the minuso test has
7129 # not run yet. These depmodes are late enough in the game, and
7130 # so weak that their functioning should not be impacted.
7131 am__obj=conftest.${OBJEXT-o}
7136 if depmode=$depmode \
7137 source=sub/conftest.c object=$am__obj \
7138 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7139 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7140 >/dev/null 2>conftest.err &&
7141 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7142 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7143 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7144 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7145 # icc doesn't choke on unknown options, it will just issue warnings
7146 # or remarks (even with -Werror). So we grep stderr for any message
7147 # that says an option was ignored or not supported.
7148 # When given -MP, icc 7.0 and 7.1 complain thusly:
7149 # icc: Command line warning: ignoring option '-M'; no argument required
7150 # The diagnosis changed in icc 8.0:
7151 # icc: Command line remark: option '-MP' not supported
7152 if (grep 'ignoring option' conftest.err ||
7153 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7154 am_cv_CXX_dependencies_compiler_type=$depmode
7163 am_cv_CXX_dependencies_compiler_type=none
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7168 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
7169 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7172 test "x$enable_dependency_tracking" != xno \
7173 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7174 am__fastdepCXX_TRUE=
7175 am__fastdepCXX_FALSE='#'
7177 am__fastdepCXX_TRUE='#'
7178 am__fastdepCXX_FALSE=
7182 # Variables for tags utilities; see am/tags.am
7183 if test -z "$CTAGS"; then
7187 if test -z "$ETAGS"; then
7191 if test -z "$CSCOPE"; then
7197 # POSIX will say in a future version that running "rm -f" with no argument
7198 # is OK; and we want to be able to make that assumption in our Makefile
7199 # recipes. So use an aggressive probe to check that the usage we want is
7200 # actually supported "in the wild" to an acceptable degree.
7201 # See automake bug#10828.
7202 # To make any issue more visible, cause the running configure to be aborted
7203 # by default if the 'rm' program in use doesn't match our expectations; the
7204 # user can still override this though.
7205 if rm -f && rm -fr && rm -rf; then : OK; else
7209 Your 'rm' program seems unable to run without file operands specified
7210 on the command line, even when the '-f' option is present. This is contrary
7211 to the behaviour of most rm programs out there, and not conforming with
7212 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
7214 Please tell bug-automake@gnu.org about your system, including the value
7215 of your $PATH and any error possibly output before this message. This
7216 can help us improve future automake versions.
7219 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
7220 echo 'Configuration will proceed anyway, since you have set the' >&2
7221 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
7225 Aborting the configuration process, to ensure you take notice of the issue.
7227 You can download and install GNU coreutils to get an 'rm' implementation
7228 that behaves properly: <https://www.gnu.org/software/coreutils/>.
7230 If you want to complete the configuration process using your problematic
7231 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
7232 to "yes", and re-run configure.
7235 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
7239 ## ------------------------------------- ##
7240 ## End of automake initialization code ##
7241 ## ------------------------------------- ##
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7248 printf %s "checking for grep that handles long lines and -e... " >&6; }
7249 if test ${ac_cv_path_GREP+y}
7251 printf %s "(cached) " >&6
7253 if test -z "$GREP"; then
7254 ac_path_GREP_found=false
7255 # Loop through the user's path and test for each of PROGNAME-LIST
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7260 case $as_dir in #(((
7263 *) as_dir=$as_dir/ ;;
7265 for ac_prog in grep ggrep
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7269 as_fn_executable_p "$ac_path_GREP" || continue
7270 # Check for GNU ac_path_GREP and select it if it is found.
7271 # Check for GNU $ac_path_GREP
7272 case `"$ac_path_GREP" --version 2>&1` in
7274 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7277 printf %s 0123456789 >"conftest.in"
7280 cat "conftest.in" "conftest.in" >"conftest.tmp"
7281 mv "conftest.tmp" "conftest.in"
7282 cp "conftest.in" "conftest.nl"
7283 printf "%s\n" 'GREP' >> "conftest.nl"
7284 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7286 as_fn_arith $ac_count + 1 && ac_count=$as_val
7287 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7288 # Best one so far, save it but keep looking for a better one
7289 ac_cv_path_GREP="$ac_path_GREP"
7290 ac_path_GREP_max=$ac_count
7292 # 10*(2^10) chars as input seems more than enough
7293 test $ac_count -gt 10 && break
7295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7298 $ac_path_GREP_found && break 3
7303 if test -z "$ac_cv_path_GREP"; then
7304 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7307 ac_cv_path_GREP=$GREP
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7312 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7313 GREP="$ac_cv_path_GREP"
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7317 printf %s "checking for egrep... " >&6; }
7318 if test ${ac_cv_path_EGREP+y}
7320 printf %s "(cached) " >&6
7322 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7323 then ac_cv_path_EGREP="$GREP -E"
7325 if test -z "$EGREP"; then
7326 ac_path_EGREP_found=false
7327 # Loop through the user's path and test for each of PROGNAME-LIST
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7332 case $as_dir in #(((
7335 *) as_dir=$as_dir/ ;;
7337 for ac_prog in egrep
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7341 as_fn_executable_p "$ac_path_EGREP" || continue
7342 # Check for GNU ac_path_EGREP and select it if it is found.
7343 # Check for GNU $ac_path_EGREP
7344 case `"$ac_path_EGREP" --version 2>&1` in
7346 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7349 printf %s 0123456789 >"conftest.in"
7352 cat "conftest.in" "conftest.in" >"conftest.tmp"
7353 mv "conftest.tmp" "conftest.in"
7354 cp "conftest.in" "conftest.nl"
7355 printf "%s\n" 'EGREP' >> "conftest.nl"
7356 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7358 as_fn_arith $ac_count + 1 && ac_count=$as_val
7359 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7360 # Best one so far, save it but keep looking for a better one
7361 ac_cv_path_EGREP="$ac_path_EGREP"
7362 ac_path_EGREP_max=$ac_count
7364 # 10*(2^10) chars as input seems more than enough
7365 test $ac_count -gt 10 && break
7367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7370 $ac_path_EGREP_found && break 3
7375 if test -z "$ac_cv_path_EGREP"; then
7376 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7379 ac_cv_path_EGREP=$EGREP
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7385 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7386 EGREP="$ac_cv_path_EGREP"
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7392 printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7402 $EGREP "yes_this_is_aix" >/dev/null 2>&1
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 printf "%s\n" "yes" >&6; }
7407 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 printf "%s\n" "no" >&6; }
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7423 printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7436 force compilation error
7444 if ac_fn_c_try_compile "$LINENO"
7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7448 printf "%s\n" "yes" >&6; }
7449 tmp_thread_safe_initially_defined="yes"
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 printf "%s\n" "no" >&6; }
7455 tmp_thread_safe_initially_defined="no"
7458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7460 if test "$tmp_thread_safe_initially_defined" = "no"; then
7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7462 printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7465 aix[123].* | aix4.[012].*)
7466 tmp_need_thread_safe="no"
7469 tmp_need_thread_safe="yes"
7472 tmp_need_thread_safe="no"
7476 if test "$tmp_need_thread_safe" = "yes"; then
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7478 printf "%s\n" "yes" >&6; }
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 printf "%s\n" "no" >&6; }
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7486 printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7487 if test "$tmp_thread_safe_initially_defined" = "yes" ||
7488 test "$tmp_need_thread_safe" = "yes"; then
7491 printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7493 cat >>confdefs.h <<_EOF
7494 #ifndef _THREAD_SAFE
7495 # define _THREAD_SAFE
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7500 printf "%s\n" "yes" >&6; }
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 printf "%s\n" "no" >&6; }
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7510 printf %s "checking if _REENTRANT is already defined... " >&6; }
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7523 force compilation error
7531 if ac_fn_c_try_compile "$LINENO"
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7535 printf "%s\n" "yes" >&6; }
7536 tmp_reentrant_initially_defined="yes"
7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 printf "%s\n" "no" >&6; }
7542 tmp_reentrant_initially_defined="no"
7545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7547 if test "$tmp_reentrant_initially_defined" = "no"; then
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7549 printf %s "checking if _REENTRANT is actually needed... " >&6; }
7553 tmp_need_reentrant="yes"
7556 tmp_need_reentrant="no"
7560 if test "$tmp_need_reentrant" = "no"; then
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7580 if ac_fn_c_try_compile "$LINENO"
7590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7591 if test "$tmp_errno" = "yes"; then
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7605 force compilation error
7613 if ac_fn_c_try_compile "$LINENO"
7616 tmp_errno="errno_macro_defined"
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7634 force compilation error
7642 if ac_fn_c_try_compile "$LINENO"
7645 tmp_errno="errno_macro_needs_reentrant"
7646 tmp_need_reentrant="yes"
7649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7656 if test "$tmp_need_reentrant" = "no"; then
7658 if test "$tmp_need_reentrant" = "no"; then
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7663 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
7664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7665 #define gmtime_r innocuous_gmtime_r
7667 /* System header to define __stub macros and hopefully few prototypes,
7668 which can conflict with char gmtime_r (); below. */
7673 /* Override any GCC internal prototype to avoid an error.
7674 Use char because int might match the return type of a GCC
7675 builtin and then its argument prototype would still apply. */
7680 /* The GNU C library defines this for functions which it implements
7681 to always fail with ENOSYS. Some functions are actually named
7682 something starting with __ and the normal name is an alias. */
7683 #if defined __stub_gmtime_r || defined __stub___gmtime_r
7696 if ac_fn_c_try_link "$LINENO"
7706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7707 conftest$ac_exeext conftest.$ac_ext
7708 if test "$tmp_gmtime_r" = "yes"; then
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7712 #include <sys/types.h>
7716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7717 $EGREP "gmtime_r" >/dev/null 2>&1
7720 tmp_gmtime_r="proto_declared"
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7728 #include <sys/types.h>
7732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7733 $EGREP "gmtime_r" >/dev/null 2>&1
7736 tmp_gmtime_r="proto_needs_reentrant"
7737 tmp_need_reentrant="yes"
7749 if test "$tmp_need_reentrant" = "no"; then
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7754 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
7755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7756 #define localtime_r innocuous_localtime_r
7758 /* System header to define __stub macros and hopefully few prototypes,
7759 which can conflict with char localtime_r (); below. */
7764 /* Override any GCC internal prototype to avoid an error.
7765 Use char because int might match the return type of a GCC
7766 builtin and then its argument prototype would still apply. */
7770 char localtime_r ();
7771 /* The GNU C library defines this for functions which it implements
7772 to always fail with ENOSYS. Some functions are actually named
7773 something starting with __ and the normal name is an alias. */
7774 #if defined __stub_localtime_r || defined __stub___localtime_r
7781 return localtime_r ();
7787 if ac_fn_c_try_link "$LINENO"
7790 tmp_localtime_r="yes"
7794 tmp_localtime_r="no"
7797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7798 conftest$ac_exeext conftest.$ac_ext
7799 if test "$tmp_localtime_r" = "yes"; then
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7803 #include <sys/types.h>
7807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7808 $EGREP "localtime_r" >/dev/null 2>&1
7811 tmp_localtime_r="proto_declared"
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7819 #include <sys/types.h>
7823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7824 $EGREP "localtime_r" >/dev/null 2>&1
7827 tmp_localtime_r="proto_needs_reentrant"
7828 tmp_need_reentrant="yes"
7840 if test "$tmp_need_reentrant" = "no"; then
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7845 /* Define strerror_r to an innocuous variant, in case <limits.h> declares strerror_r.
7846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7847 #define strerror_r innocuous_strerror_r
7849 /* System header to define __stub macros and hopefully few prototypes,
7850 which can conflict with char strerror_r (); below. */
7855 /* Override any GCC internal prototype to avoid an error.
7856 Use char because int might match the return type of a GCC
7857 builtin and then its argument prototype would still apply. */
7862 /* The GNU C library defines this for functions which it implements
7863 to always fail with ENOSYS. Some functions are actually named
7864 something starting with __ and the normal name is an alias. */
7865 #if defined __stub_strerror_r || defined __stub___strerror_r
7872 return strerror_r ();
7878 if ac_fn_c_try_link "$LINENO"
7881 tmp_strerror_r="yes"
7888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7889 conftest$ac_exeext conftest.$ac_ext
7890 if test "$tmp_strerror_r" = "yes"; then
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7894 #include <sys/types.h>
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899 $EGREP "strerror_r" >/dev/null 2>&1
7902 tmp_strerror_r="proto_declared"
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7910 #include <sys/types.h>
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915 $EGREP "strerror_r" >/dev/null 2>&1
7918 tmp_strerror_r="proto_needs_reentrant"
7919 tmp_need_reentrant="yes"
7931 if test "$tmp_need_reentrant" = "no"; then
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7936 /* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
7937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7938 #define strtok_r innocuous_strtok_r
7940 /* System header to define __stub macros and hopefully few prototypes,
7941 which can conflict with char strtok_r (); below. */
7946 /* Override any GCC internal prototype to avoid an error.
7947 Use char because int might match the return type of a GCC
7948 builtin and then its argument prototype would still apply. */
7953 /* The GNU C library defines this for functions which it implements
7954 to always fail with ENOSYS. Some functions are actually named
7955 something starting with __ and the normal name is an alias. */
7956 #if defined __stub_strtok_r || defined __stub___strtok_r
7969 if ac_fn_c_try_link "$LINENO"
7979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7980 conftest$ac_exeext conftest.$ac_ext
7981 if test "$tmp_strtok_r" = "yes"; then
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7985 #include <sys/types.h>
7989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7990 $EGREP "strtok_r" >/dev/null 2>&1
7993 tmp_strtok_r="proto_declared"
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
8001 #include <sys/types.h>
8005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8006 $EGREP "strtok_r" >/dev/null 2>&1
8009 tmp_strtok_r="proto_needs_reentrant"
8010 tmp_need_reentrant="yes"
8022 if test "$tmp_need_reentrant" = "no"; then
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8027 /* Define inet_ntoa_r to an innocuous variant, in case <limits.h> declares inet_ntoa_r.
8028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8029 #define inet_ntoa_r innocuous_inet_ntoa_r
8031 /* System header to define __stub macros and hopefully few prototypes,
8032 which can conflict with char inet_ntoa_r (); below. */
8037 /* Override any GCC internal prototype to avoid an error.
8038 Use char because int might match the return type of a GCC
8039 builtin and then its argument prototype would still apply. */
8043 char inet_ntoa_r ();
8044 /* The GNU C library defines this for functions which it implements
8045 to always fail with ENOSYS. Some functions are actually named
8046 something starting with __ and the normal name is an alias. */
8047 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
8054 return inet_ntoa_r ();
8060 if ac_fn_c_try_link "$LINENO"
8063 tmp_inet_ntoa_r="yes"
8067 tmp_inet_ntoa_r="no"
8070 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8071 conftest$ac_exeext conftest.$ac_ext
8072 if test "$tmp_inet_ntoa_r" = "yes"; then
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8076 #include <sys/types.h>
8077 #include <sys/socket.h>
8078 #include <netinet/in.h>
8079 #include <arpa/inet.h>
8082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8083 $EGREP "inet_ntoa_r" >/dev/null 2>&1
8086 tmp_inet_ntoa_r="proto_declared"
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8094 #include <sys/types.h>
8095 #include <sys/socket.h>
8096 #include <netinet/in.h>
8097 #include <arpa/inet.h>
8100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8101 $EGREP "inet_ntoa_r" >/dev/null 2>&1
8104 tmp_inet_ntoa_r="proto_needs_reentrant"
8105 tmp_need_reentrant="yes"
8117 if test "$tmp_need_reentrant" = "no"; then
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8122 /* Define gethostbyaddr_r to an innocuous variant, in case <limits.h> declares gethostbyaddr_r.
8123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8124 #define gethostbyaddr_r innocuous_gethostbyaddr_r
8126 /* System header to define __stub macros and hopefully few prototypes,
8127 which can conflict with char gethostbyaddr_r (); below. */
8130 #undef gethostbyaddr_r
8132 /* Override any GCC internal prototype to avoid an error.
8133 Use char because int might match the return type of a GCC
8134 builtin and then its argument prototype would still apply. */
8138 char gethostbyaddr_r ();
8139 /* The GNU C library defines this for functions which it implements
8140 to always fail with ENOSYS. Some functions are actually named
8141 something starting with __ and the normal name is an alias. */
8142 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
8149 return gethostbyaddr_r ();
8155 if ac_fn_c_try_link "$LINENO"
8158 tmp_gethostbyaddr_r="yes"
8162 tmp_gethostbyaddr_r="no"
8165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8166 conftest$ac_exeext conftest.$ac_ext
8167 if test "$tmp_gethostbyaddr_r" = "yes"; then
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8171 #include <sys/types.h>
8175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8176 $EGREP "gethostbyaddr_r" >/dev/null 2>&1
8179 tmp_gethostbyaddr_r="proto_declared"
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8187 #include <sys/types.h>
8191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8192 $EGREP "gethostbyaddr_r" >/dev/null 2>&1
8195 tmp_gethostbyaddr_r="proto_needs_reentrant"
8196 tmp_need_reentrant="yes"
8208 if test "$tmp_need_reentrant" = "no"; then
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8213 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
8214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8215 #define gethostbyname_r innocuous_gethostbyname_r
8217 /* System header to define __stub macros and hopefully few prototypes,
8218 which can conflict with char gethostbyname_r (); below. */
8221 #undef gethostbyname_r
8223 /* Override any GCC internal prototype to avoid an error.
8224 Use char because int might match the return type of a GCC
8225 builtin and then its argument prototype would still apply. */
8229 char gethostbyname_r ();
8230 /* The GNU C library defines this for functions which it implements
8231 to always fail with ENOSYS. Some functions are actually named
8232 something starting with __ and the normal name is an alias. */
8233 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
8240 return gethostbyname_r ();
8246 if ac_fn_c_try_link "$LINENO"
8249 tmp_gethostbyname_r="yes"
8253 tmp_gethostbyname_r="no"
8256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8257 conftest$ac_exeext conftest.$ac_ext
8258 if test "$tmp_gethostbyname_r" = "yes"; then
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8262 #include <sys/types.h>
8266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8267 $EGREP "gethostbyname_r" >/dev/null 2>&1
8270 tmp_gethostbyname_r="proto_declared"
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8278 #include <sys/types.h>
8282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8283 $EGREP "gethostbyname_r" >/dev/null 2>&1
8286 tmp_gethostbyname_r="proto_needs_reentrant"
8287 tmp_need_reentrant="yes"
8299 if test "$tmp_need_reentrant" = "no"; then
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8304 /* Define getprotobyname_r to an innocuous variant, in case <limits.h> declares getprotobyname_r.
8305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8306 #define getprotobyname_r innocuous_getprotobyname_r
8308 /* System header to define __stub macros and hopefully few prototypes,
8309 which can conflict with char getprotobyname_r (); below. */
8312 #undef getprotobyname_r
8314 /* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
8320 char getprotobyname_r ();
8321 /* The GNU C library defines this for functions which it implements
8322 to always fail with ENOSYS. Some functions are actually named
8323 something starting with __ and the normal name is an alias. */
8324 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
8331 return getprotobyname_r ();
8337 if ac_fn_c_try_link "$LINENO"
8340 tmp_getprotobyname_r="yes"
8344 tmp_getprotobyname_r="no"
8347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8348 conftest$ac_exeext conftest.$ac_ext
8349 if test "$tmp_getprotobyname_r" = "yes"; then
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8353 #include <sys/types.h>
8357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8358 $EGREP "getprotobyname_r" >/dev/null 2>&1
8361 tmp_getprotobyname_r="proto_declared"
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8369 #include <sys/types.h>
8373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8374 $EGREP "getprotobyname_r" >/dev/null 2>&1
8377 tmp_getprotobyname_r="proto_needs_reentrant"
8378 tmp_need_reentrant="yes"
8390 if test "$tmp_need_reentrant" = "no"; then
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8395 /* Define getservbyport_r to an innocuous variant, in case <limits.h> declares getservbyport_r.
8396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8397 #define getservbyport_r innocuous_getservbyport_r
8399 /* System header to define __stub macros and hopefully few prototypes,
8400 which can conflict with char getservbyport_r (); below. */
8403 #undef getservbyport_r
8405 /* Override any GCC internal prototype to avoid an error.
8406 Use char because int might match the return type of a GCC
8407 builtin and then its argument prototype would still apply. */
8411 char getservbyport_r ();
8412 /* The GNU C library defines this for functions which it implements
8413 to always fail with ENOSYS. Some functions are actually named
8414 something starting with __ and the normal name is an alias. */
8415 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
8422 return getservbyport_r ();
8428 if ac_fn_c_try_link "$LINENO"
8431 tmp_getservbyport_r="yes"
8435 tmp_getservbyport_r="no"
8438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8439 conftest$ac_exeext conftest.$ac_ext
8440 if test "$tmp_getservbyport_r" = "yes"; then
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8444 #include <sys/types.h>
8448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8449 $EGREP "getservbyport_r" >/dev/null 2>&1
8452 tmp_getservbyport_r="proto_declared"
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8460 #include <sys/types.h>
8464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8465 $EGREP "getservbyport_r" >/dev/null 2>&1
8468 tmp_getservbyport_r="proto_needs_reentrant"
8469 tmp_need_reentrant="yes"
8483 if test "$tmp_need_reentrant" = "yes"; then
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8485 printf "%s\n" "yes" >&6; }
8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 printf "%s\n" "no" >&6; }
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
8493 printf %s "checking if _REENTRANT is onwards defined... " >&6; }
8494 if test "$tmp_reentrant_initially_defined" = "yes" ||
8495 test "$tmp_need_reentrant" = "yes"; then
8498 printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
8500 cat >>confdefs.h <<_EOF
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8507 printf "%s\n" "yes" >&6; }
8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 printf "%s\n" "no" >&6; }
8515 # Check whether --enable-largefile was given.
8516 if test ${enable_largefile+y}
8518 enableval=$enable_largefile;
8521 if test "$enable_largefile" != no; then
8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8524 printf %s "checking for special C compiler options needed for large files... " >&6; }
8525 if test ${ac_cv_sys_largefile_CC+y}
8527 printf %s "(cached) " >&6
8529 ac_cv_sys_largefile_CC=no
8530 if test "$GCC" != yes; then
8533 # IRIX 6.2 and later do not support large files by default,
8534 # so use the C compiler's -n32 option if that helps.
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 #include <sys/types.h>
8538 /* Check that off_t can represent 2**63 - 1 correctly.
8539 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8540 since some C++ compilers masquerading as C compilers
8541 incorrectly reject 9223372036854775807. */
8542 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8544 && LARGE_OFF_T % 2147483647 == 1)
8554 if ac_fn_c_try_compile "$LINENO"
8558 rm -f core conftest.err conftest.$ac_objext conftest.beam
8560 if ac_fn_c_try_compile "$LINENO"
8562 ac_cv_sys_largefile_CC=' -n32'; break
8564 rm -f core conftest.err conftest.$ac_objext conftest.beam
8568 rm -f conftest.$ac_ext
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8572 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8573 if test "$ac_cv_sys_largefile_CC" != no; then
8574 CC=$CC$ac_cv_sys_largefile_CC
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8578 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8579 if test ${ac_cv_sys_file_offset_bits+y}
8581 printf %s "(cached) " >&6
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 #include <sys/types.h>
8587 /* Check that off_t can represent 2**63 - 1 correctly.
8588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8589 since some C++ compilers masquerading as C compilers
8590 incorrectly reject 9223372036854775807. */
8591 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8593 && LARGE_OFF_T % 2147483647 == 1)
8603 if ac_fn_c_try_compile "$LINENO"
8605 ac_cv_sys_file_offset_bits=no; break
8607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 #define _FILE_OFFSET_BITS 64
8611 #include <sys/types.h>
8612 /* Check that off_t can represent 2**63 - 1 correctly.
8613 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8614 since some C++ compilers masquerading as C compilers
8615 incorrectly reject 9223372036854775807. */
8616 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8617 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8618 && LARGE_OFF_T % 2147483647 == 1)
8628 if ac_fn_c_try_compile "$LINENO"
8630 ac_cv_sys_file_offset_bits=64; break
8632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8633 ac_cv_sys_file_offset_bits=unknown
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8638 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8639 case $ac_cv_sys_file_offset_bits in #(
8642 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8646 if test $ac_cv_sys_file_offset_bits = unknown; then
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8648 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8649 if test ${ac_cv_sys_large_files+y}
8651 printf %s "(cached) " >&6
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 #include <sys/types.h>
8657 /* Check that off_t can represent 2**63 - 1 correctly.
8658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8659 since some C++ compilers masquerading as C compilers
8660 incorrectly reject 9223372036854775807. */
8661 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8663 && LARGE_OFF_T % 2147483647 == 1)
8673 if ac_fn_c_try_compile "$LINENO"
8675 ac_cv_sys_large_files=no; break
8677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8680 #define _LARGE_FILES 1
8681 #include <sys/types.h>
8682 /* Check that off_t can represent 2**63 - 1 correctly.
8683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8684 since some C++ compilers masquerading as C compilers
8685 incorrectly reject 9223372036854775807. */
8686 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8688 && LARGE_OFF_T % 2147483647 == 1)
8698 if ac_fn_c_try_compile "$LINENO"
8700 ac_cv_sys_large_files=1; break
8702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8703 ac_cv_sys_large_files=unknown
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8708 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8709 case $ac_cv_sys_large_files in #(
8712 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8723 printf "%s\n" "#define ETC_INET 1" >>confdefs.h
8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8731 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8736 macro_version='2.4.6'
8737 macro_revision='2.4.6'
8752 ltmain=$ac_aux_dir/ltmain.sh
8754 # Backslashify metacharacters that are still active within
8755 # double-quoted strings.
8756 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8758 # Same as above, but do not quote variable references.
8759 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8761 # Sed substitution to delay expansion of an escaped shell variable in a
8762 # double_quote_subst'ed string.
8763 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8765 # Sed substitution to delay expansion of an escaped single quote.
8766 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8768 # Sed substitution to avoid accidental globbing in evaled expressions
8769 no_glob_subst='s/\*/\\\*/g'
8771 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8772 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8773 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8776 printf %s "checking how to print strings... " >&6; }
8777 # Test print first, because it will be a builtin if present.
8778 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8779 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8781 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8784 # Use this function as a fallback that always works.
8785 func_fallback_echo ()
8787 eval 'cat <<_LTECHO_EOF
8791 ECHO='func_fallback_echo'
8794 # func_echo_all arg...
8795 # Invoke $ECHO with all args, space-separated.
8802 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8803 printf "%s\n" "printf" >&6; } ;;
8804 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8805 printf "%s\n" "print -r" >&6; } ;;
8806 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8807 printf "%s\n" "cat" >&6; } ;;
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8824 printf %s "checking for a sed that does not truncate output... " >&6; }
8825 if test ${ac_cv_path_SED+y}
8827 printf %s "(cached) " >&6
8829 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8830 for ac_i in 1 2 3 4 5 6 7; do
8831 ac_script="$ac_script$as_nl$ac_script"
8833 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8834 { ac_script=; unset ac_script;}
8835 if test -z "$SED"; then
8836 ac_path_SED_found=false
8837 # Loop through the user's path and test for each of PROGNAME-LIST
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 case $as_dir in #(((
8845 *) as_dir=$as_dir/ ;;
8847 for ac_prog in sed gsed
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8851 as_fn_executable_p "$ac_path_SED" || continue
8852 # Check for GNU ac_path_SED and select it if it is found.
8853 # Check for GNU $ac_path_SED
8854 case `"$ac_path_SED" --version 2>&1` in
8856 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8859 printf %s 0123456789 >"conftest.in"
8862 cat "conftest.in" "conftest.in" >"conftest.tmp"
8863 mv "conftest.tmp" "conftest.in"
8864 cp "conftest.in" "conftest.nl"
8865 printf "%s\n" '' >> "conftest.nl"
8866 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8868 as_fn_arith $ac_count + 1 && ac_count=$as_val
8869 if test $ac_count -gt ${ac_path_SED_max-0}; then
8870 # Best one so far, save it but keep looking for a better one
8871 ac_cv_path_SED="$ac_path_SED"
8872 ac_path_SED_max=$ac_count
8874 # 10*(2^10) chars as input seems more than enough
8875 test $ac_count -gt 10 && break
8877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8880 $ac_path_SED_found && break 3
8885 if test -z "$ac_cv_path_SED"; then
8886 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8894 printf "%s\n" "$ac_cv_path_SED" >&6; }
8895 SED="$ac_cv_path_SED"
8898 test -z "$SED" && SED=sed
8899 Xsed="$SED -e 1s/^X//"
8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8912 printf %s "checking for fgrep... " >&6; }
8913 if test ${ac_cv_path_FGREP+y}
8915 printf %s "(cached) " >&6
8917 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8918 then ac_cv_path_FGREP="$GREP -F"
8920 if test -z "$FGREP"; then
8921 ac_path_FGREP_found=false
8922 # Loop through the user's path and test for each of PROGNAME-LIST
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8927 case $as_dir in #(((
8930 *) as_dir=$as_dir/ ;;
8932 for ac_prog in fgrep
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8936 as_fn_executable_p "$ac_path_FGREP" || continue
8937 # Check for GNU ac_path_FGREP and select it if it is found.
8938 # Check for GNU $ac_path_FGREP
8939 case `"$ac_path_FGREP" --version 2>&1` in
8941 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8944 printf %s 0123456789 >"conftest.in"
8947 cat "conftest.in" "conftest.in" >"conftest.tmp"
8948 mv "conftest.tmp" "conftest.in"
8949 cp "conftest.in" "conftest.nl"
8950 printf "%s\n" 'FGREP' >> "conftest.nl"
8951 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8953 as_fn_arith $ac_count + 1 && ac_count=$as_val
8954 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8955 # Best one so far, save it but keep looking for a better one
8956 ac_cv_path_FGREP="$ac_path_FGREP"
8957 ac_path_FGREP_max=$ac_count
8959 # 10*(2^10) chars as input seems more than enough
8960 test $ac_count -gt 10 && break
8962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8965 $ac_path_FGREP_found && break 3
8970 if test -z "$ac_cv_path_FGREP"; then
8971 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8974 ac_cv_path_FGREP=$FGREP
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8980 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8981 FGREP="$ac_cv_path_FGREP"
8984 test -z "$GREP" && GREP=grep
9004 # Check whether --with-gnu-ld was given.
9005 if test ${with_gnu_ld+y}
9007 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9013 if test yes = "$GCC"; then
9014 # Check if gcc -print-prog-name=ld gives a path.
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9016 printf %s "checking for ld used by $CC... " >&6; }
9019 # gcc leaves a trailing carriage return, which upsets mingw
9020 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9022 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9025 # Accept absolute paths.
9027 re_direlt='/[^/][^/]*/\.\./'
9028 # Canonicalize the pathname of ld
9029 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9030 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9031 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9033 test -z "$LD" && LD=$ac_prog
9036 # If it fails, then pretend we aren't using GCC.
9040 # If it is relative, then search for the first ld in PATH.
9044 elif test yes = "$with_gnu_ld"; then
9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9046 printf %s "checking for GNU ld... " >&6; }
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9049 printf %s "checking for non-GNU ld... " >&6; }
9051 if test ${lt_cv_path_LD+y}
9053 printf %s "(cached) " >&6
9055 if test -z "$LD"; then
9056 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9057 for ac_dir in $PATH; do
9059 test -z "$ac_dir" && ac_dir=.
9060 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9061 lt_cv_path_LD=$ac_dir/$ac_prog
9062 # Check to see if the program is GNU ld. I'd rather use --version,
9063 # but apparently some variants of GNU ld only accept -v.
9064 # Break only if it was the GNU/non-GNU ld that we prefer.
9065 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9066 *GNU* | *'with BFD'*)
9067 test no != "$with_gnu_ld" && break
9070 test yes != "$with_gnu_ld" && break
9077 lt_cv_path_LD=$LD # Let the user override the test with a path.
9082 if test -n "$LD"; then
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9084 printf "%s\n" "$LD" >&6; }
9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 printf "%s\n" "no" >&6; }
9089 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9091 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9092 if test ${lt_cv_prog_gnu_ld+y}
9094 printf %s "(cached) " >&6
9096 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9097 case `$LD -v 2>&1 </dev/null` in
9098 *GNU* | *'with BFD'*)
9099 lt_cv_prog_gnu_ld=yes
9102 lt_cv_prog_gnu_ld=no
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9107 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9108 with_gnu_ld=$lt_cv_prog_gnu_ld
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9119 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9120 if test ${lt_cv_path_NM+y}
9122 printf %s "(cached) " >&6
9124 if test -n "$NM"; then
9125 # Let the user override the test.
9128 lt_nm_to_check=${ac_tool_prefix}nm
9129 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9130 lt_nm_to_check="$lt_nm_to_check nm"
9132 for lt_tmp_nm in $lt_nm_to_check; do
9133 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9134 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9136 test -z "$ac_dir" && ac_dir=.
9137 tmp_nm=$ac_dir/$lt_tmp_nm
9138 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9139 # Check to see if the nm accepts a BSD-compat flag.
9140 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9141 # nm: unknown option "B" ignored
9142 # Tru64's nm complains that /dev/null is an invalid object file
9143 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9145 mingw*) lt_bad_file=conftest.nm/nofile ;;
9146 *) lt_bad_file=/dev/null ;;
9148 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
9149 *$lt_bad_file* | *'Invalid file or object type'*)
9150 lt_cv_path_NM="$tmp_nm -B"
9154 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9156 lt_cv_path_NM="$tmp_nm -p"
9160 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9161 continue # so that we can try to find one that supports BSD flags
9170 : ${lt_cv_path_NM=no}
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9174 printf "%s\n" "$lt_cv_path_NM" >&6; }
9175 if test no != "$lt_cv_path_NM"; then
9178 # Didn't find any BSD compatible name lister, look for dumpbin.
9179 if test -n "$DUMPBIN"; then :
9180 # Let the user override the test.
9182 if test -n "$ac_tool_prefix"; then
9183 for ac_prog in dumpbin "link -dump"
9185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 printf %s "checking for $ac_word... " >&6; }
9189 if test ${ac_cv_prog_DUMPBIN+y}
9191 printf %s "(cached) " >&6
9193 if test -n "$DUMPBIN"; then
9194 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200 case $as_dir in #(((
9203 *) as_dir=$as_dir/ ;;
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9207 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9217 DUMPBIN=$ac_cv_prog_DUMPBIN
9218 if test -n "$DUMPBIN"; then
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9220 printf "%s\n" "$DUMPBIN" >&6; }
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 printf "%s\n" "no" >&6; }
9227 test -n "$DUMPBIN" && break
9230 if test -z "$DUMPBIN"; then
9231 ac_ct_DUMPBIN=$DUMPBIN
9232 for ac_prog in dumpbin "link -dump"
9234 # Extract the first word of "$ac_prog", so it can be a program name with args.
9235 set dummy $ac_prog; ac_word=$2
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237 printf %s "checking for $ac_word... " >&6; }
9238 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9240 printf %s "(cached) " >&6
9242 if test -n "$ac_ct_DUMPBIN"; then
9243 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249 case $as_dir in #(((
9252 *) as_dir=$as_dir/ ;;
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9256 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9266 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9267 if test -n "$ac_ct_DUMPBIN"; then
9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9269 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 printf "%s\n" "no" >&6; }
9276 test -n "$ac_ct_DUMPBIN" && break
9279 if test "x$ac_ct_DUMPBIN" = x; then
9282 case $cross_compiling:$ac_tool_warned in
9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9285 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9286 ac_tool_warned=yes ;;
9288 DUMPBIN=$ac_ct_DUMPBIN
9292 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
9294 DUMPBIN="$DUMPBIN -symbols -headers"
9302 if test : != "$DUMPBIN"; then
9306 test -z "$NM" && NM=nm
9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9314 printf %s "checking the name lister ($NM) interface... " >&6; }
9315 if test ${lt_cv_nm_interface+y}
9317 printf %s "(cached) " >&6
9319 lt_cv_nm_interface="BSD nm"
9320 echo "int some_variable = 0;" > conftest.$ac_ext
9321 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9322 (eval "$ac_compile" 2>conftest.err)
9323 cat conftest.err >&5
9324 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9325 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9326 cat conftest.err >&5
9327 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9328 cat conftest.out >&5
9329 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9330 lt_cv_nm_interface="MS dumpbin"
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9335 printf "%s\n" "$lt_cv_nm_interface" >&6; }
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9338 printf %s "checking whether ln -s works... " >&6; }
9340 if test "$LN_S" = "ln -s"; then
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9342 printf "%s\n" "yes" >&6; }
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9345 printf "%s\n" "no, using $LN_S" >&6; }
9348 # find the maximum length of command line arguments
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9350 printf %s "checking the maximum length of command line arguments... " >&6; }
9351 if test ${lt_cv_sys_max_cmd_len+y}
9353 printf %s "(cached) " >&6
9360 # On DJGPP, this test can blow up pretty badly due to problems in libc
9361 # (any single argument exceeding 2000 bytes causes a buffer overrun
9362 # during glob expansion). Even if it were fixed, the result of this
9363 # check would be larger than it should be.
9364 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9368 # Under GNU Hurd, this test is not required because there is
9369 # no limit to the length of command line arguments.
9370 # Libtool will interpret -1 as no limit whatsoever
9371 lt_cv_sys_max_cmd_len=-1;
9374 cygwin* | mingw* | cegcc*)
9375 # On Win9x/ME, this test blows up -- it succeeds, but takes
9376 # about 5 minutes as the teststring grows exponentially.
9377 # Worse, since 9x/ME are not pre-emptively multitasking,
9378 # you end up with a "frozen" computer, even though with patience
9379 # the test eventually succeeds (with a max line length of 256k).
9380 # Instead, let's just punt: use the minimum linelength reported by
9381 # all of the supported platforms: 8192 (on NT/2K/XP).
9382 lt_cv_sys_max_cmd_len=8192;
9386 # On MiNT this can take a long time and run out of memory.
9387 lt_cv_sys_max_cmd_len=8192;
9391 # On AmigaOS with pdksh, this test takes hours, literally.
9392 # So we just punt and use a minimum line length of 8192.
9393 lt_cv_sys_max_cmd_len=8192;
9396 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
9397 # This has been around since 386BSD, at least. Likely further.
9398 if test -x /sbin/sysctl; then
9399 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9400 elif test -x /usr/sbin/sysctl; then
9401 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9403 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9405 # And add a safety zone
9406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9411 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9412 lt_cv_sys_max_cmd_len=196608
9416 # The test takes a long time on OS/2.
9417 lt_cv_sys_max_cmd_len=8192
9421 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9422 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9423 # nice to cause kernel panics so lets avoid the loop below.
9424 # First set a reasonable default.
9425 lt_cv_sys_max_cmd_len=16384
9427 if test -x /sbin/sysconfig; then
9428 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9429 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9434 lt_cv_sys_max_cmd_len=102400
9436 sysv5* | sco5v6* | sysv4.2uw2*)
9437 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9438 if test -n "$kargmax"; then
9439 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9441 lt_cv_sys_max_cmd_len=32768
9445 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9446 if test -n "$lt_cv_sys_max_cmd_len" && \
9447 test undefined != "$lt_cv_sys_max_cmd_len"; then
9448 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9451 # Make teststring a little bigger before we do anything with it.
9452 # a 1K string should be a reasonable start.
9453 for i in 1 2 3 4 5 6 7 8; do
9454 teststring=$teststring$teststring
9456 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9457 # If test is not a shell built-in, we'll probably end up computing a
9458 # maximum length that is only half of the actual maximum length, but
9460 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9461 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9462 test 17 != "$i" # 1/2 MB should be enough
9465 teststring=$teststring$teststring
9467 # Only check the string length outside the loop.
9468 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9470 # Add a significant safety factor because C++ compilers can tack on
9471 # massive amounts of additional arguments before passing them to the
9472 # linker. It appears as though 1/2 is a usable value.
9473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9480 if test -n "$lt_cv_sys_max_cmd_len"; then
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9482 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9485 printf "%s\n" "none" >&6; }
9487 max_cmd_len=$lt_cv_sys_max_cmd_len
9498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9508 # test EBCDIC or ASCII
9509 case `echo X|tr X '\101'` in
9510 A) # ASCII based system
9511 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9512 lt_SP2NL='tr \040 \012'
9513 lt_NL2SP='tr \015\012 \040\040'
9515 *) # EBCDIC based system
9516 lt_SP2NL='tr \100 \n'
9517 lt_NL2SP='tr \r\n \100\100'
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9530 printf %s "checking how to convert $build file names to $host format... " >&6; }
9531 if test ${lt_cv_to_host_file_cmd+y}
9533 printf %s "(cached) " >&6
9538 *-*-mingw* ) # actually msys
9539 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9542 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9544 * ) # otherwise, assume *nix
9545 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9551 *-*-mingw* ) # actually msys
9552 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9555 lt_cv_to_host_file_cmd=func_convert_file_noop
9557 * ) # otherwise, assume *nix
9558 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9562 * ) # unhandled hosts (and "normal" native builds)
9563 lt_cv_to_host_file_cmd=func_convert_file_noop
9569 to_host_file_cmd=$lt_cv_to_host_file_cmd
9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9571 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9578 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9579 if test ${lt_cv_to_tool_file_cmd+y}
9581 printf %s "(cached) " >&6
9583 #assume ordinary cross tools, or native build.
9584 lt_cv_to_tool_file_cmd=func_convert_file_noop
9588 *-*-mingw* ) # actually msys
9589 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9597 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9599 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9606 printf %s "checking for $LD option to reload object files... " >&6; }
9607 if test ${lt_cv_ld_reload_flag+y}
9609 printf %s "(cached) " >&6
9611 lt_cv_ld_reload_flag='-r'
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9614 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9615 reload_flag=$lt_cv_ld_reload_flag
9616 case $reload_flag in
9618 *) reload_flag=" $reload_flag" ;;
9620 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9622 cygwin* | mingw* | pw32* | cegcc*)
9623 if test yes != "$GCC"; then
9628 if test yes = "$GCC"; then
9629 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9631 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9644 if test -n "$ac_tool_prefix"; then
9645 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9646 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 printf %s "checking for $ac_word... " >&6; }
9649 if test ${ac_cv_prog_OBJDUMP+y}
9651 printf %s "(cached) " >&6
9653 if test -n "$OBJDUMP"; then
9654 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660 case $as_dir in #(((
9663 *) as_dir=$as_dir/ ;;
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9667 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9677 OBJDUMP=$ac_cv_prog_OBJDUMP
9678 if test -n "$OBJDUMP"; then
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9680 printf "%s\n" "$OBJDUMP" >&6; }
9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 printf "%s\n" "no" >&6; }
9688 if test -z "$ac_cv_prog_OBJDUMP"; then
9689 ac_ct_OBJDUMP=$OBJDUMP
9690 # Extract the first word of "objdump", so it can be a program name with args.
9691 set dummy objdump; ac_word=$2
9692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9693 printf %s "checking for $ac_word... " >&6; }
9694 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9696 printf %s "(cached) " >&6
9698 if test -n "$ac_ct_OBJDUMP"; then
9699 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705 case $as_dir in #(((
9708 *) as_dir=$as_dir/ ;;
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9712 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9722 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9723 if test -n "$ac_ct_OBJDUMP"; then
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9725 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 printf "%s\n" "no" >&6; }
9731 if test "x$ac_ct_OBJDUMP" = x; then
9734 case $cross_compiling:$ac_tool_warned in
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9738 ac_tool_warned=yes ;;
9740 OBJDUMP=$ac_ct_OBJDUMP
9743 OBJDUMP="$ac_cv_prog_OBJDUMP"
9746 test -z "$OBJDUMP" && OBJDUMP=objdump
9753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9754 printf %s "checking how to recognize dependent libraries... " >&6; }
9755 if test ${lt_cv_deplibs_check_method+y}
9757 printf %s "(cached) " >&6
9759 lt_cv_file_magic_cmd='$MAGIC_CMD'
9760 lt_cv_file_magic_test_file=
9761 lt_cv_deplibs_check_method='unknown'
9762 # Need to set the preceding variable on all platforms that support
9763 # interlibrary dependencies.
9764 # 'none' -- dependencies not supported.
9765 # 'unknown' -- same as none, but documents that we really don't know.
9766 # 'pass_all' -- all dependencies passed with no checks.
9767 # 'test_compile' -- check by making test program.
9768 # 'file_magic [[regex]]' -- check by looking for files in library path
9769 # that responds to the $file_magic_cmd with a given extended regex.
9770 # If you have 'file' or equivalent on your system and you're not sure
9771 # whether 'pass_all' will *always* work, you probably want this one.
9775 lt_cv_deplibs_check_method=pass_all
9779 lt_cv_deplibs_check_method=pass_all
9783 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9784 lt_cv_file_magic_cmd='/usr/bin/file -L'
9785 lt_cv_file_magic_test_file=/shlib/libc.so
9789 # func_win32_libid is a shell function defined in ltmain.sh
9790 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9791 lt_cv_file_magic_cmd='func_win32_libid'
9795 # Base MSYS/MinGW do not provide the 'file' command needed by
9796 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9797 # unless we find 'file', for example because we are cross-compiling.
9798 if ( file / ) >/dev/null 2>&1; then
9799 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9800 lt_cv_file_magic_cmd='func_win32_libid'
9802 # Keep this pattern in sync with the one in func_win32_libid.
9803 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9804 lt_cv_file_magic_cmd='$OBJDUMP -f'
9809 # use the weaker test based on 'objdump'. See mingw*.
9810 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9811 lt_cv_file_magic_cmd='$OBJDUMP -f'
9814 darwin* | rhapsody*)
9815 lt_cv_deplibs_check_method=pass_all
9818 freebsd* | dragonfly*)
9819 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9822 # Not sure whether the presence of OpenBSD here was a mistake.
9823 # Let's accept both of them until this is cleared up.
9824 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9825 lt_cv_file_magic_cmd=/usr/bin/file
9826 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9830 lt_cv_deplibs_check_method=pass_all
9835 lt_cv_deplibs_check_method=pass_all
9838 hpux10.20* | hpux11*)
9839 lt_cv_file_magic_cmd=/usr/bin/file
9842 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9843 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9846 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]'
9847 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9850 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9851 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9857 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9861 irix5* | irix6* | nonstopux*)
9863 *-32|*"-32 ") libmagic=32-bit;;
9864 *-n32|*"-n32 ") libmagic=N32;;
9865 *-64|*"-64 ") libmagic=64-bit;;
9866 *) libmagic=never-match;;
9868 lt_cv_deplibs_check_method=pass_all
9871 # This must be glibc/ELF.
9872 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9873 lt_cv_deplibs_check_method=pass_all
9876 netbsd* | netbsdelf*-gnu)
9877 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9886 lt_cv_file_magic_cmd=/usr/bin/file
9887 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9891 lt_cv_deplibs_check_method=pass_all
9895 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9902 osf3* | osf4* | osf5*)
9903 lt_cv_deplibs_check_method=pass_all
9907 lt_cv_deplibs_check_method=pass_all
9911 lt_cv_deplibs_check_method=pass_all
9914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9915 lt_cv_deplibs_check_method=pass_all
9919 case $host_vendor in
9921 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]'
9922 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9925 lt_cv_deplibs_check_method=pass_all
9928 lt_cv_file_magic_cmd='/bin/file'
9929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9932 lt_cv_file_magic_cmd='/bin/file'
9933 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9934 lt_cv_file_magic_test_file=/lib/libc.so
9937 lt_cv_deplibs_check_method=pass_all
9940 lt_cv_deplibs_check_method=pass_all
9946 lt_cv_deplibs_check_method=pass_all
9949 lt_cv_deplibs_check_method=pass_all
9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9955 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9959 if test "$build" = "$host"; then
9962 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9965 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9971 file_magic_cmd=$lt_cv_file_magic_cmd
9972 deplibs_check_method=$lt_cv_deplibs_check_method
9973 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9996 if test -n "$ac_tool_prefix"; then
9997 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9998 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 printf %s "checking for $ac_word... " >&6; }
10001 if test ${ac_cv_prog_DLLTOOL+y}
10003 printf %s "(cached) " >&6
10005 if test -n "$DLLTOOL"; then
10006 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009 for as_dir in $PATH
10012 case $as_dir in #(((
10015 *) as_dir=$as_dir/ ;;
10017 for ac_exec_ext in '' $ac_executable_extensions; do
10018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10019 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10029 DLLTOOL=$ac_cv_prog_DLLTOOL
10030 if test -n "$DLLTOOL"; then
10031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10032 printf "%s\n" "$DLLTOOL" >&6; }
10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 printf "%s\n" "no" >&6; }
10040 if test -z "$ac_cv_prog_DLLTOOL"; then
10041 ac_ct_DLLTOOL=$DLLTOOL
10042 # Extract the first word of "dlltool", so it can be a program name with args.
10043 set dummy dlltool; ac_word=$2
10044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 printf %s "checking for $ac_word... " >&6; }
10046 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10048 printf %s "(cached) " >&6
10050 if test -n "$ac_ct_DLLTOOL"; then
10051 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10057 case $as_dir in #(((
10060 *) as_dir=$as_dir/ ;;
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10064 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10074 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10075 if test -n "$ac_ct_DLLTOOL"; then
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10077 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 printf "%s\n" "no" >&6; }
10083 if test "x$ac_ct_DLLTOOL" = x; then
10086 case $cross_compiling:$ac_tool_warned in
10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10089 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10090 ac_tool_warned=yes ;;
10092 DLLTOOL=$ac_ct_DLLTOOL
10095 DLLTOOL="$ac_cv_prog_DLLTOOL"
10098 test -z "$DLLTOOL" && DLLTOOL=dlltool
10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10107 printf %s "checking how to associate runtime and link libraries... " >&6; }
10108 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10110 printf %s "(cached) " >&6
10112 lt_cv_sharedlib_from_linklib_cmd='unknown'
10115 cygwin* | mingw* | pw32* | cegcc*)
10116 # two different shell functions defined in ltmain.sh;
10117 # decide which one to use based on capabilities of $DLLTOOL
10118 case `$DLLTOOL --help 2>&1` in
10119 *--identify-strict*)
10120 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10123 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10128 # fallback: assume linklib IS sharedlib
10129 lt_cv_sharedlib_from_linklib_cmd=$ECHO
10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10135 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10136 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10137 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10145 if test -n "$ac_tool_prefix"; then
10148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151 printf %s "checking for $ac_word... " >&6; }
10152 if test ${ac_cv_prog_AR+y}
10154 printf %s "(cached) " >&6
10156 if test -n "$AR"; then
10157 ac_cv_prog_AR="$AR" # Let the user override the test.
10159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160 for as_dir in $PATH
10163 case $as_dir in #(((
10166 *) as_dir=$as_dir/ ;;
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10170 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10181 if test -n "$AR"; then
10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10183 printf "%s\n" "$AR" >&6; }
10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 printf "%s\n" "no" >&6; }
10190 test -n "$AR" && break
10193 if test -z "$AR"; then
10197 # Extract the first word of "$ac_prog", so it can be a program name with args.
10198 set dummy $ac_prog; ac_word=$2
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 printf %s "checking for $ac_word... " >&6; }
10201 if test ${ac_cv_prog_ac_ct_AR+y}
10203 printf %s "(cached) " >&6
10205 if test -n "$ac_ct_AR"; then
10206 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10212 case $as_dir in #(((
10215 *) as_dir=$as_dir/ ;;
10217 for ac_exec_ext in '' $ac_executable_extensions; do
10218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10219 ac_cv_prog_ac_ct_AR="$ac_prog"
10220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10230 if test -n "$ac_ct_AR"; then
10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10232 printf "%s\n" "$ac_ct_AR" >&6; }
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 printf "%s\n" "no" >&6; }
10239 test -n "$ac_ct_AR" && break
10242 if test "x$ac_ct_AR" = x; then
10245 case $cross_compiling:$ac_tool_warned in
10247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10248 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10249 ac_tool_warned=yes ;;
10268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10269 printf %s "checking for archiver @FILE support... " >&6; }
10270 if test ${lt_cv_ar_at_file+y}
10272 printf %s "(cached) " >&6
10274 lt_cv_ar_at_file=no
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10286 if ac_fn_c_try_compile "$LINENO"
10288 echo conftest.$ac_objext > conftest.lst
10289 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10291 (eval $lt_ar_try) 2>&5
10293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10294 test $ac_status = 0; }
10295 if test 0 -eq "$ac_status"; then
10296 # Ensure the archiver fails upon bogus file names.
10297 rm -f conftest.$ac_objext libconftest.a
10298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10299 (eval $lt_ar_try) 2>&5
10301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10302 test $ac_status = 0; }
10303 if test 0 -ne "$ac_status"; then
10307 rm -f conftest.* libconftest.a
10310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10314 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10316 if test no = "$lt_cv_ar_at_file"; then
10317 archiver_list_spec=
10319 archiver_list_spec=$lt_cv_ar_at_file
10328 if test -n "$ac_tool_prefix"; then
10329 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10330 set dummy ${ac_tool_prefix}strip; ac_word=$2
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332 printf %s "checking for $ac_word... " >&6; }
10333 if test ${ac_cv_prog_STRIP+y}
10335 printf %s "(cached) " >&6
10337 if test -n "$STRIP"; then
10338 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341 for as_dir in $PATH
10344 case $as_dir in #(((
10347 *) as_dir=$as_dir/ ;;
10349 for ac_exec_ext in '' $ac_executable_extensions; do
10350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10351 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10361 STRIP=$ac_cv_prog_STRIP
10362 if test -n "$STRIP"; then
10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10364 printf "%s\n" "$STRIP" >&6; }
10366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367 printf "%s\n" "no" >&6; }
10372 if test -z "$ac_cv_prog_STRIP"; then
10374 # Extract the first word of "strip", so it can be a program name with args.
10375 set dummy strip; ac_word=$2
10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377 printf %s "checking for $ac_word... " >&6; }
10378 if test ${ac_cv_prog_ac_ct_STRIP+y}
10380 printf %s "(cached) " >&6
10382 if test -n "$ac_ct_STRIP"; then
10383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10389 case $as_dir in #(((
10392 *) as_dir=$as_dir/ ;;
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10396 ac_cv_prog_ac_ct_STRIP="strip"
10397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10406 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10407 if test -n "$ac_ct_STRIP"; then
10408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10409 printf "%s\n" "$ac_ct_STRIP" >&6; }
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 printf "%s\n" "no" >&6; }
10415 if test "x$ac_ct_STRIP" = x; then
10418 case $cross_compiling:$ac_tool_warned in
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10421 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10422 ac_tool_warned=yes ;;
10427 STRIP="$ac_cv_prog_STRIP"
10430 test -z "$STRIP" && STRIP=:
10437 if test -n "$ac_tool_prefix"; then
10438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 printf %s "checking for $ac_word... " >&6; }
10442 if test ${ac_cv_prog_RANLIB+y}
10444 printf %s "(cached) " >&6
10446 if test -n "$RANLIB"; then
10447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10453 case $as_dir in #(((
10456 *) as_dir=$as_dir/ ;;
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10460 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10470 RANLIB=$ac_cv_prog_RANLIB
10471 if test -n "$RANLIB"; then
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10473 printf "%s\n" "$RANLIB" >&6; }
10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476 printf "%s\n" "no" >&6; }
10481 if test -z "$ac_cv_prog_RANLIB"; then
10482 ac_ct_RANLIB=$RANLIB
10483 # Extract the first word of "ranlib", so it can be a program name with args.
10484 set dummy ranlib; ac_word=$2
10485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486 printf %s "checking for $ac_word... " >&6; }
10487 if test ${ac_cv_prog_ac_ct_RANLIB+y}
10489 printf %s "(cached) " >&6
10491 if test -n "$ac_ct_RANLIB"; then
10492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495 for as_dir in $PATH
10498 case $as_dir in #(((
10501 *) as_dir=$as_dir/ ;;
10503 for ac_exec_ext in '' $ac_executable_extensions; do
10504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10505 ac_cv_prog_ac_ct_RANLIB="ranlib"
10506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10516 if test -n "$ac_ct_RANLIB"; then
10517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10518 printf "%s\n" "$ac_ct_RANLIB" >&6; }
10520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521 printf "%s\n" "no" >&6; }
10524 if test "x$ac_ct_RANLIB" = x; then
10527 case $cross_compiling:$ac_tool_warned in
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10530 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10531 ac_tool_warned=yes ;;
10533 RANLIB=$ac_ct_RANLIB
10536 RANLIB="$ac_cv_prog_RANLIB"
10539 test -z "$RANLIB" && RANLIB=:
10546 # Determine commands to create old-style static archives.
10547 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10548 old_postinstall_cmds='chmod 644 $oldlib'
10549 old_postuninstall_cmds=
10551 if test -n "$RANLIB"; then
10553 bitrig* | openbsd*)
10554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10557 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10560 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10565 lock_old_archive_extraction=yes ;;
10567 lock_old_archive_extraction=no ;;
10608 # If no C compiler was specified, use CC.
10611 # If no C compiler flags were specified, use CFLAGS.
10612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10614 # Allow CC to be a program name with arguments.
10618 # Check for command to grab the raw symbol name followed by C symbol from nm.
10619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10620 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10621 if test ${lt_cv_sys_global_symbol_pipe+y}
10623 printf %s "(cached) " >&6
10626 # These are sane defaults that work on at least a few old systems.
10627 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10629 # Character class describing NM global symbol codes.
10630 symcode='[BCDEGRST]'
10632 # Regexp to match symbols that can be accessed directly from C.
10633 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10635 # Define system-specific variables.
10640 cygwin* | mingw* | pw32* | cegcc*)
10641 symcode='[ABCDGISTW]'
10644 if test ia64 = "$host_cpu"; then
10645 symcode='[ABCDEGRST]'
10648 irix* | nonstopux*)
10649 symcode='[BCDEGRST]'
10652 symcode='[BCDEGQRST]'
10663 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10671 # If we're using GNU nm, then use its standard symbol codes.
10672 case `$NM -V 2>&1` in
10673 *GNU* | *'with BFD'*)
10674 symcode='[ABCDGIRSTW]' ;;
10677 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10678 # Gets list of data symbols to import.
10679 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10680 # Adjust the below global symbol transforms to fixup imported variables.
10681 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10682 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10683 lt_c_name_lib_hook="\
10684 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10685 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10687 # Disable hooks by default.
10688 lt_cv_sys_global_symbol_to_import=
10691 lt_c_name_lib_hook=
10694 # Transform an extracted symbol line into a proper C declaration.
10695 # Some systems (esp. on ia64) link data and code symbols differently,
10696 # so use this general approach.
10697 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10699 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10700 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10702 # Transform an extracted symbol line into symbol name and symbol address
10703 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10705 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10706 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
10708 # Transform an extracted symbol line into symbol name with lib prefix and
10710 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10711 $lt_c_name_lib_hook\
10712 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10713 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
10714 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10716 # Handle CRLF in mingw tool chain
10720 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10724 # Try without a prefix underscore, then with it.
10725 for ac_symprfx in "" "_"; do
10727 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10728 symxfrm="\\1 $ac_symprfx\\2 \\2"
10730 # Write the raw and C identifiers.
10731 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10732 # Fake it for dumpbin and say T for any non-static function,
10733 # D for any global variable and I for any imported variable.
10734 # Also find C++ and __fastcall symbols from MSVC++,
10735 # which start with @ or ?.
10736 lt_cv_sys_global_symbol_pipe="$AWK '"\
10737 " {last_section=section; section=\$ 3};"\
10738 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10739 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10740 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10741 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10742 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10743 " \$ 0!~/External *\|/{next};"\
10744 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10745 " {if(hide[section]) next};"\
10746 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10747 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10748 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10749 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10750 " ' prfx=^$ac_symprfx"
10752 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10754 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10756 # Check to see that the pipe works correctly.
10760 cat > conftest.$ac_ext <<_LT_EOF
10765 void nm_test_func(void);
10766 void nm_test_func(void){}
10770 int main(){nm_test_var='a';nm_test_func();return(0);}
10773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10774 (eval $ac_compile) 2>&5
10776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10777 test $ac_status = 0; }; then
10778 # Now try to grab the symbols.
10780 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10781 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10782 # Try sorting and uniquifying the output.
10783 if sort "$nlist" | uniq > "$nlist"T; then
10784 mv -f "$nlist"T "$nlist"
10789 # Make sure that we snagged all the symbols we need.
10790 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10791 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10792 cat <<_LT_EOF > conftest.$ac_ext
10793 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10794 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10795 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10796 relocations are performed -- see ld's documentation on pseudo-relocs. */
10797 # define LT_DLSYM_CONST
10798 #elif defined __osf__
10799 /* This system does not cope well with relocations in const data. */
10800 # define LT_DLSYM_CONST
10802 # define LT_DLSYM_CONST const
10810 # Now generate the symbol file.
10811 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10813 cat <<_LT_EOF >> conftest.$ac_ext
10815 /* The mapping between symbol names and symbols. */
10816 LT_DLSYM_CONST struct {
10820 lt__PROGRAM__LTX_preloaded_symbols[] =
10822 { "@PROGRAM@", (void *) 0 },
10824 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10825 cat <<\_LT_EOF >> conftest.$ac_ext
10829 /* This works around a problem in FreeBSD linker */
10830 #ifdef FREEBSD_WORKAROUND
10831 static const void *lt_preloaded_setup() {
10832 return lt__PROGRAM__LTX_preloaded_symbols;
10840 # Now try linking the two files.
10841 mv conftest.$ac_objext conftstm.$ac_objext
10842 lt_globsym_save_LIBS=$LIBS
10843 lt_globsym_save_CFLAGS=$CFLAGS
10844 LIBS=conftstm.$ac_objext
10845 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10847 (eval $ac_link) 2>&5
10849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10853 LIBS=$lt_globsym_save_LIBS
10854 CFLAGS=$lt_globsym_save_CFLAGS
10856 echo "cannot find nm_test_func in $nlist" >&5
10859 echo "cannot find nm_test_var in $nlist" >&5
10862 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10865 echo "$progname: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10868 rm -rf conftest* conftst*
10870 # Do not use the global_symbol_pipe unless it works.
10871 if test yes = "$pipe_works"; then
10874 lt_cv_sys_global_symbol_pipe=
10880 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10881 lt_cv_sys_global_symbol_to_cdecl=
10883 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10885 printf "%s\n" "failed" >&6; }
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10888 printf "%s\n" "ok" >&6; }
10891 # Response file support.
10892 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10893 nm_file_list_spec='@'
10894 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10895 nm_file_list_spec='@'
10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10935 printf %s "checking for sysroot... " >&6; }
10937 # Check whether --with-sysroot was given.
10938 if test ${with_sysroot+y}
10940 withval=$with_sysroot;
10947 case $with_sysroot in #(
10949 if test yes = "$GCC"; then
10950 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10954 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10960 printf "%s\n" "$with_sysroot" >&6; }
10961 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10966 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10973 printf %s "checking for a working dd... " >&6; }
10974 if test ${ac_cv_path_lt_DD+y}
10976 printf %s "(cached) " >&6
10978 printf 0123456789abcdef0123456789abcdef >conftest.i
10979 cat conftest.i conftest.i >conftest2.i
10981 if test -z "$lt_DD"; then
10982 ac_path_lt_DD_found=false
10983 # Loop through the user's path and test for each of PROGNAME-LIST
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10988 case $as_dir in #(((
10991 *) as_dir=$as_dir/ ;;
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10997 as_fn_executable_p "$ac_path_lt_DD" || continue
10998 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10999 cmp -s conftest.i conftest.out \
11000 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11002 $ac_path_lt_DD_found && break 3
11007 if test -z "$ac_cv_path_lt_DD"; then
11011 ac_cv_path_lt_DD=$lt_DD
11014 rm -f conftest.i conftest2.i conftest.out
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11017 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11021 printf %s "checking how to truncate binary pipes... " >&6; }
11022 if test ${lt_cv_truncate_bin+y}
11024 printf %s "(cached) " >&6
11026 printf 0123456789abcdef0123456789abcdef >conftest.i
11027 cat conftest.i conftest.i >conftest2.i
11028 lt_cv_truncate_bin=
11029 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11030 cmp -s conftest.i conftest.out \
11031 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11033 rm -f conftest.i conftest2.i conftest.out
11034 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11037 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11045 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
11046 func_cc_basename ()
11048 for cc_temp in $*""; do
11050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11056 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11059 # Check whether --enable-libtool-lock was given.
11060 if test ${enable_libtool_lock+y}
11062 enableval=$enable_libtool_lock;
11065 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11067 # Some flags need to be propagated to the compiler or linker for good
11071 # Find out what ABI is being produced by ac_compile, and set mode
11072 # options accordingly.
11073 echo 'int i;' > conftest.$ac_ext
11074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11075 (eval $ac_compile) 2>&5
11077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11078 test $ac_status = 0; }; then
11079 case `/usr/bin/file conftest.$ac_objext` in
11091 # Find out what ABI is being produced by ac_compile, and set linker
11092 # options accordingly.
11093 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11095 (eval $ac_compile) 2>&5
11097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11098 test $ac_status = 0; }; then
11099 if test yes = "$lt_cv_prog_gnu_ld"; then
11100 case `/usr/bin/file conftest.$ac_objext` in
11102 LD="${LD-ld} -melf32bsmip"
11105 LD="${LD-ld} -melf32bmipn32"
11108 LD="${LD-ld} -melf64bmip"
11112 case `/usr/bin/file conftest.$ac_objext` in
11129 # Find out what ABI is being produced by ac_compile, and set linker
11130 # options accordingly.
11131 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11133 (eval $ac_compile) 2>&5
11135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11136 test $ac_status = 0; }; then
11138 case `/usr/bin/file conftest.$ac_objext` in
11146 case `/usr/bin/file conftest.$ac_objext` in
11148 emul="${emul}btsmip"
11151 emul="${emul}ltsmip"
11154 case `/usr/bin/file conftest.$ac_objext` in
11159 LD="${LD-ld} -m $emul"
11164 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11165 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11166 # Find out what ABI is being produced by ac_compile, and set linker
11167 # options accordingly. Note that the listed cases only cover the
11168 # situations where additional linker options are needed (such as when
11169 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11170 # vice versa); the common cases where no linker options are needed do
11171 # not appear in the list.
11172 echo 'int i;' > conftest.$ac_ext
11173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11174 (eval $ac_compile) 2>&5
11176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11177 test $ac_status = 0; }; then
11178 case `/usr/bin/file conftest.o` in
11181 x86_64-*kfreebsd*-gnu)
11182 LD="${LD-ld} -m elf_i386_fbsd"
11185 case `/usr/bin/file conftest.o` in
11187 LD="${LD-ld} -m elf32_x86_64"
11190 LD="${LD-ld} -m elf_i386"
11194 powerpc64le-*linux*)
11195 LD="${LD-ld} -m elf32lppclinux"
11198 LD="${LD-ld} -m elf32ppclinux"
11201 LD="${LD-ld} -m elf_s390"
11204 LD="${LD-ld} -m elf32_sparc"
11210 x86_64-*kfreebsd*-gnu)
11211 LD="${LD-ld} -m elf_x86_64_fbsd"
11214 LD="${LD-ld} -m elf_x86_64"
11217 LD="${LD-ld} -m elf64lppc"
11220 LD="${LD-ld} -m elf64ppc"
11222 s390*-*linux*|s390*-*tpf*)
11223 LD="${LD-ld} -m elf64_s390"
11226 LD="${LD-ld} -m elf64_sparc"
11236 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11237 SAVE_CFLAGS=$CFLAGS
11238 CFLAGS="$CFLAGS -belf"
11239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11240 printf %s "checking whether the C compiler needs -belf... " >&6; }
11241 if test ${lt_cv_cc_needs_belf+y}
11243 printf %s "(cached) " >&6
11246 ac_cpp='$CPP $CPPFLAGS'
11247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11262 if ac_fn_c_try_link "$LINENO"
11264 lt_cv_cc_needs_belf=yes
11266 lt_cv_cc_needs_belf=no
11268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11269 conftest$ac_exeext conftest.$ac_ext
11271 ac_cpp='$CPP $CPPFLAGS'
11272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11278 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11279 if test yes != "$lt_cv_cc_needs_belf"; then
11280 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11281 CFLAGS=$SAVE_CFLAGS
11285 # Find out what ABI is being produced by ac_compile, and set linker
11286 # options accordingly.
11287 echo 'int i;' > conftest.$ac_ext
11288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11289 (eval $ac_compile) 2>&5
11291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11292 test $ac_status = 0; }; then
11293 case `/usr/bin/file conftest.o` in
11295 case $lt_cv_prog_gnu_ld in
11298 i?86-*-solaris*|x86_64-*-solaris*)
11299 LD="${LD-ld} -m elf_x86_64"
11302 LD="${LD-ld} -m elf64_sparc"
11305 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11306 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11311 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11323 need_locks=$enable_libtool_lock
11325 if test -n "$ac_tool_prefix"; then
11326 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11327 set dummy ${ac_tool_prefix}mt; ac_word=$2
11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329 printf %s "checking for $ac_word... " >&6; }
11330 if test ${ac_cv_prog_MANIFEST_TOOL+y}
11332 printf %s "(cached) " >&6
11334 if test -n "$MANIFEST_TOOL"; then
11335 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11338 for as_dir in $PATH
11341 case $as_dir in #(((
11344 *) as_dir=$as_dir/ ;;
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11348 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11358 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11359 if test -n "$MANIFEST_TOOL"; then
11360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11361 printf "%s\n" "$MANIFEST_TOOL" >&6; }
11363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 printf "%s\n" "no" >&6; }
11369 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11370 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11371 # Extract the first word of "mt", so it can be a program name with args.
11372 set dummy mt; ac_word=$2
11373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 printf %s "checking for $ac_word... " >&6; }
11375 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11377 printf %s "(cached) " >&6
11379 if test -n "$ac_ct_MANIFEST_TOOL"; then
11380 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH
11386 case $as_dir in #(((
11389 *) as_dir=$as_dir/ ;;
11391 for ac_exec_ext in '' $ac_executable_extensions; do
11392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11393 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11403 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11404 if test -n "$ac_ct_MANIFEST_TOOL"; then
11405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11406 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 printf "%s\n" "no" >&6; }
11412 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11415 case $cross_compiling:$ac_tool_warned in
11417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11418 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11419 ac_tool_warned=yes ;;
11421 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11424 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11427 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11429 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11430 if test ${lt_cv_path_mainfest_tool+y}
11432 printf %s "(cached) " >&6
11434 lt_cv_path_mainfest_tool=no
11435 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11436 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11437 cat conftest.err >&5
11438 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11439 lt_cv_path_mainfest_tool=yes
11443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11444 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11445 if test yes != "$lt_cv_path_mainfest_tool"; then
11455 rhapsody* | darwin*)
11456 if test -n "$ac_tool_prefix"; then
11457 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11458 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 printf %s "checking for $ac_word... " >&6; }
11461 if test ${ac_cv_prog_DSYMUTIL+y}
11463 printf %s "(cached) " >&6
11465 if test -n "$DSYMUTIL"; then
11466 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11472 case $as_dir in #(((
11475 *) as_dir=$as_dir/ ;;
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11479 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11489 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11490 if test -n "$DSYMUTIL"; then
11491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11492 printf "%s\n" "$DSYMUTIL" >&6; }
11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 printf "%s\n" "no" >&6; }
11500 if test -z "$ac_cv_prog_DSYMUTIL"; then
11501 ac_ct_DSYMUTIL=$DSYMUTIL
11502 # Extract the first word of "dsymutil", so it can be a program name with args.
11503 set dummy dsymutil; ac_word=$2
11504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 printf %s "checking for $ac_word... " >&6; }
11506 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11508 printf %s "(cached) " >&6
11510 if test -n "$ac_ct_DSYMUTIL"; then
11511 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11517 case $as_dir in #(((
11520 *) as_dir=$as_dir/ ;;
11522 for ac_exec_ext in '' $ac_executable_extensions; do
11523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11524 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11534 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11535 if test -n "$ac_ct_DSYMUTIL"; then
11536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11537 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540 printf "%s\n" "no" >&6; }
11543 if test "x$ac_ct_DSYMUTIL" = x; then
11546 case $cross_compiling:$ac_tool_warned in
11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11549 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11550 ac_tool_warned=yes ;;
11552 DSYMUTIL=$ac_ct_DSYMUTIL
11555 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11558 if test -n "$ac_tool_prefix"; then
11559 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11560 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 printf %s "checking for $ac_word... " >&6; }
11563 if test ${ac_cv_prog_NMEDIT+y}
11565 printf %s "(cached) " >&6
11567 if test -n "$NMEDIT"; then
11568 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571 for as_dir in $PATH
11574 case $as_dir in #(((
11577 *) as_dir=$as_dir/ ;;
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11581 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11591 NMEDIT=$ac_cv_prog_NMEDIT
11592 if test -n "$NMEDIT"; then
11593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11594 printf "%s\n" "$NMEDIT" >&6; }
11596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 printf "%s\n" "no" >&6; }
11602 if test -z "$ac_cv_prog_NMEDIT"; then
11603 ac_ct_NMEDIT=$NMEDIT
11604 # Extract the first word of "nmedit", so it can be a program name with args.
11605 set dummy nmedit; ac_word=$2
11606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 printf %s "checking for $ac_word... " >&6; }
11608 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11610 printf %s "(cached) " >&6
11612 if test -n "$ac_ct_NMEDIT"; then
11613 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11619 case $as_dir in #(((
11622 *) as_dir=$as_dir/ ;;
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11626 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11636 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11637 if test -n "$ac_ct_NMEDIT"; then
11638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11639 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 printf "%s\n" "no" >&6; }
11645 if test "x$ac_ct_NMEDIT" = x; then
11648 case $cross_compiling:$ac_tool_warned in
11650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11651 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11652 ac_tool_warned=yes ;;
11654 NMEDIT=$ac_ct_NMEDIT
11657 NMEDIT="$ac_cv_prog_NMEDIT"
11660 if test -n "$ac_tool_prefix"; then
11661 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11662 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 printf %s "checking for $ac_word... " >&6; }
11665 if test ${ac_cv_prog_LIPO+y}
11667 printf %s "(cached) " >&6
11669 if test -n "$LIPO"; then
11670 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11676 case $as_dir in #(((
11679 *) as_dir=$as_dir/ ;;
11681 for ac_exec_ext in '' $ac_executable_extensions; do
11682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11683 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11693 LIPO=$ac_cv_prog_LIPO
11694 if test -n "$LIPO"; then
11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11696 printf "%s\n" "$LIPO" >&6; }
11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 printf "%s\n" "no" >&6; }
11704 if test -z "$ac_cv_prog_LIPO"; then
11706 # Extract the first word of "lipo", so it can be a program name with args.
11707 set dummy lipo; ac_word=$2
11708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709 printf %s "checking for $ac_word... " >&6; }
11710 if test ${ac_cv_prog_ac_ct_LIPO+y}
11712 printf %s "(cached) " >&6
11714 if test -n "$ac_ct_LIPO"; then
11715 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11721 case $as_dir in #(((
11724 *) as_dir=$as_dir/ ;;
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11728 ac_cv_prog_ac_ct_LIPO="lipo"
11729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11738 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11739 if test -n "$ac_ct_LIPO"; then
11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11741 printf "%s\n" "$ac_ct_LIPO" >&6; }
11743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 printf "%s\n" "no" >&6; }
11747 if test "x$ac_ct_LIPO" = x; then
11750 case $cross_compiling:$ac_tool_warned in
11752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11753 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11754 ac_tool_warned=yes ;;
11759 LIPO="$ac_cv_prog_LIPO"
11762 if test -n "$ac_tool_prefix"; then
11763 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11764 set dummy ${ac_tool_prefix}otool; ac_word=$2
11765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 printf %s "checking for $ac_word... " >&6; }
11767 if test ${ac_cv_prog_OTOOL+y}
11769 printf %s "(cached) " >&6
11771 if test -n "$OTOOL"; then
11772 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11778 case $as_dir in #(((
11781 *) as_dir=$as_dir/ ;;
11783 for ac_exec_ext in '' $ac_executable_extensions; do
11784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11785 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11795 OTOOL=$ac_cv_prog_OTOOL
11796 if test -n "$OTOOL"; then
11797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11798 printf "%s\n" "$OTOOL" >&6; }
11800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 printf "%s\n" "no" >&6; }
11806 if test -z "$ac_cv_prog_OTOOL"; then
11808 # Extract the first word of "otool", so it can be a program name with args.
11809 set dummy otool; ac_word=$2
11810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 printf %s "checking for $ac_word... " >&6; }
11812 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11814 printf %s "(cached) " >&6
11816 if test -n "$ac_ct_OTOOL"; then
11817 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11823 case $as_dir in #(((
11826 *) as_dir=$as_dir/ ;;
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11830 ac_cv_prog_ac_ct_OTOOL="otool"
11831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11840 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11841 if test -n "$ac_ct_OTOOL"; then
11842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11843 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 printf "%s\n" "no" >&6; }
11849 if test "x$ac_ct_OTOOL" = x; then
11852 case $cross_compiling:$ac_tool_warned in
11854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11855 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11856 ac_tool_warned=yes ;;
11861 OTOOL="$ac_cv_prog_OTOOL"
11864 if test -n "$ac_tool_prefix"; then
11865 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11866 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868 printf %s "checking for $ac_word... " >&6; }
11869 if test ${ac_cv_prog_OTOOL64+y}
11871 printf %s "(cached) " >&6
11873 if test -n "$OTOOL64"; then
11874 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877 for as_dir in $PATH
11880 case $as_dir in #(((
11883 *) as_dir=$as_dir/ ;;
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11887 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11897 OTOOL64=$ac_cv_prog_OTOOL64
11898 if test -n "$OTOOL64"; then
11899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11900 printf "%s\n" "$OTOOL64" >&6; }
11902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 printf "%s\n" "no" >&6; }
11908 if test -z "$ac_cv_prog_OTOOL64"; then
11909 ac_ct_OTOOL64=$OTOOL64
11910 # Extract the first word of "otool64", so it can be a program name with args.
11911 set dummy otool64; ac_word=$2
11912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913 printf %s "checking for $ac_word... " >&6; }
11914 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11916 printf %s "(cached) " >&6
11918 if test -n "$ac_ct_OTOOL64"; then
11919 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11925 case $as_dir in #(((
11928 *) as_dir=$as_dir/ ;;
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11932 ac_cv_prog_ac_ct_OTOOL64="otool64"
11933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11942 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11943 if test -n "$ac_ct_OTOOL64"; then
11944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11945 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 printf "%s\n" "no" >&6; }
11951 if test "x$ac_ct_OTOOL64" = x; then
11954 case $cross_compiling:$ac_tool_warned in
11956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11957 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11958 ac_tool_warned=yes ;;
11960 OTOOL64=$ac_ct_OTOOL64
11963 OTOOL64="$ac_cv_prog_OTOOL64"
11992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11993 printf %s "checking for -single_module linker flag... " >&6; }
11994 if test ${lt_cv_apple_cc_single_mod+y}
11996 printf %s "(cached) " >&6
11998 lt_cv_apple_cc_single_mod=no
11999 if test -z "$LT_MULTI_MODULE"; then
12000 # By default we will add the -single_module flag. You can override
12001 # by either setting the environment variable LT_MULTI_MODULE
12002 # non-empty at configure time, or by adding -multi_module to the
12004 rm -rf libconftest.dylib*
12005 echo "int foo(void){return 1;}" > conftest.c
12006 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12007 -dynamiclib -Wl,-single_module conftest.c" >&5
12008 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12011 # If there is a non-empty error log, and "single_module"
12012 # appears in it, assume the flag caused a linker warning
12013 if test -s conftest.err && $GREP single_module conftest.err; then
12014 cat conftest.err >&5
12015 # Otherwise, if the output was created with a 0 exit code from
12016 # the compiler, it worked.
12017 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12018 lt_cv_apple_cc_single_mod=yes
12020 cat conftest.err >&5
12022 rm -rf libconftest.dylib*
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12027 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12030 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12031 if test ${lt_cv_ld_exported_symbols_list+y}
12033 printf %s "(cached) " >&6
12035 lt_cv_ld_exported_symbols_list=no
12036 save_LDFLAGS=$LDFLAGS
12037 echo "_main" > conftest.sym
12038 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12050 if ac_fn_c_try_link "$LINENO"
12052 lt_cv_ld_exported_symbols_list=yes
12054 lt_cv_ld_exported_symbols_list=no
12056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12057 conftest$ac_exeext conftest.$ac_ext
12058 LDFLAGS=$save_LDFLAGS
12061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12062 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12065 printf %s "checking for -force_load linker flag... " >&6; }
12066 if test ${lt_cv_ld_force_load+y}
12068 printf %s "(cached) " >&6
12070 lt_cv_ld_force_load=no
12071 cat > conftest.c << _LT_EOF
12072 int forced_loaded() { return 2;}
12074 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12075 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12076 echo "$AR cr libconftest.a conftest.o" >&5
12077 $AR cr libconftest.a conftest.o 2>&5
12078 echo "$RANLIB libconftest.a" >&5
12079 $RANLIB libconftest.a 2>&5
12080 cat > conftest.c << _LT_EOF
12081 int main() { return 0;}
12083 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12084 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12086 if test -s conftest.err && $GREP force_load conftest.err; then
12087 cat conftest.err >&5
12088 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12089 lt_cv_ld_force_load=yes
12091 cat conftest.err >&5
12093 rm -f conftest.err libconftest.a conftest conftest.c
12094 rm -rf conftest.dSYM
12097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12098 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12100 rhapsody* | darwin1.[012])
12101 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12103 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12104 darwin*) # darwin 5.x on
12105 # if running on 10.5 or later, the deployment target defaults
12106 # to the OS version, if on x86, and 10.4, the deployment
12107 # target defaults to 10.4. Don't you love it?
12108 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12109 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
12110 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12112 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12114 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12118 if test yes = "$lt_cv_apple_cc_single_mod"; then
12119 _lt_dar_single_mod='$single_module'
12121 if test yes = "$lt_cv_ld_exported_symbols_list"; then
12122 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12124 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12126 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12127 _lt_dsymutil='~$DSYMUTIL $lib || :'
12134 # func_munge_path_list VARIABLE PATH
12135 # -----------------------------------
12136 # VARIABLE is name of variable containing _space_ separated list of
12137 # directories to be munged by the contents of PATH, which is string
12140 # string "DIR[ DIR]" will be prepended to VARIABLE
12142 # string "DIR[ DIR]" will be appended to VARIABLE
12143 # "DIRP[:DIRP]::[DIRA:]DIRA"
12144 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12145 # "DIRA[ DIRA]" will be appended to VARIABLE
12147 # VARIABLE will be replaced by "DIR[ DIR]"
12148 func_munge_path_list ()
12154 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12157 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12160 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12161 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12164 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12169 ac_header= ac_cache=
12170 for ac_item in $ac_header_c_list
12172 if test $ac_cache; then
12173 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
12174 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
12175 printf "%s\n" "#define $ac_item 1" >> confdefs.h
12177 ac_header= ac_cache=
12178 elif test $ac_header; then
12192 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
12195 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
12198 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12200 if test "x$ac_cv_header_dlfcn_h" = xyes
12202 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12208 func_stripname_cnf ()
12211 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12212 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12214 } # func_stripname_cnf
12216 # ------------------------------------ #
12217 # Determine libtool default behavior #
12218 # ------------------------------------ #
12221 # Default behavior is to enable shared and static libraries on systems
12222 # where libtool knows how to build both library versions, and does not
12223 # require separate configuration and build runs for each flavor.
12226 xc_lt_want_enable_shared='yes'
12227 xc_lt_want_enable_static='yes'
12230 # User may have disabled shared or static libraries.
12232 case "x$enable_shared" in # (
12234 xc_lt_want_enable_shared='no'
12237 case "x$enable_static" in # (
12239 xc_lt_want_enable_static='no'
12242 if test "x$xc_lt_want_enable_shared" = 'xno' &&
12243 test "x$xc_lt_want_enable_static" = 'xno'; then
12244 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
12248 # Default behavior on systems that require independent configuration
12249 # and build runs for shared and static is to enable shared libraries
12250 # and disable static ones. On these systems option '--disable-shared'
12251 # must be used in order to build a proper static library.
12254 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
12255 test "x$xc_lt_want_enable_static" = 'xyes'; then
12256 case $host_os in # (
12257 mingw* | pw32* | cegcc* | os2* | aix*)
12258 xc_lt_want_enable_static='no'
12264 # Make libtool aware of current shared and static library preferences
12265 # taking in account that, depending on host characteristics, libtool
12266 # may modify these option preferences later in this configure script.
12269 enable_shared=$xc_lt_want_enable_shared
12270 enable_static=$xc_lt_want_enable_static
12273 # Default behavior is to build PIC objects for shared libraries and
12274 # non-PIC objects for static libraries.
12277 xc_lt_want_with_pic='default'
12280 # User may have specified PIC preference.
12283 case "x$with_pic" in # ((
12285 xc_lt_want_with_pic='no'
12288 xc_lt_want_with_pic='yes'
12293 # Default behavior on some systems where building a shared library out
12294 # of non-PIC compiled objects will fail with following linker error
12295 # "relocation R_X86_64_32 can not be used when making a shared object"
12296 # is to build PIC objects even for static libraries. This behavior may
12297 # be overriden using 'configure --disable-shared --without-pic'.
12300 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
12301 case $host_cpu in # (
12302 x86_64 | amd64 | ia64)
12303 case $host_os in # (
12305 xc_lt_want_with_pic='yes'
12313 # Make libtool aware of current PIC preference taking in account that,
12314 # depending on host characteristics, libtool may modify PIC default
12315 # behavior to fit host system idiosyncrasies later in this script.
12318 with_pic=$xc_lt_want_with_pic
12320 ## ----------------------- ##
12321 ## Start of libtool code ##
12322 ## ----------------------- ##
12328 enable_win32_dll=yes
12331 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12332 if test -n "$ac_tool_prefix"; then
12333 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12334 set dummy ${ac_tool_prefix}as; ac_word=$2
12335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336 printf %s "checking for $ac_word... " >&6; }
12337 if test ${ac_cv_prog_AS+y}
12339 printf %s "(cached) " >&6
12341 if test -n "$AS"; then
12342 ac_cv_prog_AS="$AS" # Let the user override the test.
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12348 case $as_dir in #(((
12351 *) as_dir=$as_dir/ ;;
12353 for ac_exec_ext in '' $ac_executable_extensions; do
12354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12355 ac_cv_prog_AS="${ac_tool_prefix}as"
12356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12366 if test -n "$AS"; then
12367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12368 printf "%s\n" "$AS" >&6; }
12370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371 printf "%s\n" "no" >&6; }
12376 if test -z "$ac_cv_prog_AS"; then
12378 # Extract the first word of "as", so it can be a program name with args.
12379 set dummy as; ac_word=$2
12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381 printf %s "checking for $ac_word... " >&6; }
12382 if test ${ac_cv_prog_ac_ct_AS+y}
12384 printf %s "(cached) " >&6
12386 if test -n "$ac_ct_AS"; then
12387 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12390 for as_dir in $PATH
12393 case $as_dir in #(((
12396 *) as_dir=$as_dir/ ;;
12398 for ac_exec_ext in '' $ac_executable_extensions; do
12399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12400 ac_cv_prog_ac_ct_AS="as"
12401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12410 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12411 if test -n "$ac_ct_AS"; then
12412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12413 printf "%s\n" "$ac_ct_AS" >&6; }
12415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 printf "%s\n" "no" >&6; }
12419 if test "x$ac_ct_AS" = x; then
12422 case $cross_compiling:$ac_tool_warned in
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12425 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12426 ac_tool_warned=yes ;;
12431 AS="$ac_cv_prog_AS"
12434 if test -n "$ac_tool_prefix"; then
12435 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12436 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438 printf %s "checking for $ac_word... " >&6; }
12439 if test ${ac_cv_prog_DLLTOOL+y}
12441 printf %s "(cached) " >&6
12443 if test -n "$DLLTOOL"; then
12444 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH
12450 case $as_dir in #(((
12453 *) as_dir=$as_dir/ ;;
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12457 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12467 DLLTOOL=$ac_cv_prog_DLLTOOL
12468 if test -n "$DLLTOOL"; then
12469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12470 printf "%s\n" "$DLLTOOL" >&6; }
12472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 printf "%s\n" "no" >&6; }
12478 if test -z "$ac_cv_prog_DLLTOOL"; then
12479 ac_ct_DLLTOOL=$DLLTOOL
12480 # Extract the first word of "dlltool", so it can be a program name with args.
12481 set dummy dlltool; ac_word=$2
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 printf %s "checking for $ac_word... " >&6; }
12484 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12486 printf %s "(cached) " >&6
12488 if test -n "$ac_ct_DLLTOOL"; then
12489 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12495 case $as_dir in #(((
12498 *) as_dir=$as_dir/ ;;
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12512 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12513 if test -n "$ac_ct_DLLTOOL"; then
12514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12515 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 printf "%s\n" "no" >&6; }
12521 if test "x$ac_ct_DLLTOOL" = x; then
12524 case $cross_compiling:$ac_tool_warned in
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12527 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12528 ac_tool_warned=yes ;;
12530 DLLTOOL=$ac_ct_DLLTOOL
12533 DLLTOOL="$ac_cv_prog_DLLTOOL"
12536 if test -n "$ac_tool_prefix"; then
12537 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12538 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540 printf %s "checking for $ac_word... " >&6; }
12541 if test ${ac_cv_prog_OBJDUMP+y}
12543 printf %s "(cached) " >&6
12545 if test -n "$OBJDUMP"; then
12546 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12552 case $as_dir in #(((
12555 *) as_dir=$as_dir/ ;;
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12559 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12569 OBJDUMP=$ac_cv_prog_OBJDUMP
12570 if test -n "$OBJDUMP"; then
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12572 printf "%s\n" "$OBJDUMP" >&6; }
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 printf "%s\n" "no" >&6; }
12580 if test -z "$ac_cv_prog_OBJDUMP"; then
12581 ac_ct_OBJDUMP=$OBJDUMP
12582 # Extract the first word of "objdump", so it can be a program name with args.
12583 set dummy objdump; ac_word=$2
12584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12585 printf %s "checking for $ac_word... " >&6; }
12586 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12588 printf %s "(cached) " >&6
12590 if test -n "$ac_ct_OBJDUMP"; then
12591 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12597 case $as_dir in #(((
12600 *) as_dir=$as_dir/ ;;
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12604 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12614 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12615 if test -n "$ac_ct_OBJDUMP"; then
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12617 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 printf "%s\n" "no" >&6; }
12623 if test "x$ac_ct_OBJDUMP" = x; then
12626 case $cross_compiling:$ac_tool_warned in
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12629 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12630 ac_tool_warned=yes ;;
12632 OBJDUMP=$ac_ct_OBJDUMP
12635 OBJDUMP="$ac_cv_prog_OBJDUMP"
12641 test -z "$AS" && AS=as
12647 test -z "$DLLTOOL" && DLLTOOL=dlltool
12653 test -z "$OBJDUMP" && OBJDUMP=objdump
12665 # Check whether --enable-shared was given.
12666 if test ${enable_shared+y}
12668 enableval=$enable_shared; p=${PACKAGE-default}
12670 yes) enable_shared=yes ;;
12671 no) enable_shared=no ;;
12674 # Look at the argument we got. We use all the common list separators.
12675 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12676 for pkg in $enableval; do
12678 if test "X$pkg" = "X$p"; then
12697 # Check whether --enable-static was given.
12698 if test ${enable_static+y}
12700 enableval=$enable_static; p=${PACKAGE-default}
12702 yes) enable_static=yes ;;
12703 no) enable_static=no ;;
12706 # Look at the argument we got. We use all the common list separators.
12707 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12708 for pkg in $enableval; do
12710 if test "X$pkg" = "X$p"; then
12730 # Check whether --with-pic was given.
12731 if test ${with_pic+y}
12733 withval=$with_pic; lt_p=${PACKAGE-default}
12735 yes|no) pic_mode=$withval ;;
12738 # Look at the argument we got. We use all the common list separators.
12739 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12740 for lt_pkg in $withval; do
12742 if test "X$lt_pkg" = "X$lt_p"; then
12760 # Check whether --enable-fast-install was given.
12761 if test ${enable_fast_install+y}
12763 enableval=$enable_fast_install; p=${PACKAGE-default}
12765 yes) enable_fast_install=yes ;;
12766 no) enable_fast_install=no ;;
12768 enable_fast_install=no
12769 # Look at the argument we got. We use all the common list separators.
12770 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12771 for pkg in $enableval; do
12773 if test "X$pkg" = "X$p"; then
12774 enable_fast_install=yes
12781 enable_fast_install=yes
12791 shared_archive_member_spec=
12792 case $host,$enable_shared in
12793 power*-*-aix[5-9]*,yes)
12794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12795 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12797 # Check whether --with-aix-soname was given.
12798 if test ${with_aix_soname+y}
12800 withval=$with_aix_soname; case $withval in
12804 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12807 lt_cv_with_aix_soname=$with_aix_soname
12809 if test ${lt_cv_with_aix_soname+y}
12811 printf %s "(cached) " >&6
12813 lt_cv_with_aix_soname=aix
12816 with_aix_soname=$lt_cv_with_aix_soname
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12820 printf "%s\n" "$with_aix_soname" >&6; }
12821 if test aix != "$with_aix_soname"; then
12822 # For the AIX way of multilib, we name the shared archive member
12823 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12824 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12825 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12826 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12827 if test 64 = "${OBJECT_MODE-32}"; then
12828 shared_archive_member_spec=shr_64
12830 shared_archive_member_spec=shr
12835 with_aix_soname=aix
12848 # This can be used to rebuild libtool when needed
12849 LIBTOOL_DEPS=$ltmain
12851 # Always use our own libtool.
12852 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12883 test -z "$LN_S" && LN_S="ln -s"
12898 if test -n "${ZSH_VERSION+set}"; then
12899 setopt NO_GLOB_SUBST
12902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12903 printf %s "checking for objdir... " >&6; }
12904 if test ${lt_cv_objdir+y}
12906 printf %s "(cached) " >&6
12908 rm -f .libs 2>/dev/null
12909 mkdir .libs 2>/dev/null
12910 if test -d .libs; then
12913 # MS-DOS does not allow filenames that begin with a dot.
12916 rmdir .libs 2>/dev/null
12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12919 printf "%s\n" "$lt_cv_objdir" >&6; }
12920 objdir=$lt_cv_objdir
12926 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12933 # AIX sometimes has problems with the GCC collect2 program. For some
12934 # reason, if we set the COLLECT_NAMES environment variable, the problems
12935 # vanish in a puff of smoke.
12936 if test set != "${COLLECT_NAMES+set}"; then
12938 export COLLECT_NAMES
12943 # Global variables:
12945 can_build_shared=yes
12947 # All known linkers require a '.a' archive for static linking (except MSVC,
12948 # which needs '.lib').
12951 with_gnu_ld=$lt_cv_prog_gnu_ld
12956 # Set sane defaults for various variables
12957 test -z "$CC" && CC=cc
12958 test -z "$LTCC" && LTCC=$CC
12959 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12960 test -z "$LD" && LD=ld
12961 test -z "$ac_objext" && ac_objext=o
12963 func_cc_basename $compiler
12964 cc_basename=$func_cc_basename_result
12967 # Only perform the check for file, if the check method requires it
12968 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12969 case $deplibs_check_method in
12971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12973 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12974 if test ${lt_cv_path_MAGIC_CMD+y}
12976 printf %s "(cached) " >&6
12980 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12983 lt_save_MAGIC_CMD=$MAGIC_CMD
12984 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12985 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12986 for ac_dir in $ac_dummy; do
12988 test -z "$ac_dir" && ac_dir=.
12989 if test -f "$ac_dir/${ac_tool_prefix}file"; then
12990 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12991 if test -n "$file_magic_test_file"; then
12992 case $deplibs_check_method in
12994 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12995 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12996 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12997 $EGREP "$file_magic_regex" > /dev/null; then
13002 *** Warning: the command libtool uses to detect shared libraries,
13003 *** $file_magic_cmd, produces output that libtool cannot recognize.
13004 *** The result is that libtool may fail to recognize shared libraries
13005 *** as such. This will affect the creation of libtool libraries that
13006 *** depend on shared libraries, but programs linked with such libtool
13007 *** libraries will work regardless of this problem. Nevertheless, you
13008 *** may want to report the problem to your system manager and/or to
13009 *** bug-libtool@gnu.org
13019 MAGIC_CMD=$lt_save_MAGIC_CMD
13024 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13025 if test -n "$MAGIC_CMD"; then
13026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13027 printf "%s\n" "$MAGIC_CMD" >&6; }
13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 printf "%s\n" "no" >&6; }
13037 if test -z "$lt_cv_path_MAGIC_CMD"; then
13038 if test -n "$ac_tool_prefix"; then
13039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13040 printf %s "checking for file... " >&6; }
13041 if test ${lt_cv_path_MAGIC_CMD+y}
13043 printf %s "(cached) " >&6
13047 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13050 lt_save_MAGIC_CMD=$MAGIC_CMD
13051 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13053 for ac_dir in $ac_dummy; do
13055 test -z "$ac_dir" && ac_dir=.
13056 if test -f "$ac_dir/file"; then
13057 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13058 if test -n "$file_magic_test_file"; then
13059 case $deplibs_check_method in
13061 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13062 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13063 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13064 $EGREP "$file_magic_regex" > /dev/null; then
13069 *** Warning: the command libtool uses to detect shared libraries,
13070 *** $file_magic_cmd, produces output that libtool cannot recognize.
13071 *** The result is that libtool may fail to recognize shared libraries
13072 *** as such. This will affect the creation of libtool libraries that
13073 *** depend on shared libraries, but programs linked with such libtool
13074 *** libraries will work regardless of this problem. Nevertheless, you
13075 *** may want to report the problem to your system manager and/or to
13076 *** bug-libtool@gnu.org
13086 MAGIC_CMD=$lt_save_MAGIC_CMD
13091 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13092 if test -n "$MAGIC_CMD"; then
13093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13094 printf "%s\n" "$MAGIC_CMD" >&6; }
13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 printf "%s\n" "no" >&6; }
13110 # Use C for the default configuration in the libtool script
13114 ac_cpp='$CPP $CPPFLAGS'
13115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13120 # Source file extension for C test sources.
13123 # Object file extension for compiled C test sources.
13127 # Code to be used in simple compile tests
13128 lt_simple_compile_test_code="int some_variable = 0;"
13130 # Code to be used in simple link tests
13131 lt_simple_link_test_code='int main(){return(0);}'
13139 # If no C compiler was specified, use CC.
13142 # If no C compiler flags were specified, use CFLAGS.
13143 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13145 # Allow CC to be a program name with arguments.
13148 # Save the default compiler, since it gets overwritten when the other
13149 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13150 compiler_DEFAULT=$CC
13152 # save warnings/boilerplate of simple test code
13153 ac_outfile=conftest.$ac_objext
13154 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13155 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13156 _lt_compiler_boilerplate=`cat conftest.err`
13159 ac_outfile=conftest.$ac_objext
13160 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13161 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13162 _lt_linker_boilerplate=`cat conftest.err`
13167 ## There is no encapsulation within the following macros, do not change
13168 ## the running order or otherwise move them around unless you know exactly
13169 ## what you are doing...
13170 if test -n "$compiler"; then
13172 lt_prog_compiler_no_builtin_flag=
13174 if test yes = "$GCC"; then
13175 case $cc_basename in
13177 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13179 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13183 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13184 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13186 printf %s "(cached) " >&6
13188 lt_cv_prog_compiler_rtti_exceptions=no
13189 ac_outfile=conftest.$ac_objext
13190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13191 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
13192 # Insert the option either (1) after the last *FLAGS variable, or
13193 # (2) before a word containing "conftest.", or (3) at the end.
13194 # Note that $ac_compile itself does not contain backslashes and begins
13195 # with a dollar sign (not a hyphen), so the echo should work correctly.
13196 # The option is referenced via a variable to avoid confusing sed.
13197 lt_compile=`echo "$ac_compile" | $SED \
13198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13200 -e 's:$: $lt_compiler_flag:'`
13201 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13202 (eval "$lt_compile" 2>conftest.err)
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 if (exit $ac_status) && test -s "$ac_outfile"; then
13207 # The compiler can only warn and ignore the option if not recognized
13208 # So say no if there are warnings other than the usual output.
13209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13211 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13212 lt_cv_prog_compiler_rtti_exceptions=yes
13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13219 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13221 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13222 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13234 lt_prog_compiler_wl=
13235 lt_prog_compiler_pic=
13236 lt_prog_compiler_static=
13239 if test yes = "$GCC"; then
13240 lt_prog_compiler_wl='-Wl,'
13241 lt_prog_compiler_static='-static'
13245 # All AIX code is PIC.
13246 if test ia64 = "$host_cpu"; then
13247 # AIX 5 now supports IA64 processor
13248 lt_prog_compiler_static='-Bstatic'
13250 lt_prog_compiler_pic='-fPIC'
13256 # see comment about AmigaOS4 .so support
13257 lt_prog_compiler_pic='-fPIC'
13260 # FIXME: we need at least 68020 code to build shared libraries, but
13261 # adding the '-m68020' flag to GCC prevents building anything better,
13263 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13268 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13269 # PIC is the default for these OSes.
13272 mingw* | cygwin* | pw32* | os2* | cegcc*)
13273 # This hack is so that the source file can tell whether it is being
13274 # built for inclusion in a dll (and should export symbols for example).
13275 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13276 # (--disable-auto-import) libraries
13277 lt_prog_compiler_pic='-DDLL_EXPORT'
13280 lt_prog_compiler_static='$wl-static'
13285 darwin* | rhapsody*)
13286 # PIC is the default on this platform
13287 # Common symbols not allowed in MH_DYLIB files
13288 lt_prog_compiler_pic='-fno-common'
13292 # PIC is the default for Haiku.
13293 # The "-static" flag exists, but is broken.
13294 lt_prog_compiler_static=
13298 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13299 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13300 # sets the default TLS model and affects inlining.
13306 lt_prog_compiler_pic='-fPIC'
13312 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13313 # Instead, we relocate shared libraries at runtime.
13317 # Just because we use GCC doesn't mean we suddenly get shared libraries
13318 # on systems that don't support them.
13319 lt_prog_compiler_can_build_shared=no
13324 # QNX uses GNU C++, but need to define -shared option too, otherwise
13325 # it will coredump.
13326 lt_prog_compiler_pic='-fPIC -shared'
13330 if test -d /usr/nec; then
13331 lt_prog_compiler_pic=-Kconform_pic
13336 lt_prog_compiler_pic='-fPIC'
13340 case $cc_basename in
13341 nvcc*) # Cuda Compiler Driver 2.2
13342 lt_prog_compiler_wl='-Xlinker '
13343 if test -n "$lt_prog_compiler_pic"; then
13344 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13349 # PORTME Check for flag to pass linker flags through the system compiler.
13352 lt_prog_compiler_wl='-Wl,'
13353 if test ia64 = "$host_cpu"; then
13354 # AIX 5 now supports IA64 processor
13355 lt_prog_compiler_static='-Bstatic'
13357 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13361 darwin* | rhapsody*)
13362 # PIC is the default on this platform
13363 # Common symbols not allowed in MH_DYLIB files
13364 lt_prog_compiler_pic='-fno-common'
13365 case $cc_basename in
13367 # NAG Fortran compiler
13368 lt_prog_compiler_wl='-Wl,-Wl,,'
13369 lt_prog_compiler_pic='-PIC'
13370 lt_prog_compiler_static='-Bstatic'
13375 mingw* | cygwin* | pw32* | os2* | cegcc*)
13376 # This hack is so that the source file can tell whether it is being
13377 # built for inclusion in a dll (and should export symbols for example).
13378 lt_prog_compiler_pic='-DDLL_EXPORT'
13381 lt_prog_compiler_static='$wl-static'
13386 hpux9* | hpux10* | hpux11*)
13387 lt_prog_compiler_wl='-Wl,'
13388 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13389 # not for PA HP-UX.
13395 lt_prog_compiler_pic='+Z'
13398 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13399 lt_prog_compiler_static='$wl-a ${wl}archive'
13402 irix5* | irix6* | nonstopux*)
13403 lt_prog_compiler_wl='-Wl,'
13404 # PIC (with -KPIC) is the default.
13405 lt_prog_compiler_static='-non_shared'
13408 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13409 case $cc_basename in
13410 # old Intel for x86_64, which still supported -KPIC.
13412 lt_prog_compiler_wl='-Wl,'
13413 lt_prog_compiler_pic='-KPIC'
13414 lt_prog_compiler_static='-static'
13416 # flang / f18. f95 an alias for gfortran or flang on Debian
13417 flang* | f18* | f95*)
13418 lt_prog_compiler_wl='-Wl,'
13419 lt_prog_compiler_pic='-fPIC'
13420 lt_prog_compiler_static='-static'
13422 # icc used to be incompatible with GCC.
13423 # ICC 10 doesn't accept -KPIC any more.
13425 lt_prog_compiler_wl='-Wl,'
13426 lt_prog_compiler_pic='-fPIC'
13427 lt_prog_compiler_static='-static'
13429 # Lahey Fortran 8.1.
13431 lt_prog_compiler_wl='-Wl,'
13432 lt_prog_compiler_pic='--shared'
13433 lt_prog_compiler_static='--static'
13436 # NAG Fortran compiler
13437 lt_prog_compiler_wl='-Wl,-Wl,,'
13438 lt_prog_compiler_pic='-PIC'
13439 lt_prog_compiler_static='-Bstatic'
13442 # Fabrice Bellard et al's Tiny C Compiler
13443 lt_prog_compiler_wl='-Wl,'
13444 lt_prog_compiler_pic='-fPIC'
13445 lt_prog_compiler_static='-static'
13447 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13448 # Portland Group compilers (*not* the Pentium gcc compiler,
13449 # which looks to be a dead project)
13450 lt_prog_compiler_wl='-Wl,'
13451 lt_prog_compiler_pic='-fpic'
13452 lt_prog_compiler_static='-Bstatic'
13455 lt_prog_compiler_wl='-Wl,'
13456 # All Alpha code is PIC.
13457 lt_prog_compiler_static='-non_shared'
13459 xl* | bgxl* | bgf* | mpixl*)
13460 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13461 lt_prog_compiler_wl='-Wl,'
13462 lt_prog_compiler_pic='-qpic'
13463 lt_prog_compiler_static='-qstaticlink'
13466 case `$CC -V 2>&1 | sed 5q` in
13467 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13468 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13469 lt_prog_compiler_pic='-KPIC'
13470 lt_prog_compiler_static='-Bstatic'
13471 lt_prog_compiler_wl=''
13473 *Sun\ F* | *Sun*Fortran*)
13474 lt_prog_compiler_pic='-KPIC'
13475 lt_prog_compiler_static='-Bstatic'
13476 lt_prog_compiler_wl='-Qoption ld '
13480 lt_prog_compiler_pic='-KPIC'
13481 lt_prog_compiler_static='-Bstatic'
13482 lt_prog_compiler_wl='-Wl,'
13484 *Intel*\ [CF]*Compiler*)
13485 lt_prog_compiler_wl='-Wl,'
13486 lt_prog_compiler_pic='-fPIC'
13487 lt_prog_compiler_static='-static'
13490 lt_prog_compiler_wl='-Wl,'
13491 lt_prog_compiler_pic='-fpic'
13492 lt_prog_compiler_static='-Bstatic'
13500 lt_prog_compiler_pic='-KPIC'
13501 lt_prog_compiler_static='-Bstatic'
13505 # QNX uses GNU C++, but need to define -shared option too, otherwise
13506 # it will coredump.
13507 lt_prog_compiler_pic='-fPIC -shared'
13510 osf3* | osf4* | osf5*)
13511 lt_prog_compiler_wl='-Wl,'
13512 # All OSF/1 code is PIC.
13513 lt_prog_compiler_static='-non_shared'
13517 lt_prog_compiler_static='-non_shared'
13521 lt_prog_compiler_pic='-KPIC'
13522 lt_prog_compiler_static='-Bstatic'
13523 case $cc_basename in
13524 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13525 lt_prog_compiler_wl='-Qoption ld ';;
13527 lt_prog_compiler_wl='-Wl,';;
13532 lt_prog_compiler_wl='-Qoption ld '
13533 lt_prog_compiler_pic='-PIC'
13534 lt_prog_compiler_static='-Bstatic'
13537 sysv4 | sysv4.2uw2* | sysv4.3*)
13538 lt_prog_compiler_wl='-Wl,'
13539 lt_prog_compiler_pic='-KPIC'
13540 lt_prog_compiler_static='-Bstatic'
13544 if test -d /usr/nec; then
13545 lt_prog_compiler_pic='-Kconform_pic'
13546 lt_prog_compiler_static='-Bstatic'
13550 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13551 lt_prog_compiler_wl='-Wl,'
13552 lt_prog_compiler_pic='-KPIC'
13553 lt_prog_compiler_static='-Bstatic'
13557 lt_prog_compiler_wl='-Wl,'
13558 lt_prog_compiler_can_build_shared=no
13562 lt_prog_compiler_pic='-pic'
13563 lt_prog_compiler_static='-Bstatic'
13567 lt_prog_compiler_can_build_shared=no
13573 # For platforms that do not support PIC, -DPIC is meaningless:
13575 lt_prog_compiler_pic=
13578 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13583 printf %s "checking for $compiler option to produce PIC... " >&6; }
13584 if test ${lt_cv_prog_compiler_pic+y}
13586 printf %s "(cached) " >&6
13588 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13591 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13592 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13595 # Check to make sure the PIC flag actually works.
13597 if test -n "$lt_prog_compiler_pic"; then
13598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13599 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13600 if test ${lt_cv_prog_compiler_pic_works+y}
13602 printf %s "(cached) " >&6
13604 lt_cv_prog_compiler_pic_works=no
13605 ac_outfile=conftest.$ac_objext
13606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13607 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13608 # Insert the option either (1) after the last *FLAGS variable, or
13609 # (2) before a word containing "conftest.", or (3) at the end.
13610 # Note that $ac_compile itself does not contain backslashes and begins
13611 # with a dollar sign (not a hyphen), so the echo should work correctly.
13612 # The option is referenced via a variable to avoid confusing sed.
13613 lt_compile=`echo "$ac_compile" | $SED \
13614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13616 -e 's:$: $lt_compiler_flag:'`
13617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13618 (eval "$lt_compile" 2>conftest.err)
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 if (exit $ac_status) && test -s "$ac_outfile"; then
13623 # The compiler can only warn and ignore the option if not recognized
13624 # So say no if there are warnings other than the usual output.
13625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13627 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13628 lt_cv_prog_compiler_pic_works=yes
13634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13635 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13637 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13638 case $lt_prog_compiler_pic in
13640 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13643 lt_prog_compiler_pic=
13644 lt_prog_compiler_can_build_shared=no
13660 # Check to make sure the static flag actually works.
13662 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13664 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13665 if test ${lt_cv_prog_compiler_static_works+y}
13667 printf %s "(cached) " >&6
13669 lt_cv_prog_compiler_static_works=no
13670 save_LDFLAGS=$LDFLAGS
13671 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13672 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13674 # The linker can only warn and ignore the option if not recognized
13675 # So say no if there are warnings
13676 if test -s conftest.err; then
13677 # Append any errors to the config.log.
13678 cat conftest.err 1>&5
13679 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13681 if diff conftest.exp conftest.er2 >/dev/null; then
13682 lt_cv_prog_compiler_static_works=yes
13685 lt_cv_prog_compiler_static_works=yes
13689 LDFLAGS=$save_LDFLAGS
13692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13693 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13695 if test yes = "$lt_cv_prog_compiler_static_works"; then
13698 lt_prog_compiler_static=
13707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13708 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13709 if test ${lt_cv_prog_compiler_c_o+y}
13711 printf %s "(cached) " >&6
13713 lt_cv_prog_compiler_c_o=no
13714 $RM -r conftest 2>/dev/null
13718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13720 lt_compiler_flag="-o out/conftest2.$ac_objext"
13721 # Insert the option either (1) after the last *FLAGS variable, or
13722 # (2) before a word containing "conftest.", or (3) at the end.
13723 # Note that $ac_compile itself does not contain backslashes and begins
13724 # with a dollar sign (not a hyphen), so the echo should work correctly.
13725 lt_compile=`echo "$ac_compile" | $SED \
13726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13728 -e 's:$: $lt_compiler_flag:'`
13729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13730 (eval "$lt_compile" 2>out/conftest.err)
13732 cat out/conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13736 # The compiler can only warn and ignore the option if not recognized
13737 # So say no if there are warnings
13738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13739 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13740 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13741 lt_cv_prog_compiler_c_o=yes
13746 # SGI C++ compiler will create directory out/ii_files/ for
13747 # template instantiation
13748 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13749 $RM out/* && rmdir out
13755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13756 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13764 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13765 if test ${lt_cv_prog_compiler_c_o+y}
13767 printf %s "(cached) " >&6
13769 lt_cv_prog_compiler_c_o=no
13770 $RM -r conftest 2>/dev/null
13774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13776 lt_compiler_flag="-o out/conftest2.$ac_objext"
13777 # Insert the option either (1) after the last *FLAGS variable, or
13778 # (2) before a word containing "conftest.", or (3) at the end.
13779 # Note that $ac_compile itself does not contain backslashes and begins
13780 # with a dollar sign (not a hyphen), so the echo should work correctly.
13781 lt_compile=`echo "$ac_compile" | $SED \
13782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13784 -e 's:$: $lt_compiler_flag:'`
13785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13786 (eval "$lt_compile" 2>out/conftest.err)
13788 cat out/conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13792 # The compiler can only warn and ignore the option if not recognized
13793 # So say no if there are warnings
13794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13797 lt_cv_prog_compiler_c_o=yes
13802 # SGI C++ compiler will create directory out/ii_files/ for
13803 # template instantiation
13804 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13805 $RM out/* && rmdir out
13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13812 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13817 hard_links=nottested
13818 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13819 # do not overwrite the value of need_locks provided by the user
13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13821 printf %s "checking if we can lock with hard links... " >&6; }
13824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13826 ln conftest.a conftest.b 2>&5 || hard_links=no
13827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13829 printf "%s\n" "$hard_links" >&6; }
13830 if test no = "$hard_links"; then
13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13832 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13845 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13848 allow_undefined_flag=
13849 always_export_symbols=no
13851 archive_expsym_cmds=
13852 compiler_needs_object=no
13853 enable_shared_with_static_runtimes=no
13854 export_dynamic_flag_spec=
13855 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13856 hardcode_automatic=no
13858 hardcode_direct_absolute=no
13859 hardcode_libdir_flag_spec=
13860 hardcode_libdir_separator=
13861 hardcode_minus_L=no
13862 hardcode_shlibpath_var=unsupported
13864 link_all_deplibs=unknown
13866 module_expsym_cmds=
13867 old_archive_from_new_cmds=
13868 old_archive_from_expsyms_cmds=
13869 thread_safe_flag_spec=
13870 whole_archive_flag_spec=
13871 # include_expsyms should be a list of space-separated symbols to be *always*
13872 # included in the symbol list
13874 # exclude_expsyms can be an extended regexp of symbols to exclude
13875 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13876 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13877 # as well as any symbol that contains 'd'.
13878 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13879 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13880 # platforms (ab)use it in PIC code, but their linkers get confused if
13881 # the symbol is explicitly referenced. Since portable code cannot
13882 # rely on this symbol name, it's probably fine to never include it in
13883 # preloaded symbol tables.
13884 # Exclude shared library initialization/finalization symbols.
13885 extract_expsyms_cmds=
13888 cygwin* | mingw* | pw32* | cegcc*)
13889 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13890 # When not using gcc, we currently assume that we are using
13891 # Microsoft Visual C++.
13892 if test yes != "$GCC"; then
13897 # we just hope/assume this is gcc and not c89 (= MSVC++)
13900 openbsd* | bitrig*)
13903 linux* | k*bsd*-gnu | gnu*)
13904 link_all_deplibs=no
13910 # On some targets, GNU ld is compatible enough with the native linker
13911 # that we're better off using the native interface for both.
13912 lt_use_gnu_ld_interface=no
13913 if test yes = "$with_gnu_ld"; then
13916 # The AIX port of GNU ld has always aspired to compatibility
13917 # with the native linker. However, as the warning in the GNU ld
13918 # block says, versions before 2.19.5* couldn't really create working
13919 # shared libraries, regardless of the interface used.
13920 case `$LD -v 2>&1` in
13921 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13922 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13923 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13925 lt_use_gnu_ld_interface=yes
13930 lt_use_gnu_ld_interface=yes
13935 if test yes = "$lt_use_gnu_ld_interface"; then
13936 # If archive_cmds runs LD, not CC, wlarc should be empty
13939 # Set some defaults for GNU ld with shared library support. These
13940 # are reset later if shared libraries are not supported. Putting them
13941 # here allows them to be overridden if necessary.
13942 runpath_var=LD_RUN_PATH
13943 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13944 export_dynamic_flag_spec='$wl--export-dynamic'
13945 # ancient GNU ld didn't support --whole-archive et. al.
13946 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13947 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13949 whole_archive_flag_spec=
13951 supports_anon_versioning=no
13952 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13953 *GNU\ gold*) supports_anon_versioning=yes ;;
13954 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13955 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13956 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13957 *\ 2.11.*) ;; # other 2.11 versions
13958 *) supports_anon_versioning=yes ;;
13961 # See if GNU ld supports shared libraries.
13964 # On AIX/PPC, the GNU linker is very broken
13965 if test ia64 != "$host_cpu"; then
13969 *** Warning: the GNU linker, at least up to release 2.19, is reported
13970 *** to be unable to reliably create shared libraries on AIX.
13971 *** Therefore, libtool is disabling shared libraries support. If you
13972 *** really care for shared libraries, you may want to install binutils
13973 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13974 *** You will then need to restart the configuration process.
13983 # see comment about AmigaOS4 .so support
13984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13985 archive_expsym_cmds=''
13988 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)'
13989 hardcode_libdir_flag_spec='-L$libdir'
13990 hardcode_minus_L=yes
13996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13997 allow_undefined_flag=unsupported
13998 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13999 # support --undefined. This deserves some investigation. FIXME
14000 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14006 cygwin* | mingw* | pw32* | cegcc*)
14007 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14008 # as there is no search path for DLLs.
14009 hardcode_libdir_flag_spec='-L$libdir'
14010 export_dynamic_flag_spec='$wl--export-all-symbols'
14011 allow_undefined_flag=unsupported
14012 always_export_symbols=no
14013 enable_shared_with_static_runtimes=yes
14014 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'
14015 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14017 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14019 # If the export-symbols file already is a .def file, use it as
14020 # is; otherwise, prepend EXPORTS...
14021 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14022 cp $export_symbols $output_objdir/$soname.def;
14024 echo EXPORTS > $output_objdir/$soname.def;
14025 cat $export_symbols >> $output_objdir/$soname.def;
14027 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14035 link_all_deplibs=yes
14039 hardcode_libdir_flag_spec='-L$libdir'
14040 hardcode_minus_L=yes
14041 allow_undefined_flag=unsupported
14043 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14044 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14045 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14046 $ECHO EXPORTS >> $output_objdir/$libname.def~
14047 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14048 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14049 emximp -o $lib $output_objdir/$libname.def'
14050 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14051 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14052 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14053 $ECHO EXPORTS >> $output_objdir/$libname.def~
14054 prefix_cmds="$SED"~
14055 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14056 prefix_cmds="$prefix_cmds -e 1d";
14058 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14059 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14060 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14061 emximp -o $lib $output_objdir/$libname.def'
14062 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14063 enable_shared_with_static_runtimes=yes
14068 hardcode_shlibpath_var=no
14069 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14070 export_dynamic_flag_spec='$wl-E'
14071 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14072 # Instead, shared libraries are loaded at an image base (0x10000000 by
14073 # default) and relocated if they conflict, which is a slow very memory
14074 # consuming and fragmenting process. To avoid this, we pick a random,
14075 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14076 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14077 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14078 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'
14081 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14083 if test linux-dietlibc = "$host_os"; then
14084 case $cc_basename in
14085 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14088 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14089 && test no = "$tmp_diet"
14091 tmp_addflag=' $pic_flag'
14092 tmp_sharedflag='-shared'
14093 case $cc_basename,$host_cpu in
14094 pgcc*) # Portland Group C compiler
14095 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'
14096 tmp_addflag=' $pic_flag'
14098 pgf77* | pgf90* | pgf95* | pgfortran*)
14099 # Portland Group f77 and f90 compilers
14100 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'
14101 tmp_addflag=' $pic_flag -Mnomain' ;;
14102 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14103 tmp_addflag=' -i_dynamic' ;;
14104 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14105 tmp_addflag=' -i_dynamic -nofor_main' ;;
14106 ifc* | ifort*) # Intel Fortran compiler
14107 tmp_addflag=' -nofor_main' ;;
14108 lf95*) # Lahey Fortran 8.1
14109 whole_archive_flag_spec=
14110 tmp_sharedflag='--shared' ;;
14111 nagfor*) # NAGFOR 5.3
14112 tmp_sharedflag='-Wl,-shared' ;;
14113 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14114 tmp_sharedflag='-qmkshrobj'
14116 nvcc*) # Cuda Compiler Driver 2.2
14117 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'
14118 compiler_needs_object=yes
14121 case `$CC -V 2>&1 | sed 5q` in
14122 *Sun\ C*) # Sun C 5.9
14123 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'
14124 compiler_needs_object=yes
14125 tmp_sharedflag='-G' ;;
14126 *Sun\ F*) # Sun Fortran 8.3
14127 tmp_sharedflag='-G' ;;
14129 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14131 if test yes = "$supports_anon_versioning"; then
14132 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14134 echo "local: *; };" >> $output_objdir/$libname.ver~
14135 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14138 case $cc_basename in
14140 export_dynamic_flag_spec='-rdynamic'
14142 xlf* | bgf* | bgxlf* | mpixlf*)
14143 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14144 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14145 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14146 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14147 if test yes = "$supports_anon_versioning"; then
14148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14150 echo "local: *; };" >> $output_objdir/$libname.ver~
14151 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14160 netbsd* | netbsdelf*-gnu)
14161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14166 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14171 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14175 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14176 *** create shared libraries on Solaris systems. Therefore, libtool
14177 *** is disabling shared libraries support. We urge you to upgrade GNU
14178 *** binutils to release 2.9.1 or newer. Another option is to modify
14179 *** your PATH or compiler configuration so that the native linker is
14180 *** used, and then restart.
14183 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14184 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14185 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14192 case `$LD -v 2>&1` in
14193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14197 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14198 *** reliably create shared libraries on SCO systems. Therefore, libtool
14199 *** is disabling shared libraries support. We urge you to upgrade GNU
14200 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14201 *** your PATH or compiler configuration so that the native linker is
14202 *** used, and then restart.
14207 # For security reasons, it is highly recommended that you always
14208 # use absolute paths for naming shared libraries, and exclude the
14209 # DT_RUNPATH tag from executables and libraries. But doing so
14210 # requires that you compile everything twice, which is a pain.
14211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14212 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14225 hardcode_direct=yes
14226 hardcode_shlibpath_var=no
14230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14232 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14239 if test no = "$ld_shlibs"; then
14241 hardcode_libdir_flag_spec=
14242 export_dynamic_flag_spec=
14243 whole_archive_flag_spec=
14246 # PORTME fill in a description of your system's linker (not GNU ld)
14249 allow_undefined_flag=unsupported
14250 always_export_symbols=yes
14251 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'
14252 # Note: this linker hardcodes the directories in LIBPATH if there
14253 # are no directories specified by -L.
14254 hardcode_minus_L=yes
14255 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14256 # Neither direct hardcoding nor static linking is supported with a
14258 hardcode_direct=unsupported
14263 if test ia64 = "$host_cpu"; then
14264 # On IA64, the linker does run time linking by default, so we don't
14265 # have to do anything special.
14266 aix_use_runtimelinking=no
14267 exp_sym_flag='-Bexport'
14270 # If we're using GNU nm, then we don't want the "-C" option.
14271 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14272 # Without the "-l" option, or with the "-B" option, AIX nm treats
14273 # weak defined symbols like other global defined symbols, whereas
14274 # GNU nm marks them as "W".
14275 # While the 'weak' keyword is ignored in the Export File, we need
14276 # it in the Import File for the 'aix-soname' feature, so we have
14277 # to replace the "-B" option with "-P" for AIX nm.
14278 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14279 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'
14281 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'
14283 aix_use_runtimelinking=no
14285 # Test if we are trying to use run time linking or normal
14286 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14287 # have runtime linking enabled, and use it for executables.
14288 # For shared libraries, we enable/disable runtime linking
14289 # depending on the kind of the shared library created -
14290 # when "with_aix_soname,aix_use_runtimelinking" is:
14291 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14292 # "aix,yes" lib.so shared, rtl:yes, for executables
14293 # lib.a static archive
14294 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14295 # lib.a(lib.so.V) shared, rtl:no, for executables
14296 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14297 # lib.a(lib.so.V) shared, rtl:no
14298 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14299 # lib.a static archive
14300 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14301 for ld_flag in $LDFLAGS; do
14302 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14303 aix_use_runtimelinking=yes
14307 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14308 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14309 # so we don't have lib.a shared libs to link our executables.
14310 # We have to force runtime linking in this case.
14311 aix_use_runtimelinking=yes
14312 LDFLAGS="$LDFLAGS -Wl,-brtl"
14317 exp_sym_flag='-bexport'
14318 no_entry_flag='-bnoentry'
14321 # When large executables or shared objects are built, AIX ld can
14322 # have problems creating the table of contents. If linking a library
14323 # or program results in "error TOC overflow" add -mminimal-toc to
14324 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14325 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14328 hardcode_direct=yes
14329 hardcode_direct_absolute=yes
14330 hardcode_libdir_separator=':'
14331 link_all_deplibs=yes
14332 file_list_spec='$wl-f,'
14333 case $with_aix_soname,$aix_use_runtimelinking in
14334 aix,*) ;; # traditional, no import file
14335 svr4,* | *,yes) # use import file
14336 # The Import File defines what to hardcode.
14338 hardcode_direct_absolute=no
14342 if test yes = "$GCC"; then
14343 case $host_os in aix4.[012]|aix4.[012].*)
14344 # We only want to do this on AIX 4.2 and lower, the check
14345 # below for broken collect2 doesn't work under 4.3+
14346 collect2name=`$CC -print-prog-name=collect2`
14347 if test -f "$collect2name" &&
14348 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14350 # We have reworked collect2
14353 # We have old collect2
14354 hardcode_direct=unsupported
14355 # It fails to find uninstalled libraries when the uninstalled
14356 # path is not listed in the libpath. Setting hardcode_minus_L
14357 # to unsupported forces relinking
14358 hardcode_minus_L=yes
14359 hardcode_libdir_flag_spec='-L$libdir'
14360 hardcode_libdir_separator=
14364 shared_flag='-shared'
14365 if test yes = "$aix_use_runtimelinking"; then
14366 shared_flag="$shared_flag "'$wl-G'
14368 # Need to ensure runtime linking is disabled for the traditional
14369 # shared library, or the linker may eventually find shared libraries
14370 # /with/ Import File - we do not want to mix them.
14371 shared_flag_aix='-shared'
14372 shared_flag_svr4='-shared $wl-G'
14375 if test ia64 = "$host_cpu"; then
14376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14377 # chokes on -Wl,-G. The following line is correct:
14380 if test yes = "$aix_use_runtimelinking"; then
14381 shared_flag='$wl-G'
14383 shared_flag='$wl-bM:SRE'
14385 shared_flag_aix='$wl-bM:SRE'
14386 shared_flag_svr4='$wl-G'
14390 export_dynamic_flag_spec='$wl-bexpall'
14391 # It seems that -bexpall does not export symbols beginning with
14392 # underscore (_), so it is better to generate a list of symbols to export.
14393 always_export_symbols=yes
14394 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14395 # Warning - without using the other runtime loading flags (-brtl),
14396 # -berok will link without error, but may produce a broken library.
14397 allow_undefined_flag='-berok'
14398 # Determine the default libpath from the value encoded in an
14399 # empty executable.
14400 if test set = "${lt_cv_aix_libpath+set}"; then
14401 aix_libpath=$lt_cv_aix_libpath
14403 if test ${lt_cv_aix_libpath_+y}
14405 printf %s "(cached) " >&6
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14418 if ac_fn_c_try_link "$LINENO"
14421 lt_aix_libpath_sed='
14422 /Import File Strings/,/^$/ {
14424 s/^0 *\([^ ]*\) *$/\1/
14428 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14429 # Check for a 64-bit object if we didn't find anything.
14430 if test -z "$lt_cv_aix_libpath_"; then
14431 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14435 conftest$ac_exeext conftest.$ac_ext
14436 if test -z "$lt_cv_aix_libpath_"; then
14437 lt_cv_aix_libpath_=/usr/lib:/lib
14442 aix_libpath=$lt_cv_aix_libpath_
14445 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14446 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
14448 if test ia64 = "$host_cpu"; then
14449 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14450 allow_undefined_flag="-z nodefs"
14451 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"
14453 # Determine the default libpath from the value encoded in an
14454 # empty executable.
14455 if test set = "${lt_cv_aix_libpath+set}"; then
14456 aix_libpath=$lt_cv_aix_libpath
14458 if test ${lt_cv_aix_libpath_+y}
14460 printf %s "(cached) " >&6
14462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14473 if ac_fn_c_try_link "$LINENO"
14476 lt_aix_libpath_sed='
14477 /Import File Strings/,/^$/ {
14479 s/^0 *\([^ ]*\) *$/\1/
14483 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14484 # Check for a 64-bit object if we didn't find anything.
14485 if test -z "$lt_cv_aix_libpath_"; then
14486 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14490 conftest$ac_exeext conftest.$ac_ext
14491 if test -z "$lt_cv_aix_libpath_"; then
14492 lt_cv_aix_libpath_=/usr/lib:/lib
14497 aix_libpath=$lt_cv_aix_libpath_
14500 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14501 # Warning - without using the other run time loading flags,
14502 # -berok will link without error, but may produce a broken library.
14503 no_undefined_flag=' $wl-bernotok'
14504 allow_undefined_flag=' $wl-berok'
14505 if test yes = "$with_gnu_ld"; then
14506 # We only use this code for GNU lds that support --whole-archive.
14507 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14509 # Exported symbols can be pulled into shared objects from archives
14510 whole_archive_flag_spec='$convenience'
14512 archive_cmds_need_lc=yes
14513 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14514 # -brtl affects multiple linker settings, -berok does not and is overridden later
14515 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14516 if test svr4 != "$with_aix_soname"; then
14517 # This is similar to how AIX traditionally builds its shared libraries.
14518 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'
14520 if test aix != "$with_aix_soname"; then
14521 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'
14523 # used by -dlpreopen to get the symbols
14524 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14526 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14534 # see comment about AmigaOS4 .so support
14535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14536 archive_expsym_cmds=''
14539 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)'
14540 hardcode_libdir_flag_spec='-L$libdir'
14541 hardcode_minus_L=yes
14547 export_dynamic_flag_spec=-rdynamic
14550 cygwin* | mingw* | pw32* | cegcc*)
14551 # When not using gcc, we currently assume that we are using
14552 # Microsoft Visual C++.
14553 # hardcode_libdir_flag_spec is actually meaningless, as there is
14554 # no search path for DLLs.
14555 case $cc_basename in
14558 hardcode_libdir_flag_spec=' '
14559 allow_undefined_flag=unsupported
14560 always_export_symbols=yes
14562 # Tell ltmain to make .lib files, not .a files.
14564 # Tell ltmain to make .dll files, not .so files.
14566 # FIXME: Setting linknames here is a bad hack.
14567 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14568 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14569 cp "$export_symbols" "$output_objdir/$soname.def";
14570 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14572 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14574 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14576 # The linker will not automatically build a static lib if we build a DLL.
14577 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14578 enable_shared_with_static_runtimes=yes
14579 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14580 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14582 old_postinstall_cmds='chmod 644 $oldlib'
14583 postlink_cmds='lt_outputfile="@OUTPUT@"~
14584 lt_tool_outputfile="@TOOL_OUTPUT@"~
14585 case $lt_outputfile in
14588 lt_outputfile=$lt_outputfile.exe
14589 lt_tool_outputfile=$lt_tool_outputfile.exe
14592 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14593 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14594 $RM "$lt_outputfile.manifest";
14598 # Assume MSVC wrapper
14599 hardcode_libdir_flag_spec=' '
14600 allow_undefined_flag=unsupported
14601 # Tell ltmain to make .lib files, not .a files.
14603 # Tell ltmain to make .dll files, not .so files.
14605 # FIXME: Setting linknames here is a bad hack.
14606 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14607 # The linker will automatically build a .lib file if we build a DLL.
14608 old_archive_from_new_cmds='true'
14609 # FIXME: Should let the user specify the lib program.
14610 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14611 enable_shared_with_static_runtimes=yes
14616 darwin* | rhapsody*)
14619 archive_cmds_need_lc=no
14621 hardcode_automatic=yes
14622 hardcode_shlibpath_var=unsupported
14623 if test yes = "$lt_cv_ld_force_load"; then
14624 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\"`'
14627 whole_archive_flag_spec=''
14629 link_all_deplibs=yes
14630 allow_undefined_flag=$_lt_dar_allow_undefined
14631 case $cc_basename in
14632 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14633 *) _lt_dar_can_shared=$GCC ;;
14635 if test yes = "$_lt_dar_can_shared"; then
14636 output_verbose_link_cmd=func_echo_all
14637 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14638 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14639 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"
14640 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"
14649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14650 hardcode_libdir_flag_spec='-L$libdir'
14651 hardcode_shlibpath_var=no
14654 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14655 # support. Future versions do this automatically, but an explicit c++rt0.o
14656 # does not break anything, and helps significantly (at the cost of a little
14659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14660 hardcode_libdir_flag_spec='-R$libdir'
14661 hardcode_direct=yes
14662 hardcode_shlibpath_var=no
14665 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14668 hardcode_direct=yes
14669 hardcode_minus_L=yes
14670 hardcode_shlibpath_var=no
14673 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14674 freebsd* | dragonfly*)
14675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14676 hardcode_libdir_flag_spec='-R$libdir'
14677 hardcode_direct=yes
14678 hardcode_shlibpath_var=no
14682 if test yes = "$GCC"; then
14683 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'
14685 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'
14687 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14688 hardcode_libdir_separator=:
14689 hardcode_direct=yes
14691 # hardcode_minus_L: Not really in the search PATH,
14692 # but as the default location of the library.
14693 hardcode_minus_L=yes
14694 export_dynamic_flag_spec='$wl-E'
14698 if test yes,no = "$GCC,$with_gnu_ld"; then
14699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14701 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14703 if test no = "$with_gnu_ld"; then
14704 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14705 hardcode_libdir_separator=:
14706 hardcode_direct=yes
14707 hardcode_direct_absolute=yes
14708 export_dynamic_flag_spec='$wl-E'
14709 # hardcode_minus_L: Not really in the search PATH,
14710 # but as the default location of the library.
14711 hardcode_minus_L=yes
14716 if test yes,no = "$GCC,$with_gnu_ld"; then
14719 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14722 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14725 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14731 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14734 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14738 # Older versions of the 11.00 compiler do not understand -b yet
14739 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14741 printf %s "checking if $CC understands -b... " >&6; }
14742 if test ${lt_cv_prog_compiler__b+y}
14744 printf %s "(cached) " >&6
14746 lt_cv_prog_compiler__b=no
14747 save_LDFLAGS=$LDFLAGS
14748 LDFLAGS="$LDFLAGS -b"
14749 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14751 # The linker can only warn and ignore the option if not recognized
14752 # So say no if there are warnings
14753 if test -s conftest.err; then
14754 # Append any errors to the config.log.
14755 cat conftest.err 1>&5
14756 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14758 if diff conftest.exp conftest.er2 >/dev/null; then
14759 lt_cv_prog_compiler__b=yes
14762 lt_cv_prog_compiler__b=yes
14766 LDFLAGS=$save_LDFLAGS
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14770 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14772 if test yes = "$lt_cv_prog_compiler__b"; then
14773 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14775 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14781 if test no = "$with_gnu_ld"; then
14782 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14783 hardcode_libdir_separator=:
14788 hardcode_shlibpath_var=no
14791 hardcode_direct=yes
14792 hardcode_direct_absolute=yes
14793 export_dynamic_flag_spec='$wl-E'
14795 # hardcode_minus_L: Not really in the search PATH,
14796 # but as the default location of the library.
14797 hardcode_minus_L=yes
14803 irix5* | irix6* | nonstopux*)
14804 if test yes = "$GCC"; then
14805 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'
14806 # Try to use the -exported_symbol ld option, if it does not
14807 # work, assume that -exports_file does not work either and
14808 # implicitly export all symbols.
14809 # This should be the same for all languages, so no per-tag cache variable.
14810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14811 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14812 if test ${lt_cv_irix_exported_symbol+y}
14814 printf %s "(cached) " >&6
14816 save_LDFLAGS=$LDFLAGS
14817 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820 int foo (void) { return 0; }
14822 if ac_fn_c_try_link "$LINENO"
14824 lt_cv_irix_exported_symbol=yes
14826 lt_cv_irix_exported_symbol=no
14828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14829 conftest$ac_exeext conftest.$ac_ext
14830 LDFLAGS=$save_LDFLAGS
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14833 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14834 if test yes = "$lt_cv_irix_exported_symbol"; then
14835 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'
14837 link_all_deplibs=no
14839 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'
14840 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'
14842 archive_cmds_need_lc='no'
14843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14844 hardcode_libdir_separator=:
14846 link_all_deplibs=yes
14850 case $cc_basename in
14852 # Fabrice Bellard et al's Tiny C Compiler
14854 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14859 netbsd* | netbsdelf*-gnu)
14860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14863 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14865 hardcode_libdir_flag_spec='-R$libdir'
14866 hardcode_direct=yes
14867 hardcode_shlibpath_var=no
14871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872 hardcode_direct=yes
14873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14874 hardcode_libdir_separator=:
14875 hardcode_shlibpath_var=no
14881 openbsd* | bitrig*)
14882 if test -f /usr/libexec/ld.so; then
14883 hardcode_direct=yes
14884 hardcode_shlibpath_var=no
14885 hardcode_direct_absolute=yes
14886 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14888 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14889 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14890 export_dynamic_flag_spec='$wl-E'
14892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14893 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14901 hardcode_libdir_flag_spec='-L$libdir'
14902 hardcode_minus_L=yes
14903 allow_undefined_flag=unsupported
14905 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14906 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14907 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14908 $ECHO EXPORTS >> $output_objdir/$libname.def~
14909 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14910 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14911 emximp -o $lib $output_objdir/$libname.def'
14912 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14913 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14914 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14915 $ECHO EXPORTS >> $output_objdir/$libname.def~
14916 prefix_cmds="$SED"~
14917 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14918 prefix_cmds="$prefix_cmds -e 1d";
14920 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14921 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14922 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14923 emximp -o $lib $output_objdir/$libname.def'
14924 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14925 enable_shared_with_static_runtimes=yes
14929 if test yes = "$GCC"; then
14930 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14931 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'
14933 allow_undefined_flag=' -expect_unresolved \*'
14934 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'
14936 archive_cmds_need_lc='no'
14937 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14938 hardcode_libdir_separator=:
14941 osf4* | osf5*) # as osf3* with the addition of -msym flag
14942 if test yes = "$GCC"; then
14943 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14944 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'
14945 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14947 allow_undefined_flag=' -expect_unresolved \*'
14948 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'
14949 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~
14950 $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'
14952 # Both c and cxx compiler support -rpath directly
14953 hardcode_libdir_flag_spec='-rpath $libdir'
14955 archive_cmds_need_lc='no'
14956 hardcode_libdir_separator=:
14960 no_undefined_flag=' -z defs'
14961 if test yes = "$GCC"; then
14963 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14965 $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'
14967 case `$CC -V 2>&1` in
14970 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14972 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14976 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14977 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14978 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14982 hardcode_libdir_flag_spec='-R$libdir'
14983 hardcode_shlibpath_var=no
14985 solaris2.[0-5] | solaris2.[0-5].*) ;;
14987 # The compiler driver will combine and reorder linker options,
14988 # but understands '-z linker_flag'. GCC discards it without '$wl',
14989 # but is careful enough not to reorder.
14990 # Supported since Solaris 2.6 (maybe 2.5.1?)
14991 if test yes = "$GCC"; then
14992 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14994 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14998 link_all_deplibs=yes
15002 if test sequent = "$host_vendor"; then
15003 # Use $CC to link under sequent, because it throws in some extra .o
15004 # files that make .init and .fini sections work.
15005 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15007 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15009 hardcode_libdir_flag_spec='-L$libdir'
15010 hardcode_direct=yes
15011 hardcode_minus_L=yes
15012 hardcode_shlibpath_var=no
15016 case $host_vendor in
15018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15019 hardcode_direct=yes # is this really true???
15022 ## LD is ld it makes a PLAMLIB
15023 ## CC just makes a GrossModule.
15024 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15025 reload_cmds='$CC -r -o $output$reload_objs'
15029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15030 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15033 runpath_var='LD_RUN_PATH'
15034 hardcode_shlibpath_var=no
15038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15039 hardcode_shlibpath_var=no
15040 export_dynamic_flag_spec='-Bexport'
15044 if test -d /usr/nec; then
15045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046 hardcode_shlibpath_var=no
15047 runpath_var=LD_RUN_PATH
15048 hardcode_runpath_var=yes
15053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15054 no_undefined_flag='$wl-z,text'
15055 archive_cmds_need_lc=no
15056 hardcode_shlibpath_var=no
15057 runpath_var='LD_RUN_PATH'
15059 if test yes = "$GCC"; then
15060 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15061 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15063 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15068 sysv5* | sco3.2v5* | sco5v6*)
15069 # Note: We CANNOT use -z defs as we might desire, because we do not
15070 # link with -lc, and that would cause any symbols used from libc to
15071 # always be unresolved, which means just about no library would
15072 # ever link correctly. If we're not using GNU ld we use -z text
15073 # though, which does catch some bad symbols but isn't as heavy-handed
15075 no_undefined_flag='$wl-z,text'
15076 allow_undefined_flag='$wl-z,nodefs'
15077 archive_cmds_need_lc=no
15078 hardcode_shlibpath_var=no
15079 hardcode_libdir_flag_spec='$wl-R,$libdir'
15080 hardcode_libdir_separator=':'
15081 link_all_deplibs=yes
15082 export_dynamic_flag_spec='$wl-Bexport'
15083 runpath_var='LD_RUN_PATH'
15085 if test yes = "$GCC"; then
15086 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15087 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15089 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15090 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15096 hardcode_libdir_flag_spec='-L$libdir'
15097 hardcode_shlibpath_var=no
15105 if test sni = "$host_vendor"; then
15107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15108 export_dynamic_flag_spec='$wl-Blargedynsym'
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15115 printf "%s\n" "$ld_shlibs" >&6; }
15116 test no = "$ld_shlibs" && can_build_shared=no
15118 with_gnu_ld=$with_gnu_ld
15135 # Do we need to explicitly link libc?
15137 case "x$archive_cmds_need_lc" in
15139 # Assume -lc should be added
15140 archive_cmds_need_lc=yes
15142 if test yes,yes = "$GCC,$enable_shared"; then
15143 case $archive_cmds in
15145 # FIXME: we may have to deal with multi-command sequences.
15148 # Test whether the compiler implicitly links with -lc since on some
15149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15150 # to ld, don't add -lc before -lgcc.
15151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15152 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15153 if test ${lt_cv_archive_cmds_need_lc+y}
15155 printf %s "(cached) " >&6
15158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15161 (eval $ac_compile) 2>&5
15163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15164 test $ac_status = 0; } 2>conftest.err; then
15167 libobjs=conftest.$ac_objext
15169 wl=$lt_prog_compiler_wl
15170 pic_flag=$lt_prog_compiler_pic
15176 lt_save_allow_undefined_flag=$allow_undefined_flag
15177 allow_undefined_flag=
15178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15179 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15182 test $ac_status = 0; }
15184 lt_cv_archive_cmds_need_lc=no
15186 lt_cv_archive_cmds_need_lc=yes
15188 allow_undefined_flag=$lt_save_allow_undefined_flag
15190 cat conftest.err 1>&5
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15196 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15197 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15356 printf %s "checking dynamic linker characteristics... " >&6; }
15358 if test yes = "$GCC"; then
15360 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15361 *) lt_awk_arg='/^libraries:/' ;;
15364 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15365 *) lt_sed_strip_eq='s|=/|/|g' ;;
15367 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15368 case $lt_search_path_spec in
15370 # if the path contains ";" then we assume it to be the separator
15371 # otherwise default to the standard path separator (i.e. ":") - it is
15372 # assumed that no part of a normal pathname contains ";" but that should
15373 # okay in the real world where ";" in dirpaths is itself problematic.
15374 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15377 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15380 # Ok, now we have the path, separated by spaces, we can step through it
15381 # and add multilib dir if necessary...
15382 lt_tmp_lt_search_path_spec=
15383 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15384 # ...but if some path component already ends with the multilib dir we assume
15385 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15386 case "$lt_multi_os_dir; $lt_search_path_spec " in
15387 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15391 for lt_sys_path in $lt_search_path_spec; do
15392 if test -d "$lt_sys_path$lt_multi_os_dir"; then
15393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15394 elif test -n "$lt_multi_os_dir"; then
15395 test -d "$lt_sys_path" && \
15396 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15399 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15400 BEGIN {RS = " "; FS = "/|\n";} {
15403 for (lt_i = NF; lt_i > 0; lt_i--) {
15404 if ($lt_i != "" && $lt_i != ".") {
15405 if ($lt_i == "..") {
15408 if (lt_count == 0) {
15409 lt_foo = "/" $lt_i lt_foo;
15416 if (lt_foo != "") { lt_freq[lt_foo]++; }
15417 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15419 # AWK program above erroneously prepends '/' to C:/dos/paths
15422 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15423 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15425 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15429 library_names_spec=
15430 libname_spec='lib$name'
15434 postuninstall_cmds=
15438 shlibpath_overrides_runpath=unknown
15440 dynamic_linker="$host_os ld.so"
15441 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15442 need_lib_prefix=unknown
15443 hardcode_into_libs=no
15445 # when you set need_version to no, make sure it does not cause -set_version
15446 # flags to be left without arguments
15447 need_version=unknown
15453 version_type=linux # correct to gnu/linux during the next big refactor
15454 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15455 shlibpath_var=LIBPATH
15457 # AIX 3 has no versioning support, so we append a major version to the name.
15458 soname_spec='$libname$release$shared_ext$major'
15462 version_type=linux # correct to gnu/linux during the next big refactor
15465 hardcode_into_libs=yes
15466 if test ia64 = "$host_cpu"; then
15467 # AIX 5 supports IA64
15468 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15469 shlibpath_var=LD_LIBRARY_PATH
15471 # With GCC up to 2.95.x, collect2 would create an import file
15472 # for dependence libraries. The import file would start with
15473 # the line '#! .'. This would cause the generated library to
15474 # depend on '.', always an invalid library. This was fixed in
15475 # development snapshots of GCC prior to 3.0.
15477 aix4 | aix4.[01] | aix4.[01].*)
15478 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15480 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15483 can_build_shared=no
15487 # Using Import Files as archive members, it is possible to support
15488 # filename-based versioning of shared library archives on AIX. While
15489 # this would work for both with and without runtime linking, it will
15490 # prevent static linking of such archives. So we do filename-based
15491 # shared library versioning with .so extension only, which is used
15492 # when both runtime linking and shared linking is enabled.
15493 # Unfortunately, runtime linking may impact performance, so we do
15494 # not want this to be the default eventually. Also, we use the
15495 # versioned .so libs for executables only if there is the -brtl
15496 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15497 # To allow for filename-based versioning support, we need to create
15498 # libNAME.so.V as an archive file, containing:
15499 # *) an Import File, referring to the versioned filename of the
15500 # archive as well as the shared archive member, telling the
15501 # bitwidth (32 or 64) of that shared object, and providing the
15502 # list of exported symbols of that shared object, eventually
15503 # decorated with the 'weak' keyword
15504 # *) the shared object with the F_LOADONLY flag set, to really avoid
15505 # it being seen by the linker.
15506 # At run time we better use the real file rather than another symlink,
15507 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15509 case $with_aix_soname,$aix_use_runtimelinking in
15510 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15511 # soname into executable. Probably we can add versioning support to
15512 # collect2, so additional links can be useful in future.
15513 aix,yes) # traditional libtool
15514 dynamic_linker='AIX unversionable lib.so'
15515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15516 # instead of lib<name>.a to let people know that these are not
15517 # typical AIX shared libraries.
15518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15520 aix,no) # traditional AIX only
15521 dynamic_linker='AIX lib.a(lib.so.V)'
15522 # We preserve .a as extension for shared libraries through AIX4.2
15523 # and later when we are not doing run time linking.
15524 library_names_spec='$libname$release.a $libname.a'
15525 soname_spec='$libname$release$shared_ext$major'
15527 svr4,*) # full svr4 only
15528 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15529 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15530 # We do not specify a path in Import Files, so LIBPATH fires.
15531 shlibpath_overrides_runpath=yes
15533 *,yes) # both, prefer svr4
15534 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15535 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15536 # unpreferred sharedlib libNAME.a needs extra handling
15537 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"'
15538 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"'
15539 # We do not specify a path in Import Files, so LIBPATH fires.
15540 shlibpath_overrides_runpath=yes
15542 *,no) # both, prefer aix
15543 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15544 library_names_spec='$libname$release.a $libname.a'
15545 soname_spec='$libname$release$shared_ext$major'
15546 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15547 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)'
15548 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"'
15551 shlibpath_var=LIBPATH
15558 # Since July 2007 AmigaOS4 officially supports .so libraries.
15559 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15563 library_names_spec='$libname.ixlibrary $libname.a'
15564 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15565 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'
15571 library_names_spec='$libname$shared_ext'
15572 dynamic_linker="$host_os ld.so"
15573 shlibpath_var=LIBRARY_PATH
15577 version_type=linux # correct to gnu/linux during the next big refactor
15579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15580 soname_spec='$libname$release$shared_ext$major'
15581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15582 shlibpath_var=LD_LIBRARY_PATH
15583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15585 # the default ld.so.conf also contains /usr/contrib/lib and
15586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15587 # libtool to hard-code these into programs
15590 cygwin* | mingw* | pw32* | cegcc*)
15591 version_type=windows
15596 case $GCC,$cc_basename in
15599 library_names_spec='$libname.dll.a'
15600 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15601 postinstall_cmds='base_file=`basename \$file`~
15602 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15603 dldir=$destdir/`dirname \$dlpath`~
15604 test -d \$dldir || mkdir -p \$dldir~
15605 $install_prog $dir/$dlname \$dldir/$dlname~
15606 chmod a+x \$dldir/$dlname~
15607 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15608 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15611 dlpath=$dir/\$dldll~
15613 shlibpath_overrides_runpath=yes
15617 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15618 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15620 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15623 # MinGW DLLs use traditional 'lib' prefix
15624 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15627 # pw32 DLLs use 'pw' prefix rather than 'lib'
15628 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15631 dynamic_linker='Win32 ld.exe'
15636 libname_spec='$name'
15637 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15638 library_names_spec='$libname.dll.lib'
15642 sys_lib_search_path_spec=
15645 for lt_path in $LIB
15648 # Let DOS variable expansion print the short 8.3 style file name.
15649 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15650 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15653 # Convert to MSYS style.
15654 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15657 # Convert to unix form, then to dos form, then back to unix form
15658 # but this time dos style (no spaces!) so that the unix form looks
15659 # like /cygdrive/c/PROGRA~1:/cygdr...
15660 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15661 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15662 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15665 sys_lib_search_path_spec=$LIB
15666 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15667 # It is most probably a Windows format PATH.
15668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15670 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15672 # FIXME: find the short name or the path components, as spaces are
15673 # common. (e.g. "Program Files" -> "PROGRA~1")
15677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15678 postinstall_cmds='base_file=`basename \$file`~
15679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15680 dldir=$destdir/`dirname \$dlpath`~
15681 test -d \$dldir || mkdir -p \$dldir~
15682 $install_prog $dir/$dlname \$dldir/$dlname'
15683 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15684 dlpath=$dir/\$dldll~
15686 shlibpath_overrides_runpath=yes
15687 dynamic_linker='Win32 link.exe'
15691 # Assume MSVC wrapper
15692 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15693 dynamic_linker='Win32 ld.exe'
15696 # FIXME: first we should search . and the directory the executable is in
15700 darwin* | rhapsody*)
15701 dynamic_linker="$host_os dyld"
15702 version_type=darwin
15705 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15706 soname_spec='$libname$release$major$shared_ext'
15707 shlibpath_overrides_runpath=yes
15708 shlibpath_var=DYLD_LIBRARY_PATH
15709 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15711 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15712 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15716 version_type=linux # correct to gnu/linux during the next big refactor
15719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15720 soname_spec='$libname$release$shared_ext$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15724 freebsd* | dragonfly*)
15725 # DragonFly does not have aout. When/if they implement a new
15726 # versioning mechanism, adjust this.
15727 if test -x /usr/bin/objformat; then
15728 objformat=`/usr/bin/objformat`
15731 freebsd[23].*) objformat=aout ;;
15732 *) objformat=elf ;;
15735 version_type=freebsd-$objformat
15736 case $version_type in
15738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15739 soname_spec='$libname$release$shared_ext$major'
15744 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15748 shlibpath_var=LD_LIBRARY_PATH
15751 shlibpath_overrides_runpath=yes
15753 freebsd3.[01]* | freebsdelf3.[01]*)
15754 shlibpath_overrides_runpath=yes
15755 hardcode_into_libs=yes
15757 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15758 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15759 shlibpath_overrides_runpath=no
15760 hardcode_into_libs=yes
15762 *) # from 4.6 on, and DragonFly
15763 shlibpath_overrides_runpath=yes
15764 hardcode_into_libs=yes
15770 version_type=linux # correct to gnu/linux during the next big refactor
15773 dynamic_linker="$host_os runtime_loader"
15774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15775 soname_spec='$libname$release$shared_ext$major'
15776 shlibpath_var=LIBRARY_PATH
15777 shlibpath_overrides_runpath=no
15778 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15779 hardcode_into_libs=yes
15782 hpux9* | hpux10* | hpux11*)
15783 # Give a soname corresponding to the major version so that dld.sl refuses to
15784 # link against other versions.
15791 hardcode_into_libs=yes
15792 dynamic_linker="$host_os dld.so"
15793 shlibpath_var=LD_LIBRARY_PATH
15794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15796 soname_spec='$libname$release$shared_ext$major'
15797 if test 32 = "$HPUX_IA64_MODE"; then
15798 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15799 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15802 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15807 hardcode_into_libs=yes
15808 dynamic_linker="$host_os dld.sl"
15809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15812 soname_spec='$libname$release$shared_ext$major'
15813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15818 dynamic_linker="$host_os dld.sl"
15819 shlibpath_var=SHLIB_PATH
15820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15822 soname_spec='$libname$release$shared_ext$major'
15825 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15826 postinstall_cmds='chmod 555 $lib'
15827 # or fails outright, so override atomically:
15828 install_override_mode=555
15832 version_type=linux # correct to gnu/linux during the next big refactor
15835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15836 soname_spec='$libname$release$shared_ext$major'
15837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 shlibpath_overrides_runpath=no
15840 hardcode_into_libs=yes
15843 irix5* | irix6* | nonstopux*)
15845 nonstopux*) version_type=nonstopux ;;
15847 if test yes = "$lt_cv_prog_gnu_ld"; then
15848 version_type=linux # correct to gnu/linux during the next big refactor
15855 soname_spec='$libname$release$shared_ext$major'
15856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15858 irix5* | nonstopux*)
15859 libsuff= shlibsuff=
15862 case $LD in # libtool.m4 will add one of these switches to LD
15863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15864 libsuff= shlibsuff= libmagic=32-bit;;
15865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15866 libsuff=32 shlibsuff=N32 libmagic=N32;;
15867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15869 *) libsuff= shlibsuff= libmagic=never-match;;
15873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15874 shlibpath_overrides_runpath=no
15875 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15876 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15877 hardcode_into_libs=yes
15880 # No shared lib support for Linux oldld, aout, or coff.
15881 linux*oldld* | linux*aout* | linux*coff*)
15886 version_type=none # Android doesn't support versioned libraries.
15889 library_names_spec='$libname$release$shared_ext'
15890 soname_spec='$libname$release$shared_ext'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 shlibpath_overrides_runpath=yes
15895 # This implies no fast_install, which is unacceptable.
15896 # Some rework will be needed to allow for fast_install
15897 # before this can be enabled.
15898 hardcode_into_libs=yes
15900 dynamic_linker='Android linker'
15901 # Don't embed -rpath directories since the linker doesn't support them.
15902 hardcode_libdir_flag_spec='-L$libdir'
15905 # This must be glibc/ELF.
15906 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15907 version_type=linux # correct to gnu/linux during the next big refactor
15910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15911 soname_spec='$libname$release$shared_ext$major'
15912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15913 shlibpath_var=LD_LIBRARY_PATH
15914 shlibpath_overrides_runpath=no
15916 # Some binutils ld are patched to set DT_RUNPATH
15917 if test ${lt_cv_shlibpath_overrides_runpath+y}
15919 printf %s "(cached) " >&6
15921 lt_cv_shlibpath_overrides_runpath=no
15922 save_LDFLAGS=$LDFLAGS
15923 save_libdir=$libdir
15924 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15925 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h. */
15937 if ac_fn_c_try_link "$LINENO"
15939 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15941 lt_cv_shlibpath_overrides_runpath=yes
15944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15945 conftest$ac_exeext conftest.$ac_ext
15946 LDFLAGS=$save_LDFLAGS
15947 libdir=$save_libdir
15951 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15953 # This implies no fast_install, which is unacceptable.
15954 # Some rework will be needed to allow for fast_install
15955 # before this can be enabled.
15956 hardcode_into_libs=yes
15958 # Ideally, we could use ldconfig to report *all* directores which are
15959 # searched for libraries, however this is still not possible. Aside from not
15960 # being certain /sbin/ldconfig is available, command
15961 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15962 # even though it is searched at run-time. Try to do the best guess by
15963 # appending ld.so.conf contents (and includes) to the search path.
15964 if test -f /etc/ld.so.conf; then
15965 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' ' '`
15966 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15969 # We used to test for /lib/ld.so.1 and disable shared libraries on
15970 # powerpc, because MkLinux only supported shared libraries with the
15971 # GNU dynamic linker. Since this was broken with cross compilers,
15972 # most powerpc-linux boxes support dynamic linking these days and
15973 # people can always --disable-shared, the test was removed, and we
15974 # assume the GNU/Linux dynamic linker is in use.
15975 dynamic_linker='GNU/Linux ld.so'
15982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15983 soname_spec='${libname}${release}${shared_ext}$major'
15984 shlibpath_var=LD_LIBRARY_PATH
15985 shlibpath_overrides_runpath=no
15986 hardcode_into_libs=yes
15987 dynamic_linker='NetBSD ld.elf_so'
15994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15995 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15997 dynamic_linker='NetBSD (a.out) ld.so'
15999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16000 soname_spec='$libname$release$shared_ext$major'
16001 dynamic_linker='NetBSD ld.elf_so'
16003 shlibpath_var=LD_LIBRARY_PATH
16004 shlibpath_overrides_runpath=yes
16005 hardcode_into_libs=yes
16009 version_type=linux # correct to gnu/linux during the next big refactor
16010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 shlibpath_overrides_runpath=yes
16019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16020 soname_spec='$libname$release$shared_ext$major'
16021 shlibpath_var=LD_LIBRARY_PATH
16022 shlibpath_overrides_runpath=no
16023 hardcode_into_libs=yes
16024 dynamic_linker='ldqnx.so'
16027 openbsd* | bitrig*)
16029 sys_lib_dlsearch_path_spec=/usr/lib
16031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16036 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16038 shlibpath_var=LD_LIBRARY_PATH
16039 shlibpath_overrides_runpath=yes
16043 libname_spec='$name'
16044 version_type=windows
16048 # OS/2 can only load a DLL with a base name of 8 characters or less.
16049 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16050 v=$($ECHO $release$versuffix | tr -d .-);
16051 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16052 $ECHO $n$v`$shared_ext'
16053 library_names_spec='${libname}_dll.$libext'
16054 dynamic_linker='OS/2 ld.exe'
16055 shlibpath_var=BEGINLIBPATH
16056 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16058 postinstall_cmds='base_file=`basename \$file`~
16059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16060 dldir=$destdir/`dirname \$dlpath`~
16061 test -d \$dldir || mkdir -p \$dldir~
16062 $install_prog $dir/$dlname \$dldir/$dlname~
16063 chmod a+x \$dldir/$dlname~
16064 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16065 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16068 dlpath=$dir/\$dldll~
16072 osf3* | osf4* | osf5*)
16076 soname_spec='$libname$release$shared_ext$major'
16077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16088 version_type=linux # correct to gnu/linux during the next big refactor
16091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16092 soname_spec='$libname$release$shared_ext$major'
16093 shlibpath_var=LD_LIBRARY_PATH
16094 shlibpath_overrides_runpath=yes
16095 hardcode_into_libs=yes
16096 # ldd complains unless libraries are executable
16097 postinstall_cmds='chmod +x $lib'
16102 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16103 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16104 shlibpath_var=LD_LIBRARY_PATH
16105 shlibpath_overrides_runpath=yes
16106 if test yes = "$with_gnu_ld"; then
16113 version_type=linux # correct to gnu/linux during the next big refactor
16114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16115 soname_spec='$libname$release$shared_ext$major'
16116 shlibpath_var=LD_LIBRARY_PATH
16117 case $host_vendor in
16119 shlibpath_overrides_runpath=no
16121 runpath_var=LD_RUN_PATH
16129 shlibpath_overrides_runpath=no
16130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16136 if test -d /usr/nec; then
16137 version_type=linux # correct to gnu/linux during the next big refactor
16138 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16139 soname_spec='$libname$shared_ext.$major'
16140 shlibpath_var=LD_LIBRARY_PATH
16144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16149 soname_spec='$libname$release$shared_ext$major'
16150 shlibpath_var=LD_LIBRARY_PATH
16151 shlibpath_overrides_runpath=yes
16152 hardcode_into_libs=yes
16153 if test yes = "$with_gnu_ld"; then
16154 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16159 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16163 sys_lib_dlsearch_path_spec='/usr/lib'
16167 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16168 version_type=linux # correct to gnu/linux during the next big refactor
16171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16172 shlibpath_var=LD_LIBRARY_PATH
16173 shlibpath_overrides_runpath=no
16174 hardcode_into_libs=yes
16178 version_type=linux # correct to gnu/linux during the next big refactor
16179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16180 soname_spec='$libname$release$shared_ext$major'
16181 shlibpath_var=LD_LIBRARY_PATH
16188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16189 printf "%s\n" "$dynamic_linker" >&6; }
16190 test no = "$dynamic_linker" && can_build_shared=no
16192 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16193 if test yes = "$GCC"; then
16194 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16197 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16198 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16201 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16202 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16205 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16206 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16208 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16209 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16211 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16212 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16311 printf %s "checking how to hardcode library paths into programs... " >&6; }
16313 if test -n "$hardcode_libdir_flag_spec" ||
16314 test -n "$runpath_var" ||
16315 test yes = "$hardcode_automatic"; then
16317 # We can hardcode non-existent directories.
16318 if test no != "$hardcode_direct" &&
16319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16320 # have to relink, otherwise we might link with an installed library
16321 # when we should be linking with a yet-to-be-installed one
16322 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16323 test no != "$hardcode_minus_L"; then
16324 # Linking always hardcodes the temporary library directory.
16325 hardcode_action=relink
16327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16328 hardcode_action=immediate
16331 # We cannot hardcode anything, or else we can only hardcode existing
16333 hardcode_action=unsupported
16335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16336 printf "%s\n" "$hardcode_action" >&6; }
16338 if test relink = "$hardcode_action" ||
16339 test yes = "$inherit_rpath"; then
16340 # Fast installation is not supported
16341 enable_fast_install=no
16342 elif test yes = "$shlibpath_overrides_runpath" ||
16343 test no = "$enable_shared"; then
16344 # Fast installation is not necessary
16345 enable_fast_install=needless
16353 if test yes != "$enable_dlopen"; then
16354 enable_dlopen=unknown
16355 enable_dlopen_self=unknown
16356 enable_dlopen_self_static=unknown
16363 lt_cv_dlopen=load_add_on
16365 lt_cv_dlopen_self=yes
16368 mingw* | pw32* | cegcc*)
16369 lt_cv_dlopen=LoadLibrary
16374 lt_cv_dlopen=dlopen
16379 # if libdl is installed we need to link against it
16380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16381 printf %s "checking for dlopen in -ldl... " >&6; }
16382 if test ${ac_cv_lib_dl_dlopen+y}
16384 printf %s "(cached) " >&6
16386 ac_check_lib_save_LIBS=$LIBS
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h. */
16391 /* Override any GCC internal prototype to avoid an error.
16392 Use char because int might match the return type of a GCC
16393 builtin and then its argument prototype would still apply. */
16403 if ac_fn_c_try_link "$LINENO"
16405 ac_cv_lib_dl_dlopen=yes
16407 ac_cv_lib_dl_dlopen=no
16409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16410 conftest$ac_exeext conftest.$ac_ext
16411 LIBS=$ac_check_lib_save_LIBS
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16414 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16415 if test "x$ac_cv_lib_dl_dlopen" = xyes
16417 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16422 lt_cv_dlopen_self=yes
16429 # Don't try to run any link tests for TPF. We know it's impossible
16430 # because TPF is a cross-compiler, and we know how we open DSOs.
16431 lt_cv_dlopen=dlopen
16433 lt_cv_dlopen_self=no
16437 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16438 if test "x$ac_cv_func_shl_load" = xyes
16440 lt_cv_dlopen=shl_load
16442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16443 printf %s "checking for shl_load in -ldld... " >&6; }
16444 if test ${ac_cv_lib_dld_shl_load+y}
16446 printf %s "(cached) " >&6
16448 ac_check_lib_save_LIBS=$LIBS
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16453 /* Override any GCC internal prototype to avoid an error.
16454 Use char because int might match the return type of a GCC
16455 builtin and then its argument prototype would still apply. */
16460 return shl_load ();
16465 if ac_fn_c_try_link "$LINENO"
16467 ac_cv_lib_dld_shl_load=yes
16469 ac_cv_lib_dld_shl_load=no
16471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16472 conftest$ac_exeext conftest.$ac_ext
16473 LIBS=$ac_check_lib_save_LIBS
16475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16476 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16477 if test "x$ac_cv_lib_dld_shl_load" = xyes
16479 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16481 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16482 if test "x$ac_cv_func_dlopen" = xyes
16484 lt_cv_dlopen=dlopen
16486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16487 printf %s "checking for dlopen in -ldl... " >&6; }
16488 if test ${ac_cv_lib_dl_dlopen+y}
16490 printf %s "(cached) " >&6
16492 ac_check_lib_save_LIBS=$LIBS
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16497 /* Override any GCC internal prototype to avoid an error.
16498 Use char because int might match the return type of a GCC
16499 builtin and then its argument prototype would still apply. */
16509 if ac_fn_c_try_link "$LINENO"
16511 ac_cv_lib_dl_dlopen=yes
16513 ac_cv_lib_dl_dlopen=no
16515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16516 conftest$ac_exeext conftest.$ac_ext
16517 LIBS=$ac_check_lib_save_LIBS
16519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16520 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16521 if test "x$ac_cv_lib_dl_dlopen" = xyes
16523 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16526 printf %s "checking for dlopen in -lsvld... " >&6; }
16527 if test ${ac_cv_lib_svld_dlopen+y}
16529 printf %s "(cached) " >&6
16531 ac_check_lib_save_LIBS=$LIBS
16532 LIBS="-lsvld $LIBS"
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16536 /* Override any GCC internal prototype to avoid an error.
16537 Use char because int might match the return type of a GCC
16538 builtin and then its argument prototype would still apply. */
16548 if ac_fn_c_try_link "$LINENO"
16550 ac_cv_lib_svld_dlopen=yes
16552 ac_cv_lib_svld_dlopen=no
16554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16555 conftest$ac_exeext conftest.$ac_ext
16556 LIBS=$ac_check_lib_save_LIBS
16558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16559 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16560 if test "x$ac_cv_lib_svld_dlopen" = xyes
16562 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16565 printf %s "checking for dld_link in -ldld... " >&6; }
16566 if test ${ac_cv_lib_dld_dld_link+y}
16568 printf %s "(cached) " >&6
16570 ac_check_lib_save_LIBS=$LIBS
16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573 /* end confdefs.h. */
16575 /* Override any GCC internal prototype to avoid an error.
16576 Use char because int might match the return type of a GCC
16577 builtin and then its argument prototype would still apply. */
16582 return dld_link ();
16587 if ac_fn_c_try_link "$LINENO"
16589 ac_cv_lib_dld_dld_link=yes
16591 ac_cv_lib_dld_dld_link=no
16593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16594 conftest$ac_exeext conftest.$ac_ext
16595 LIBS=$ac_check_lib_save_LIBS
16597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16598 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16599 if test "x$ac_cv_lib_dld_dld_link" = xyes
16601 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16622 if test no = "$lt_cv_dlopen"; then
16628 case $lt_cv_dlopen in
16630 save_CPPFLAGS=$CPPFLAGS
16631 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16633 save_LDFLAGS=$LDFLAGS
16634 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16637 LIBS="$lt_cv_dlopen_libs $LIBS"
16639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16640 printf %s "checking whether a program can dlopen itself... " >&6; }
16641 if test ${lt_cv_dlopen_self+y}
16643 printf %s "(cached) " >&6
16645 if test yes = "$cross_compiling"; then :
16646 lt_cv_dlopen_self=cross
16648 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16649 lt_status=$lt_dlunknown
16650 cat > conftest.$ac_ext <<_LT_EOF
16651 #line $LINENO "configure"
16652 #include "confdefs.h"
16661 # define LT_DLGLOBAL RTLD_GLOBAL
16664 # define LT_DLGLOBAL DL_GLOBAL
16666 # define LT_DLGLOBAL 0
16670 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16671 find out it does not work in some platform. */
16672 #ifndef LT_DLLAZY_OR_NOW
16674 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16677 # define LT_DLLAZY_OR_NOW DL_LAZY
16680 # define LT_DLLAZY_OR_NOW RTLD_NOW
16683 # define LT_DLLAZY_OR_NOW DL_NOW
16685 # define LT_DLLAZY_OR_NOW 0
16692 /* When -fvisibility=hidden is used, assume the code has been annotated
16693 correspondingly for the symbols needed. */
16694 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16695 int fnord () __attribute__((visibility("default")));
16698 int fnord () { return 42; }
16701 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16702 int status = $lt_dlunknown;
16706 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16709 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16710 else puts (dlerror ());
16712 /* dlclose (self); */
16720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16721 (eval $ac_link) 2>&5
16723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16724 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16725 (./conftest; exit; ) >&5 2>/dev/null
16727 case x$lt_status in
16728 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16729 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16730 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16733 # compilation failed
16734 lt_cv_dlopen_self=no
16741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16742 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16744 if test yes = "$lt_cv_dlopen_self"; then
16745 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16747 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16748 if test ${lt_cv_dlopen_self_static+y}
16750 printf %s "(cached) " >&6
16752 if test yes = "$cross_compiling"; then :
16753 lt_cv_dlopen_self_static=cross
16755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16756 lt_status=$lt_dlunknown
16757 cat > conftest.$ac_ext <<_LT_EOF
16758 #line $LINENO "configure"
16759 #include "confdefs.h"
16768 # define LT_DLGLOBAL RTLD_GLOBAL
16771 # define LT_DLGLOBAL DL_GLOBAL
16773 # define LT_DLGLOBAL 0
16777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16778 find out it does not work in some platform. */
16779 #ifndef LT_DLLAZY_OR_NOW
16781 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16784 # define LT_DLLAZY_OR_NOW DL_LAZY
16787 # define LT_DLLAZY_OR_NOW RTLD_NOW
16790 # define LT_DLLAZY_OR_NOW DL_NOW
16792 # define LT_DLLAZY_OR_NOW 0
16799 /* When -fvisibility=hidden is used, assume the code has been annotated
16800 correspondingly for the symbols needed. */
16801 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16802 int fnord () __attribute__((visibility("default")));
16805 int fnord () { return 42; }
16808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16809 int status = $lt_dlunknown;
16813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16817 else puts (dlerror ());
16819 /* dlclose (self); */
16827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16828 (eval $ac_link) 2>&5
16830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16831 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16832 (./conftest; exit; ) >&5 2>/dev/null
16834 case x$lt_status in
16835 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16836 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16837 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16840 # compilation failed
16841 lt_cv_dlopen_self_static=no
16848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16849 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16852 CPPFLAGS=$save_CPPFLAGS
16853 LDFLAGS=$save_LDFLAGS
16858 case $lt_cv_dlopen_self in
16859 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16860 *) enable_dlopen_self=unknown ;;
16863 case $lt_cv_dlopen_self_static in
16864 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16865 *) enable_dlopen_self_static=unknown ;;
16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16888 printf %s "checking whether stripping libraries is possible... " >&6; }
16889 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16890 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16891 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16893 printf "%s\n" "yes" >&6; }
16895 # FIXME - insert some real tests, host_os isn't really good enough
16898 if test -n "$STRIP"; then
16899 striplib="$STRIP -x"
16900 old_striplib="$STRIP -S"
16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16902 printf "%s\n" "yes" >&6; }
16904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905 printf "%s\n" "no" >&6; }
16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16910 printf "%s\n" "no" >&6; }
16926 # Report what library types will actually be built
16927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16928 printf %s "checking if libtool supports shared libraries... " >&6; }
16929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16930 printf "%s\n" "$can_build_shared" >&6; }
16932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16933 printf %s "checking whether to build shared libraries... " >&6; }
16934 test no = "$can_build_shared" && enable_shared=no
16936 # On AIX, shared libraries and static libraries use the same namespace, and
16937 # are all built from PIC.
16940 test yes = "$enable_shared" && enable_static=no
16941 if test -n "$RANLIB"; then
16942 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16943 postinstall_cmds='$RANLIB $lib'
16948 if test ia64 != "$host_cpu"; then
16949 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16950 yes,aix,yes) ;; # shared object as lib.so file only
16951 yes,svr4,*) ;; # shared object as lib.so archive member only
16952 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16958 printf "%s\n" "$enable_shared" >&6; }
16960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16961 printf %s "checking whether to build static libraries... " >&6; }
16962 # Make sure either enable_shared or enable_static is yes.
16963 test yes = "$enable_shared" || enable_static=yes
16964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16965 printf "%s\n" "$enable_static" >&6; }
16972 ac_cpp='$CPP $CPPFLAGS'
16973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16979 if test -n "$CXX" && ( test no != "$CXX" &&
16980 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16981 (test g++ != "$CXX"))); then
16983 ac_cpp='$CXXCPP $CPPFLAGS'
16984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16988 printf %s "checking how to run the C++ preprocessor... " >&6; }
16989 if test -z "$CXXCPP"; then
16990 if test ${ac_cv_prog_CXXCPP+y}
16992 printf %s "(cached) " >&6
16994 # Double quotes because $CXX needs to be expanded
16995 for CXXCPP in "$CXX -E" cpp /lib/cpp
16997 ac_preproc_ok=false
16998 for ac_cxx_preproc_warn_flag in '' yes
17000 # Use a header file that comes with gcc, so configuring glibc
17001 # with a fresh cross-compiler works.
17002 # On the NeXT, cc -E runs the code through the compiler's parser,
17003 # not just through cpp. "Syntax error" is here to catch this case.
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h. */
17006 #include <limits.h>
17009 if ac_fn_cxx_try_cpp "$LINENO"
17013 # Broken: fails on valid input.
17016 rm -f conftest.err conftest.i conftest.$ac_ext
17018 # OK, works on sane cases. Now check whether nonexistent headers
17019 # can be detected and how.
17020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17021 /* end confdefs.h. */
17022 #include <ac_nonexistent.h>
17024 if ac_fn_cxx_try_cpp "$LINENO"
17026 # Broken: success on invalid input.
17029 # Passes both tests.
17033 rm -f conftest.err conftest.i conftest.$ac_ext
17036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17037 rm -f conftest.i conftest.err conftest.$ac_ext
17044 ac_cv_prog_CXXCPP=$CXXCPP
17047 CXXCPP=$ac_cv_prog_CXXCPP
17049 ac_cv_prog_CXXCPP=$CXXCPP
17051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17052 printf "%s\n" "$CXXCPP" >&6; }
17053 ac_preproc_ok=false
17054 for ac_cxx_preproc_warn_flag in '' yes
17056 # Use a header file that comes with gcc, so configuring glibc
17057 # with a fresh cross-compiler works.
17058 # On the NeXT, cc -E runs the code through the compiler's parser,
17059 # not just through cpp. "Syntax error" is here to catch this case.
17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h. */
17062 #include <limits.h>
17065 if ac_fn_cxx_try_cpp "$LINENO"
17069 # Broken: fails on valid input.
17072 rm -f conftest.err conftest.i conftest.$ac_ext
17074 # OK, works on sane cases. Now check whether nonexistent headers
17075 # can be detected and how.
17076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077 /* end confdefs.h. */
17078 #include <ac_nonexistent.h>
17080 if ac_fn_cxx_try_cpp "$LINENO"
17082 # Broken: success on invalid input.
17085 # Passes both tests.
17089 rm -f conftest.err conftest.i conftest.$ac_ext
17092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17093 rm -f conftest.i conftest.err conftest.$ac_ext
17098 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17099 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17100 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17101 See \`config.log' for more details" "$LINENO" 5; }
17105 ac_cpp='$CPP $CPPFLAGS'
17106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17111 _lt_caught_CXX_error=yes
17115 ac_cpp='$CXXCPP $CPPFLAGS'
17116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17120 archive_cmds_need_lc_CXX=no
17121 allow_undefined_flag_CXX=
17122 always_export_symbols_CXX=no
17123 archive_expsym_cmds_CXX=
17124 compiler_needs_object_CXX=no
17125 export_dynamic_flag_spec_CXX=
17126 hardcode_direct_CXX=no
17127 hardcode_direct_absolute_CXX=no
17128 hardcode_libdir_flag_spec_CXX=
17129 hardcode_libdir_separator_CXX=
17130 hardcode_minus_L_CXX=no
17131 hardcode_shlibpath_var_CXX=unsupported
17132 hardcode_automatic_CXX=no
17133 inherit_rpath_CXX=no
17135 module_expsym_cmds_CXX=
17136 link_all_deplibs_CXX=unknown
17137 old_archive_cmds_CXX=$old_archive_cmds
17138 reload_flag_CXX=$reload_flag
17139 reload_cmds_CXX=$reload_cmds
17140 no_undefined_flag_CXX=
17141 whole_archive_flag_spec_CXX=
17142 enable_shared_with_static_runtimes_CXX=no
17144 # Source file extension for C++ test sources.
17147 # Object file extension for compiled C++ test sources.
17151 # No sense in running all these tests if we already determined that
17152 # the CXX compiler isn't working. Some variables (like enable_shared)
17153 # are currently assumed to apply to all compilers on this platform,
17154 # and will be corrupted by setting them based on a non-working compiler.
17155 if test yes != "$_lt_caught_CXX_error"; then
17156 # Code to be used in simple compile tests
17157 lt_simple_compile_test_code="int some_variable = 0;"
17159 # Code to be used in simple link tests
17160 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17162 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17169 # If no C compiler was specified, use CC.
17172 # If no C compiler flags were specified, use CFLAGS.
17173 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17175 # Allow CC to be a program name with arguments.
17179 # save warnings/boilerplate of simple test code
17180 ac_outfile=conftest.$ac_objext
17181 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17182 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17183 _lt_compiler_boilerplate=`cat conftest.err`
17186 ac_outfile=conftest.$ac_objext
17187 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17188 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17189 _lt_linker_boilerplate=`cat conftest.err`
17193 # Allow CC to be a program name with arguments.
17195 lt_save_CFLAGS=$CFLAGS
17199 lt_save_with_gnu_ld=$with_gnu_ld
17200 lt_save_path_LD=$lt_cv_path_LD
17201 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17202 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17204 $as_unset lt_cv_prog_gnu_ld
17206 if test -n "${lt_cv_path_LDCXX+set}"; then
17207 lt_cv_path_LD=$lt_cv_path_LDCXX
17209 $as_unset lt_cv_path_LD
17211 test -z "${LDCXX+set}" || LD=$LDCXX
17216 func_cc_basename $compiler
17217 cc_basename=$func_cc_basename_result
17220 if test -n "$compiler"; then
17221 # We don't want -fno-exception when compiling C++ code, so set the
17222 # no_builtin_flag separately
17223 if test yes = "$GXX"; then
17224 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17226 lt_prog_compiler_no_builtin_flag_CXX=
17229 if test yes = "$GXX"; then
17230 # Set up default GNU C++ configuration
17234 # Check whether --with-gnu-ld was given.
17235 if test ${with_gnu_ld+y}
17237 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
17243 if test yes = "$GCC"; then
17244 # Check if gcc -print-prog-name=ld gives a path.
17245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17246 printf %s "checking for ld used by $CC... " >&6; }
17249 # gcc leaves a trailing carriage return, which upsets mingw
17250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17255 # Accept absolute paths.
17257 re_direlt='/[^/][^/]*/\.\./'
17258 # Canonicalize the pathname of ld
17259 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17260 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17261 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17263 test -z "$LD" && LD=$ac_prog
17266 # If it fails, then pretend we aren't using GCC.
17270 # If it is relative, then search for the first ld in PATH.
17271 with_gnu_ld=unknown
17274 elif test yes = "$with_gnu_ld"; then
17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17276 printf %s "checking for GNU ld... " >&6; }
17278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17279 printf %s "checking for non-GNU ld... " >&6; }
17281 if test ${lt_cv_path_LD+y}
17283 printf %s "(cached) " >&6
17285 if test -z "$LD"; then
17286 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17287 for ac_dir in $PATH; do
17289 test -z "$ac_dir" && ac_dir=.
17290 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17291 lt_cv_path_LD=$ac_dir/$ac_prog
17292 # Check to see if the program is GNU ld. I'd rather use --version,
17293 # but apparently some variants of GNU ld only accept -v.
17294 # Break only if it was the GNU/non-GNU ld that we prefer.
17295 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17296 *GNU* | *'with BFD'*)
17297 test no != "$with_gnu_ld" && break
17300 test yes != "$with_gnu_ld" && break
17307 lt_cv_path_LD=$LD # Let the user override the test with a path.
17312 if test -n "$LD"; then
17313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17314 printf "%s\n" "$LD" >&6; }
17316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17317 printf "%s\n" "no" >&6; }
17319 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17321 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
17322 if test ${lt_cv_prog_gnu_ld+y}
17324 printf %s "(cached) " >&6
17326 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17327 case `$LD -v 2>&1 </dev/null` in
17328 *GNU* | *'with BFD'*)
17329 lt_cv_prog_gnu_ld=yes
17332 lt_cv_prog_gnu_ld=no
17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17337 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
17338 with_gnu_ld=$lt_cv_prog_gnu_ld
17346 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17347 # archiving commands below assume that GNU ld is being used.
17348 if test yes = "$with_gnu_ld"; then
17349 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17350 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'
17352 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17353 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17355 # If archive_cmds runs LD, not CC, wlarc should be empty
17356 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17357 # investigate it a little bit more. (MM)
17360 # ancient GNU ld didn't support --whole-archive et. al.
17361 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17362 $GREP 'no-whole-archive' > /dev/null; then
17363 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17365 whole_archive_flag_spec_CXX=
17371 # A generic and very simple default shared library creation
17372 # command for GNU C++ for the case where it uses the native
17373 # linker, instead of GNU ld. If possible, this setting should
17374 # overridden to take advantage of the native linker features on
17375 # the platform it is being used on.
17376 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17379 # Commands to make compiler produce verbose output that lists
17380 # what "hidden" libraries, object files and flags are used when
17381 # linking a shared library.
17382 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
17390 # PORTME: fill in a description of your system's C++ link characteristics
17391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17392 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17396 # FIXME: insert proper C++ library support
17400 if test ia64 = "$host_cpu"; then
17401 # On IA64, the linker does run time linking by default, so we don't
17402 # have to do anything special.
17403 aix_use_runtimelinking=no
17404 exp_sym_flag='-Bexport'
17407 aix_use_runtimelinking=no
17409 # Test if we are trying to use run time linking or normal
17410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17411 # have runtime linking enabled, and use it for executables.
17412 # For shared libraries, we enable/disable runtime linking
17413 # depending on the kind of the shared library created -
17414 # when "with_aix_soname,aix_use_runtimelinking" is:
17415 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17416 # "aix,yes" lib.so shared, rtl:yes, for executables
17417 # lib.a static archive
17418 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17419 # lib.a(lib.so.V) shared, rtl:no, for executables
17420 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17421 # lib.a(lib.so.V) shared, rtl:no
17422 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17423 # lib.a static archive
17424 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17425 for ld_flag in $LDFLAGS; do
17428 aix_use_runtimelinking=yes
17433 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17434 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17435 # so we don't have lib.a shared libs to link our executables.
17436 # We have to force runtime linking in this case.
17437 aix_use_runtimelinking=yes
17438 LDFLAGS="$LDFLAGS -Wl,-brtl"
17443 exp_sym_flag='-bexport'
17444 no_entry_flag='-bnoentry'
17447 # When large executables or shared objects are built, AIX ld can
17448 # have problems creating the table of contents. If linking a library
17449 # or program results in "error TOC overflow" add -mminimal-toc to
17450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17453 archive_cmds_CXX=''
17454 hardcode_direct_CXX=yes
17455 hardcode_direct_absolute_CXX=yes
17456 hardcode_libdir_separator_CXX=':'
17457 link_all_deplibs_CXX=yes
17458 file_list_spec_CXX='$wl-f,'
17459 case $with_aix_soname,$aix_use_runtimelinking in
17460 aix,*) ;; # no import file
17461 svr4,* | *,yes) # use import file
17462 # The Import File defines what to hardcode.
17463 hardcode_direct_CXX=no
17464 hardcode_direct_absolute_CXX=no
17468 if test yes = "$GXX"; then
17469 case $host_os in aix4.[012]|aix4.[012].*)
17470 # We only want to do this on AIX 4.2 and lower, the check
17471 # below for broken collect2 doesn't work under 4.3+
17472 collect2name=`$CC -print-prog-name=collect2`
17473 if test -f "$collect2name" &&
17474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17476 # We have reworked collect2
17479 # We have old collect2
17480 hardcode_direct_CXX=unsupported
17481 # It fails to find uninstalled libraries when the uninstalled
17482 # path is not listed in the libpath. Setting hardcode_minus_L
17483 # to unsupported forces relinking
17484 hardcode_minus_L_CXX=yes
17485 hardcode_libdir_flag_spec_CXX='-L$libdir'
17486 hardcode_libdir_separator_CXX=
17489 shared_flag='-shared'
17490 if test yes = "$aix_use_runtimelinking"; then
17491 shared_flag=$shared_flag' $wl-G'
17493 # Need to ensure runtime linking is disabled for the traditional
17494 # shared library, or the linker may eventually find shared libraries
17495 # /with/ Import File - we do not want to mix them.
17496 shared_flag_aix='-shared'
17497 shared_flag_svr4='-shared $wl-G'
17500 if test ia64 = "$host_cpu"; then
17501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17502 # chokes on -Wl,-G. The following line is correct:
17505 if test yes = "$aix_use_runtimelinking"; then
17506 shared_flag='$wl-G'
17508 shared_flag='$wl-bM:SRE'
17510 shared_flag_aix='$wl-bM:SRE'
17511 shared_flag_svr4='$wl-G'
17515 export_dynamic_flag_spec_CXX='$wl-bexpall'
17516 # It seems that -bexpall does not export symbols beginning with
17517 # underscore (_), so it is better to generate a list of symbols to
17519 always_export_symbols_CXX=yes
17520 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17521 # Warning - without using the other runtime loading flags (-brtl),
17522 # -berok will link without error, but may produce a broken library.
17523 # The "-G" linker flag allows undefined symbols.
17524 no_undefined_flag_CXX='-bernotok'
17525 # Determine the default libpath from the value encoded in an empty
17527 if test set = "${lt_cv_aix_libpath+set}"; then
17528 aix_libpath=$lt_cv_aix_libpath
17530 if test ${lt_cv_aix_libpath__CXX+y}
17532 printf %s "(cached) " >&6
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17545 if ac_fn_cxx_try_link "$LINENO"
17548 lt_aix_libpath_sed='
17549 /Import File Strings/,/^$/ {
17551 s/^0 *\([^ ]*\) *$/\1/
17555 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17556 # Check for a 64-bit object if we didn't find anything.
17557 if test -z "$lt_cv_aix_libpath__CXX"; then
17558 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17562 conftest$ac_exeext conftest.$ac_ext
17563 if test -z "$lt_cv_aix_libpath__CXX"; then
17564 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17569 aix_libpath=$lt_cv_aix_libpath__CXX
17572 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17574 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
17576 if test ia64 = "$host_cpu"; then
17577 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
17578 allow_undefined_flag_CXX="-z nodefs"
17579 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"
17581 # Determine the default libpath from the value encoded in an
17582 # empty executable.
17583 if test set = "${lt_cv_aix_libpath+set}"; then
17584 aix_libpath=$lt_cv_aix_libpath
17586 if test ${lt_cv_aix_libpath__CXX+y}
17588 printf %s "(cached) " >&6
17590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17591 /* end confdefs.h. */
17601 if ac_fn_cxx_try_link "$LINENO"
17604 lt_aix_libpath_sed='
17605 /Import File Strings/,/^$/ {
17607 s/^0 *\([^ ]*\) *$/\1/
17611 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17612 # Check for a 64-bit object if we didn't find anything.
17613 if test -z "$lt_cv_aix_libpath__CXX"; then
17614 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17618 conftest$ac_exeext conftest.$ac_ext
17619 if test -z "$lt_cv_aix_libpath__CXX"; then
17620 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17625 aix_libpath=$lt_cv_aix_libpath__CXX
17628 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17629 # Warning - without using the other run time loading flags,
17630 # -berok will link without error, but may produce a broken library.
17631 no_undefined_flag_CXX=' $wl-bernotok'
17632 allow_undefined_flag_CXX=' $wl-berok'
17633 if test yes = "$with_gnu_ld"; then
17634 # We only use this code for GNU lds that support --whole-archive.
17635 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17637 # Exported symbols can be pulled into shared objects from archives
17638 whole_archive_flag_spec_CXX='$convenience'
17640 archive_cmds_need_lc_CXX=yes
17641 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17642 # -brtl affects multiple linker settings, -berok does not and is overridden later
17643 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17644 if test svr4 != "$with_aix_soname"; then
17645 # This is similar to how AIX traditionally builds its shared
17646 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17647 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'
17649 if test aix != "$with_aix_soname"; then
17650 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'
17652 # used by -dlpreopen to get the symbols
17653 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17655 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
17661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17662 allow_undefined_flag_CXX=unsupported
17663 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17664 # support --undefined. This deserves some investigation. FIXME
17665 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17672 case $cc_basename in
17674 # FIXME: insert proper C++ library support
17680 cygwin* | mingw* | pw32* | cegcc*)
17681 case $GXX,$cc_basename in
17684 # hardcode_libdir_flag_spec is actually meaningless, as there is
17685 # no search path for DLLs.
17686 hardcode_libdir_flag_spec_CXX=' '
17687 allow_undefined_flag_CXX=unsupported
17688 always_export_symbols_CXX=yes
17689 file_list_spec_CXX='@'
17690 # Tell ltmain to make .lib files, not .a files.
17692 # Tell ltmain to make .dll files, not .so files.
17694 # FIXME: Setting linknames here is a bad hack.
17695 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17696 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17697 cp "$export_symbols" "$output_objdir/$soname.def";
17698 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17700 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17702 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17704 # The linker will not automatically build a static lib if we build a DLL.
17705 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17706 enable_shared_with_static_runtimes_CXX=yes
17708 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17709 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17710 lt_tool_outputfile="@TOOL_OUTPUT@"~
17711 case $lt_outputfile in
17714 lt_outputfile=$lt_outputfile.exe
17715 lt_tool_outputfile=$lt_tool_outputfile.exe
17718 func_to_tool_file "$lt_outputfile"~
17719 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17720 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17721 $RM "$lt_outputfile.manifest";
17726 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17727 # as there is no search path for DLLs.
17728 hardcode_libdir_flag_spec_CXX='-L$libdir'
17729 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
17730 allow_undefined_flag_CXX=unsupported
17731 always_export_symbols_CXX=no
17732 enable_shared_with_static_runtimes_CXX=yes
17734 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17735 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'
17736 # If the export-symbols file already is a .def file, use it as
17737 # is; otherwise, prepend EXPORTS...
17738 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17739 cp $export_symbols $output_objdir/$soname.def;
17741 echo EXPORTS > $output_objdir/$soname.def;
17742 cat $export_symbols >> $output_objdir/$soname.def;
17744 $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'
17751 darwin* | rhapsody*)
17754 archive_cmds_need_lc_CXX=no
17755 hardcode_direct_CXX=no
17756 hardcode_automatic_CXX=yes
17757 hardcode_shlibpath_var_CXX=unsupported
17758 if test yes = "$lt_cv_ld_force_load"; then
17759 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\"`'
17762 whole_archive_flag_spec_CXX=''
17764 link_all_deplibs_CXX=yes
17765 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17766 case $cc_basename in
17767 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17768 *) _lt_dar_can_shared=$GCC ;;
17770 if test yes = "$_lt_dar_can_shared"; then
17771 output_verbose_link_cmd=func_echo_all
17772 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"
17773 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17774 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"
17775 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"
17776 if test yes != "$lt_cv_apple_cc_single_mod"; then
17777 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"
17778 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"
17788 hardcode_libdir_flag_spec_CXX='-L$libdir'
17789 hardcode_minus_L_CXX=yes
17790 allow_undefined_flag_CXX=unsupported
17792 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17793 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17794 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17795 $ECHO EXPORTS >> $output_objdir/$libname.def~
17796 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17797 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17798 emximp -o $lib $output_objdir/$libname.def'
17799 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17800 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17801 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17802 $ECHO EXPORTS >> $output_objdir/$libname.def~
17803 prefix_cmds="$SED"~
17804 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17805 prefix_cmds="$prefix_cmds -e 1d";
17807 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17808 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17809 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17810 emximp -o $lib $output_objdir/$libname.def'
17811 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17812 enable_shared_with_static_runtimes_CXX=yes
17816 case $cc_basename in
17818 # FIXME: insert proper C++ library support
17822 # Green Hills C++ Compiler
17823 # FIXME: insert proper C++ library support
17827 # FIXME: insert proper C++ library support
17834 # C++ shared libraries reported to be fairly broken before
17840 archive_cmds_need_lc_CXX=no
17843 freebsd* | dragonfly*)
17844 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17850 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17851 link_all_deplibs_CXX=yes
17855 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17856 hardcode_libdir_separator_CXX=:
17857 export_dynamic_flag_spec_CXX='$wl-E'
17858 hardcode_direct_CXX=yes
17859 hardcode_minus_L_CXX=yes # Not in the search PATH,
17860 # but as the default
17861 # location of the library.
17863 case $cc_basename in
17865 # FIXME: insert proper C++ library support
17869 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'
17870 # Commands to make compiler produce verbose output that lists
17871 # what "hidden" libraries, object files and flags are used when
17872 # linking a shared library.
17874 # There doesn't appear to be a way to prevent this compiler from
17875 # explicitly linking system object files so we need to strip them
17876 # from the output so that they don't get included in the library
17878 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"'
17881 if test yes = "$GXX"; then
17882 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'
17884 # FIXME: insert proper C++ library support
17892 if test no = "$with_gnu_ld"; then
17893 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17894 hardcode_libdir_separator_CXX=:
17900 export_dynamic_flag_spec_CXX='$wl-E'
17906 hardcode_direct_CXX=no
17907 hardcode_shlibpath_var_CXX=no
17910 hardcode_direct_CXX=yes
17911 hardcode_direct_absolute_CXX=yes
17912 hardcode_minus_L_CXX=yes # Not in the search PATH,
17913 # but as the default
17914 # location of the library.
17918 case $cc_basename in
17920 # FIXME: insert proper C++ library support
17926 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17929 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17932 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17935 # Commands to make compiler produce verbose output that lists
17936 # what "hidden" libraries, object files and flags are used when
17937 # linking a shared library.
17939 # There doesn't appear to be a way to prevent this compiler from
17940 # explicitly linking system object files so we need to strip them
17941 # from the output so that they don't get included in the library
17943 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"'
17946 if test yes = "$GXX"; then
17947 if test no = "$with_gnu_ld"; then
17950 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17953 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17956 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'
17961 # FIXME: insert proper C++ library support
17969 hardcode_direct_CXX=no
17970 hardcode_shlibpath_var_CXX=no
17971 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17972 export_dynamic_flag_spec_CXX='$wl-E'
17973 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17974 # Instead, shared libraries are loaded at an image base (0x10000000 by
17975 # default) and relocated if they conflict, which is a slow very memory
17976 # consuming and fragmenting process. To avoid this, we pick a random,
17977 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17978 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17979 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'
17980 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'
17983 case $cc_basename in
17986 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'
17988 # Archives containing C++ object files must be created using
17989 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17990 # necessary to make sure instantiated templates are included
17992 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17995 if test yes = "$GXX"; then
17996 if test no = "$with_gnu_ld"; then
17997 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'
17999 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'
18002 link_all_deplibs_CXX=yes
18005 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18006 hardcode_libdir_separator_CXX=:
18007 inherit_rpath_CXX=yes
18010 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18011 case $cc_basename in
18013 # Kuck and Associates, Inc. (KAI) C++ Compiler
18015 # KCC will only create a shared library if the output file
18016 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18017 # to its proper name (with version) after linking.
18018 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'
18019 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'
18020 # Commands to make compiler produce verbose output that lists
18021 # what "hidden" libraries, object files and flags are used when
18022 # linking a shared library.
18024 # There doesn't appear to be a way to prevent this compiler from
18025 # explicitly linking system object files so we need to strip them
18026 # from the output so that they don't get included in the library
18028 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"'
18030 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18031 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18033 # Archives containing C++ object files must be created using
18034 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18035 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18040 # version 8.0 and above of icpc choke on multiply defined symbols
18041 # if we add $predep_objects and $postdep_objects, however 7.1 and
18042 # earlier do not add the objects themselves.
18043 case `$CC -V 2>&1` in
18045 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18046 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'
18048 *) # Version 8.0 or newer
18051 ia64*) tmp_idyn=' -i_dynamic';;
18053 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18054 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'
18057 archive_cmds_need_lc_CXX=no
18058 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18059 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18060 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
18063 # Portland Group C++ compiler
18065 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18066 prelink_cmds_CXX='tpldir=Template.dir~
18068 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18069 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
18070 old_archive_cmds_CXX='tpldir=Template.dir~
18072 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18073 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
18075 archive_cmds_CXX='tpldir=Template.dir~
18077 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18078 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18079 archive_expsym_cmds_CXX='tpldir=Template.dir~
18081 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18082 $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'
18084 *) # Version 6 and above use weak symbols
18085 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18086 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'
18090 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
18091 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18092 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'
18096 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18097 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'
18099 runpath_var=LD_RUN_PATH
18100 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18101 hardcode_libdir_separator_CXX=:
18103 # Commands to make compiler produce verbose output that lists
18104 # what "hidden" libraries, object files and flags are used when
18105 # linking a shared library.
18107 # There doesn't appear to be a way to prevent this compiler from
18108 # explicitly linking system object files so we need to strip them
18109 # from the output so that they don't get included in the library
18111 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'
18113 xl* | mpixl* | bgxl*)
18114 # IBM XL 8.0 on PPC, with GNU ld
18115 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18116 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18117 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18118 if test yes = "$supports_anon_versioning"; then
18119 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18121 echo "local: *; };" >> $output_objdir/$libname.ver~
18122 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18126 case `$CC -V 2>&1 | sed 5q` in
18129 no_undefined_flag_CXX=' -zdefs'
18130 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18131 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'
18132 hardcode_libdir_flag_spec_CXX='-R$libdir'
18133 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'
18134 compiler_needs_object_CXX=yes
18136 # Not sure whether something based on
18137 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18139 output_verbose_link_cmd='func_echo_all'
18141 # Archives containing C++ object files must be created using
18142 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18143 # necessary to make sure instantiated templates are included
18145 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18153 # FIXME: insert proper C++ library support
18158 # FIXME: insert proper C++ library support
18163 case $cc_basename in
18165 # FIXME: insert proper C++ library support
18169 # FIXME: insert proper C++ library support
18176 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18177 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18179 hardcode_libdir_flag_spec_CXX='-R$libdir'
18180 hardcode_direct_CXX=yes
18181 hardcode_shlibpath_var_CXX=no
18183 # Workaround some broken pre-1.5 toolchains
18184 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18191 openbsd* | bitrig*)
18192 if test -f /usr/libexec/ld.so; then
18193 hardcode_direct_CXX=yes
18194 hardcode_shlibpath_var_CXX=no
18195 hardcode_direct_absolute_CXX=yes
18196 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18197 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
18199 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
18200 export_dynamic_flag_spec_CXX='$wl-E'
18201 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18203 output_verbose_link_cmd=func_echo_all
18209 osf3* | osf4* | osf5*)
18210 case $cc_basename in
18212 # Kuck and Associates, Inc. (KAI) C++ Compiler
18214 # KCC will only create a shared library if the output file
18215 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18216 # to its proper name (with version) after linking.
18217 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'
18219 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18220 hardcode_libdir_separator_CXX=:
18222 # Archives containing C++ object files must be created using
18223 # the KAI C++ compiler.
18225 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18226 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18230 # Rational C++ 2.4.1
18231 # FIXME: insert proper C++ library support
18237 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18238 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'
18239 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18242 allow_undefined_flag_CXX=' -expect_unresolved \*'
18243 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'
18244 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18245 echo "-hidden">> $lib.exp~
18246 $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~
18248 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18252 hardcode_libdir_separator_CXX=:
18254 # Commands to make compiler produce verbose output that lists
18255 # what "hidden" libraries, object files and flags are used when
18256 # linking a shared library.
18258 # There doesn't appear to be a way to prevent this compiler from
18259 # explicitly linking system object files so we need to strip them
18260 # from the output so that they don't get included in the library
18262 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"'
18265 if test yes,no = "$GXX,$with_gnu_ld"; then
18266 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18269 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'
18272 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'
18276 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18277 hardcode_libdir_separator_CXX=:
18279 # Commands to make compiler produce verbose output that lists
18280 # what "hidden" libraries, object files and flags are used when
18281 # linking a shared library.
18282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
18285 # FIXME: insert proper C++ library support
18293 # FIXME: insert proper C++ library support
18298 case $cc_basename in
18301 # FIXME: insert proper C++ library support
18306 # FIXME: insert proper C++ library support
18310 # FIXME: insert proper C++ library support
18317 case $cc_basename in
18319 # Sun C++ 4.2, 5.x and Centerline C++
18320 archive_cmds_need_lc_CXX=yes
18321 no_undefined_flag_CXX=' -zdefs'
18322 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18323 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18324 $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'
18326 hardcode_libdir_flag_spec_CXX='-R$libdir'
18327 hardcode_shlibpath_var_CXX=no
18329 solaris2.[0-5] | solaris2.[0-5].*) ;;
18331 # The compiler driver will combine and reorder linker options,
18332 # but understands '-z linker_flag'.
18333 # Supported since Solaris 2.6 (maybe 2.5.1?)
18334 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18337 link_all_deplibs_CXX=yes
18339 output_verbose_link_cmd='func_echo_all'
18341 # Archives containing C++ object files must be created using
18342 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18343 # necessary to make sure instantiated templates are included
18345 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18348 # Green Hills C++ Compiler
18349 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18351 # The C++ compiler must be used to create the archive.
18352 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18355 # GNU C++ compiler with Solaris linker
18356 if test yes,no = "$GXX,$with_gnu_ld"; then
18357 no_undefined_flag_CXX=' $wl-z ${wl}defs'
18358 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18359 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18360 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18361 $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'
18363 # Commands to make compiler produce verbose output that lists
18364 # what "hidden" libraries, object files and flags are used when
18365 # linking a shared library.
18366 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
18368 # g++ 2.7 appears to require '-G' NOT '-shared' on this
18370 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18371 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18372 $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'
18374 # Commands to make compiler produce verbose output that lists
18375 # what "hidden" libraries, object files and flags are used when
18376 # linking a shared library.
18377 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
18380 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
18382 solaris2.[0-5] | solaris2.[0-5].*) ;;
18384 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18392 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18393 no_undefined_flag_CXX='$wl-z,text'
18394 archive_cmds_need_lc_CXX=no
18395 hardcode_shlibpath_var_CXX=no
18396 runpath_var='LD_RUN_PATH'
18398 case $cc_basename in
18400 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18401 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18404 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18405 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18410 sysv5* | sco3.2v5* | sco5v6*)
18411 # Note: We CANNOT use -z defs as we might desire, because we do not
18412 # link with -lc, and that would cause any symbols used from libc to
18413 # always be unresolved, which means just about no library would
18414 # ever link correctly. If we're not using GNU ld we use -z text
18415 # though, which does catch some bad symbols but isn't as heavy-handed
18417 no_undefined_flag_CXX='$wl-z,text'
18418 allow_undefined_flag_CXX='$wl-z,nodefs'
18419 archive_cmds_need_lc_CXX=no
18420 hardcode_shlibpath_var_CXX=no
18421 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
18422 hardcode_libdir_separator_CXX=':'
18423 link_all_deplibs_CXX=yes
18424 export_dynamic_flag_spec_CXX='$wl-Bexport'
18425 runpath_var='LD_RUN_PATH'
18427 case $cc_basename in
18429 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18430 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18431 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18432 '"$old_archive_cmds_CXX"
18433 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18434 '"$reload_cmds_CXX"
18437 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18438 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18444 case $cc_basename in
18446 # NonStop-UX NCC 3.20
18447 # FIXME: insert proper C++ library support
18451 # FIXME: insert proper C++ library support
18458 # FIXME: insert proper C++ library support
18463 # FIXME: insert proper C++ library support
18468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18469 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18470 test no = "$ld_shlibs_CXX" && can_build_shared=no
18476 ## There is no encapsulation within the following macros, do not change
18477 ## the running order or otherwise move them around unless you know exactly
18478 ## what you are doing...
18479 # Dependencies to place before and after the object being linked:
18480 predep_objects_CXX=
18481 postdep_objects_CXX=
18484 compiler_lib_search_path_CXX=
18486 cat > conftest.$ac_ext <<_LT_EOF
18490 Foo (void) { a = 0; }
18497 _lt_libdeps_save_CFLAGS=$CFLAGS
18498 case "$CC $CFLAGS " in #(
18499 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18500 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18501 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
18504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18505 (eval $ac_compile) 2>&5
18507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18508 test $ac_status = 0; }; then
18509 # Parse the compiler output and extract the necessary
18510 # objects, libraries and library flags.
18512 # Sentinel used to keep track of whether or not we are before
18513 # the conftest object file.
18514 pre_test_object_deps_done=no
18516 for p in `eval "$output_verbose_link_cmd"`; do
18520 # Some compilers place space between "-{L,R}" and the path.
18521 # Remove the space.
18522 if test x-L = "$p" ||
18523 test x-R = "$p"; then
18528 # Expand the sysroot to ease extracting the directories later.
18529 if test -z "$prev"; then
18531 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18532 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18533 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18537 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18539 if test no = "$pre_test_object_deps_done"; then
18542 # Internal compiler library paths should come after those
18543 # provided the user. The postdeps already come after the
18544 # user supplied libs so there is no need to process them.
18545 if test -z "$compiler_lib_search_path_CXX"; then
18546 compiler_lib_search_path_CXX=$prev$p
18548 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
18551 # The "-l" case would never come before the object being
18552 # linked, so don't bother handling this case.
18555 if test -z "$postdeps_CXX"; then
18556 postdeps_CXX=$prev$p
18558 postdeps_CXX="${postdeps_CXX} $prev$p"
18564 *.lto.$objext) ;; # Ignore GCC LTO objects
18566 # This assumes that the test object file only shows up
18567 # once in the compiler output.
18568 if test "$p" = "conftest.$objext"; then
18569 pre_test_object_deps_done=yes
18573 if test no = "$pre_test_object_deps_done"; then
18574 if test -z "$predep_objects_CXX"; then
18575 predep_objects_CXX=$p
18577 predep_objects_CXX="$predep_objects_CXX $p"
18580 if test -z "$postdep_objects_CXX"; then
18581 postdep_objects_CXX=$p
18583 postdep_objects_CXX="$postdep_objects_CXX $p"
18588 *) ;; # Ignore the rest.
18596 echo "libtool.m4: error: problem compiling CXX test program"
18599 $RM -f confest.$objext
18600 CFLAGS=$_lt_libdeps_save_CFLAGS
18602 # PORTME: override above test on systems where it is broken
18605 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18606 # hack all around it, let's just trust "g++" to DTRT.
18607 predep_objects_CXX=
18608 postdep_objects_CXX=
18614 case " $postdeps_CXX " in
18615 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18617 compiler_lib_search_dirs_CXX=
18618 if test -n "${compiler_lib_search_path_CXX}"; then
18619 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
18652 lt_prog_compiler_wl_CXX=
18653 lt_prog_compiler_pic_CXX=
18654 lt_prog_compiler_static_CXX=
18657 # C++ specific cases for pic, static, wl, etc.
18658 if test yes = "$GXX"; then
18659 lt_prog_compiler_wl_CXX='-Wl,'
18660 lt_prog_compiler_static_CXX='-static'
18664 # All AIX code is PIC.
18665 if test ia64 = "$host_cpu"; then
18666 # AIX 5 now supports IA64 processor
18667 lt_prog_compiler_static_CXX='-Bstatic'
18669 lt_prog_compiler_pic_CXX='-fPIC'
18675 # see comment about AmigaOS4 .so support
18676 lt_prog_compiler_pic_CXX='-fPIC'
18679 # FIXME: we need at least 68020 code to build shared libraries, but
18680 # adding the '-m68020' flag to GCC prevents building anything better,
18682 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18687 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18688 # PIC is the default for these OSes.
18690 mingw* | cygwin* | os2* | pw32* | cegcc*)
18691 # This hack is so that the source file can tell whether it is being
18692 # built for inclusion in a dll (and should export symbols for example).
18693 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18694 # (--disable-auto-import) libraries
18695 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18698 lt_prog_compiler_static_CXX='$wl-static'
18702 darwin* | rhapsody*)
18703 # PIC is the default on this platform
18704 # Common symbols not allowed in MH_DYLIB files
18705 lt_prog_compiler_pic_CXX='-fno-common'
18708 # DJGPP does not support shared libraries at all
18709 lt_prog_compiler_pic_CXX=
18712 # PIC is the default for Haiku.
18713 # The "-static" flag exists, but is broken.
18714 lt_prog_compiler_static_CXX=
18717 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18718 # Instead, we relocate shared libraries at runtime.
18721 if test -d /usr/nec; then
18722 lt_prog_compiler_pic_CXX=-Kconform_pic
18726 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18727 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18728 # sets the default TLS model and affects inlining.
18733 lt_prog_compiler_pic_CXX='-fPIC'
18738 # QNX uses GNU C++, but need to define -shared option too, otherwise
18739 # it will coredump.
18740 lt_prog_compiler_pic_CXX='-fPIC -shared'
18743 lt_prog_compiler_pic_CXX='-fPIC'
18749 # All AIX code is PIC.
18750 if test ia64 = "$host_cpu"; then
18751 # AIX 5 now supports IA64 processor
18752 lt_prog_compiler_static_CXX='-Bstatic'
18754 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18758 case $cc_basename in
18760 # Green Hills C++ Compiler
18761 # _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"
18765 mingw* | cygwin* | os2* | pw32* | cegcc*)
18766 # This hack is so that the source file can tell whether it is being
18767 # built for inclusion in a dll (and should export symbols for example).
18768 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18771 case $cc_basename in
18773 lt_prog_compiler_pic_CXX='-KPIC'
18776 # Green Hills C++ Compiler
18777 lt_prog_compiler_pic_CXX='-pic'
18783 freebsd* | dragonfly*)
18784 # FreeBSD uses GNU C++
18786 hpux9* | hpux10* | hpux11*)
18787 case $cc_basename in
18789 lt_prog_compiler_wl_CXX='-Wl,'
18790 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18791 if test ia64 != "$host_cpu"; then
18792 lt_prog_compiler_pic_CXX='+Z'
18796 lt_prog_compiler_wl_CXX='-Wl,'
18797 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18803 lt_prog_compiler_pic_CXX='+Z'
18812 # This is c89, which is MS Visual C++ (no shared libs)
18813 # Anyone wants to do a port?
18815 irix5* | irix6* | nonstopux*)
18816 case $cc_basename in
18818 lt_prog_compiler_wl_CXX='-Wl,'
18819 lt_prog_compiler_static_CXX='-non_shared'
18820 # CC pic flag -KPIC is the default.
18826 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18827 case $cc_basename in
18830 lt_prog_compiler_wl_CXX='--backend -Wl,'
18831 lt_prog_compiler_pic_CXX='-fPIC'
18834 # old Intel C++ for x86_64, which still supported -KPIC.
18835 lt_prog_compiler_wl_CXX='-Wl,'
18836 lt_prog_compiler_pic_CXX='-KPIC'
18837 lt_prog_compiler_static_CXX='-static'
18840 # Intel C++, used to be incompatible with GCC.
18841 # ICC 10 doesn't accept -KPIC any more.
18842 lt_prog_compiler_wl_CXX='-Wl,'
18843 lt_prog_compiler_pic_CXX='-fPIC'
18844 lt_prog_compiler_static_CXX='-static'
18847 # Portland Group C++ compiler
18848 lt_prog_compiler_wl_CXX='-Wl,'
18849 lt_prog_compiler_pic_CXX='-fpic'
18850 lt_prog_compiler_static_CXX='-Bstatic'
18854 # Make sure the PIC flag is empty. It appears that all Alpha
18855 # Linux and Compaq Tru64 Unix objects are PIC.
18856 lt_prog_compiler_pic_CXX=
18857 lt_prog_compiler_static_CXX='-non_shared'
18859 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18860 # IBM XL 8.0, 9.0 on PPC and BlueGene
18861 lt_prog_compiler_wl_CXX='-Wl,'
18862 lt_prog_compiler_pic_CXX='-qpic'
18863 lt_prog_compiler_static_CXX='-qstaticlink'
18866 case `$CC -V 2>&1 | sed 5q` in
18869 lt_prog_compiler_pic_CXX='-KPIC'
18870 lt_prog_compiler_static_CXX='-Bstatic'
18871 lt_prog_compiler_wl_CXX='-Qoption ld '
18882 case $cc_basename in
18884 lt_prog_compiler_pic_CXX='-W c,exportall'
18890 netbsd* | netbsdelf*-gnu)
18893 # QNX uses GNU C++, but need to define -shared option too, otherwise
18894 # it will coredump.
18895 lt_prog_compiler_pic_CXX='-fPIC -shared'
18897 osf3* | osf4* | osf5*)
18898 case $cc_basename in
18900 lt_prog_compiler_wl_CXX='--backend -Wl,'
18903 # Rational C++ 2.4.1
18904 lt_prog_compiler_pic_CXX='-pic'
18907 # Digital/Compaq C++
18908 lt_prog_compiler_wl_CXX='-Wl,'
18909 # Make sure the PIC flag is empty. It appears that all Alpha
18910 # Linux and Compaq Tru64 Unix objects are PIC.
18911 lt_prog_compiler_pic_CXX=
18912 lt_prog_compiler_static_CXX='-non_shared'
18921 case $cc_basename in
18923 # Sun C++ 4.2, 5.x and Centerline C++
18924 lt_prog_compiler_pic_CXX='-KPIC'
18925 lt_prog_compiler_static_CXX='-Bstatic'
18926 lt_prog_compiler_wl_CXX='-Qoption ld '
18929 # Green Hills C++ Compiler
18930 lt_prog_compiler_pic_CXX='-PIC'
18937 case $cc_basename in
18940 lt_prog_compiler_pic_CXX='-pic'
18941 lt_prog_compiler_static_CXX='-Bstatic'
18945 lt_prog_compiler_pic_CXX='-pic'
18951 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18952 case $cc_basename in
18954 lt_prog_compiler_wl_CXX='-Wl,'
18955 lt_prog_compiler_pic_CXX='-KPIC'
18956 lt_prog_compiler_static_CXX='-Bstatic'
18961 case $cc_basename in
18963 # NonStop-UX NCC 3.20
18964 lt_prog_compiler_pic_CXX='-KPIC'
18973 lt_prog_compiler_can_build_shared_CXX=no
18979 # For platforms that do not support PIC, -DPIC is meaningless:
18981 lt_prog_compiler_pic_CXX=
18984 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18989 printf %s "checking for $compiler option to produce PIC... " >&6; }
18990 if test ${lt_cv_prog_compiler_pic_CXX+y}
18992 printf %s "(cached) " >&6
18994 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18997 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18998 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19001 # Check to make sure the PIC flag actually works.
19003 if test -n "$lt_prog_compiler_pic_CXX"; then
19004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19005 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19006 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19008 printf %s "(cached) " >&6
19010 lt_cv_prog_compiler_pic_works_CXX=no
19011 ac_outfile=conftest.$ac_objext
19012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19013 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19014 # Insert the option either (1) after the last *FLAGS variable, or
19015 # (2) before a word containing "conftest.", or (3) at the end.
19016 # Note that $ac_compile itself does not contain backslashes and begins
19017 # with a dollar sign (not a hyphen), so the echo should work correctly.
19018 # The option is referenced via a variable to avoid confusing sed.
19019 lt_compile=`echo "$ac_compile" | $SED \
19020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19022 -e 's:$: $lt_compiler_flag:'`
19023 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19024 (eval "$lt_compile" 2>conftest.err)
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 if (exit $ac_status) && test -s "$ac_outfile"; then
19029 # The compiler can only warn and ignore the option if not recognized
19030 # So say no if there are warnings other than the usual output.
19031 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19033 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19034 lt_cv_prog_compiler_pic_works_CXX=yes
19040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19041 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19043 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19044 case $lt_prog_compiler_pic_CXX in
19046 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19049 lt_prog_compiler_pic_CXX=
19050 lt_prog_compiler_can_build_shared_CXX=no
19060 # Check to make sure the static flag actually works.
19062 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19064 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19065 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19067 printf %s "(cached) " >&6
19069 lt_cv_prog_compiler_static_works_CXX=no
19070 save_LDFLAGS=$LDFLAGS
19071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19074 # The linker can only warn and ignore the option if not recognized
19075 # So say no if there are warnings
19076 if test -s conftest.err; then
19077 # Append any errors to the config.log.
19078 cat conftest.err 1>&5
19079 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19081 if diff conftest.exp conftest.er2 >/dev/null; then
19082 lt_cv_prog_compiler_static_works_CXX=yes
19085 lt_cv_prog_compiler_static_works_CXX=yes
19089 LDFLAGS=$save_LDFLAGS
19092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19093 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19095 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19098 lt_prog_compiler_static_CXX=
19104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19105 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19106 if test ${lt_cv_prog_compiler_c_o_CXX+y}
19108 printf %s "(cached) " >&6
19110 lt_cv_prog_compiler_c_o_CXX=no
19111 $RM -r conftest 2>/dev/null
19115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19117 lt_compiler_flag="-o out/conftest2.$ac_objext"
19118 # Insert the option either (1) after the last *FLAGS variable, or
19119 # (2) before a word containing "conftest.", or (3) at the end.
19120 # Note that $ac_compile itself does not contain backslashes and begins
19121 # with a dollar sign (not a hyphen), so the echo should work correctly.
19122 lt_compile=`echo "$ac_compile" | $SED \
19123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19125 -e 's:$: $lt_compiler_flag:'`
19126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19127 (eval "$lt_compile" 2>out/conftest.err)
19129 cat out/conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19133 # The compiler can only warn and ignore the option if not recognized
19134 # So say no if there are warnings
19135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19138 lt_cv_prog_compiler_c_o_CXX=yes
19143 # SGI C++ compiler will create directory out/ii_files/ for
19144 # template instantiation
19145 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19146 $RM out/* && rmdir out
19152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19153 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19158 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19159 if test ${lt_cv_prog_compiler_c_o_CXX+y}
19161 printf %s "(cached) " >&6
19163 lt_cv_prog_compiler_c_o_CXX=no
19164 $RM -r conftest 2>/dev/null
19168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19170 lt_compiler_flag="-o out/conftest2.$ac_objext"
19171 # Insert the option either (1) after the last *FLAGS variable, or
19172 # (2) before a word containing "conftest.", or (3) at the end.
19173 # Note that $ac_compile itself does not contain backslashes and begins
19174 # with a dollar sign (not a hyphen), so the echo should work correctly.
19175 lt_compile=`echo "$ac_compile" | $SED \
19176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19178 -e 's:$: $lt_compiler_flag:'`
19179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19180 (eval "$lt_compile" 2>out/conftest.err)
19182 cat out/conftest.err >&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19186 # The compiler can only warn and ignore the option if not recognized
19187 # So say no if there are warnings
19188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19191 lt_cv_prog_compiler_c_o_CXX=yes
19196 # SGI C++ compiler will create directory out/ii_files/ for
19197 # template instantiation
19198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19199 $RM out/* && rmdir out
19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19206 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19211 hard_links=nottested
19212 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
19213 # do not overwrite the value of need_locks provided by the user
19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19215 printf %s "checking if we can lock with hard links... " >&6; }
19218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19220 ln conftest.a conftest.b 2>&5 || hard_links=no
19221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19223 printf "%s\n" "$hard_links" >&6; }
19224 if test no = "$hard_links"; then
19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19226 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19236 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19238 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19239 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19242 # If we're using GNU nm, then we don't want the "-C" option.
19243 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
19244 # Without the "-l" option, or with the "-B" option, AIX nm treats
19245 # weak defined symbols like other global defined symbols, whereas
19246 # GNU nm marks them as "W".
19247 # While the 'weak' keyword is ignored in the Export File, we need
19248 # it in the Import File for the 'aix-soname' feature, so we have
19249 # to replace the "-B" option with "-P" for AIX nm.
19250 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19251 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'
19253 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'
19257 export_symbols_cmds_CXX=$ltdll_cmds
19259 cygwin* | mingw* | cegcc*)
19260 case $cc_basename in
19262 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19265 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'
19266 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19270 linux* | k*bsd*-gnu | gnu*)
19271 link_all_deplibs_CXX=no
19274 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19279 printf "%s\n" "$ld_shlibs_CXX" >&6; }
19280 test no = "$ld_shlibs_CXX" && can_build_shared=no
19282 with_gnu_ld_CXX=$with_gnu_ld
19290 # Do we need to explicitly link libc?
19292 case "x$archive_cmds_need_lc_CXX" in
19294 # Assume -lc should be added
19295 archive_cmds_need_lc_CXX=yes
19297 if test yes,yes = "$GCC,$enable_shared"; then
19298 case $archive_cmds_CXX in
19300 # FIXME: we may have to deal with multi-command sequences.
19303 # Test whether the compiler implicitly links with -lc since on some
19304 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19305 # to ld, don't add -lc before -lgcc.
19306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19307 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
19308 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
19310 printf %s "(cached) " >&6
19313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19316 (eval $ac_compile) 2>&5
19318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19319 test $ac_status = 0; } 2>conftest.err; then
19322 libobjs=conftest.$ac_objext
19324 wl=$lt_prog_compiler_wl_CXX
19325 pic_flag=$lt_prog_compiler_pic_CXX
19331 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19332 allow_undefined_flag_CXX=
19333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19334 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19337 test $ac_status = 0; }
19339 lt_cv_archive_cmds_need_lc_CXX=no
19341 lt_cv_archive_cmds_need_lc_CXX=yes
19343 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19345 cat conftest.err 1>&5
19350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19351 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19352 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19421 printf %s "checking dynamic linker characteristics... " >&6; }
19423 library_names_spec=
19424 libname_spec='lib$name'
19428 postuninstall_cmds=
19432 shlibpath_overrides_runpath=unknown
19434 dynamic_linker="$host_os ld.so"
19435 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19436 need_lib_prefix=unknown
19437 hardcode_into_libs=no
19439 # when you set need_version to no, make sure it does not cause -set_version
19440 # flags to be left without arguments
19441 need_version=unknown
19447 version_type=linux # correct to gnu/linux during the next big refactor
19448 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19449 shlibpath_var=LIBPATH
19451 # AIX 3 has no versioning support, so we append a major version to the name.
19452 soname_spec='$libname$release$shared_ext$major'
19456 version_type=linux # correct to gnu/linux during the next big refactor
19459 hardcode_into_libs=yes
19460 if test ia64 = "$host_cpu"; then
19461 # AIX 5 supports IA64
19462 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19463 shlibpath_var=LD_LIBRARY_PATH
19465 # With GCC up to 2.95.x, collect2 would create an import file
19466 # for dependence libraries. The import file would start with
19467 # the line '#! .'. This would cause the generated library to
19468 # depend on '.', always an invalid library. This was fixed in
19469 # development snapshots of GCC prior to 3.0.
19471 aix4 | aix4.[01] | aix4.[01].*)
19472 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19474 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19477 can_build_shared=no
19481 # Using Import Files as archive members, it is possible to support
19482 # filename-based versioning of shared library archives on AIX. While
19483 # this would work for both with and without runtime linking, it will
19484 # prevent static linking of such archives. So we do filename-based
19485 # shared library versioning with .so extension only, which is used
19486 # when both runtime linking and shared linking is enabled.
19487 # Unfortunately, runtime linking may impact performance, so we do
19488 # not want this to be the default eventually. Also, we use the
19489 # versioned .so libs for executables only if there is the -brtl
19490 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19491 # To allow for filename-based versioning support, we need to create
19492 # libNAME.so.V as an archive file, containing:
19493 # *) an Import File, referring to the versioned filename of the
19494 # archive as well as the shared archive member, telling the
19495 # bitwidth (32 or 64) of that shared object, and providing the
19496 # list of exported symbols of that shared object, eventually
19497 # decorated with the 'weak' keyword
19498 # *) the shared object with the F_LOADONLY flag set, to really avoid
19499 # it being seen by the linker.
19500 # At run time we better use the real file rather than another symlink,
19501 # but for link time we create the symlink libNAME.so -> libNAME.so.V
19503 case $with_aix_soname,$aix_use_runtimelinking in
19504 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19505 # soname into executable. Probably we can add versioning support to
19506 # collect2, so additional links can be useful in future.
19507 aix,yes) # traditional libtool
19508 dynamic_linker='AIX unversionable lib.so'
19509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19510 # instead of lib<name>.a to let people know that these are not
19511 # typical AIX shared libraries.
19512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19514 aix,no) # traditional AIX only
19515 dynamic_linker='AIX lib.a(lib.so.V)'
19516 # We preserve .a as extension for shared libraries through AIX4.2
19517 # and later when we are not doing run time linking.
19518 library_names_spec='$libname$release.a $libname.a'
19519 soname_spec='$libname$release$shared_ext$major'
19521 svr4,*) # full svr4 only
19522 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19523 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19524 # We do not specify a path in Import Files, so LIBPATH fires.
19525 shlibpath_overrides_runpath=yes
19527 *,yes) # both, prefer svr4
19528 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19529 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19530 # unpreferred sharedlib libNAME.a needs extra handling
19531 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"'
19532 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"'
19533 # We do not specify a path in Import Files, so LIBPATH fires.
19534 shlibpath_overrides_runpath=yes
19536 *,no) # both, prefer aix
19537 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19538 library_names_spec='$libname$release.a $libname.a'
19539 soname_spec='$libname$release$shared_ext$major'
19540 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19541 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)'
19542 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"'
19545 shlibpath_var=LIBPATH
19552 # Since July 2007 AmigaOS4 officially supports .so libraries.
19553 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19557 library_names_spec='$libname.ixlibrary $libname.a'
19558 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19559 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'
19565 library_names_spec='$libname$shared_ext'
19566 dynamic_linker="$host_os ld.so"
19567 shlibpath_var=LIBRARY_PATH
19571 version_type=linux # correct to gnu/linux during the next big refactor
19573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19574 soname_spec='$libname$release$shared_ext$major'
19575 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19576 shlibpath_var=LD_LIBRARY_PATH
19577 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19578 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19579 # the default ld.so.conf also contains /usr/contrib/lib and
19580 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19581 # libtool to hard-code these into programs
19584 cygwin* | mingw* | pw32* | cegcc*)
19585 version_type=windows
19590 case $GCC,$cc_basename in
19593 library_names_spec='$libname.dll.a'
19594 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19595 postinstall_cmds='base_file=`basename \$file`~
19596 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19597 dldir=$destdir/`dirname \$dlpath`~
19598 test -d \$dldir || mkdir -p \$dldir~
19599 $install_prog $dir/$dlname \$dldir/$dlname~
19600 chmod a+x \$dldir/$dlname~
19601 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19602 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19604 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19605 dlpath=$dir/\$dldll~
19607 shlibpath_overrides_runpath=yes
19611 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19612 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19616 # MinGW DLLs use traditional 'lib' prefix
19617 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19620 # pw32 DLLs use 'pw' prefix rather than 'lib'
19621 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19624 dynamic_linker='Win32 ld.exe'
19629 libname_spec='$name'
19630 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19631 library_names_spec='$libname.dll.lib'
19635 sys_lib_search_path_spec=
19638 for lt_path in $LIB
19641 # Let DOS variable expansion print the short 8.3 style file name.
19642 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19643 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19646 # Convert to MSYS style.
19647 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19650 # Convert to unix form, then to dos form, then back to unix form
19651 # but this time dos style (no spaces!) so that the unix form looks
19652 # like /cygdrive/c/PROGRA~1:/cygdr...
19653 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19654 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19655 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19658 sys_lib_search_path_spec=$LIB
19659 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19660 # It is most probably a Windows format PATH.
19661 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19663 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19665 # FIXME: find the short name or the path components, as spaces are
19666 # common. (e.g. "Program Files" -> "PROGRA~1")
19670 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19671 postinstall_cmds='base_file=`basename \$file`~
19672 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19673 dldir=$destdir/`dirname \$dlpath`~
19674 test -d \$dldir || mkdir -p \$dldir~
19675 $install_prog $dir/$dlname \$dldir/$dlname'
19676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19677 dlpath=$dir/\$dldll~
19679 shlibpath_overrides_runpath=yes
19680 dynamic_linker='Win32 link.exe'
19684 # Assume MSVC wrapper
19685 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19686 dynamic_linker='Win32 ld.exe'
19689 # FIXME: first we should search . and the directory the executable is in
19693 darwin* | rhapsody*)
19694 dynamic_linker="$host_os dyld"
19695 version_type=darwin
19698 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19699 soname_spec='$libname$release$major$shared_ext'
19700 shlibpath_overrides_runpath=yes
19701 shlibpath_var=DYLD_LIBRARY_PATH
19702 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19708 version_type=linux # correct to gnu/linux during the next big refactor
19711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19712 soname_spec='$libname$release$shared_ext$major'
19713 shlibpath_var=LD_LIBRARY_PATH
19716 freebsd* | dragonfly*)
19717 # DragonFly does not have aout. When/if they implement a new
19718 # versioning mechanism, adjust this.
19719 if test -x /usr/bin/objformat; then
19720 objformat=`/usr/bin/objformat`
19723 freebsd[23].*) objformat=aout ;;
19724 *) objformat=elf ;;
19727 version_type=freebsd-$objformat
19728 case $version_type in
19730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19731 soname_spec='$libname$release$shared_ext$major'
19736 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19740 shlibpath_var=LD_LIBRARY_PATH
19743 shlibpath_overrides_runpath=yes
19745 freebsd3.[01]* | freebsdelf3.[01]*)
19746 shlibpath_overrides_runpath=yes
19747 hardcode_into_libs=yes
19749 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19750 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19751 shlibpath_overrides_runpath=no
19752 hardcode_into_libs=yes
19754 *) # from 4.6 on, and DragonFly
19755 shlibpath_overrides_runpath=yes
19756 hardcode_into_libs=yes
19762 version_type=linux # correct to gnu/linux during the next big refactor
19765 dynamic_linker="$host_os runtime_loader"
19766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19767 soname_spec='$libname$release$shared_ext$major'
19768 shlibpath_var=LIBRARY_PATH
19769 shlibpath_overrides_runpath=no
19770 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19771 hardcode_into_libs=yes
19774 hpux9* | hpux10* | hpux11*)
19775 # Give a soname corresponding to the major version so that dld.sl refuses to
19776 # link against other versions.
19783 hardcode_into_libs=yes
19784 dynamic_linker="$host_os dld.so"
19785 shlibpath_var=LD_LIBRARY_PATH
19786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19788 soname_spec='$libname$release$shared_ext$major'
19789 if test 32 = "$HPUX_IA64_MODE"; then
19790 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19791 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19794 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19799 hardcode_into_libs=yes
19800 dynamic_linker="$host_os dld.sl"
19801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19804 soname_spec='$libname$release$shared_ext$major'
19805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19810 dynamic_linker="$host_os dld.sl"
19811 shlibpath_var=SHLIB_PATH
19812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19814 soname_spec='$libname$release$shared_ext$major'
19817 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19818 postinstall_cmds='chmod 555 $lib'
19819 # or fails outright, so override atomically:
19820 install_override_mode=555
19824 version_type=linux # correct to gnu/linux during the next big refactor
19827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19828 soname_spec='$libname$release$shared_ext$major'
19829 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19830 shlibpath_var=LD_LIBRARY_PATH
19831 shlibpath_overrides_runpath=no
19832 hardcode_into_libs=yes
19835 irix5* | irix6* | nonstopux*)
19837 nonstopux*) version_type=nonstopux ;;
19839 if test yes = "$lt_cv_prog_gnu_ld"; then
19840 version_type=linux # correct to gnu/linux during the next big refactor
19847 soname_spec='$libname$release$shared_ext$major'
19848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19850 irix5* | nonstopux*)
19851 libsuff= shlibsuff=
19854 case $LD in # libtool.m4 will add one of these switches to LD
19855 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19856 libsuff= shlibsuff= libmagic=32-bit;;
19857 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19858 libsuff=32 shlibsuff=N32 libmagic=N32;;
19859 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19860 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19861 *) libsuff= shlibsuff= libmagic=never-match;;
19865 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19866 shlibpath_overrides_runpath=no
19867 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19868 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19869 hardcode_into_libs=yes
19872 # No shared lib support for Linux oldld, aout, or coff.
19873 linux*oldld* | linux*aout* | linux*coff*)
19878 version_type=none # Android doesn't support versioned libraries.
19881 library_names_spec='$libname$release$shared_ext'
19882 soname_spec='$libname$release$shared_ext'
19884 shlibpath_var=LD_LIBRARY_PATH
19885 shlibpath_overrides_runpath=yes
19887 # This implies no fast_install, which is unacceptable.
19888 # Some rework will be needed to allow for fast_install
19889 # before this can be enabled.
19890 hardcode_into_libs=yes
19892 dynamic_linker='Android linker'
19893 # Don't embed -rpath directories since the linker doesn't support them.
19894 hardcode_libdir_flag_spec_CXX='-L$libdir'
19897 # This must be glibc/ELF.
19898 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19899 version_type=linux # correct to gnu/linux during the next big refactor
19902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19903 soname_spec='$libname$release$shared_ext$major'
19904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19905 shlibpath_var=LD_LIBRARY_PATH
19906 shlibpath_overrides_runpath=no
19908 # Some binutils ld are patched to set DT_RUNPATH
19909 if test ${lt_cv_shlibpath_overrides_runpath+y}
19911 printf %s "(cached) " >&6
19913 lt_cv_shlibpath_overrides_runpath=no
19914 save_LDFLAGS=$LDFLAGS
19915 save_libdir=$libdir
19916 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19917 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19929 if ac_fn_cxx_try_link "$LINENO"
19931 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19933 lt_cv_shlibpath_overrides_runpath=yes
19936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19937 conftest$ac_exeext conftest.$ac_ext
19938 LDFLAGS=$save_LDFLAGS
19939 libdir=$save_libdir
19943 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19945 # This implies no fast_install, which is unacceptable.
19946 # Some rework will be needed to allow for fast_install
19947 # before this can be enabled.
19948 hardcode_into_libs=yes
19950 # Ideally, we could use ldconfig to report *all* directores which are
19951 # searched for libraries, however this is still not possible. Aside from not
19952 # being certain /sbin/ldconfig is available, command
19953 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19954 # even though it is searched at run-time. Try to do the best guess by
19955 # appending ld.so.conf contents (and includes) to the search path.
19956 if test -f /etc/ld.so.conf; then
19957 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' ' '`
19958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19961 # We used to test for /lib/ld.so.1 and disable shared libraries on
19962 # powerpc, because MkLinux only supported shared libraries with the
19963 # GNU dynamic linker. Since this was broken with cross compilers,
19964 # most powerpc-linux boxes support dynamic linking these days and
19965 # people can always --disable-shared, the test was removed, and we
19966 # assume the GNU/Linux dynamic linker is in use.
19967 dynamic_linker='GNU/Linux ld.so'
19974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19975 soname_spec='${libname}${release}${shared_ext}$major'
19976 shlibpath_var=LD_LIBRARY_PATH
19977 shlibpath_overrides_runpath=no
19978 hardcode_into_libs=yes
19979 dynamic_linker='NetBSD ld.elf_so'
19986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19987 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19989 dynamic_linker='NetBSD (a.out) ld.so'
19991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19992 soname_spec='$libname$release$shared_ext$major'
19993 dynamic_linker='NetBSD ld.elf_so'
19995 shlibpath_var=LD_LIBRARY_PATH
19996 shlibpath_overrides_runpath=yes
19997 hardcode_into_libs=yes
20001 version_type=linux # correct to gnu/linux during the next big refactor
20002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20003 shlibpath_var=LD_LIBRARY_PATH
20004 shlibpath_overrides_runpath=yes
20011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20012 soname_spec='$libname$release$shared_ext$major'
20013 shlibpath_var=LD_LIBRARY_PATH
20014 shlibpath_overrides_runpath=no
20015 hardcode_into_libs=yes
20016 dynamic_linker='ldqnx.so'
20019 openbsd* | bitrig*)
20021 sys_lib_dlsearch_path_spec=/usr/lib
20023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20028 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20030 shlibpath_var=LD_LIBRARY_PATH
20031 shlibpath_overrides_runpath=yes
20035 libname_spec='$name'
20036 version_type=windows
20040 # OS/2 can only load a DLL with a base name of 8 characters or less.
20041 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20042 v=$($ECHO $release$versuffix | tr -d .-);
20043 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20044 $ECHO $n$v`$shared_ext'
20045 library_names_spec='${libname}_dll.$libext'
20046 dynamic_linker='OS/2 ld.exe'
20047 shlibpath_var=BEGINLIBPATH
20048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20050 postinstall_cmds='base_file=`basename \$file`~
20051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20052 dldir=$destdir/`dirname \$dlpath`~
20053 test -d \$dldir || mkdir -p \$dldir~
20054 $install_prog $dir/$dlname \$dldir/$dlname~
20055 chmod a+x \$dldir/$dlname~
20056 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20057 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20060 dlpath=$dir/\$dldll~
20064 osf3* | osf4* | osf5*)
20068 soname_spec='$libname$release$shared_ext$major'
20069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20070 shlibpath_var=LD_LIBRARY_PATH
20071 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20080 version_type=linux # correct to gnu/linux during the next big refactor
20083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20084 soname_spec='$libname$release$shared_ext$major'
20085 shlibpath_var=LD_LIBRARY_PATH
20086 shlibpath_overrides_runpath=yes
20087 hardcode_into_libs=yes
20088 # ldd complains unless libraries are executable
20089 postinstall_cmds='chmod +x $lib'
20094 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20095 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20096 shlibpath_var=LD_LIBRARY_PATH
20097 shlibpath_overrides_runpath=yes
20098 if test yes = "$with_gnu_ld"; then
20105 version_type=linux # correct to gnu/linux during the next big refactor
20106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20107 soname_spec='$libname$release$shared_ext$major'
20108 shlibpath_var=LD_LIBRARY_PATH
20109 case $host_vendor in
20111 shlibpath_overrides_runpath=no
20113 runpath_var=LD_RUN_PATH
20121 shlibpath_overrides_runpath=no
20122 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20128 if test -d /usr/nec; then
20129 version_type=linux # correct to gnu/linux during the next big refactor
20130 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20131 soname_spec='$libname$shared_ext.$major'
20132 shlibpath_var=LD_LIBRARY_PATH
20136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
20141 soname_spec='$libname$release$shared_ext$major'
20142 shlibpath_var=LD_LIBRARY_PATH
20143 shlibpath_overrides_runpath=yes
20144 hardcode_into_libs=yes
20145 if test yes = "$with_gnu_ld"; then
20146 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20148 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20151 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20155 sys_lib_dlsearch_path_spec='/usr/lib'
20159 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20160 version_type=linux # correct to gnu/linux during the next big refactor
20163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20164 shlibpath_var=LD_LIBRARY_PATH
20165 shlibpath_overrides_runpath=no
20166 hardcode_into_libs=yes
20170 version_type=linux # correct to gnu/linux during the next big refactor
20171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20172 soname_spec='$libname$release$shared_ext$major'
20173 shlibpath_var=LD_LIBRARY_PATH
20180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20181 printf "%s\n" "$dynamic_linker" >&6; }
20182 test no = "$dynamic_linker" && can_build_shared=no
20184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20185 if test yes = "$GCC"; then
20186 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20189 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20190 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20193 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20194 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20197 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20198 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20200 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20201 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20203 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20204 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20246 printf %s "checking how to hardcode library paths into programs... " >&6; }
20247 hardcode_action_CXX=
20248 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20249 test -n "$runpath_var_CXX" ||
20250 test yes = "$hardcode_automatic_CXX"; then
20252 # We can hardcode non-existent directories.
20253 if test no != "$hardcode_direct_CXX" &&
20254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20255 # have to relink, otherwise we might link with an installed library
20256 # when we should be linking with a yet-to-be-installed one
20257 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20258 test no != "$hardcode_minus_L_CXX"; then
20259 # Linking always hardcodes the temporary library directory.
20260 hardcode_action_CXX=relink
20262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20263 hardcode_action_CXX=immediate
20266 # We cannot hardcode anything, or else we can only hardcode existing
20268 hardcode_action_CXX=unsupported
20270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20271 printf "%s\n" "$hardcode_action_CXX" >&6; }
20273 if test relink = "$hardcode_action_CXX" ||
20274 test yes = "$inherit_rpath_CXX"; then
20275 # Fast installation is not supported
20276 enable_fast_install=no
20277 elif test yes = "$shlibpath_overrides_runpath" ||
20278 test no = "$enable_shared"; then
20279 # Fast installation is not necessary
20280 enable_fast_install=needless
20289 fi # test -n "$compiler"
20292 CFLAGS=$lt_save_CFLAGS
20296 with_gnu_ld=$lt_save_with_gnu_ld
20297 lt_cv_path_LDCXX=$lt_cv_path_LD
20298 lt_cv_path_LD=$lt_save_path_LD
20299 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20300 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20301 fi # test yes != "$_lt_caught_CXX_error"
20304 ac_cpp='$CPP $CPPFLAGS'
20305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20323 ac_config_commands="$ac_config_commands libtool"
20328 # Only expand once:
20331 ## --------------------- ##
20332 ## End of libtool code ##
20333 ## --------------------- ##
20336 # Verify if finally libtool shared libraries will be built
20339 case "x$enable_shared" in # ((
20341 xc_lt_build_shared=$enable_shared
20344 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
20349 # Verify if finally libtool static libraries will be built
20352 case "x$enable_static" in # ((
20354 xc_lt_build_static=$enable_static
20357 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
20362 # Verify if libtool shared libraries should be linked using flag -version-info
20365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
20366 printf %s "checking whether to build shared libraries with -version-info... " >&6; }
20367 xc_lt_shlib_use_version_info='yes'
20368 if test "x$version_type" = 'xnone'; then
20369 xc_lt_shlib_use_version_info='no'
20371 case $host_os in # (
20373 xc_lt_shlib_use_version_info='yes'
20376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
20377 printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
20380 # Verify if libtool shared libraries should be linked using flag -no-undefined
20383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
20384 printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
20385 xc_lt_shlib_use_no_undefined='no'
20386 if test "x$allow_undefined" = 'xno'; then
20387 xc_lt_shlib_use_no_undefined='yes'
20388 elif test "x$allow_undefined_flag" = 'xunsupported'; then
20389 xc_lt_shlib_use_no_undefined='yes'
20391 case $host_os in # (
20392 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
20393 xc_lt_shlib_use_no_undefined='yes'
20396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
20397 printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
20400 # Verify if libtool shared libraries should be linked using flag -mimpure-text
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
20404 printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
20405 xc_lt_shlib_use_mimpure_text='no'
20406 case $host_os in # (
20408 if test "x$GCC" = 'xyes'; then
20409 xc_lt_shlib_use_mimpure_text='yes'
20413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
20414 printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
20417 # Find out wether libtool libraries would be built wit PIC
20420 case "x$pic_mode" in # ((((
20422 xc_lt_build_shared_with_pic='yes'
20423 xc_lt_build_static_with_pic='no'
20426 xc_lt_build_shared_with_pic='yes'
20427 xc_lt_build_static_with_pic='yes'
20430 xc_lt_build_shared_with_pic='no'
20431 xc_lt_build_static_with_pic='no'
20434 xc_lt_build_shared_with_pic='unknown'
20435 xc_lt_build_static_with_pic='unknown'
20436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
20437 printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
20440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
20441 printf %s "checking whether to build shared libraries with PIC... " >&6; }
20442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
20443 printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
20444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
20445 printf %s "checking whether to build static libraries with PIC... " >&6; }
20446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
20447 printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
20450 # Verify if libtool shared libraries will be built while static not built
20453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
20454 printf %s "checking whether to build shared libraries only... " >&6; }
20455 if test "$xc_lt_build_shared" = 'yes' &&
20456 test "$xc_lt_build_static" = 'no'; then
20457 xc_lt_build_shared_only='yes'
20459 xc_lt_build_shared_only='no'
20461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
20462 printf "%s\n" "$xc_lt_build_shared_only" >&6; }
20465 # Verify if libtool static libraries will be built while shared not built
20468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
20469 printf %s "checking whether to build static libraries only... " >&6; }
20470 if test "$xc_lt_build_static" = 'yes' &&
20471 test "$xc_lt_build_shared" = 'no'; then
20472 xc_lt_build_static_only='yes'
20474 xc_lt_build_static_only='no'
20476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
20477 printf "%s\n" "$xc_lt_build_static_only" >&6; }
20484 # Automake conditionals based on libtool related checks
20487 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
20488 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
20489 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
20491 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
20492 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
20495 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
20496 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
20497 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
20499 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
20500 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
20503 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
20504 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
20505 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
20507 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
20508 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
20513 # Due to libtool and automake machinery limitations of not allowing
20514 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
20515 # inclusion of these in shared or static libraries, we are forced to
20516 # build using separate configure runs for shared and static libraries
20517 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
20518 # to compile objects for each kind of library. Notice that relying on
20519 # the '-DPIC' CFLAG that libtool provides is not valid given that the
20520 # user might for example choose to build static libraries with PIC.
20524 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
20525 # targeting a static library and not building its shared counterpart.
20528 if test "x$xc_lt_build_static_only" = 'xyes'; then
20529 USE_CPPFLAG_CARES_STATICLIB_TRUE=
20530 USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
20532 USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
20533 USE_CPPFLAG_CARES_STATICLIB_FALSE=
20538 # Make staticlib CPPFLAG variable and its definition visible in output
20539 # files unconditionally, providing an empty definition unless strictly
20540 # targeting a static library and not building its shared counterpart.
20543 CPPFLAG_CARES_STATICLIB=
20544 if test "x$xc_lt_build_static_only" = 'xyes'; then
20545 CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
20552 compiler_id="unknown"
20555 flags_dbg_all="unknown"
20556 flags_dbg_yes="unknown"
20557 flags_dbg_off="unknown"
20558 flags_opt_all="unknown"
20559 flags_opt_yes="unknown"
20560 flags_opt_off="unknown"
20562 flags_prefer_cppflags="no"
20565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
20566 printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
20568 if test -z "$SED"; then
20569 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20571 if test -z "$GREP"; then
20572 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h. */
20581 CURL_DEF_TOKEN __DECC
20586 if ac_fn_c_try_cpp "$LINENO"
20589 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20590 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20591 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20592 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20593 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
20598 rm -f conftest.err conftest.i conftest.$ac_ext
20599 if test -z "$tmp_exp"; then
20600 curl_cv_have_def___DECC=no
20603 curl_cv_have_def___DECC=yes
20604 curl_cv_def___DECC=$tmp_exp
20609 if test -z "$SED"; then
20610 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20612 if test -z "$GREP"; then
20613 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h. */
20622 CURL_DEF_TOKEN __DECC_VER
20627 if ac_fn_c_try_cpp "$LINENO"
20630 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20631 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20632 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20633 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20634 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
20639 rm -f conftest.err conftest.i conftest.$ac_ext
20640 if test -z "$tmp_exp"; then
20641 curl_cv_have_def___DECC_VER=no
20644 curl_cv_have_def___DECC_VER=yes
20645 curl_cv_def___DECC_VER=$tmp_exp
20649 if test "$curl_cv_have_def___DECC" = "yes" &&
20650 test "$curl_cv_have_def___DECC_VER" = "yes"; then
20651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20652 printf "%s\n" "yes" >&6; }
20653 compiler_id="DEC_C"
20654 flags_dbg_all="-g -g0 -g1 -g2 -g3"
20655 flags_dbg_yes="-g2"
20656 flags_dbg_off="-g0"
20657 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
20658 flags_opt_yes="-O1"
20659 flags_opt_off="-O0"
20661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20662 printf "%s\n" "no" >&6; }
20666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
20667 printf %s "checking if compiler is HP-UX C... " >&6; }
20669 if test -z "$SED"; then
20670 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20672 if test -z "$GREP"; then
20673 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20678 /* end confdefs.h. */
20682 CURL_DEF_TOKEN __HP_cc
20687 if ac_fn_c_try_cpp "$LINENO"
20690 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20691 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20692 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20693 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20694 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
20699 rm -f conftest.err conftest.i conftest.$ac_ext
20700 if test -z "$tmp_exp"; then
20701 curl_cv_have_def___HP_cc=no
20704 curl_cv_have_def___HP_cc=yes
20705 curl_cv_def___HP_cc=$tmp_exp
20709 if test "$curl_cv_have_def___HP_cc" = "yes"; then
20710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20711 printf "%s\n" "yes" >&6; }
20712 compiler_id="HP_UX_C"
20713 flags_dbg_all="-g -s"
20716 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
20717 flags_opt_yes="+O2"
20718 flags_opt_off="+O0"
20720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20721 printf "%s\n" "no" >&6; }
20725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
20726 printf %s "checking if compiler is IBM C... " >&6; }
20728 if test -z "$SED"; then
20729 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20731 if test -z "$GREP"; then
20732 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20737 /* end confdefs.h. */
20741 CURL_DEF_TOKEN __IBMC__
20746 if ac_fn_c_try_cpp "$LINENO"
20749 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20750 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20751 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20752 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20753 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
20758 rm -f conftest.err conftest.i conftest.$ac_ext
20759 if test -z "$tmp_exp"; then
20760 curl_cv_have_def___IBMC__=no
20763 curl_cv_have_def___IBMC__=yes
20764 curl_cv_def___IBMC__=$tmp_exp
20768 if test "$curl_cv_have_def___IBMC__" = "yes"; then
20769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20770 printf "%s\n" "yes" >&6; }
20771 compiler_id="IBM_C"
20772 flags_dbg_all="-g -g0 -g1 -g2 -g3"
20775 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
20776 flags_opt_all="$flags_opt_all -qnooptimize"
20777 flags_opt_all="$flags_opt_all -qoptimize=0"
20778 flags_opt_all="$flags_opt_all -qoptimize=1"
20779 flags_opt_all="$flags_opt_all -qoptimize=2"
20780 flags_opt_all="$flags_opt_all -qoptimize=3"
20781 flags_opt_all="$flags_opt_all -qoptimize=4"
20782 flags_opt_all="$flags_opt_all -qoptimize=5"
20783 flags_opt_yes="-O2"
20784 flags_opt_off="-qnooptimize"
20785 flags_prefer_cppflags="yes"
20787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20788 printf "%s\n" "no" >&6; }
20792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
20793 printf %s "checking if compiler is Intel C... " >&6; }
20795 if test -z "$SED"; then
20796 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20798 if test -z "$GREP"; then
20799 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h. */
20807 #ifdef __INTEL_COMPILER
20808 CURL_DEF_TOKEN __INTEL_COMPILER
20813 if ac_fn_c_try_cpp "$LINENO"
20816 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20817 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20818 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20819 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20820 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
20825 rm -f conftest.err conftest.i conftest.$ac_ext
20826 if test -z "$tmp_exp"; then
20827 curl_cv_have_def___INTEL_COMPILER=no
20830 curl_cv_have_def___INTEL_COMPILER=yes
20831 curl_cv_def___INTEL_COMPILER=$tmp_exp
20835 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
20836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20837 printf "%s\n" "yes" >&6; }
20838 compiler_num="$curl_cv_def___INTEL_COMPILER"
20840 if test -z "$SED"; then
20841 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20843 if test -z "$GREP"; then
20844 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20849 /* end confdefs.h. */
20853 CURL_DEF_TOKEN __unix__
20858 if ac_fn_c_try_cpp "$LINENO"
20861 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20862 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20863 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20864 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20865 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
20870 rm -f conftest.err conftest.i conftest.$ac_ext
20871 if test -z "$tmp_exp"; then
20872 curl_cv_have_def___unix__=no
20875 curl_cv_have_def___unix__=yes
20876 curl_cv_def___unix__=$tmp_exp
20880 if test "$curl_cv_have_def___unix__" = "yes"; then
20881 compiler_id="INTEL_UNIX_C"
20882 flags_dbg_all="-g -g0"
20884 flags_dbg_off="-g0"
20885 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
20886 flags_opt_yes="-O2"
20887 flags_opt_off="-O0"
20889 compiler_id="INTEL_WINDOWS_C"
20890 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
20891 flags_dbg_all="$flags_dbg_all /debug"
20892 flags_dbg_all="$flags_dbg_all /debug:none"
20893 flags_dbg_all="$flags_dbg_all /debug:minimal"
20894 flags_dbg_all="$flags_dbg_all /debug:partial"
20895 flags_dbg_all="$flags_dbg_all /debug:full"
20896 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
20897 flags_dbg_all="$flags_dbg_all /debug:extended"
20898 flags_dbg_yes="/Zi /Oy-"
20899 flags_dbg_off="/debug:none /Oy-"
20900 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
20901 flags_opt_yes="/O2"
20902 flags_opt_off="/Od"
20905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20906 printf "%s\n" "no" >&6; }
20910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
20911 printf %s "checking if compiler is clang... " >&6; }
20913 if test -z "$SED"; then
20914 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20916 if test -z "$GREP"; then
20917 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20922 /* end confdefs.h. */
20926 CURL_DEF_TOKEN __clang__
20931 if ac_fn_c_try_cpp "$LINENO"
20934 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20935 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20936 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20937 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20938 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
20943 rm -f conftest.err conftest.i conftest.$ac_ext
20944 if test -z "$tmp_exp"; then
20945 curl_cv_have_def___clang__=no
20948 curl_cv_have_def___clang__=yes
20949 curl_cv_def___clang__=$tmp_exp
20953 if test "$curl_cv_have_def___clang__" = "yes"; then
20954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20955 printf "%s\n" "yes" >&6; }
20956 compiler_id="CLANG"
20957 clangver=`$CC -dumpversion`
20958 clangvhi=`echo $clangver | cut -d . -f1`
20959 clangvlo=`echo $clangver | cut -d . -f2`
20960 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
20961 flags_dbg_all="-g -g0 -g1 -g2 -g3"
20962 flags_dbg_all="$flags_dbg_all -ggdb"
20963 flags_dbg_all="$flags_dbg_all -gstabs"
20964 flags_dbg_all="$flags_dbg_all -gstabs+"
20965 flags_dbg_all="$flags_dbg_all -gcoff"
20966 flags_dbg_all="$flags_dbg_all -gxcoff"
20967 flags_dbg_all="$flags_dbg_all -gdwarf-2"
20968 flags_dbg_all="$flags_dbg_all -gvms"
20970 flags_dbg_off="-g0"
20971 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
20972 flags_opt_yes="-Os"
20973 flags_opt_off="-O0"
20975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20976 printf "%s\n" "no" >&6; }
20980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
20981 printf %s "checking if compiler is GNU C... " >&6; }
20983 if test -z "$SED"; then
20984 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20986 if test -z "$GREP"; then
20987 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h. */
20996 CURL_DEF_TOKEN __GNUC__
21001 if ac_fn_c_try_cpp "$LINENO"
21004 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21005 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21006 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21007 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21008 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
21013 rm -f conftest.err conftest.i conftest.$ac_ext
21014 if test -z "$tmp_exp"; then
21015 curl_cv_have_def___GNUC__=no
21018 curl_cv_have_def___GNUC__=yes
21019 curl_cv_def___GNUC__=$tmp_exp
21023 if test "$curl_cv_have_def___GNUC__" = "yes" &&
21024 test "$compiler_id" = "unknown"; then
21025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21026 printf "%s\n" "yes" >&6; }
21027 compiler_id="GNU_C"
21028 gccver=`$CC -dumpversion`
21029 gccvhi=`echo $gccver | cut -d . -f1`
21030 gccvlo=`echo $gccver | cut -d . -f2`
21031 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
21032 flags_dbg_all="-g -g0 -g1 -g2 -g3"
21033 flags_dbg_all="$flags_dbg_all -ggdb"
21034 flags_dbg_all="$flags_dbg_all -gstabs"
21035 flags_dbg_all="$flags_dbg_all -gstabs+"
21036 flags_dbg_all="$flags_dbg_all -gcoff"
21037 flags_dbg_all="$flags_dbg_all -gxcoff"
21038 flags_dbg_all="$flags_dbg_all -gdwarf-2"
21039 flags_dbg_all="$flags_dbg_all -gvms"
21041 flags_dbg_off="-g0"
21042 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
21043 flags_opt_yes="-O2"
21044 flags_opt_off="-O0"
21046 if test -z "$SED"; then
21047 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21049 if test -z "$GREP"; then
21050 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21055 /* end confdefs.h. */
21059 CURL_DEF_TOKEN _WIN32
21064 if ac_fn_c_try_cpp "$LINENO"
21067 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21068 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21069 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21070 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21071 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
21076 rm -f conftest.err conftest.i conftest.$ac_ext
21077 if test -z "$tmp_exp"; then
21078 curl_cv_have_def__WIN32=no
21081 curl_cv_have_def__WIN32=yes
21082 curl_cv_def__WIN32=$tmp_exp
21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21088 printf "%s\n" "no" >&6; }
21092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
21093 printf %s "checking if compiler is LCC... " >&6; }
21095 if test -z "$SED"; then
21096 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21098 if test -z "$GREP"; then
21099 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21104 /* end confdefs.h. */
21108 CURL_DEF_TOKEN __LCC__
21113 if ac_fn_c_try_cpp "$LINENO"
21116 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21117 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21118 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21119 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21120 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
21125 rm -f conftest.err conftest.i conftest.$ac_ext
21126 if test -z "$tmp_exp"; then
21127 curl_cv_have_def___LCC__=no
21130 curl_cv_have_def___LCC__=yes
21131 curl_cv_def___LCC__=$tmp_exp
21135 if test "$curl_cv_have_def___LCC__" = "yes"; then
21136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21137 printf "%s\n" "yes" >&6; }
21146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21147 printf "%s\n" "no" >&6; }
21151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
21152 printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
21154 if test -z "$SED"; then
21155 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21157 if test -z "$GREP"; then
21158 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21163 /* end confdefs.h. */
21167 CURL_DEF_TOKEN __GNUC__
21172 if ac_fn_c_try_cpp "$LINENO"
21175 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21176 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21177 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21178 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21179 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
21184 rm -f conftest.err conftest.i conftest.$ac_ext
21185 if test -z "$tmp_exp"; then
21186 curl_cv_have_def___GNUC__=no
21189 curl_cv_have_def___GNUC__=yes
21190 curl_cv_def___GNUC__=$tmp_exp
21195 if test -z "$SED"; then
21196 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21198 if test -z "$GREP"; then
21199 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21204 /* end confdefs.h. */
21207 #ifdef _COMPILER_VERSION
21208 CURL_DEF_TOKEN _COMPILER_VERSION
21213 if ac_fn_c_try_cpp "$LINENO"
21216 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21217 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21218 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21219 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21220 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
21225 rm -f conftest.err conftest.i conftest.$ac_ext
21226 if test -z "$tmp_exp"; then
21227 curl_cv_have_def__COMPILER_VERSION=no
21230 curl_cv_have_def__COMPILER_VERSION=yes
21231 curl_cv_def__COMPILER_VERSION=$tmp_exp
21236 if test -z "$SED"; then
21237 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21239 if test -z "$GREP"; then
21240 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21245 /* end confdefs.h. */
21248 #ifdef _SGI_COMPILER_VERSION
21249 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
21254 if ac_fn_c_try_cpp "$LINENO"
21257 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21258 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21259 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21260 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21261 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
21266 rm -f conftest.err conftest.i conftest.$ac_ext
21267 if test -z "$tmp_exp"; then
21268 curl_cv_have_def__SGI_COMPILER_VERSION=no
21271 curl_cv_have_def__SGI_COMPILER_VERSION=yes
21272 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
21276 if test "$curl_cv_have_def___GNUC__" = "no" &&
21277 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
21278 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
21279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21280 printf "%s\n" "yes" >&6; }
21281 compiler_id="SGI_MIPSPRO_C"
21282 flags_dbg_all="-g -g0 -g1 -g2 -g3"
21284 flags_dbg_off="-g0"
21285 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
21286 flags_opt_yes="-O2"
21287 flags_opt_off="-O0"
21289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21290 printf "%s\n" "no" >&6; }
21294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
21295 printf %s "checking if compiler is SGI MIPS C... " >&6; }
21297 if test -z "$SED"; then
21298 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21300 if test -z "$GREP"; then
21301 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21306 /* end confdefs.h. */
21310 CURL_DEF_TOKEN __GNUC__
21315 if ac_fn_c_try_cpp "$LINENO"
21318 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21319 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21320 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21321 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21322 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
21327 rm -f conftest.err conftest.i conftest.$ac_ext
21328 if test -z "$tmp_exp"; then
21329 curl_cv_have_def___GNUC__=no
21332 curl_cv_have_def___GNUC__=yes
21333 curl_cv_def___GNUC__=$tmp_exp
21338 if test -z "$SED"; then
21339 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21341 if test -z "$GREP"; then
21342 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21347 /* end confdefs.h. */
21351 CURL_DEF_TOKEN __sgi
21356 if ac_fn_c_try_cpp "$LINENO"
21359 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21360 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21361 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21362 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21363 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
21368 rm -f conftest.err conftest.i conftest.$ac_ext
21369 if test -z "$tmp_exp"; then
21370 curl_cv_have_def___sgi=no
21373 curl_cv_have_def___sgi=yes
21374 curl_cv_def___sgi=$tmp_exp
21378 if test "$curl_cv_have_def___GNUC__" = "no" &&
21379 test "$curl_cv_have_def___sgi" = "yes" &&
21380 test "$compiler_id" = "unknown"; then
21381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21382 printf "%s\n" "yes" >&6; }
21383 compiler_id="SGI_MIPS_C"
21384 flags_dbg_all="-g -g0 -g1 -g2 -g3"
21386 flags_dbg_off="-g0"
21387 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
21388 flags_opt_yes="-O2"
21389 flags_opt_off="-O0"
21391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21392 printf "%s\n" "no" >&6; }
21396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
21397 printf %s "checking if compiler is SunPro C... " >&6; }
21399 if test -z "$SED"; then
21400 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21402 if test -z "$GREP"; then
21403 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21408 /* end confdefs.h. */
21412 CURL_DEF_TOKEN __SUNPRO_C
21417 if ac_fn_c_try_cpp "$LINENO"
21420 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21421 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21422 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21423 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21424 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
21429 rm -f conftest.err conftest.i conftest.$ac_ext
21430 if test -z "$tmp_exp"; then
21431 curl_cv_have_def___SUNPRO_C=no
21434 curl_cv_have_def___SUNPRO_C=yes
21435 curl_cv_def___SUNPRO_C=$tmp_exp
21439 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
21440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21441 printf "%s\n" "yes" >&6; }
21442 compiler_id="SUNPRO_C"
21443 flags_dbg_all="-g -s"
21446 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
21447 flags_opt_yes="-xO2"
21450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21451 printf "%s\n" "no" >&6; }
21455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
21456 printf %s "checking if compiler is Tiny C... " >&6; }
21458 if test -z "$SED"; then
21459 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21461 if test -z "$GREP"; then
21462 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h. */
21471 CURL_DEF_TOKEN __TINYC__
21476 if ac_fn_c_try_cpp "$LINENO"
21479 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21480 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21481 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21482 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21483 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
21488 rm -f conftest.err conftest.i conftest.$ac_ext
21489 if test -z "$tmp_exp"; then
21490 curl_cv_have_def___TINYC__=no
21493 curl_cv_have_def___TINYC__=yes
21494 curl_cv_def___TINYC__=$tmp_exp
21498 if test "$curl_cv_have_def___TINYC__" = "yes"; then
21499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21500 printf "%s\n" "yes" >&6; }
21501 compiler_id="TINY_C"
21502 flags_dbg_all="-g -b"
21509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21510 printf "%s\n" "no" >&6; }
21514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
21515 printf %s "checking if compiler is Watcom C... " >&6; }
21517 if test -z "$SED"; then
21518 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21520 if test -z "$GREP"; then
21521 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21526 /* end confdefs.h. */
21530 CURL_DEF_TOKEN __WATCOMC__
21535 if ac_fn_c_try_cpp "$LINENO"
21538 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21539 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21540 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21541 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21542 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
21547 rm -f conftest.err conftest.i conftest.$ac_ext
21548 if test -z "$tmp_exp"; then
21549 curl_cv_have_def___WATCOMC__=no
21552 curl_cv_have_def___WATCOMC__=yes
21553 curl_cv_def___WATCOMC__=$tmp_exp
21557 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
21558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21559 printf "%s\n" "yes" >&6; }
21561 if test -z "$SED"; then
21562 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21564 if test -z "$GREP"; then
21565 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21570 /* end confdefs.h. */
21574 CURL_DEF_TOKEN __UNIX__
21579 if ac_fn_c_try_cpp "$LINENO"
21582 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21583 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21584 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21585 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21586 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
21591 rm -f conftest.err conftest.i conftest.$ac_ext
21592 if test -z "$tmp_exp"; then
21593 curl_cv_have_def___UNIX__=no
21596 curl_cv_have_def___UNIX__=yes
21597 curl_cv_def___UNIX__=$tmp_exp
21601 if test "$curl_cv_have_def___UNIX__" = "yes"; then
21602 compiler_id="WATCOM_UNIX_C"
21603 flags_dbg_all="-g1 -g1+ -g2 -g3"
21604 flags_dbg_yes="-g2"
21606 flags_opt_all="-O0 -O1 -O2 -O3"
21607 flags_opt_yes="-O2"
21608 flags_opt_off="-O0"
21610 compiler_id="WATCOM_WINDOWS_C"
21619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21620 printf "%s\n" "no" >&6; }
21624 if test "$compiler_id" = "unknown"; then
21627 *** Warning: This configure script does not have information about the
21628 *** compiler you are using, relative to the flags required to enable or
21629 *** disable generation of debug info, optimization options or warnings.
21631 *** Whatever settings are present in CFLAGS will be used for this run.
21633 *** If you wish to help the c-ares project to better support your compiler
21634 *** you can report this and the required info on the c-ares development
21635 *** mailing list: http://lists.haxx.se/listinfo/c-ares/
21643 eval _sqz_input=\$$1
21644 for _sqz_token in $_sqz_input; do
21645 if test -z "$_sqz_result"; then
21646 _sqz_result="$_sqz_token"
21648 _sqz_result="$_sqz_result $_sqz_token"
21651 eval $1=\$_sqz_result
21657 if test "$compiler_id" != "unknown"; then
21659 if test "$compiler_id" = "GNU_C" ||
21660 test "$compiler_id" = "CLANG"; then
21662 if test "$compiler_id" = "GNU_C" ||
21663 test "$compiler_id" = "CLANG"; then
21664 tmp_has_include="no"
21665 tmp_chg_FLAGS="$CFLAGS"
21666 for word1 in $tmp_chg_FLAGS; do
21669 tmp_has_include="yes"
21673 if test "$tmp_has_include" = "yes"; then
21674 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
21675 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
21676 CFLAGS="$tmp_chg_FLAGS"
21679 tmp_has_include="no"
21680 tmp_chg_FLAGS="$CPPFLAGS"
21681 for word1 in $tmp_chg_FLAGS; do
21684 tmp_has_include="yes"
21688 if test "$tmp_has_include" = "yes"; then
21689 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
21690 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
21691 CPPFLAGS="$tmp_chg_FLAGS"
21698 tmp_save_CPPFLAGS="$CPPFLAGS"
21699 tmp_save_CFLAGS="$CFLAGS"
21703 case "$compiler_id" in
21707 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
21712 tmp_CFLAGS="$tmp_CFLAGS -std1"
21713 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
21714 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
21715 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
21720 tmp_CFLAGS="$tmp_CFLAGS"
21725 tmp_CFLAGS="$tmp_CFLAGS -z"
21726 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
21731 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
21732 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
21733 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
21738 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
21739 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
21740 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
21745 tmp_CFLAGS="$tmp_CFLAGS"
21750 tmp_CFLAGS="$tmp_CFLAGS -n"
21755 tmp_CFLAGS="$tmp_CFLAGS"
21760 tmp_CFLAGS="$tmp_CFLAGS"
21765 tmp_CFLAGS="$tmp_CFLAGS"
21770 tmp_CFLAGS="$tmp_CFLAGS"
21775 tmp_CFLAGS="$tmp_CFLAGS"
21780 tmp_CFLAGS="$tmp_CFLAGS"
21785 squeeze tmp_CPPFLAGS
21788 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
21789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
21790 printf %s "checking if compiler accepts some basic options... " >&6; }
21791 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
21792 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21796 tmp_compiler_works="unknown"
21797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21798 /* end confdefs.h. */
21814 if ac_fn_c_try_compile "$LINENO"
21817 tmp_compiler_works="yes"
21821 tmp_compiler_works="no"
21823 sed 's/^/cc-fail: /' conftest.err >&6
21827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21828 if test "$tmp_compiler_works" = "yes"; then
21829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h. */
21846 if ac_fn_c_try_link "$LINENO"
21849 tmp_compiler_works="yes"
21853 tmp_compiler_works="no"
21855 sed 's/^/link-fail: /' conftest.err >&6
21859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21860 conftest$ac_exeext conftest.$ac_ext
21862 if test "x$cross_compiling" != "xyes" &&
21863 test "$tmp_compiler_works" = "yes"; then
21864 if test "$cross_compiling" = yes
21866 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21867 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21868 as_fn_error $? "cannot run test program while cross compiling
21869 See \`config.log' for more details" "$LINENO" 5; }
21871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h. */
21876 # include <stdlib.h>
21891 if ac_fn_c_try_run "$LINENO"
21894 tmp_compiler_works="yes"
21898 tmp_compiler_works="no"
21900 echo "run-fail: test program exited with status $ac_status" >&6
21904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21905 conftest.$ac_objext conftest.beam conftest.$ac_ext
21909 if test "$tmp_compiler_works" = "yes"; then
21911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21912 printf "%s\n" "yes" >&6; }
21913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21914 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
21918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21919 printf "%s\n" "no" >&6; }
21920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21921 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
21922 CPPFLAGS="$tmp_save_CPPFLAGS"
21923 CFLAGS="$tmp_save_CFLAGS"
21933 if test "$compiler_id" != "unknown"; then
21935 tmp_save_CFLAGS="$CFLAGS"
21936 tmp_save_CPPFLAGS="$CPPFLAGS"
21939 tmp_CFLAGS="$CFLAGS"
21940 tmp_CPPFLAGS="$CPPFLAGS"
21943 for word1 in $tmp_CFLAGS; do
21944 ac_var_strip_word="no"
21945 for word2 in $flags_dbg_all; do
21946 if test "$word1" = "$word2"; then
21947 ac_var_strip_word="yes"
21950 if test "$ac_var_strip_word" = "no"; then
21951 ac_var_stripped="$ac_var_stripped $word1"
21954 tmp_CFLAGS="$ac_var_stripped"
21959 for word1 in $tmp_CPPFLAGS; do
21960 ac_var_strip_word="no"
21961 for word2 in $flags_dbg_all; do
21962 if test "$word1" = "$word2"; then
21963 ac_var_strip_word="yes"
21966 if test "$ac_var_strip_word" = "no"; then
21967 ac_var_stripped="$ac_var_stripped $word1"
21970 tmp_CPPFLAGS="$ac_var_stripped"
21971 squeeze tmp_CPPFLAGS
21974 if test "$want_debug" = "yes"; then
21975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
21976 printf %s "checking if compiler accepts debug enabling options... " >&6; }
21977 tmp_options="$flags_dbg_yes"
21979 if test "$want_debug" = "no"; then
21980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
21981 printf %s "checking if compiler accepts debug disabling options... " >&6; }
21982 tmp_options="$flags_dbg_off"
21985 if test "$flags_prefer_cppflags" = "yes"; then
21986 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
21987 CFLAGS="$tmp_CFLAGS"
21989 CPPFLAGS="$tmp_CPPFLAGS"
21990 CFLAGS="$tmp_CFLAGS $tmp_options"
21995 tmp_compiler_works="unknown"
21996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21997 /* end confdefs.h. */
22013 if ac_fn_c_try_compile "$LINENO"
22016 tmp_compiler_works="yes"
22020 tmp_compiler_works="no"
22022 sed 's/^/cc-fail: /' conftest.err >&6
22026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22027 if test "$tmp_compiler_works" = "yes"; then
22028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22029 /* end confdefs.h. */
22045 if ac_fn_c_try_link "$LINENO"
22048 tmp_compiler_works="yes"
22052 tmp_compiler_works="no"
22054 sed 's/^/link-fail: /' conftest.err >&6
22058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22059 conftest$ac_exeext conftest.$ac_ext
22061 if test "x$cross_compiling" != "xyes" &&
22062 test "$tmp_compiler_works" = "yes"; then
22063 if test "$cross_compiling" = yes
22065 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22066 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22067 as_fn_error $? "cannot run test program while cross compiling
22068 See \`config.log' for more details" "$LINENO" 5; }
22070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22071 /* end confdefs.h. */
22075 # include <stdlib.h>
22090 if ac_fn_c_try_run "$LINENO"
22093 tmp_compiler_works="yes"
22097 tmp_compiler_works="no"
22099 echo "run-fail: test program exited with status $ac_status" >&6
22103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22104 conftest.$ac_objext conftest.beam conftest.$ac_ext
22108 if test "$tmp_compiler_works" = "yes"; then
22110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22111 printf "%s\n" "yes" >&6; }
22112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
22113 printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
22117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22118 printf "%s\n" "no" >&6; }
22119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
22120 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
22121 CPPFLAGS="$tmp_save_CPPFLAGS"
22122 CFLAGS="$tmp_save_CFLAGS"
22131 if test "$compiler_id" != "unknown"; then
22133 tmp_save_CFLAGS="$CFLAGS"
22134 tmp_save_CPPFLAGS="$CPPFLAGS"
22137 tmp_CFLAGS="$CFLAGS"
22138 tmp_CPPFLAGS="$CPPFLAGS"
22139 honor_optimize_option="yes"
22142 if test "$want_optimize" = "assume_no" ||
22143 test "$want_optimize" = "assume_yes"; then
22144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
22145 printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
22148 ac_var_match_word="no"
22149 for word1 in $tmp_CFLAGS; do
22150 for word2 in $flags_opt_all; do
22151 if test "$word1" = "$word2"; then
22152 ac_var_match_word="yes"
22157 if test "$ac_var_match_word" = "yes"; then
22159 honor_optimize_option="no"
22166 ac_var_match_word="no"
22167 for word1 in $tmp_CPPFLAGS; do
22168 for word2 in $flags_opt_all; do
22169 if test "$word1" = "$word2"; then
22170 ac_var_match_word="yes"
22175 if test "$ac_var_match_word" = "yes"; then
22177 honor_optimize_option="no"
22182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
22183 printf "%s\n" "$honor_optimize_option" >&6; }
22184 if test "$honor_optimize_option" = "yes"; then
22185 if test "$want_optimize" = "assume_yes"; then
22186 want_optimize="yes"
22188 if test "$want_optimize" = "assume_no"; then
22194 if test "$honor_optimize_option" = "yes"; then
22197 for word1 in $tmp_CFLAGS; do
22198 ac_var_strip_word="no"
22199 for word2 in $flags_opt_all; do
22200 if test "$word1" = "$word2"; then
22201 ac_var_strip_word="yes"
22204 if test "$ac_var_strip_word" = "no"; then
22205 ac_var_stripped="$ac_var_stripped $word1"
22208 tmp_CFLAGS="$ac_var_stripped"
22213 for word1 in $tmp_CPPFLAGS; do
22214 ac_var_strip_word="no"
22215 for word2 in $flags_opt_all; do
22216 if test "$word1" = "$word2"; then
22217 ac_var_strip_word="yes"
22220 if test "$ac_var_strip_word" = "no"; then
22221 ac_var_stripped="$ac_var_stripped $word1"
22224 tmp_CPPFLAGS="$ac_var_stripped"
22225 squeeze tmp_CPPFLAGS
22227 if test "$want_optimize" = "yes"; then
22228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
22229 printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
22230 tmp_options="$flags_opt_yes"
22232 if test "$want_optimize" = "no"; then
22233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
22234 printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
22235 tmp_options="$flags_opt_off"
22237 if test "$flags_prefer_cppflags" = "yes"; then
22238 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
22239 CFLAGS="$tmp_CFLAGS"
22241 CPPFLAGS="$tmp_CPPFLAGS"
22242 CFLAGS="$tmp_CFLAGS $tmp_options"
22247 tmp_compiler_works="unknown"
22248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22249 /* end confdefs.h. */
22265 if ac_fn_c_try_compile "$LINENO"
22268 tmp_compiler_works="yes"
22272 tmp_compiler_works="no"
22274 sed 's/^/cc-fail: /' conftest.err >&6
22278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22279 if test "$tmp_compiler_works" = "yes"; then
22280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22281 /* end confdefs.h. */
22297 if ac_fn_c_try_link "$LINENO"
22300 tmp_compiler_works="yes"
22304 tmp_compiler_works="no"
22306 sed 's/^/link-fail: /' conftest.err >&6
22310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22311 conftest$ac_exeext conftest.$ac_ext
22313 if test "x$cross_compiling" != "xyes" &&
22314 test "$tmp_compiler_works" = "yes"; then
22315 if test "$cross_compiling" = yes
22317 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22318 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22319 as_fn_error $? "cannot run test program while cross compiling
22320 See \`config.log' for more details" "$LINENO" 5; }
22322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22323 /* end confdefs.h. */
22327 # include <stdlib.h>
22342 if ac_fn_c_try_run "$LINENO"
22345 tmp_compiler_works="yes"
22349 tmp_compiler_works="no"
22351 echo "run-fail: test program exited with status $ac_status" >&6
22355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22356 conftest.$ac_objext conftest.beam conftest.$ac_ext
22360 if test "$tmp_compiler_works" = "yes"; then
22362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22363 printf "%s\n" "yes" >&6; }
22364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
22365 printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
22369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22370 printf "%s\n" "no" >&6; }
22371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
22372 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
22373 CPPFLAGS="$tmp_save_CPPFLAGS"
22374 CFLAGS="$tmp_save_CFLAGS"
22384 if test "$compiler_id" != "unknown"; then
22386 tmp_save_CPPFLAGS="$CPPFLAGS"
22387 tmp_save_CFLAGS="$CFLAGS"
22391 case "$compiler_id" in
22395 if test "$want_warnings" = "yes"; then
22396 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
22397 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
22398 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
22399 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
22400 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
22401 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
22402 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
22403 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
22404 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
22405 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
22406 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
22407 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
22408 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
22409 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
22410 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
22411 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
22412 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
22414 if test "$compiler_num" -ge "101"; then
22415 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
22422 if test "$want_warnings" = "yes"; then
22423 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
22429 if test "$want_warnings" = "yes"; then
22431 if test "x$cross_compiling" != "xyes" ||
22432 test "$compiler_num" -ge "300"; then
22433 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
22436 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
22438 if test "$compiler_num" -ge "104"; then
22439 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
22440 if test "x$cross_compiling" != "xyes" ||
22441 test "$compiler_num" -ge "300"; then
22442 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
22446 if test "$compiler_num" -ge "207"; then
22447 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
22448 if test "x$cross_compiling" != "xyes" ||
22449 test "$compiler_num" -ge "300"; then
22450 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
22451 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
22455 if test "$compiler_num" -ge "295"; then
22456 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
22459 if test "$compiler_num" -ge "296"; then
22460 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
22461 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
22462 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
22465 if test "$compiler_num" -ge "297"; then
22466 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
22469 if test "$compiler_num" -ge "300"; then
22470 tmp_CFLAGS="$tmp_CFLAGS"
22473 if test "$compiler_num" -ge "303"; then
22474 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
22477 if test "$compiler_num" -ge "304"; then
22478 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
22481 if test "$compiler_num" -ge "400"; then
22482 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
22485 if test "$compiler_num" -ge "402"; then
22486 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
22489 if test "$compiler_num" -ge "403"; then
22490 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
22491 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
22492 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
22493 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
22496 if test "$compiler_num" -ge "405"; then
22497 if test "$curl_cv_have_def__WIN32" = "yes"; then
22498 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
22504 if test "$compiler_num" -ge "300"; then
22505 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
22507 if test "x$cross_compiling" = "xyes"; then
22508 if test "$compiler_num" -ge "104"; then
22509 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
22511 if test "$compiler_num" -ge "207"; then
22512 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
22513 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
22521 if test "$want_warnings" = "yes"; then
22522 tmp_CFLAGS="$tmp_CFLAGS +w1"
22528 tmp_CFLAGS="$tmp_CFLAGS"
22533 if test "$want_warnings" = "yes"; then
22534 if test "$compiler_num" -gt "600"; then
22535 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
22536 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
22537 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
22538 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
22539 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
22540 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
22541 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
22542 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
22543 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
22544 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
22545 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
22548 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
22549 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
22550 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
22551 if test "$compiler_num" -ge "1000"; then
22552 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
22558 tmp_CFLAGS="$tmp_CFLAGS"
22563 if test "$want_warnings" = "yes"; then
22564 tmp_CFLAGS="$tmp_CFLAGS"
22570 if test "$want_warnings" = "yes"; then
22571 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
22577 if test "$want_warnings" = "yes"; then
22578 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
22579 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
22585 if test "$want_warnings" = "yes"; then
22586 tmp_CFLAGS="$tmp_CFLAGS -v"
22592 if test "$want_warnings" = "yes"; then
22593 tmp_CFLAGS="$tmp_CFLAGS -Wall"
22594 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
22595 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
22601 if test "$want_warnings" = "yes"; then
22602 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
22608 tmp_CFLAGS="$tmp_CFLAGS"
22613 squeeze tmp_CPPFLAGS
22616 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
22617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
22618 printf %s "checking if compiler accepts strict warning options... " >&6; }
22619 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
22620 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
22624 tmp_compiler_works="unknown"
22625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h. */
22642 if ac_fn_c_try_compile "$LINENO"
22645 tmp_compiler_works="yes"
22649 tmp_compiler_works="no"
22651 sed 's/^/cc-fail: /' conftest.err >&6
22655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22656 if test "$tmp_compiler_works" = "yes"; then
22657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22658 /* end confdefs.h. */
22674 if ac_fn_c_try_link "$LINENO"
22677 tmp_compiler_works="yes"
22681 tmp_compiler_works="no"
22683 sed 's/^/link-fail: /' conftest.err >&6
22687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22688 conftest$ac_exeext conftest.$ac_ext
22690 if test "x$cross_compiling" != "xyes" &&
22691 test "$tmp_compiler_works" = "yes"; then
22692 if test "$cross_compiling" = yes
22694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22695 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22696 as_fn_error $? "cannot run test program while cross compiling
22697 See \`config.log' for more details" "$LINENO" 5; }
22699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22700 /* end confdefs.h. */
22704 # include <stdlib.h>
22719 if ac_fn_c_try_run "$LINENO"
22722 tmp_compiler_works="yes"
22726 tmp_compiler_works="no"
22728 echo "run-fail: test program exited with status $ac_status" >&6
22732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22733 conftest.$ac_objext conftest.beam conftest.$ac_ext
22737 if test "$tmp_compiler_works" = "yes"; then
22739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22740 printf "%s\n" "yes" >&6; }
22741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
22742 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
22746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22747 printf "%s\n" "no" >&6; }
22748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
22749 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
22750 CPPFLAGS="$tmp_save_CPPFLAGS"
22751 CFLAGS="$tmp_save_CFLAGS"
22760 if test "$compiler_id" = "INTEL_UNIX_C"; then
22762 if test "$compiler_num" -ge "1000"; then
22763 CFLAGS="$CFLAGS -shared-intel"
22764 elif test "$compiler_num" -ge "900"; then
22765 CFLAGS="$CFLAGS -i-dynamic"
22771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
22772 printf %s "checking if compiler halts on compilation errors... " >&6; }
22773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22774 /* end confdefs.h. */
22782 force compilation error
22789 if ac_fn_c_try_compile "$LINENO"
22792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22793 printf "%s\n" "no" >&6; }
22794 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
22798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22799 printf "%s\n" "yes" >&6; }
22802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
22806 printf %s "checking if compiler halts on negative sized arrays... " >&6; }
22807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22808 /* end confdefs.h. */
22811 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
22824 if ac_fn_c_try_compile "$LINENO"
22827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22828 printf "%s\n" "no" >&6; }
22829 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
22833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22834 printf "%s\n" "yes" >&6; }
22837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
22841 printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
22842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h. */
22846 # include <stdlib.h>
22861 int j = rand(i[0]);
22870 if ac_fn_c_try_compile "$LINENO"
22873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22874 printf "%s\n" "no" >&6; }
22875 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
22879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22880 printf "%s\n" "yes" >&6; }
22883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
22887 printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
22888 supports_symbol_hiding="no"
22889 symbol_hiding_CFLAGS=""
22890 symbol_hiding_EXTERN=""
22893 case "$compiler_id" in
22895 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
22896 tmp_CFLAGS="-fvisibility=hidden"
22897 supports_symbol_hiding="yes"
22900 if test "$compiler_num" -ge "304"; then
22901 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
22902 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
22903 tmp_CFLAGS="-fvisibility=hidden"
22904 supports_symbol_hiding="yes"
22909 if test "$compiler_num" -ge "900"; then
22910 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
22911 tmp_save_CFLAGS="$CFLAGS"
22912 CFLAGS="$CFLAGS -fvisibility=hidden"
22913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22914 /* end confdefs.h. */
22917 # include <stdio.h>
22923 printf("icc fvisibility bug test");
22930 if ac_fn_c_try_link "$LINENO"
22933 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
22934 tmp_CFLAGS="-fvisibility=hidden"
22935 supports_symbol_hiding="yes"
22938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22939 conftest$ac_exeext conftest.$ac_ext
22940 CFLAGS="$tmp_save_CFLAGS"
22945 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
22946 tmp_EXTERN="__global"
22947 tmp_CFLAGS="-xldscope=hidden"
22948 supports_symbol_hiding="yes"
22952 if test "$supports_symbol_hiding" = "yes"; then
22953 tmp_save_CFLAGS="$CFLAGS"
22954 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
22956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22957 /* end confdefs.h. */
22960 $tmp_EXTERN char *dummy(char *buff);
22961 char *dummy(char *buff)
22974 char *r = dummy(&b[0]);
22983 if ac_fn_c_try_compile "$LINENO"
22986 supports_symbol_hiding="yes"
22987 if test -f conftest.err; then
22988 grep 'visibility' conftest.err >/dev/null
22989 if test "$?" -eq "0"; then
22990 supports_symbol_hiding="no"
22996 supports_symbol_hiding="no"
22998 sed 's/^/cc-src: /' conftest.$ac_ext >&6
22999 sed 's/^/cc-err: /' conftest.err >&6
23003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23004 CFLAGS="$tmp_save_CFLAGS"
23006 if test "$supports_symbol_hiding" = "yes"; then
23007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23008 printf "%s\n" "yes" >&6; }
23009 symbol_hiding_CFLAGS="$tmp_CFLAGS"
23010 symbol_hiding_EXTERN="$tmp_EXTERN"
23012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23013 printf "%s\n" "no" >&6; }
23020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
23021 printf %s "checking for windows.h... " >&6; }
23022 if test ${ac_cv_header_windows_h+y}
23024 printf %s "(cached) " >&6
23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23032 #ifndef WIN32_LEAN_AND_MEAN
23033 #define WIN32_LEAN_AND_MEAN
23035 #include <windows.h>
23041 #if defined(__CYGWIN__) || defined(__CEGCC__)
23042 HAVE_WINDOWS_H shall not be defined.
23044 int dummy=2*WINVER;
23052 if ac_fn_c_try_compile "$LINENO"
23055 ac_cv_header_windows_h="yes"
23059 ac_cv_header_windows_h="no"
23062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
23066 printf "%s\n" "$ac_cv_header_windows_h" >&6; }
23067 case "$ac_cv_header_windows_h" in
23070 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
23073 printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
23079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
23080 printf %s "checking whether build target is a native Windows one... " >&6; }
23081 if test ${ac_cv_native_windows+y}
23083 printf %s "(cached) " >&6
23086 if test "$ac_cv_header_windows_h" = "no"; then
23087 ac_cv_native_windows="no"
23089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23090 /* end confdefs.h. */
23098 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
23099 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
23102 Not a native Windows build target.
23110 if ac_fn_c_try_compile "$LINENO"
23113 ac_cv_native_windows="yes"
23117 ac_cv_native_windows="no"
23120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
23125 printf "%s\n" "$ac_cv_native_windows" >&6; }
23126 if test "x$ac_cv_native_windows" = xyes; then
23127 DOING_NATIVE_WINDOWS_TRUE=
23128 DOING_NATIVE_WINDOWS_FALSE='#'
23130 DOING_NATIVE_WINDOWS_TRUE='#'
23131 DOING_NATIVE_WINDOWS_FALSE=
23135 case X-"$ac_cv_native_windows" in
23138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
23139 printf %s "checking for winsock.h... " >&6; }
23140 if test ${ac_cv_header_winsock_h+y}
23142 printf %s "(cached) " >&6
23145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23146 /* end confdefs.h. */
23150 #ifndef WIN32_LEAN_AND_MEAN
23151 #define WIN32_LEAN_AND_MEAN
23153 #include <windows.h>
23154 #include <winsock.h>
23160 #if defined(__CYGWIN__) || defined(__CEGCC__)
23161 HAVE_WINSOCK_H shall not be defined.
23163 int dummy=WSACleanup();
23171 if ac_fn_c_try_compile "$LINENO"
23174 ac_cv_header_winsock_h="yes"
23178 ac_cv_header_winsock_h="no"
23181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
23185 printf "%s\n" "$ac_cv_header_winsock_h" >&6; }
23186 case "$ac_cv_header_winsock_h" in
23189 printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h
23195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
23196 printf %s "checking for winsock2.h... " >&6; }
23197 if test ${ac_cv_header_winsock2_h+y}
23199 printf %s "(cached) " >&6
23202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23203 /* end confdefs.h. */
23207 #ifndef WIN32_LEAN_AND_MEAN
23208 #define WIN32_LEAN_AND_MEAN
23210 #include <windows.h>
23211 #include <winsock2.h>
23217 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23218 HAVE_WINSOCK2_H shall not be defined.
23220 int dummy=2*IPPROTO_ESP;
23228 if ac_fn_c_try_compile "$LINENO"
23231 ac_cv_header_winsock2_h="yes"
23235 ac_cv_header_winsock2_h="no"
23238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
23242 printf "%s\n" "$ac_cv_header_winsock2_h" >&6; }
23243 case "$ac_cv_header_winsock2_h" in
23246 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
23252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
23253 printf %s "checking for ws2tcpip.h... " >&6; }
23254 if test ${ac_cv_header_ws2tcpip_h+y}
23256 printf %s "(cached) " >&6
23259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23260 /* end confdefs.h. */
23264 #ifndef WIN32_LEAN_AND_MEAN
23265 #define WIN32_LEAN_AND_MEAN
23267 #include <windows.h>
23268 #include <winsock2.h>
23269 #include <ws2tcpip.h>
23275 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23276 HAVE_WS2TCPIP_H shall not be defined.
23278 int dummy=2*IP_PKTINFO;
23286 if ac_fn_c_try_compile "$LINENO"
23289 ac_cv_header_ws2tcpip_h="yes"
23293 ac_cv_header_ws2tcpip_h="no"
23296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
23300 printf "%s\n" "$ac_cv_header_ws2tcpip_h" >&6; }
23301 case "$ac_cv_header_ws2tcpip_h" in
23304 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
23309 CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600"
23312 ac_cv_header_winsock_h="no"
23313 ac_cv_header_winsock2_h="no"
23314 ac_cv_header_ws2tcpip_h="no"
23320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
23321 printf %s "checking if X/Open network library is required... " >&6; }
23322 tst_lib_xnet_required="no"
23323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23324 /* end confdefs.h. */
23329 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
23331 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
23334 force compilation error
23340 if ac_fn_c_try_compile "$LINENO"
23343 tst_lib_xnet_required="yes"
23344 LIBS="$LIBS -lxnet"
23347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
23349 printf "%s\n" "$tst_lib_xnet_required" >&6; }
23352 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23353 if test "x$ac_cv_func_gethostbyname" = xyes
23355 HAVE_GETHOSTBYNAME="1"
23358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
23359 printf %s "checking for gethostbyname in -lnsl... " >&6; }
23360 if test ${ac_cv_lib_nsl_gethostbyname+y}
23362 printf %s "(cached) " >&6
23364 ac_check_lib_save_LIBS=$LIBS
23366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367 /* end confdefs.h. */
23369 /* Override any GCC internal prototype to avoid an error.
23370 Use char because int might match the return type of a GCC
23371 builtin and then its argument prototype would still apply. */
23372 char gethostbyname ();
23376 return gethostbyname ();
23381 if ac_fn_c_try_link "$LINENO"
23383 ac_cv_lib_nsl_gethostbyname=yes
23385 ac_cv_lib_nsl_gethostbyname=no
23387 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23388 conftest$ac_exeext conftest.$ac_ext
23389 LIBS=$ac_check_lib_save_LIBS
23391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
23392 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
23393 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
23395 HAVE_GETHOSTBYNAME="1"
23404 if test "$HAVE_GETHOSTBYNAME" != "1"
23406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
23407 printf %s "checking for gethostbyname in -lsocket... " >&6; }
23408 if test ${ac_cv_lib_socket_gethostbyname+y}
23410 printf %s "(cached) " >&6
23412 ac_check_lib_save_LIBS=$LIBS
23413 LIBS="-lsocket $LIBS"
23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23415 /* end confdefs.h. */
23417 /* Override any GCC internal prototype to avoid an error.
23418 Use char because int might match the return type of a GCC
23419 builtin and then its argument prototype would still apply. */
23420 char gethostbyname ();
23424 return gethostbyname ();
23429 if ac_fn_c_try_link "$LINENO"
23431 ac_cv_lib_socket_gethostbyname=yes
23433 ac_cv_lib_socket_gethostbyname=no
23435 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23436 conftest$ac_exeext conftest.$ac_ext
23437 LIBS=$ac_check_lib_save_LIBS
23439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
23440 printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
23441 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
23443 HAVE_GETHOSTBYNAME="1"
23444 LIBS="$LIBS -lsocket"
23450 if test "$HAVE_GETHOSTBYNAME" != "1"
23452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
23453 printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
23454 my_ac_save_LIBS=$LIBS
23455 LIBS="-lnsl -lsocket $LIBS"
23456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23457 /* end confdefs.h. */
23472 if ac_fn_c_try_link "$LINENO"
23475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23476 printf "%s\n" "yes" >&6; }
23477 HAVE_GETHOSTBYNAME="1"
23481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23482 printf "%s\n" "no" >&6; }
23483 LIBS=$my_ac_save_LIBS
23486 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23487 conftest$ac_exeext conftest.$ac_ext
23490 if test "$HAVE_GETHOSTBYNAME" != "1"
23492 if test "$ac_cv_header_windows_h" = "yes"; then
23493 if test "$ac_cv_header_winsock_h" = "yes"; then
23496 winsock_LIB="-lwinsock"
23499 winsock_LIB="-lwsock32"
23503 if test "$ac_cv_header_winsock2_h" = "yes"; then
23504 winsock_LIB="-lws2_32"
23506 if test ! -z "$winsock_LIB"; then
23507 my_ac_save_LIBS=$LIBS
23508 LIBS="$winsock_LIB $LIBS"
23509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
23510 printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
23511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23512 /* end confdefs.h. */
23515 #ifdef HAVE_WINDOWS_H
23516 #ifndef WIN32_LEAN_AND_MEAN
23517 #define WIN32_LEAN_AND_MEAN
23519 #include <windows.h>
23520 #ifdef HAVE_WINSOCK2_H
23521 #include <winsock2.h>
23523 #ifdef HAVE_WINSOCK_H
23524 #include <winsock.h>
23533 gethostbyname("www.dummysite.com");
23540 if ac_fn_c_try_link "$LINENO"
23543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23544 printf "%s\n" "yes" >&6; }
23545 HAVE_GETHOSTBYNAME="1"
23549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23550 printf "%s\n" "no" >&6; }
23552 LIBS=$my_ac_save_LIBS
23555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23556 conftest$ac_exeext conftest.$ac_ext
23561 if test "$HAVE_GETHOSTBYNAME" != "1"
23563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
23564 printf %s "checking for gethostbyname for Minix 3... " >&6; }
23565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23566 /* end confdefs.h. */
23569 /* Older Minix versions may need <net/gen/netdb.h> here instead */
23576 gethostbyname("www.dummysite.com");
23583 if ac_fn_c_try_link "$LINENO"
23586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23587 printf "%s\n" "yes" >&6; }
23588 HAVE_GETHOSTBYNAME="1"
23592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23593 printf "%s\n" "no" >&6; }
23596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23597 conftest$ac_exeext conftest.$ac_ext
23600 if test "$HAVE_GETHOSTBYNAME" != "1"
23602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
23603 printf %s "checking for gethostbyname for eCos... " >&6; }
23604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23605 /* end confdefs.h. */
23615 gethostbyname("www.dummysite.com");
23622 if ac_fn_c_try_link "$LINENO"
23625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23626 printf "%s\n" "yes" >&6; }
23627 HAVE_GETHOSTBYNAME="1"
23631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23632 printf "%s\n" "no" >&6; }
23635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23636 conftest$ac_exeext conftest.$ac_ext
23639 if test "$HAVE_GETHOSTBYNAME" != "1"
23641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
23642 printf %s "checking for gethostbyname in -lnet... " >&6; }
23643 if test ${ac_cv_lib_net_gethostbyname+y}
23645 printf %s "(cached) " >&6
23647 ac_check_lib_save_LIBS=$LIBS
23649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23650 /* end confdefs.h. */
23652 /* Override any GCC internal prototype to avoid an error.
23653 Use char because int might match the return type of a GCC
23654 builtin and then its argument prototype would still apply. */
23655 char gethostbyname ();
23659 return gethostbyname ();
23664 if ac_fn_c_try_link "$LINENO"
23666 ac_cv_lib_net_gethostbyname=yes
23668 ac_cv_lib_net_gethostbyname=no
23670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23671 conftest$ac_exeext conftest.$ac_ext
23672 LIBS=$ac_check_lib_save_LIBS
23674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
23675 printf "%s\n" "$ac_cv_lib_net_gethostbyname" >&6; }
23676 if test "x$ac_cv_lib_net_gethostbyname" = xyes
23678 HAVE_GETHOSTBYNAME="1"
23686 if test "$HAVE_GETHOSTBYNAME" != "1"; then
23687 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
23690 if test "x$host_vendor" = "xapple"
23693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5
23694 printf %s "checking for library containing res_servicename... " >&6; }
23695 if test ${ac_cv_search_res_servicename+y}
23697 printf %s "(cached) " >&6
23699 ac_func_search_save_LIBS=$LIBS
23700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23701 /* end confdefs.h. */
23703 /* Override any GCC internal prototype to avoid an error.
23704 Use char because int might match the return type of a GCC
23705 builtin and then its argument prototype would still apply. */
23706 char res_servicename ();
23710 return res_servicename ();
23715 for ac_lib in '' resolv
23717 if test -z "$ac_lib"; then
23718 ac_res="none required"
23721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23723 if ac_fn_c_try_link "$LINENO"
23725 ac_cv_search_res_servicename=$ac_res
23727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23729 if test ${ac_cv_search_res_servicename+y}
23734 if test ${ac_cv_search_res_servicename+y}
23738 ac_cv_search_res_servicename=no
23740 rm conftest.$ac_ext
23741 LIBS=$ac_func_search_save_LIBS
23743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5
23744 printf "%s\n" "$ac_cv_search_res_servicename" >&6; }
23745 ac_res=$ac_cv_search_res_servicename
23746 if test "$ac_res" != no
23748 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23751 printf "%s\n" "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
23756 as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5
23763 if test "x$host_vendor" = "xibm" -a "x$host_os" = "xopenedition"
23766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
23767 printf %s "checking for library containing res_init... " >&6; }
23768 if test ${ac_cv_search_res_init+y}
23770 printf %s "(cached) " >&6
23772 ac_func_search_save_LIBS=$LIBS
23773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23774 /* end confdefs.h. */
23776 /* Override any GCC internal prototype to avoid an error.
23777 Use char because int might match the return type of a GCC
23778 builtin and then its argument prototype would still apply. */
23783 return res_init ();
23788 for ac_lib in '' resolv
23790 if test -z "$ac_lib"; then
23791 ac_res="none required"
23794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23796 if ac_fn_c_try_link "$LINENO"
23798 ac_cv_search_res_init=$ac_res
23800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23802 if test ${ac_cv_search_res_init+y}
23807 if test ${ac_cv_search_res_init+y}
23811 ac_cv_search_res_init=no
23813 rm conftest.$ac_ext
23814 LIBS=$ac_func_search_save_LIBS
23816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
23817 printf "%s\n" "$ac_cv_search_res_init" >&6; }
23818 ac_res=$ac_cv_search_res_init
23819 if test "$ac_res" != no
23821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23824 printf "%s\n" "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
23829 as_fn_error $? "Unable to find libresolv which is required for z/OS" "$LINENO" 5
23836 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
23837 if test "x$ac_cv_func_strcasecmp" = xyes
23841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
23842 printf %s "checking for strcasecmp in -lresolve... " >&6; }
23843 if test ${ac_cv_lib_resolve_strcasecmp+y}
23845 printf %s "(cached) " >&6
23847 ac_check_lib_save_LIBS=$LIBS
23848 LIBS="-lresolve $LIBS"
23849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23850 /* end confdefs.h. */
23852 /* Override any GCC internal prototype to avoid an error.
23853 Use char because int might match the return type of a GCC
23854 builtin and then its argument prototype would still apply. */
23855 char strcasecmp ();
23859 return strcasecmp ();
23864 if ac_fn_c_try_link "$LINENO"
23866 ac_cv_lib_resolve_strcasecmp=yes
23868 ac_cv_lib_resolve_strcasecmp=no
23870 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23871 conftest$ac_exeext conftest.$ac_ext
23872 LIBS=$ac_check_lib_save_LIBS
23874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
23875 printf "%s\n" "$ac_cv_lib_resolve_strcasecmp" >&6; }
23876 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes
23878 printf "%s\n" "#define HAVE_LIBRESOLVE 1" >>confdefs.h
23880 LIBS="-lresolve $LIBS"
23887 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
23888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
23889 printf %s "checking for strcasecmp in -lresolve... " >&6; }
23890 if test ${ac_cv_lib_resolve_strcasecmp+y}
23892 printf %s "(cached) " >&6
23894 ac_check_lib_save_LIBS=$LIBS
23895 LIBS="-lresolve -lnsl $LIBS"
23896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23897 /* end confdefs.h. */
23899 /* Override any GCC internal prototype to avoid an error.
23900 Use char because int might match the return type of a GCC
23901 builtin and then its argument prototype would still apply. */
23902 char strcasecmp ();
23906 return strcasecmp ();
23911 if ac_fn_c_try_link "$LINENO"
23913 ac_cv_lib_resolve_strcasecmp=yes
23915 ac_cv_lib_resolve_strcasecmp=no
23917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23918 conftest$ac_exeext conftest.$ac_ext
23919 LIBS=$ac_check_lib_save_LIBS
23921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
23922 printf "%s\n" "$ac_cv_lib_resolve_strcasecmp" >&6; }
23923 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes
23925 LIBS="-lresolve $LIBS"
23929 ac_cv_func_strcasecmp="no"
23931 if test "$ac_cv_header_winsock2_h" = "yes"; then
23932 LIBS="$LIBS -liphlpapi"
23936 cares_includes_winsock2="\
23937 /* includes start */
23938 #ifdef HAVE_WINDOWS_H
23939 # ifndef WIN32_LEAN_AND_MEAN
23940 # define WIN32_LEAN_AND_MEAN
23942 # include <windows.h>
23943 # ifdef HAVE_WINSOCK2_H
23944 # include <winsock2.h>
23946 # ifdef HAVE_WINSOCK_H
23947 # include <winsock.h>
23951 /* includes end */"
23953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
23954 printf %s "checking for windows.h... " >&6; }
23955 if test ${ac_cv_header_windows_h+y}
23957 printf %s "(cached) " >&6
23960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23961 /* end confdefs.h. */
23965 #ifndef WIN32_LEAN_AND_MEAN
23966 #define WIN32_LEAN_AND_MEAN
23968 #include <windows.h>
23974 #if defined(__CYGWIN__) || defined(__CEGCC__)
23975 HAVE_WINDOWS_H shall not be defined.
23977 int dummy=2*WINVER;
23985 if ac_fn_c_try_compile "$LINENO"
23988 ac_cv_header_windows_h="yes"
23992 ac_cv_header_windows_h="no"
23995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
23999 printf "%s\n" "$ac_cv_header_windows_h" >&6; }
24000 case "$ac_cv_header_windows_h" in
24003 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
24006 printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
24012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
24013 printf %s "checking for winsock.h... " >&6; }
24014 if test ${ac_cv_header_winsock_h+y}
24016 printf %s "(cached) " >&6
24019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24020 /* end confdefs.h. */
24024 #ifndef WIN32_LEAN_AND_MEAN
24025 #define WIN32_LEAN_AND_MEAN
24027 #include <windows.h>
24028 #include <winsock.h>
24034 #if defined(__CYGWIN__) || defined(__CEGCC__)
24035 HAVE_WINSOCK_H shall not be defined.
24037 int dummy=WSACleanup();
24045 if ac_fn_c_try_compile "$LINENO"
24048 ac_cv_header_winsock_h="yes"
24052 ac_cv_header_winsock_h="no"
24055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
24059 printf "%s\n" "$ac_cv_header_winsock_h" >&6; }
24060 case "$ac_cv_header_winsock_h" in
24063 printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h
24069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
24070 printf %s "checking for winsock2.h... " >&6; }
24071 if test ${ac_cv_header_winsock2_h+y}
24073 printf %s "(cached) " >&6
24076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24077 /* end confdefs.h. */
24081 #ifndef WIN32_LEAN_AND_MEAN
24082 #define WIN32_LEAN_AND_MEAN
24084 #include <windows.h>
24085 #include <winsock2.h>
24091 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
24092 HAVE_WINSOCK2_H shall not be defined.
24094 int dummy=2*IPPROTO_ESP;
24102 if ac_fn_c_try_compile "$LINENO"
24105 ac_cv_header_winsock2_h="yes"
24109 ac_cv_header_winsock2_h="no"
24112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
24116 printf "%s\n" "$ac_cv_header_winsock2_h" >&6; }
24117 case "$ac_cv_header_winsock2_h" in
24120 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
24127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
24128 printf %s "checking for connect in libraries... " >&6; }
24129 tst_connect_save_LIBS="$LIBS"
24130 tst_connect_need_LIBS="unknown"
24131 for tst_lib in '' '-lsocket' ; do
24132 if test "$tst_connect_need_LIBS" = "unknown"; then
24133 LIBS="$tst_lib $tst_connect_save_LIBS"
24134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24135 /* end confdefs.h. */
24138 $cares_includes_winsock2
24139 #ifndef HAVE_WINDOWS_H
24140 int connect(int, void*, int);
24147 if(0 != connect(0, 0, 0))
24155 if ac_fn_c_try_link "$LINENO"
24158 tst_connect_need_LIBS="$tst_lib"
24161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24162 conftest$ac_exeext conftest.$ac_ext
24165 LIBS="$tst_connect_save_LIBS"
24167 case X-"$tst_connect_need_LIBS" in
24169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
24170 printf "%s\n" "cannot find connect" >&6; }
24171 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
24174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24175 printf "%s\n" "yes" >&6; }
24178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
24179 printf "%s\n" "$tst_connect_need_LIBS" >&6; }
24180 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
24185 if test "x$host_vendor" = "xapple"
24188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iOS minimum version 10 or later" >&5
24189 printf %s "checking for iOS minimum version 10 or later... " >&6; }
24190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24191 /* end confdefs.h. */
24195 #include <TargetConditionals.h>
24201 #if TARGET_OS_IPHONE == 0 || __IPHONE_OS_VERSION_MIN_REQUIRED < 100000
24202 #error Not iOS 10 or later
24211 if ac_fn_c_try_compile "$LINENO"
24214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24215 printf "%s\n" "yes" >&6; }
24220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24221 printf "%s\n" "no" >&6; }
24224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24228 if test "x$host_vendor" = "xapple"
24231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for macOS minimum version 10.12 or later" >&5
24232 printf %s "checking for macOS minimum version 10.12 or later... " >&6; }
24233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24234 /* end confdefs.h. */
24238 #include <TargetConditionals.h>
24244 #ifndef MAC_OS_X_VERSION_10_12
24245 # define MAC_OS_X_VERSION_10_12 101200
24247 #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
24248 #error Not macOS 10.12 or later
24257 if ac_fn_c_try_compile "$LINENO"
24260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24261 printf "%s\n" "yes" >&6; }
24262 ac_cv_macos_10_12="yes"
24266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24267 printf "%s\n" "no" >&6; }
24270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24274 if test "x$host_vendor" != "xapple" || test "x$ac_cv_ios_10" = "xyes" || test "x$ac_cv_macos_10_12" = "xyes"; then
24277 # Obsolete code to be removed.
24278 if test $ac_cv_header_sys_time_h = yes; then
24280 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
24283 # End of obsolete code.
24286 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
24287 if test "x$ac_cv_header_sys_types_h" = xyes
24289 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
24292 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
24293 if test "x$ac_cv_header_sys_time_h" = xyes
24295 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
24298 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
24299 if test "x$ac_cv_header_time_h" = xyes
24301 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
24305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
24306 printf %s "checking for monotonic clock_gettime... " >&6; }
24307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24308 /* end confdefs.h. */
24311 #ifdef HAVE_SYS_TYPES_H
24312 #include <sys/types.h>
24314 #ifdef HAVE_SYS_TIME_H
24315 #include <sys/time.h>
24316 #ifdef TIME_WITH_SYS_TIME
24329 struct timespec ts;
24330 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
24337 if ac_fn_c_try_compile "$LINENO"
24340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24341 printf "%s\n" "yes" >&6; }
24342 ac_cv_func_clock_gettime="yes"
24346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24347 printf "%s\n" "no" >&6; }
24348 ac_cv_func_clock_gettime="no"
24351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24355 if test "$ac_cv_func_clock_gettime" = "yes"; then
24357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
24358 printf %s "checking for clock_gettime in libraries... " >&6; }
24360 curl_cv_save_LIBS="$LIBS"
24361 curl_cv_gclk_LIBS="unknown"
24363 for x_xlibs in '' '-lrt' '-lposix4' ; do
24364 if test "$curl_cv_gclk_LIBS" = "unknown"; then
24365 if test -z "$x_xlibs"; then
24366 LIBS="$curl_cv_save_LIBS"
24368 LIBS="$x_xlibs $curl_cv_save_LIBS"
24370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24371 /* end confdefs.h. */
24374 #ifdef HAVE_SYS_TYPES_H
24375 #include <sys/types.h>
24377 #ifdef HAVE_SYS_TIME_H
24378 #include <sys/time.h>
24379 #ifdef TIME_WITH_SYS_TIME
24392 struct timespec ts;
24393 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
24400 if ac_fn_c_try_link "$LINENO"
24403 curl_cv_gclk_LIBS="$x_xlibs"
24406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24407 conftest$ac_exeext conftest.$ac_ext
24411 LIBS="$curl_cv_save_LIBS"
24413 case X-"$curl_cv_gclk_LIBS" in
24415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
24416 printf "%s\n" "cannot find clock_gettime" >&6; }
24417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
24418 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
24419 ac_cv_func_clock_gettime="no"
24422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
24423 printf "%s\n" "no additional lib required" >&6; }
24424 ac_cv_func_clock_gettime="yes"
24427 if test -z "$curl_cv_save_LIBS"; then
24428 LIBS="$curl_cv_gclk_LIBS"
24430 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
24432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
24433 printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
24434 ac_cv_func_clock_gettime="yes"
24438 if test "x$cross_compiling" != "xyes" &&
24439 test "$ac_cv_func_clock_gettime" = "yes"; then
24440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
24441 printf %s "checking if monotonic clock_gettime works... " >&6; }
24442 if test "$cross_compiling" = yes
24444 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24445 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24446 as_fn_error $? "cannot run test program while cross compiling
24447 See \`config.log' for more details" "$LINENO" 5; }
24449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24450 /* end confdefs.h. */
24453 #ifdef HAVE_STDLIB_H
24454 #include <stdlib.h>
24456 #ifdef HAVE_SYS_TYPES_H
24457 #include <sys/types.h>
24459 #ifdef HAVE_SYS_TIME_H
24460 #include <sys/time.h>
24461 #ifdef TIME_WITH_SYS_TIME
24474 struct timespec ts;
24475 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
24485 if ac_fn_c_try_run "$LINENO"
24488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24489 printf "%s\n" "yes" >&6; }
24493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24494 printf "%s\n" "no" >&6; }
24495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
24496 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
24497 ac_cv_func_clock_gettime="no"
24498 LIBS="$curl_cv_save_LIBS"
24501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24502 conftest.$ac_objext conftest.beam conftest.$ac_ext
24507 case "$ac_cv_func_clock_gettime" in
24510 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
24520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
24521 printf %s "checking whether to use libgcc... " >&6; }
24522 # Check whether --enable-libgcc was given.
24523 if test ${enable_libgcc+y}
24525 enableval=$enable_libgcc; case "$enableval" in
24528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24529 printf "%s\n" "yes" >&6; }
24531 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24532 printf "%s\n" "no" >&6; }
24536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24537 printf "%s\n" "no" >&6; }
24548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
24549 printf %s "checking for egrep... " >&6; }
24550 if test ${ac_cv_path_EGREP+y}
24552 printf %s "(cached) " >&6
24554 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
24555 then ac_cv_path_EGREP="$GREP -E"
24557 if test -z "$EGREP"; then
24558 ac_path_EGREP_found=false
24559 # Loop through the user's path and test for each of PROGNAME-LIST
24560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
24564 case $as_dir in #(((
24567 *) as_dir=$as_dir/ ;;
24569 for ac_prog in egrep
24571 for ac_exec_ext in '' $ac_executable_extensions; do
24572 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
24573 as_fn_executable_p "$ac_path_EGREP" || continue
24574 # Check for GNU ac_path_EGREP and select it if it is found.
24575 # Check for GNU $ac_path_EGREP
24576 case `"$ac_path_EGREP" --version 2>&1` in
24578 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
24581 printf %s 0123456789 >"conftest.in"
24584 cat "conftest.in" "conftest.in" >"conftest.tmp"
24585 mv "conftest.tmp" "conftest.in"
24586 cp "conftest.in" "conftest.nl"
24587 printf "%s\n" 'EGREP' >> "conftest.nl"
24588 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
24589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
24590 as_fn_arith $ac_count + 1 && ac_count=$as_val
24591 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
24592 # Best one so far, save it but keep looking for a better one
24593 ac_cv_path_EGREP="$ac_path_EGREP"
24594 ac_path_EGREP_max=$ac_count
24596 # 10*(2^10) chars as input seems more than enough
24597 test $ac_count -gt 10 && break
24599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
24602 $ac_path_EGREP_found && break 3
24607 if test -z "$ac_cv_path_EGREP"; then
24608 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
24611 ac_cv_path_EGREP=$EGREP
24616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
24617 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
24618 EGREP="$ac_cv_path_EGREP"
24624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
24625 printf %s "checking for malloc.h... " >&6; }
24626 if test ${ac_cv_header_malloc_h+y}
24628 printf %s "(cached) " >&6
24631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24632 /* end confdefs.h. */
24635 #include <malloc.h>
24641 void *p = malloc(10);
24642 void *q = calloc(10,10);
24651 if ac_fn_c_try_compile "$LINENO"
24654 ac_cv_header_malloc_h="yes"
24658 ac_cv_header_malloc_h="no"
24661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
24665 printf "%s\n" "$ac_cv_header_malloc_h" >&6; }
24666 if test "$ac_cv_header_malloc_h" = "yes"; then
24668 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
24671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24672 /* end confdefs.h. */
24675 #include <stdlib.h>
24681 void *p = malloc(10);
24682 void *q = calloc(10,10);
24691 if ac_fn_c_try_compile "$LINENO"
24694 curl_cv_need_header_malloc_h="no"
24698 curl_cv_need_header_malloc_h="yes"
24701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24703 case "$curl_cv_need_header_malloc_h" in
24706 printf "%s\n" "#define NEED_MALLOC_H 1" >>confdefs.h
24713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
24714 printf %s "checking for memory.h... " >&6; }
24715 if test ${ac_cv_header_memory_h+y}
24717 printf %s "(cached) " >&6
24720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24721 /* end confdefs.h. */
24724 #include <memory.h>
24730 void *p = malloc(10);
24731 void *q = calloc(10,10);
24740 if ac_fn_c_try_compile "$LINENO"
24743 ac_cv_header_memory_h="yes"
24747 ac_cv_header_memory_h="no"
24750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
24754 printf "%s\n" "$ac_cv_header_memory_h" >&6; }
24755 if test "$ac_cv_header_memory_h" = "yes"; then
24757 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
24760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24761 /* end confdefs.h. */
24764 #include <stdlib.h>
24770 void *p = malloc(10);
24771 void *q = calloc(10,10);
24780 if ac_fn_c_try_compile "$LINENO"
24783 curl_cv_need_header_memory_h="no"
24787 curl_cv_need_header_memory_h="yes"
24790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24792 case "$curl_cv_need_header_memory_h" in
24795 printf "%s\n" "#define NEED_MEMORY_H 1" >>confdefs.h
24802 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
24803 #ifdef HAVE_SYS_TYPES_H
24804 #include <sys/types.h>
24806 #ifdef HAVE_SYS_TIME_H
24807 #include <sys/time.h>
24809 #ifdef HAVE_ARPA_NAMESER_H
24810 #include <arpa/nameser.h>
24813 #ifdef HAVE_SYS_SOCKET_H
24814 #include <sys/socket.h>
24816 #ifdef HAVE_NETINET_IN_H
24817 #include <netinet/in.h>
24822 if test "x$ac_cv_header_sys_types_h" = xyes
24824 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
24827 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
24828 #ifdef HAVE_SYS_TYPES_H
24829 #include <sys/types.h>
24831 #ifdef HAVE_SYS_TIME_H
24832 #include <sys/time.h>
24834 #ifdef HAVE_ARPA_NAMESER_H
24835 #include <arpa/nameser.h>
24838 #ifdef HAVE_SYS_SOCKET_H
24839 #include <sys/socket.h>
24841 #ifdef HAVE_NETINET_IN_H
24842 #include <netinet/in.h>
24847 if test "x$ac_cv_header_sys_time_h" = xyes
24849 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
24852 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
24853 #ifdef HAVE_SYS_TYPES_H
24854 #include <sys/types.h>
24856 #ifdef HAVE_SYS_TIME_H
24857 #include <sys/time.h>
24859 #ifdef HAVE_ARPA_NAMESER_H
24860 #include <arpa/nameser.h>
24863 #ifdef HAVE_SYS_SOCKET_H
24864 #include <sys/socket.h>
24866 #ifdef HAVE_NETINET_IN_H
24867 #include <netinet/in.h>
24872 if test "x$ac_cv_header_sys_select_h" = xyes
24874 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
24877 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
24878 #ifdef HAVE_SYS_TYPES_H
24879 #include <sys/types.h>
24881 #ifdef HAVE_SYS_TIME_H
24882 #include <sys/time.h>
24884 #ifdef HAVE_ARPA_NAMESER_H
24885 #include <arpa/nameser.h>
24888 #ifdef HAVE_SYS_SOCKET_H
24889 #include <sys/socket.h>
24891 #ifdef HAVE_NETINET_IN_H
24892 #include <netinet/in.h>
24897 if test "x$ac_cv_header_sys_socket_h" = xyes
24899 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
24902 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
24903 #ifdef HAVE_SYS_TYPES_H
24904 #include <sys/types.h>
24906 #ifdef HAVE_SYS_TIME_H
24907 #include <sys/time.h>
24909 #ifdef HAVE_ARPA_NAMESER_H
24910 #include <arpa/nameser.h>
24913 #ifdef HAVE_SYS_SOCKET_H
24914 #include <sys/socket.h>
24916 #ifdef HAVE_NETINET_IN_H
24917 #include <netinet/in.h>
24922 if test "x$ac_cv_header_sys_ioctl_h" = xyes
24924 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
24927 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
24928 #ifdef HAVE_SYS_TYPES_H
24929 #include <sys/types.h>
24931 #ifdef HAVE_SYS_TIME_H
24932 #include <sys/time.h>
24934 #ifdef HAVE_ARPA_NAMESER_H
24935 #include <arpa/nameser.h>
24938 #ifdef HAVE_SYS_SOCKET_H
24939 #include <sys/socket.h>
24941 #ifdef HAVE_NETINET_IN_H
24942 #include <netinet/in.h>
24947 if test "x$ac_cv_header_sys_param_h" = xyes
24949 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
24952 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
24953 #ifdef HAVE_SYS_TYPES_H
24954 #include <sys/types.h>
24956 #ifdef HAVE_SYS_TIME_H
24957 #include <sys/time.h>
24959 #ifdef HAVE_ARPA_NAMESER_H
24960 #include <arpa/nameser.h>
24963 #ifdef HAVE_SYS_SOCKET_H
24964 #include <sys/socket.h>
24966 #ifdef HAVE_NETINET_IN_H
24967 #include <netinet/in.h>
24972 if test "x$ac_cv_header_sys_uio_h" = xyes
24974 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
24977 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "
24978 #ifdef HAVE_SYS_TYPES_H
24979 #include <sys/types.h>
24981 #ifdef HAVE_SYS_TIME_H
24982 #include <sys/time.h>
24984 #ifdef HAVE_ARPA_NAMESER_H
24985 #include <arpa/nameser.h>
24988 #ifdef HAVE_SYS_SOCKET_H
24989 #include <sys/socket.h>
24991 #ifdef HAVE_NETINET_IN_H
24992 #include <netinet/in.h>
24997 if test "x$ac_cv_header_assert_h" = xyes
24999 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
25002 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
25003 #ifdef HAVE_SYS_TYPES_H
25004 #include <sys/types.h>
25006 #ifdef HAVE_SYS_TIME_H
25007 #include <sys/time.h>
25009 #ifdef HAVE_ARPA_NAMESER_H
25010 #include <arpa/nameser.h>
25013 #ifdef HAVE_SYS_SOCKET_H
25014 #include <sys/socket.h>
25016 #ifdef HAVE_NETINET_IN_H
25017 #include <netinet/in.h>
25022 if test "x$ac_cv_header_netdb_h" = xyes
25024 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
25027 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
25028 #ifdef HAVE_SYS_TYPES_H
25029 #include <sys/types.h>
25031 #ifdef HAVE_SYS_TIME_H
25032 #include <sys/time.h>
25034 #ifdef HAVE_ARPA_NAMESER_H
25035 #include <arpa/nameser.h>
25038 #ifdef HAVE_SYS_SOCKET_H
25039 #include <sys/socket.h>
25041 #ifdef HAVE_NETINET_IN_H
25042 #include <netinet/in.h>
25047 if test "x$ac_cv_header_netinet_in_h" = xyes
25049 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
25052 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
25053 #ifdef HAVE_SYS_TYPES_H
25054 #include <sys/types.h>
25056 #ifdef HAVE_SYS_TIME_H
25057 #include <sys/time.h>
25059 #ifdef HAVE_ARPA_NAMESER_H
25060 #include <arpa/nameser.h>
25063 #ifdef HAVE_SYS_SOCKET_H
25064 #include <sys/socket.h>
25066 #ifdef HAVE_NETINET_IN_H
25067 #include <netinet/in.h>
25072 if test "x$ac_cv_header_netinet_tcp_h" = xyes
25074 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
25077 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
25078 #ifdef HAVE_SYS_TYPES_H
25079 #include <sys/types.h>
25081 #ifdef HAVE_SYS_TIME_H
25082 #include <sys/time.h>
25084 #ifdef HAVE_ARPA_NAMESER_H
25085 #include <arpa/nameser.h>
25088 #ifdef HAVE_SYS_SOCKET_H
25089 #include <sys/socket.h>
25091 #ifdef HAVE_NETINET_IN_H
25092 #include <netinet/in.h>
25097 if test "x$ac_cv_header_net_if_h" = xyes
25099 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
25102 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "
25103 #ifdef HAVE_SYS_TYPES_H
25104 #include <sys/types.h>
25106 #ifdef HAVE_SYS_TIME_H
25107 #include <sys/time.h>
25109 #ifdef HAVE_ARPA_NAMESER_H
25110 #include <arpa/nameser.h>
25113 #ifdef HAVE_SYS_SOCKET_H
25114 #include <sys/socket.h>
25116 #ifdef HAVE_NETINET_IN_H
25117 #include <netinet/in.h>
25122 if test "x$ac_cv_header_errno_h" = xyes
25124 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
25127 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
25128 #ifdef HAVE_SYS_TYPES_H
25129 #include <sys/types.h>
25131 #ifdef HAVE_SYS_TIME_H
25132 #include <sys/time.h>
25134 #ifdef HAVE_ARPA_NAMESER_H
25135 #include <arpa/nameser.h>
25138 #ifdef HAVE_SYS_SOCKET_H
25139 #include <sys/socket.h>
25141 #ifdef HAVE_NETINET_IN_H
25142 #include <netinet/in.h>
25147 if test "x$ac_cv_header_socket_h" = xyes
25149 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
25152 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "
25153 #ifdef HAVE_SYS_TYPES_H
25154 #include <sys/types.h>
25156 #ifdef HAVE_SYS_TIME_H
25157 #include <sys/time.h>
25159 #ifdef HAVE_ARPA_NAMESER_H
25160 #include <arpa/nameser.h>
25163 #ifdef HAVE_SYS_SOCKET_H
25164 #include <sys/socket.h>
25166 #ifdef HAVE_NETINET_IN_H
25167 #include <netinet/in.h>
25172 if test "x$ac_cv_header_strings_h" = xyes
25174 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
25177 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
25178 #ifdef HAVE_SYS_TYPES_H
25179 #include <sys/types.h>
25181 #ifdef HAVE_SYS_TIME_H
25182 #include <sys/time.h>
25184 #ifdef HAVE_ARPA_NAMESER_H
25185 #include <arpa/nameser.h>
25188 #ifdef HAVE_SYS_SOCKET_H
25189 #include <sys/socket.h>
25191 #ifdef HAVE_NETINET_IN_H
25192 #include <netinet/in.h>
25197 if test "x$ac_cv_header_stdbool_h" = xyes
25199 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
25202 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "
25203 #ifdef HAVE_SYS_TYPES_H
25204 #include <sys/types.h>
25206 #ifdef HAVE_SYS_TIME_H
25207 #include <sys/time.h>
25209 #ifdef HAVE_ARPA_NAMESER_H
25210 #include <arpa/nameser.h>
25213 #ifdef HAVE_SYS_SOCKET_H
25214 #include <sys/socket.h>
25216 #ifdef HAVE_NETINET_IN_H
25217 #include <netinet/in.h>
25222 if test "x$ac_cv_header_time_h" = xyes
25224 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
25227 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "
25228 #ifdef HAVE_SYS_TYPES_H
25229 #include <sys/types.h>
25231 #ifdef HAVE_SYS_TIME_H
25232 #include <sys/time.h>
25234 #ifdef HAVE_ARPA_NAMESER_H
25235 #include <arpa/nameser.h>
25238 #ifdef HAVE_SYS_SOCKET_H
25239 #include <sys/socket.h>
25241 #ifdef HAVE_NETINET_IN_H
25242 #include <netinet/in.h>
25247 if test "x$ac_cv_header_limits_h" = xyes
25249 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
25252 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "
25253 #ifdef HAVE_SYS_TYPES_H
25254 #include <sys/types.h>
25256 #ifdef HAVE_SYS_TIME_H
25257 #include <sys/time.h>
25259 #ifdef HAVE_ARPA_NAMESER_H
25260 #include <arpa/nameser.h>
25263 #ifdef HAVE_SYS_SOCKET_H
25264 #include <sys/socket.h>
25266 #ifdef HAVE_NETINET_IN_H
25267 #include <netinet/in.h>
25272 if test "x$ac_cv_header_arpa_nameser_h" = xyes
25274 printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
25277 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" "
25278 #ifdef HAVE_SYS_TYPES_H
25279 #include <sys/types.h>
25281 #ifdef HAVE_SYS_TIME_H
25282 #include <sys/time.h>
25284 #ifdef HAVE_ARPA_NAMESER_H
25285 #include <arpa/nameser.h>
25288 #ifdef HAVE_SYS_SOCKET_H
25289 #include <sys/socket.h>
25291 #ifdef HAVE_NETINET_IN_H
25292 #include <netinet/in.h>
25297 if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes
25299 printf "%s\n" "#define HAVE_ARPA_NAMESER_COMPAT_H 1" >>confdefs.h
25302 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
25303 #ifdef HAVE_SYS_TYPES_H
25304 #include <sys/types.h>
25306 #ifdef HAVE_SYS_TIME_H
25307 #include <sys/time.h>
25309 #ifdef HAVE_ARPA_NAMESER_H
25310 #include <arpa/nameser.h>
25313 #ifdef HAVE_SYS_SOCKET_H
25314 #include <sys/socket.h>
25316 #ifdef HAVE_NETINET_IN_H
25317 #include <netinet/in.h>
25322 if test "x$ac_cv_header_arpa_inet_h" = xyes
25324 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
25329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
25330 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
25331 if test ${ac_cv_c_undeclared_builtin_options+y}
25333 printf %s "(cached) " >&6
25335 ac_save_CFLAGS=$CFLAGS
25336 ac_cv_c_undeclared_builtin_options='cannot detect'
25337 for ac_arg in '' -fno-builtin; do
25338 CFLAGS="$ac_save_CFLAGS $ac_arg"
25339 # This test program should *not* compile successfully.
25340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25341 /* end confdefs.h. */
25351 if ac_fn_c_try_compile "$LINENO"
25355 # This test program should compile successfully.
25356 # No library function is consistently available on
25357 # freestanding implementations, so test against a dummy
25358 # declaration. Include always-available headers on the
25359 # off chance that they somehow elicit warnings.
25360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361 /* end confdefs.h. */
25363 #include <limits.h>
25364 #include <stdarg.h>
25365 #include <stddef.h>
25366 extern void ac_decl (int, char *);
25371 (void) ac_decl (0, (char *) 0);
25378 if ac_fn_c_try_compile "$LINENO"
25380 if test x"$ac_arg" = x
25382 ac_cv_c_undeclared_builtin_options='none needed'
25384 ac_cv_c_undeclared_builtin_options=$ac_arg
25388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25392 CFLAGS=$ac_save_CFLAGS
25395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
25396 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
25397 case $ac_cv_c_undeclared_builtin_options in #(
25399 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25400 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25401 as_fn_error $? "cannot make $CC report undeclared builtins
25402 See \`config.log' for more details" "$LINENO" 5; } ;; #(
25404 ac_c_undeclared_builtin_options='' ;; #(
25406 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
25409 ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
25410 if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_H" = xyes
25414 cat >>confdefs.h <<_EOF
25415 #define CARES_HAVE_ARPA_NAMESER_H 1
25420 ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_COMPAT_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
25421 if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" = xyes
25425 cat >>confdefs.h <<_EOF
25426 #define CARES_HAVE_ARPA_NAMESER_COMPAT_H 1
25432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25433 printf %s "checking for an ANSI C-conforming const... " >&6; }
25434 if test ${ac_cv_c_const+y}
25436 printf %s "(cached) " >&6
25438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25439 /* end confdefs.h. */
25445 #ifndef __cplusplus
25446 /* Ultrix mips cc rejects this sort of thing. */
25447 typedef int charset[2];
25448 const charset cs = { 0, 0 };
25449 /* SunOS 4.1.1 cc rejects this. */
25450 char const *const *pcpcc;
25452 /* NEC SVR4.0.2 mips cc rejects this. */
25453 struct point {int x, y;};
25454 static struct point const zero = {0,0};
25455 /* IBM XL C 1.02.0.0 rejects this.
25456 It does not let you subtract one const X* pointer from another in
25457 an arm of an if-expression whose if-part is not a constant
25459 const char *g = "string";
25460 pcpcc = &g + (g ? g-g : 0);
25461 /* HPUX 7.0 cc rejects these. */
25463 ppc = (char**) pcpcc;
25464 pcpcc = (char const *const *) ppc;
25465 { /* SCO 3.2v4 cc rejects this sort of thing. */
25468 char const *s = 0 ? (char *) 0 : (char const *) 0;
25473 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25474 int x[] = {25, 17};
25475 const int *foo = &x[0];
25478 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25479 typedef const int *iptr;
25483 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
25484 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25485 struct s { int j; const int *ap[3]; } bx;
25486 struct s *b = &bx; b->j = 5;
25488 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25489 const int foo = 10;
25490 if (!foo) return 0;
25492 return !cs[0] && !zero.x;
25499 if ac_fn_c_try_compile "$LINENO"
25505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25508 printf "%s\n" "$ac_cv_c_const" >&6; }
25509 if test $ac_cv_c_const = no; then
25511 printf "%s\n" "#define const /**/" >>confdefs.h
25515 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25516 if test "x$ac_cv_type_size_t" = xyes
25521 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
25526 # Obsolete code to be removed.
25527 if test $ac_cv_header_sys_time_h = yes; then
25529 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25532 # End of obsolete code.
25535 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
25536 if test "x$ac_cv_header_sys_types_h" = xyes
25538 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
25541 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
25542 if test "x$ac_cv_header_sys_time_h" = xyes
25544 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
25547 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
25548 if test "x$ac_cv_header_time_h" = xyes
25550 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
25553 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
25554 if test "x$ac_cv_header_sys_socket_h" = xyes
25556 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
25560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
25561 printf %s "checking for struct timeval... " >&6; }
25562 if test ${ac_cv_struct_timeval+y}
25564 printf %s "(cached) " >&6
25567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25568 /* end confdefs.h. */
25572 #ifdef HAVE_WINDOWS_H
25573 #ifndef WIN32_LEAN_AND_MEAN
25574 #define WIN32_LEAN_AND_MEAN
25576 #include <windows.h>
25577 #ifdef HAVE_WINSOCK2_H
25578 #include <winsock2.h>
25580 #ifdef HAVE_WINSOCK_H
25581 #include <winsock.h>
25585 #ifdef HAVE_SYS_TYPES_H
25586 #include <sys/types.h>
25588 #ifdef HAVE_SYS_TIME_H
25589 #include <sys/time.h>
25590 #ifdef TIME_WITH_SYS_TIME
25598 #ifdef HAVE_SYS_SOCKET_H
25599 #include <sys/socket.h>
25615 if ac_fn_c_try_compile "$LINENO"
25618 ac_cv_struct_timeval="yes"
25622 ac_cv_struct_timeval="no"
25625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
25629 printf "%s\n" "$ac_cv_struct_timeval" >&6; }
25630 case "$ac_cv_struct_timeval" in
25633 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
25639 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
25640 if test "x$ac_cv_type_long_long" = xyes
25643 printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
25650 if test "xyes" = "x$longlong"; then
25651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
25652 printf %s "checking if numberLL works... " >&6; }
25653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25654 /* end confdefs.h. */
25662 long long val = 1000LL;
25669 if ac_fn_c_try_compile "$LINENO"
25672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25673 printf "%s\n" "yes" >&6; }
25675 printf "%s\n" "#define HAVE_LL 1" >>confdefs.h
25680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25681 printf "%s\n" "no" >&6; }
25684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25688 # check for ssize_t
25689 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
25690 if test "x$ac_cv_type_ssize_t" = xyes
25692 CARES_TYPEOF_ARES_SSIZE_T=ssize_t
25694 CARES_TYPEOF_ARES_SSIZE_T=int
25699 printf "%s\n" "#define CARES_TYPEOF_ARES_SSIZE_T ${CARES_TYPEOF_ARES_SSIZE_T}" >>confdefs.h
25703 # check for bool type
25704 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
25705 #ifdef HAVE_SYS_TYPES_H
25706 #include <sys/types.h>
25708 #ifdef HAVE_STDBOOL_H
25709 #include <stdbool.h>
25713 if test "x$ac_cv_type_bool" = xyes
25717 printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
25724 cares_includes_ws2tcpip="\
25725 /* includes start */
25726 #ifdef HAVE_WINDOWS_H
25727 # ifndef WIN32_LEAN_AND_MEAN
25728 # define WIN32_LEAN_AND_MEAN
25730 # include <windows.h>
25731 # ifdef HAVE_WINSOCK2_H
25732 # include <winsock2.h>
25733 # ifdef HAVE_WS2TCPIP_H
25734 # include <ws2tcpip.h>
25738 /* includes end */"
25740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
25741 printf %s "checking for windows.h... " >&6; }
25742 if test ${ac_cv_header_windows_h+y}
25744 printf %s "(cached) " >&6
25747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25748 /* end confdefs.h. */
25752 #ifndef WIN32_LEAN_AND_MEAN
25753 #define WIN32_LEAN_AND_MEAN
25755 #include <windows.h>
25761 #if defined(__CYGWIN__) || defined(__CEGCC__)
25762 HAVE_WINDOWS_H shall not be defined.
25764 int dummy=2*WINVER;
25772 if ac_fn_c_try_compile "$LINENO"
25775 ac_cv_header_windows_h="yes"
25779 ac_cv_header_windows_h="no"
25782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
25786 printf "%s\n" "$ac_cv_header_windows_h" >&6; }
25787 case "$ac_cv_header_windows_h" in
25790 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
25793 printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
25799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
25800 printf %s "checking for winsock2.h... " >&6; }
25801 if test ${ac_cv_header_winsock2_h+y}
25803 printf %s "(cached) " >&6
25806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25807 /* end confdefs.h. */
25811 #ifndef WIN32_LEAN_AND_MEAN
25812 #define WIN32_LEAN_AND_MEAN
25814 #include <windows.h>
25815 #include <winsock2.h>
25821 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
25822 HAVE_WINSOCK2_H shall not be defined.
25824 int dummy=2*IPPROTO_ESP;
25832 if ac_fn_c_try_compile "$LINENO"
25835 ac_cv_header_winsock2_h="yes"
25839 ac_cv_header_winsock2_h="no"
25842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
25846 printf "%s\n" "$ac_cv_header_winsock2_h" >&6; }
25847 case "$ac_cv_header_winsock2_h" in
25850 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
25856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
25857 printf %s "checking for ws2tcpip.h... " >&6; }
25858 if test ${ac_cv_header_ws2tcpip_h+y}
25860 printf %s "(cached) " >&6
25863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25864 /* end confdefs.h. */
25868 #ifndef WIN32_LEAN_AND_MEAN
25869 #define WIN32_LEAN_AND_MEAN
25871 #include <windows.h>
25872 #include <winsock2.h>
25873 #include <ws2tcpip.h>
25879 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
25880 HAVE_WS2TCPIP_H shall not be defined.
25882 int dummy=2*IP_PKTINFO;
25890 if ac_fn_c_try_compile "$LINENO"
25893 ac_cv_header_ws2tcpip_h="yes"
25897 ac_cv_header_ws2tcpip_h="no"
25900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
25904 printf "%s\n" "$ac_cv_header_ws2tcpip_h" >&6; }
25905 case "$ac_cv_header_ws2tcpip_h" in
25908 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
25915 cares_includes_sys_socket="\
25916 /* includes start */
25917 #ifdef HAVE_SYS_TYPES_H
25918 # include <sys/types.h>
25920 #ifdef HAVE_SYS_SOCKET_H
25921 # include <sys/socket.h>
25923 /* includes end */"
25924 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_sys_socket
25926 if test "x$ac_cv_header_sys_types_h" = xyes
25928 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
25931 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_sys_socket
25933 if test "x$ac_cv_header_sys_socket_h" = xyes
25935 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
25941 cares_preprocess_callconv="\
25942 /* preprocess start */
25943 #ifdef HAVE_WINDOWS_H
25944 # define FUNCALLCONV __stdcall
25946 # define FUNCALLCONV
25948 /* preprocess end */"
25952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
25953 printf %s "checking for ares_socklen_t data type... " >&6; }
25954 cares_typeof_ares_socklen_t="unknown"
25955 for arg1 in int SOCKET; do
25956 for arg2 in 'struct sockaddr' void; do
25957 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
25958 if test "$cares_typeof_ares_socklen_t" = "unknown"; then
25959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25960 /* end confdefs.h. */
25963 $cares_includes_ws2tcpip
25964 $cares_includes_sys_socket
25965 $cares_preprocess_callconv
25966 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
25973 if(0 != getpeername(0, 0, lenptr))
25981 if ac_fn_c_try_compile "$LINENO"
25984 cares_typeof_ares_socklen_t="$t"
25987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25992 for t in socklen_t int; do
25993 if test "$cares_typeof_ares_socklen_t" = "void"; then
25994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25995 /* end confdefs.h. */
25998 $cares_includes_sys_socket
25999 typedef $t ares_socklen_t;
26005 ares_socklen_t dummy;
26012 if ac_fn_c_try_compile "$LINENO"
26015 cares_typeof_ares_socklen_t="$t"
26018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
26022 printf "%s\n" "$cares_typeof_ares_socklen_t" >&6; }
26023 if test "$cares_typeof_ares_socklen_t" = "void" ||
26024 test "$cares_typeof_ares_socklen_t" = "unknown"; then
26025 as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
26028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
26029 printf %s "checking size of ares_socklen_t... " >&6; }
26030 cares_sizeof_ares_socklen_t="unknown"
26031 cares_pull_headers_socklen_t="unknown"
26032 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
26033 tst_pull_header_checks='none ws2tcpip'
26034 tst_size_checks='4'
26036 tst_pull_header_checks='none systypes syssocket'
26037 tst_size_checks='4 8 2'
26039 for tst_size in $tst_size_checks; do
26040 for tst_pull_headers in $tst_pull_header_checks; do
26041 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
26042 case $tst_pull_headers in
26044 tmp_includes="$cares_includes_ws2tcpip"
26047 tmp_includes="$cares_includes_sys_types"
26050 tmp_includes="$cares_includes_sys_socket"
26056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26057 /* end confdefs.h. */
26061 typedef $cares_typeof_ares_socklen_t ares_socklen_t;
26062 typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
26068 ares_socklen_t dummy;
26075 if ac_fn_c_try_compile "$LINENO"
26078 cares_sizeof_ares_socklen_t="$tst_size"
26079 cares_pull_headers_socklen_t="$tst_pull_headers"
26082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
26087 printf "%s\n" "$cares_sizeof_ares_socklen_t" >&6; }
26088 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
26089 as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
26092 case $cares_pull_headers_socklen_t in
26095 cat >>confdefs.h <<_EOF
26096 #define CARES_PULL_WS2TCPIP_H 1
26102 cat >>confdefs.h <<_EOF
26103 #define CARES_PULL_SYS_TYPES_H 1
26109 cat >>confdefs.h <<_EOF
26110 #define CARES_PULL_SYS_TYPES_H 1
26114 cat >>confdefs.h <<_EOF
26115 #define CARES_PULL_SYS_SOCKET_H 1
26121 cat >>confdefs.h <<_EOF
26122 #define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
26126 cat >>confdefs.h <<_EOF
26127 #define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
26133 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
26135 #ifdef HAVE_WINDOWS_H
26136 #ifndef WIN32_LEAN_AND_MEAN
26137 #define WIN32_LEAN_AND_MEAN
26139 #include <windows.h>
26140 #ifdef HAVE_WINSOCK2_H
26141 #include <winsock2.h>
26143 #ifdef HAVE_WINSOCK_H
26144 #include <winsock.h>
26148 #ifdef HAVE_SYS_TYPES_H
26149 #include <sys/types.h>
26151 #ifdef HAVE_SYS_SOCKET_H
26152 #include <sys/socket.h>
26154 #ifdef HAVE_NETINET_IN_H
26155 #include <netinet/in.h>
26157 #ifdef HAVE_ARPA_INET_H
26158 #include <arpa/inet.h>
26163 if test "x$ac_cv_type_in_addr_t" = xyes
26168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
26169 printf %s "checking for in_addr_t equivalent... " >&6; }
26170 if test ${curl_cv_in_addr_t_equiv+y}
26172 printf %s "(cached) " >&6
26175 curl_cv_in_addr_t_equiv="unknown"
26176 for t in "unsigned long" int size_t unsigned long; do
26177 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
26178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26179 /* end confdefs.h. */
26183 #ifdef HAVE_WINDOWS_H
26184 #ifndef WIN32_LEAN_AND_MEAN
26185 #define WIN32_LEAN_AND_MEAN
26187 #include <windows.h>
26188 #ifdef HAVE_WINSOCK2_H
26189 #include <winsock2.h>
26191 #ifdef HAVE_WINSOCK_H
26192 #include <winsock.h>
26196 #ifdef HAVE_SYS_TYPES_H
26197 #include <sys/types.h>
26199 #ifdef HAVE_SYS_SOCKET_H
26200 #include <sys/socket.h>
26202 #ifdef HAVE_NETINET_IN_H
26203 #include <netinet/in.h>
26205 #ifdef HAVE_ARPA_INET_H
26206 #include <arpa/inet.h>
26214 $t data = inet_addr ("1.2.3.4");
26221 if ac_fn_c_try_link "$LINENO"
26224 curl_cv_in_addr_t_equiv="$t"
26227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26228 conftest$ac_exeext conftest.$ac_ext
26233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
26234 printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
26235 case "$curl_cv_in_addr_t_equiv" in
26237 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
26241 printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
26251 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
26253 #ifdef HAVE_WINDOWS_H
26254 #ifndef WIN32_LEAN_AND_MEAN
26255 #define WIN32_LEAN_AND_MEAN
26257 #include <windows.h>
26258 #ifdef HAVE_WINSOCK2_H
26259 #include <winsock2.h>
26262 #ifdef HAVE_SYS_TYPES_H
26263 #include <sys/types.h>
26265 #ifdef HAVE_SYS_SOCKET_H
26266 #include <sys/socket.h>
26268 #ifdef HAVE_NETINET_IN_H
26269 #include <netinet/in.h>
26271 #ifdef HAVE_ARPA_INET_H
26272 #include <arpa/inet.h>
26277 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
26280 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
26287 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
26288 if test "x$ac_cv_header_signal_h" = xyes
26290 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
26294 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
26295 #ifdef HAVE_SIGNAL_H
26296 #include <signal.h>
26300 if test "x$ac_cv_type_sig_atomic_t" = xyes
26304 printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
26309 case "$ac_cv_type_sig_atomic_t" in
26312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
26313 printf %s "checking if sig_atomic_t is already defined as volatile... " >&6; }
26314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26315 /* end confdefs.h. */
26318 #ifdef HAVE_SIGNAL_H
26319 #include <signal.h>
26326 static volatile sig_atomic_t dummy = 0;
26333 if ac_fn_c_try_link "$LINENO"
26336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26337 printf "%s\n" "no" >&6; }
26338 ac_cv_sig_atomic_t_volatile="no"
26342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26343 printf "%s\n" "yes" >&6; }
26344 ac_cv_sig_atomic_t_volatile="yes"
26347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26348 conftest$ac_exeext conftest.$ac_ext
26350 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
26352 printf "%s\n" "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
26359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26360 printf %s "checking return type of signal handlers... " >&6; }
26361 if test ${ac_cv_type_signal+y}
26363 printf %s "(cached) " >&6
26365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26366 /* end confdefs.h. */
26367 #include <sys/types.h>
26368 #include <signal.h>
26373 return *(signal (0, 0)) (0) == 1;
26378 if ac_fn_c_try_compile "$LINENO"
26380 ac_cv_type_signal=int
26382 ac_cv_type_signal=void
26384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26387 printf "%s\n" "$ac_cv_type_signal" >&6; }
26389 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
26394 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
26395 if test "x$ac_cv_header_sys_types_h" = xyes
26397 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
26400 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
26401 if test "x$ac_cv_header_sys_socket_h" = xyes
26403 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
26408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
26409 printf %s "checking for recv... " >&6; }
26410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26411 /* end confdefs.h. */
26415 #ifdef HAVE_WINDOWS_H
26416 #ifndef WIN32_LEAN_AND_MEAN
26417 #define WIN32_LEAN_AND_MEAN
26419 #include <windows.h>
26420 #ifdef HAVE_WINSOCK2_H
26421 #include <winsock2.h>
26423 #ifdef HAVE_WINSOCK_H
26424 #include <winsock.h>
26428 #ifdef HAVE_SYS_TYPES_H
26429 #include <sys/types.h>
26431 #ifdef HAVE_SYS_SOCKET_H
26432 #include <sys/socket.h>
26447 if ac_fn_c_try_link "$LINENO"
26450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26451 printf "%s\n" "yes" >&6; }
26456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26457 printf "%s\n" "no" >&6; }
26461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26462 conftest$ac_exeext conftest.$ac_ext
26464 if test "$curl_cv_recv" = "yes"; then
26465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
26466 printf %s "checking types of args and return type for recv... " >&6; }
26467 if test ${curl_cv_func_recv_args+y}
26469 printf %s "(cached) " >&6
26472 curl_cv_func_recv_args="unknown"
26473 for recv_retv in 'int' 'ssize_t'; do
26474 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
26475 for recv_arg2 in 'char *' 'void *'; do
26476 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
26477 for recv_arg4 in 'int' 'unsigned int'; do
26478 if test "$curl_cv_func_recv_args" = "unknown"; then
26479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480 /* end confdefs.h. */
26484 #ifdef HAVE_WINDOWS_H
26485 #ifndef WIN32_LEAN_AND_MEAN
26486 #define WIN32_LEAN_AND_MEAN
26488 #include <windows.h>
26489 #ifdef HAVE_WINSOCK2_H
26490 #include <winsock2.h>
26492 #ifdef HAVE_WINSOCK_H
26493 #include <winsock.h>
26496 #define RECVCALLCONV PASCAL
26498 #ifdef HAVE_SYS_TYPES_H
26499 #include <sys/types.h>
26501 #ifdef HAVE_SYS_SOCKET_H
26502 #include <sys/socket.h>
26504 #define RECVCALLCONV
26506 extern $recv_retv RECVCALLCONV
26507 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
26516 $recv_arg4 flags=0;
26517 $recv_retv res = recv(s, buf, len, flags);
26524 if ac_fn_c_try_compile "$LINENO"
26527 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
26530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
26540 printf "%s\n" "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
26541 if test "$curl_cv_func_recv_args" = "unknown"; then
26542 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
26544 recv_prev_IFS=$IFS; IFS=','
26545 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
26550 printf "%s\n" "#define RECV_TYPE_ARG1 $1" >>confdefs.h
26553 printf "%s\n" "#define RECV_TYPE_ARG2 $2" >>confdefs.h
26556 printf "%s\n" "#define RECV_TYPE_ARG3 $3" >>confdefs.h
26559 printf "%s\n" "#define RECV_TYPE_ARG4 $4" >>confdefs.h
26562 printf "%s\n" "#define RECV_TYPE_RETV $5" >>confdefs.h
26566 printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
26568 ac_cv_func_recv="yes"
26571 as_fn_error $? "Unable to link function recv" "$LINENO" 5
26575 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
26576 if test "x$ac_cv_header_sys_types_h" = xyes
26578 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
26581 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
26582 if test "x$ac_cv_header_sys_socket_h" = xyes
26584 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
26589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
26590 printf %s "checking for recvfrom... " >&6; }
26591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26592 /* end confdefs.h. */
26596 #ifdef HAVE_WINDOWS_H
26597 #ifndef WIN32_LEAN_AND_MEAN
26598 #define WIN32_LEAN_AND_MEAN
26600 #include <windows.h>
26601 #ifdef HAVE_WINSOCK2_H
26602 #include <winsock2.h>
26604 #ifdef HAVE_WINSOCK_H
26605 #include <winsock.h>
26609 #ifdef HAVE_SYS_TYPES_H
26610 #include <sys/types.h>
26612 #ifdef HAVE_SYS_SOCKET_H
26613 #include <sys/socket.h>
26621 recvfrom(0, 0, 0, 0, 0, 0);
26628 if ac_fn_c_try_link "$LINENO"
26631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26632 printf "%s\n" "yes" >&6; }
26633 curl_cv_recvfrom="yes"
26637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26638 printf "%s\n" "no" >&6; }
26639 curl_cv_recvfrom="no"
26642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26643 conftest$ac_exeext conftest.$ac_ext
26645 if test "$curl_cv_recvfrom" = "yes"; then
26646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
26647 printf %s "checking types of args and return type for recvfrom... " >&6; }
26648 if test ${curl_cv_func_recvfrom_args+y}
26650 printf %s "(cached) " >&6
26653 curl_cv_func_recvfrom_args="unknown"
26654 for recvfrom_retv in 'int' 'ssize_t'; do
26655 for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
26656 for recvfrom_arg2 in 'char *' 'void *'; do
26657 for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
26658 for recvfrom_arg4 in 'int' 'unsigned int'; do
26659 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
26660 for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
26661 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
26662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26663 /* end confdefs.h. */
26667 #ifdef HAVE_WINDOWS_H
26668 #ifndef WIN32_LEAN_AND_MEAN
26669 #define WIN32_LEAN_AND_MEAN
26671 #include <windows.h>
26672 #ifdef HAVE_WINSOCK2_H
26673 #include <winsock2.h>
26675 #ifdef HAVE_WINSOCK_H
26676 #include <winsock.h>
26679 #define RECVFROMCALLCONV PASCAL
26681 #ifdef HAVE_SYS_TYPES_H
26682 #include <sys/types.h>
26684 #ifdef HAVE_SYS_SOCKET_H
26685 #include <sys/socket.h>
26687 #define RECVFROMCALLCONV
26689 extern $recvfrom_retv RECVFROMCALLCONV
26690 recvfrom($recvfrom_arg1, $recvfrom_arg2,
26691 $recvfrom_arg3, $recvfrom_arg4,
26692 $recvfrom_arg5, $recvfrom_arg6);
26698 $recvfrom_arg1 s=0;
26699 $recvfrom_arg2 buf=0;
26700 $recvfrom_arg3 len=0;
26701 $recvfrom_arg4 flags=0;
26702 $recvfrom_arg5 addr=0;
26703 $recvfrom_arg6 addrlen=0;
26704 $recvfrom_retv res=0;
26705 res = recvfrom(s, buf, len, flags, addr, addrlen);
26712 if ac_fn_c_try_compile "$LINENO"
26715 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
26718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
26730 printf "%s\n" "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
26731 # Nearly last minute change for this release starts here
26733 printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
26735 ac_cv_func_recvfrom="yes"
26736 # Nearly last minute change for this release ends here
26737 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
26738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
26739 printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
26741 recvfrom_prev_IFS=$IFS; IFS=','
26742 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
26743 IFS=$recvfrom_prev_IFS
26746 recvfrom_ptrt_arg2=$2
26747 recvfrom_qual_ptrt_arg5=$5
26748 recvfrom_ptrt_arg6=$6
26751 printf "%s\n" "#define RECVFROM_TYPE_ARG1 $1" >>confdefs.h
26754 printf "%s\n" "#define RECVFROM_TYPE_ARG3 $3" >>confdefs.h
26757 printf "%s\n" "#define RECVFROM_TYPE_ARG4 $4" >>confdefs.h
26760 printf "%s\n" "#define RECVFROM_TYPE_RETV $7" >>confdefs.h
26765 case $prev_sh_opts in
26773 case "$recvfrom_qual_ptrt_arg5" in
26775 recvfrom_qual_arg5=const
26776 recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
26779 recvfrom_qual_arg5=
26780 recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
26784 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
26785 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
26786 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
26789 printf "%s\n" "#define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2" >>confdefs.h
26792 printf "%s\n" "#define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5" >>confdefs.h
26795 printf "%s\n" "#define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5" >>confdefs.h
26798 printf "%s\n" "#define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6" >>confdefs.h
26801 if test "$recvfrom_type_arg2" = "void"; then
26803 printf "%s\n" "#define RECVFROM_TYPE_ARG2_IS_VOID 1" >>confdefs.h
26806 if test "$recvfrom_type_arg5" = "void"; then
26808 printf "%s\n" "#define RECVFROM_TYPE_ARG5_IS_VOID 1" >>confdefs.h
26811 if test "$recvfrom_type_arg6" = "void"; then
26813 printf "%s\n" "#define RECVFROM_TYPE_ARG6_IS_VOID 1" >>confdefs.h
26817 case $prev_sh_opts in
26826 printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
26828 ac_cv_func_recvfrom="yes"
26831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
26832 printf "%s\n" "$as_me: WARNING: Unable to link function recvfrom" >&2;}
26833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
26834 printf "%s\n" "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
26838 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
26839 if test "x$ac_cv_header_sys_types_h" = xyes
26841 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
26844 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
26845 if test "x$ac_cv_header_sys_socket_h" = xyes
26847 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
26852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
26853 printf %s "checking for send... " >&6; }
26854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26855 /* end confdefs.h. */
26859 #ifdef HAVE_WINDOWS_H
26860 #ifndef WIN32_LEAN_AND_MEAN
26861 #define WIN32_LEAN_AND_MEAN
26863 #include <windows.h>
26864 #ifdef HAVE_WINSOCK2_H
26865 #include <winsock2.h>
26867 #ifdef HAVE_WINSOCK_H
26868 #include <winsock.h>
26872 #ifdef HAVE_SYS_TYPES_H
26873 #include <sys/types.h>
26875 #ifdef HAVE_SYS_SOCKET_H
26876 #include <sys/socket.h>
26891 if ac_fn_c_try_link "$LINENO"
26894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26895 printf "%s\n" "yes" >&6; }
26900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26901 printf "%s\n" "no" >&6; }
26905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26906 conftest$ac_exeext conftest.$ac_ext
26908 if test "$curl_cv_send" = "yes"; then
26909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
26910 printf %s "checking types of args and return type for send... " >&6; }
26911 if test ${curl_cv_func_send_args+y}
26913 printf %s "(cached) " >&6
26916 curl_cv_func_send_args="unknown"
26917 for send_retv in 'int' 'ssize_t'; do
26918 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
26919 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
26920 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
26921 for send_arg4 in 'int' 'unsigned int'; do
26922 if test "$curl_cv_func_send_args" = "unknown"; then
26923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26924 /* end confdefs.h. */
26928 #ifdef HAVE_WINDOWS_H
26929 #ifndef WIN32_LEAN_AND_MEAN
26930 #define WIN32_LEAN_AND_MEAN
26932 #include <windows.h>
26933 #ifdef HAVE_WINSOCK2_H
26934 #include <winsock2.h>
26936 #ifdef HAVE_WINSOCK_H
26937 #include <winsock.h>
26940 #define SENDCALLCONV PASCAL
26942 #ifdef HAVE_SYS_TYPES_H
26943 #include <sys/types.h>
26945 #ifdef HAVE_SYS_SOCKET_H
26946 #include <sys/socket.h>
26948 #define SENDCALLCONV
26950 extern $send_retv SENDCALLCONV
26951 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
26959 $send_arg4 flags=0;
26960 $send_retv res = send(s, 0, len, flags);
26967 if ac_fn_c_try_compile "$LINENO"
26970 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
26973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
26983 printf "%s\n" "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
26984 if test "$curl_cv_func_send_args" = "unknown"; then
26985 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
26987 send_prev_IFS=$IFS; IFS=','
26988 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
26992 send_qual_type_arg2=$2
26995 printf "%s\n" "#define SEND_TYPE_ARG1 $1" >>confdefs.h
26998 printf "%s\n" "#define SEND_TYPE_ARG3 $3" >>confdefs.h
27001 printf "%s\n" "#define SEND_TYPE_ARG4 $4" >>confdefs.h
27004 printf "%s\n" "#define SEND_TYPE_RETV $5" >>confdefs.h
27009 case $prev_sh_opts in
27017 case "$send_qual_type_arg2" in
27019 send_qual_arg2=const
27020 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
27024 send_type_arg2=$send_qual_type_arg2
27029 printf "%s\n" "#define SEND_QUAL_ARG2 $send_qual_arg2" >>confdefs.h
27032 printf "%s\n" "#define SEND_TYPE_ARG2 $send_type_arg2" >>confdefs.h
27035 case $prev_sh_opts in
27044 printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
27046 ac_cv_func_send="yes"
27049 as_fn_error $? "Unable to link function send" "$LINENO" 5
27053 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
27054 if test "x$ac_cv_header_sys_types_h" = xyes
27056 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
27059 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
27060 if test "x$ac_cv_header_sys_socket_h" = xyes
27062 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
27066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
27067 printf %s "checking for MSG_NOSIGNAL... " >&6; }
27068 if test ${ac_cv_msg_nosignal+y}
27070 printf %s "(cached) " >&6
27073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27074 /* end confdefs.h. */
27078 #ifdef HAVE_WINDOWS_H
27079 #ifndef WIN32_LEAN_AND_MEAN
27080 #define WIN32_LEAN_AND_MEAN
27082 #include <windows.h>
27083 #ifdef HAVE_WINSOCK2_H
27084 #include <winsock2.h>
27086 #ifdef HAVE_WINSOCK_H
27087 #include <winsock.h>
27091 #ifdef HAVE_SYS_TYPES_H
27092 #include <sys/types.h>
27094 #ifdef HAVE_SYS_SOCKET_H
27095 #include <sys/socket.h>
27103 int flag=MSG_NOSIGNAL;
27110 if ac_fn_c_try_compile "$LINENO"
27113 ac_cv_msg_nosignal="yes"
27117 ac_cv_msg_nosignal="no"
27120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
27124 printf "%s\n" "$ac_cv_msg_nosignal" >&6; }
27125 case "$ac_cv_msg_nosignal" in
27128 printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
27135 cares_includes_socket="\
27136 /* includes start */
27137 #ifdef HAVE_SYS_TYPES_H
27138 # include <sys/types.h>
27140 #ifdef HAVE_SOCKET_H
27141 # include <socket.h>
27143 /* includes end */"
27144 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_socket
27146 if test "x$ac_cv_header_sys_types_h" = xyes
27148 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
27151 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$cares_includes_socket
27153 if test "x$ac_cv_header_socket_h" = xyes
27155 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
27162 tst_links_closesocket="unknown"
27163 tst_proto_closesocket="unknown"
27164 tst_compi_closesocket="unknown"
27165 tst_allow_closesocket="unknown"
27167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
27168 printf %s "checking if closesocket can be linked... " >&6; }
27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h. */
27173 $cares_includes_winsock2
27174 $cares_includes_socket
27180 if(0 != closesocket(0))
27188 if ac_fn_c_try_link "$LINENO"
27191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27192 printf "%s\n" "yes" >&6; }
27193 tst_links_closesocket="yes"
27197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27198 printf "%s\n" "no" >&6; }
27199 tst_links_closesocket="no"
27202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27203 conftest$ac_exeext conftest.$ac_ext
27205 if test "$tst_links_closesocket" = "yes"; then
27206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
27207 printf %s "checking if closesocket is prototyped... " >&6; }
27208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27209 /* end confdefs.h. */
27211 $cares_includes_winsock2
27212 $cares_includes_socket
27215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27216 $EGREP "closesocket" >/dev/null 2>&1
27219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27220 printf "%s\n" "yes" >&6; }
27221 tst_proto_closesocket="yes"
27225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27226 printf "%s\n" "no" >&6; }
27227 tst_proto_closesocket="no"
27234 if test "$tst_proto_closesocket" = "yes"; then
27235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
27236 printf %s "checking if closesocket is compilable... " >&6; }
27237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238 /* end confdefs.h. */
27241 $cares_includes_winsock2
27242 $cares_includes_socket
27248 if(0 != closesocket(0))
27256 if ac_fn_c_try_compile "$LINENO"
27259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27260 printf "%s\n" "yes" >&6; }
27261 tst_compi_closesocket="yes"
27265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27266 printf "%s\n" "no" >&6; }
27267 tst_compi_closesocket="no"
27270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27273 if test "$tst_compi_closesocket" = "yes"; then
27274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
27275 printf %s "checking if closesocket usage allowed... " >&6; }
27276 if test "x$cares_disallow_closesocket" != "xyes"; then
27277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27278 printf "%s\n" "yes" >&6; }
27279 tst_allow_closesocket="yes"
27281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27282 printf "%s\n" "no" >&6; }
27283 tst_allow_closesocket="no"
27287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
27288 printf %s "checking if closesocket might be used... " >&6; }
27289 if test "$tst_links_closesocket" = "yes" &&
27290 test "$tst_proto_closesocket" = "yes" &&
27291 test "$tst_compi_closesocket" = "yes" &&
27292 test "$tst_allow_closesocket" = "yes"; then
27293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27294 printf "%s\n" "yes" >&6; }
27296 printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
27298 ac_cv_func_closesocket="yes"
27300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27301 printf "%s\n" "no" >&6; }
27302 ac_cv_func_closesocket="no"
27307 tst_links_closesocket_camel="unknown"
27308 tst_proto_closesocket_camel="unknown"
27309 tst_compi_closesocket_camel="unknown"
27310 tst_allow_closesocket_camel="unknown"
27312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
27313 printf %s "checking if CloseSocket can be linked... " >&6; }
27314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27315 /* end confdefs.h. */
27318 $cares_includes_sys_socket
27324 if(0 != CloseSocket(0))
27332 if ac_fn_c_try_link "$LINENO"
27335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27336 printf "%s\n" "yes" >&6; }
27337 tst_links_closesocket_camel="yes"
27341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27342 printf "%s\n" "no" >&6; }
27343 tst_links_closesocket_camel="no"
27346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27347 conftest$ac_exeext conftest.$ac_ext
27349 if test "$tst_links_closesocket_camel" = "yes"; then
27350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
27351 printf %s "checking if CloseSocket is prototyped... " >&6; }
27352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27353 /* end confdefs.h. */
27355 $cares_includes_sys_socket
27358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27359 $EGREP "CloseSocket" >/dev/null 2>&1
27362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27363 printf "%s\n" "yes" >&6; }
27364 tst_proto_closesocket_camel="yes"
27368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27369 printf "%s\n" "no" >&6; }
27370 tst_proto_closesocket_camel="no"
27377 if test "$tst_proto_closesocket_camel" = "yes"; then
27378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
27379 printf %s "checking if CloseSocket is compilable... " >&6; }
27380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27381 /* end confdefs.h. */
27384 $cares_includes_sys_socket
27390 if(0 != CloseSocket(0))
27398 if ac_fn_c_try_compile "$LINENO"
27401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27402 printf "%s\n" "yes" >&6; }
27403 tst_compi_closesocket_camel="yes"
27407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27408 printf "%s\n" "no" >&6; }
27409 tst_compi_closesocket_camel="no"
27412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27415 if test "$tst_compi_closesocket_camel" = "yes"; then
27416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
27417 printf %s "checking if CloseSocket usage allowed... " >&6; }
27418 if test "x$cares_disallow_closesocket_camel" != "xyes"; then
27419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27420 printf "%s\n" "yes" >&6; }
27421 tst_allow_closesocket_camel="yes"
27423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27424 printf "%s\n" "no" >&6; }
27425 tst_allow_closesocket_camel="no"
27429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
27430 printf %s "checking if CloseSocket might be used... " >&6; }
27431 if test "$tst_links_closesocket_camel" = "yes" &&
27432 test "$tst_proto_closesocket_camel" = "yes" &&
27433 test "$tst_compi_closesocket_camel" = "yes" &&
27434 test "$tst_allow_closesocket_camel" = "yes"; then
27435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27436 printf "%s\n" "yes" >&6; }
27438 printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
27440 ac_cv_func_closesocket_camel="yes"
27442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27443 printf "%s\n" "no" >&6; }
27444 ac_cv_func_closesocket_camel="no"
27449 tst_links_connect="unknown"
27450 tst_proto_connect="unknown"
27451 tst_compi_connect="unknown"
27452 tst_allow_connect="unknown"
27454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
27455 printf %s "checking if connect can be linked... " >&6; }
27456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27457 /* end confdefs.h. */
27460 $cares_includes_winsock2
27461 $cares_includes_sys_socket
27462 $cares_includes_socket
27468 if(0 != connect(0, 0, 0))
27476 if ac_fn_c_try_link "$LINENO"
27479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27480 printf "%s\n" "yes" >&6; }
27481 tst_links_connect="yes"
27485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27486 printf "%s\n" "no" >&6; }
27487 tst_links_connect="no"
27490 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27491 conftest$ac_exeext conftest.$ac_ext
27493 if test "$tst_links_connect" = "yes"; then
27494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
27495 printf %s "checking if connect is prototyped... " >&6; }
27496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27497 /* end confdefs.h. */
27499 $cares_includes_winsock2
27500 $cares_includes_sys_socket
27501 $cares_includes_socket
27504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27505 $EGREP "connect" >/dev/null 2>&1
27508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27509 printf "%s\n" "yes" >&6; }
27510 tst_proto_connect="yes"
27514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27515 printf "%s\n" "no" >&6; }
27516 tst_proto_connect="no"
27523 if test "$tst_proto_connect" = "yes"; then
27524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
27525 printf %s "checking if connect is compilable... " >&6; }
27526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27527 /* end confdefs.h. */
27530 $cares_includes_winsock2
27531 $cares_includes_sys_socket
27532 $cares_includes_socket
27538 if(0 != connect(0, 0, 0))
27546 if ac_fn_c_try_compile "$LINENO"
27549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27550 printf "%s\n" "yes" >&6; }
27551 tst_compi_connect="yes"
27555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27556 printf "%s\n" "no" >&6; }
27557 tst_compi_connect="no"
27560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27563 if test "$tst_compi_connect" = "yes"; then
27564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
27565 printf %s "checking if connect usage allowed... " >&6; }
27566 if test "x$cares_disallow_connect" != "xyes"; then
27567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27568 printf "%s\n" "yes" >&6; }
27569 tst_allow_connect="yes"
27571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27572 printf "%s\n" "no" >&6; }
27573 tst_allow_connect="no"
27577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
27578 printf %s "checking if connect might be used... " >&6; }
27579 if test "$tst_links_connect" = "yes" &&
27580 test "$tst_proto_connect" = "yes" &&
27581 test "$tst_compi_connect" = "yes" &&
27582 test "$tst_allow_connect" = "yes"; then
27583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27584 printf "%s\n" "yes" >&6; }
27586 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
27588 ac_cv_func_connect="yes"
27590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27591 printf "%s\n" "no" >&6; }
27592 ac_cv_func_connect="no"
27596 cares_includes_fcntl="\
27597 /* includes start */
27598 #ifdef HAVE_SYS_TYPES_H
27599 # include <sys/types.h>
27601 #ifdef HAVE_UNISTD_H
27602 # include <unistd.h>
27604 #ifdef HAVE_FCNTL_H
27605 # include <fcntl.h>
27607 /* includes end */"
27608 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_fcntl
27610 if test "x$ac_cv_header_sys_types_h" = xyes
27612 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
27615 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_fcntl
27617 if test "x$ac_cv_header_unistd_h" = xyes
27619 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
27622 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$cares_includes_fcntl
27624 if test "x$ac_cv_header_fcntl_h" = xyes
27626 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
27633 tst_links_fcntl="unknown"
27634 tst_proto_fcntl="unknown"
27635 tst_compi_fcntl="unknown"
27636 tst_allow_fcntl="unknown"
27638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
27639 printf %s "checking if fcntl can be linked... " >&6; }
27640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27641 /* end confdefs.h. */
27643 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
27644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27645 #define fcntl innocuous_fcntl
27647 /* System header to define __stub macros and hopefully few prototypes,
27648 which can conflict with char fcntl (); below. */
27650 #include <limits.h>
27653 /* Override any GCC internal prototype to avoid an error.
27654 Use char because int might match the return type of a GCC
27655 builtin and then its argument prototype would still apply. */
27660 /* The GNU C library defines this for functions which it implements
27661 to always fail with ENOSYS. Some functions are actually named
27662 something starting with __ and the normal name is an alias. */
27663 #if defined __stub_fcntl || defined __stub___fcntl
27676 if ac_fn_c_try_link "$LINENO"
27679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27680 printf "%s\n" "yes" >&6; }
27681 tst_links_fcntl="yes"
27685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27686 printf "%s\n" "no" >&6; }
27687 tst_links_fcntl="no"
27690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27691 conftest$ac_exeext conftest.$ac_ext
27693 if test "$tst_links_fcntl" = "yes"; then
27694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
27695 printf %s "checking if fcntl is prototyped... " >&6; }
27696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27697 /* end confdefs.h. */
27699 $cares_includes_fcntl
27702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27703 $EGREP "fcntl" >/dev/null 2>&1
27706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27707 printf "%s\n" "yes" >&6; }
27708 tst_proto_fcntl="yes"
27712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27713 printf "%s\n" "no" >&6; }
27714 tst_proto_fcntl="no"
27721 if test "$tst_proto_fcntl" = "yes"; then
27722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
27723 printf %s "checking if fcntl is compilable... " >&6; }
27724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27725 /* end confdefs.h. */
27728 $cares_includes_fcntl
27734 if(0 != fcntl(0, 0, 0))
27742 if ac_fn_c_try_compile "$LINENO"
27745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27746 printf "%s\n" "yes" >&6; }
27747 tst_compi_fcntl="yes"
27751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27752 printf "%s\n" "no" >&6; }
27753 tst_compi_fcntl="no"
27756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27759 if test "$tst_compi_fcntl" = "yes"; then
27760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
27761 printf %s "checking if fcntl usage allowed... " >&6; }
27762 if test "x$cares_disallow_fcntl" != "xyes"; then
27763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27764 printf "%s\n" "yes" >&6; }
27765 tst_allow_fcntl="yes"
27767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27768 printf "%s\n" "no" >&6; }
27769 tst_allow_fcntl="no"
27773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
27774 printf %s "checking if fcntl might be used... " >&6; }
27775 if test "$tst_links_fcntl" = "yes" &&
27776 test "$tst_proto_fcntl" = "yes" &&
27777 test "$tst_compi_fcntl" = "yes" &&
27778 test "$tst_allow_fcntl" = "yes"; then
27779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27780 printf "%s\n" "yes" >&6; }
27782 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
27784 ac_cv_func_fcntl="yes"
27787 tst_compi_fcntl_o_nonblock="unknown"
27788 tst_allow_fcntl_o_nonblock="unknown"
27791 sunos4* | aix3* | beos*)
27792 cares_disallow_fcntl_o_nonblock="yes"
27796 if test "$ac_cv_func_fcntl" = "yes"; then
27797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
27798 printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
27799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27800 /* end confdefs.h. */
27803 $cares_includes_fcntl
27810 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
27818 if ac_fn_c_try_compile "$LINENO"
27821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27822 printf "%s\n" "yes" >&6; }
27823 tst_compi_fcntl_o_nonblock="yes"
27827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27828 printf "%s\n" "no" >&6; }
27829 tst_compi_fcntl_o_nonblock="no"
27832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27835 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
27836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
27837 printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
27838 if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
27839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27840 printf "%s\n" "yes" >&6; }
27841 tst_allow_fcntl_o_nonblock="yes"
27843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27844 printf "%s\n" "no" >&6; }
27845 tst_allow_fcntl_o_nonblock="no"
27849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
27850 printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
27851 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
27852 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
27853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27854 printf "%s\n" "yes" >&6; }
27856 printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
27858 ac_cv_func_fcntl_o_nonblock="yes"
27860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27861 printf "%s\n" "no" >&6; }
27862 ac_cv_func_fcntl_o_nonblock="no"
27866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27867 printf "%s\n" "no" >&6; }
27868 ac_cv_func_fcntl="no"
27872 cares_includes_netdb="\
27873 /* includes start */
27874 #ifdef HAVE_SYS_TYPES_H
27875 # include <sys/types.h>
27877 #ifdef HAVE_NETDB_H
27878 # include <netdb.h>
27880 /* includes end */"
27881 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_netdb
27883 if test "x$ac_cv_header_sys_types_h" = xyes
27885 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
27888 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$cares_includes_netdb
27890 if test "x$ac_cv_header_netdb_h" = xyes
27892 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
27899 tst_links_freeaddrinfo="unknown"
27900 tst_proto_freeaddrinfo="unknown"
27901 tst_compi_freeaddrinfo="unknown"
27902 tst_allow_freeaddrinfo="unknown"
27904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
27905 printf %s "checking if freeaddrinfo can be linked... " >&6; }
27906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27907 /* end confdefs.h. */
27910 $cares_includes_ws2tcpip
27911 $cares_includes_sys_socket
27912 $cares_includes_netdb
27925 if ac_fn_c_try_link "$LINENO"
27928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27929 printf "%s\n" "yes" >&6; }
27930 tst_links_freeaddrinfo="yes"
27934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27935 printf "%s\n" "no" >&6; }
27936 tst_links_freeaddrinfo="no"
27939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27940 conftest$ac_exeext conftest.$ac_ext
27942 if test "$tst_links_freeaddrinfo" = "yes"; then
27943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
27944 printf %s "checking if freeaddrinfo is prototyped... " >&6; }
27945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27946 /* end confdefs.h. */
27948 $cares_includes_ws2tcpip
27949 $cares_includes_sys_socket
27950 $cares_includes_netdb
27953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27954 $EGREP "freeaddrinfo" >/dev/null 2>&1
27957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27958 printf "%s\n" "yes" >&6; }
27959 tst_proto_freeaddrinfo="yes"
27963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27964 printf "%s\n" "no" >&6; }
27965 tst_proto_freeaddrinfo="no"
27972 if test "$tst_proto_freeaddrinfo" = "yes"; then
27973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
27974 printf %s "checking if freeaddrinfo is compilable... " >&6; }
27975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27976 /* end confdefs.h. */
27979 $cares_includes_ws2tcpip
27980 $cares_includes_sys_socket
27981 $cares_includes_netdb
27994 if ac_fn_c_try_compile "$LINENO"
27997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27998 printf "%s\n" "yes" >&6; }
27999 tst_compi_freeaddrinfo="yes"
28003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28004 printf "%s\n" "no" >&6; }
28005 tst_compi_freeaddrinfo="no"
28008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28011 if test "$tst_compi_freeaddrinfo" = "yes"; then
28012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
28013 printf %s "checking if freeaddrinfo usage allowed... " >&6; }
28014 if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
28015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28016 printf "%s\n" "yes" >&6; }
28017 tst_allow_freeaddrinfo="yes"
28019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28020 printf "%s\n" "no" >&6; }
28021 tst_allow_freeaddrinfo="no"
28025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
28026 printf %s "checking if freeaddrinfo might be used... " >&6; }
28027 if test "$tst_links_freeaddrinfo" = "yes" &&
28028 test "$tst_proto_freeaddrinfo" = "yes" &&
28029 test "$tst_compi_freeaddrinfo" = "yes" &&
28030 test "$tst_allow_freeaddrinfo" = "yes"; then
28031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28032 printf "%s\n" "yes" >&6; }
28034 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
28036 ac_cv_func_freeaddrinfo="yes"
28038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28039 printf "%s\n" "no" >&6; }
28040 ac_cv_func_freeaddrinfo="no"
28044 cares_includes_stdlib="\
28045 /* includes start */
28046 #ifdef HAVE_SYS_TYPES_H
28047 # include <sys/types.h>
28049 #ifdef HAVE_STDLIB_H
28050 # include <stdlib.h>
28052 /* includes end */"
28053 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_stdlib
28055 if test "x$ac_cv_header_sys_types_h" = xyes
28057 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
28060 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$cares_includes_stdlib
28062 if test "x$ac_cv_header_stdlib_h" = xyes
28064 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
28070 cares_includes_string="\
28071 /* includes start */
28072 #ifdef HAVE_SYS_TYPES_H
28073 # include <sys/types.h>
28075 #ifdef HAVE_STRING_H
28076 # include <string.h>
28078 #ifdef HAVE_STRINGS_H
28079 # include <strings.h>
28081 /* includes end */"
28082 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_string
28084 if test "x$ac_cv_header_sys_types_h" = xyes
28086 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
28089 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$cares_includes_string
28091 if test "x$ac_cv_header_string_h" = xyes
28093 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
28096 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$cares_includes_string
28098 if test "x$ac_cv_header_strings_h" = xyes
28100 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
28107 tst_links_getaddrinfo="unknown"
28108 tst_proto_getaddrinfo="unknown"
28109 tst_compi_getaddrinfo="unknown"
28110 tst_works_getaddrinfo="unknown"
28111 tst_allow_getaddrinfo="unknown"
28112 tst_tsafe_getaddrinfo="unknown"
28114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
28115 printf %s "checking if getaddrinfo can be linked... " >&6; }
28116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28117 /* end confdefs.h. */
28120 $cares_includes_ws2tcpip
28121 $cares_includes_sys_socket
28122 $cares_includes_netdb
28128 if(0 != getaddrinfo(0, 0, 0, 0))
28136 if ac_fn_c_try_link "$LINENO"
28139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28140 printf "%s\n" "yes" >&6; }
28141 tst_links_getaddrinfo="yes"
28145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28146 printf "%s\n" "no" >&6; }
28147 tst_links_getaddrinfo="no"
28150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28151 conftest$ac_exeext conftest.$ac_ext
28153 if test "$tst_links_getaddrinfo" = "yes"; then
28154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
28155 printf %s "checking if getaddrinfo is prototyped... " >&6; }
28156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28157 /* end confdefs.h. */
28159 $cares_includes_ws2tcpip
28160 $cares_includes_sys_socket
28161 $cares_includes_netdb
28164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28165 $EGREP "getaddrinfo" >/dev/null 2>&1
28168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28169 printf "%s\n" "yes" >&6; }
28170 tst_proto_getaddrinfo="yes"
28174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28175 printf "%s\n" "no" >&6; }
28176 tst_proto_getaddrinfo="no"
28183 if test "$tst_proto_getaddrinfo" = "yes"; then
28184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
28185 printf %s "checking if getaddrinfo is compilable... " >&6; }
28186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28187 /* end confdefs.h. */
28190 $cares_includes_ws2tcpip
28191 $cares_includes_sys_socket
28192 $cares_includes_netdb
28198 if(0 != getaddrinfo(0, 0, 0, 0))
28206 if ac_fn_c_try_compile "$LINENO"
28209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28210 printf "%s\n" "yes" >&6; }
28211 tst_compi_getaddrinfo="yes"
28215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28216 printf "%s\n" "no" >&6; }
28217 tst_compi_getaddrinfo="no"
28220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28223 if test "x$cross_compiling" != "xyes" &&
28224 test "$tst_compi_getaddrinfo" = "yes"; then
28225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
28226 printf %s "checking if getaddrinfo seems to work... " >&6; }
28227 if test "$cross_compiling" = yes
28229 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28230 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28231 as_fn_error $? "cannot run test program while cross compiling
28232 See \`config.log' for more details" "$LINENO" 5; }
28234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28235 /* end confdefs.h. */
28238 $cares_includes_ws2tcpip
28239 $cares_includes_stdlib
28240 $cares_includes_string
28241 $cares_includes_sys_socket
28242 $cares_includes_netdb
28248 struct addrinfo hints;
28249 struct addrinfo *ai = 0;
28252 memset(&hints, 0, sizeof(hints));
28253 hints.ai_flags = AI_NUMERICHOST;
28254 hints.ai_family = AF_UNSPEC;
28255 hints.ai_socktype = SOCK_STREAM;
28256 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
28258 exit(1); /* fail */
28267 if ac_fn_c_try_run "$LINENO"
28270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28271 printf "%s\n" "yes" >&6; }
28272 tst_works_getaddrinfo="yes"
28276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28277 printf "%s\n" "no" >&6; }
28278 tst_works_getaddrinfo="no"
28281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28282 conftest.$ac_objext conftest.beam conftest.$ac_ext
28287 if test "$tst_compi_getaddrinfo" = "yes" &&
28288 test "$tst_works_getaddrinfo" != "no"; then
28289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
28290 printf %s "checking if getaddrinfo usage allowed... " >&6; }
28291 if test "x$cares_disallow_getaddrinfo" != "xyes"; then
28292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28293 printf "%s\n" "yes" >&6; }
28294 tst_allow_getaddrinfo="yes"
28296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28297 printf "%s\n" "no" >&6; }
28298 tst_allow_getaddrinfo="no"
28302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
28303 printf %s "checking if getaddrinfo might be used... " >&6; }
28304 if test "$tst_links_getaddrinfo" = "yes" &&
28305 test "$tst_proto_getaddrinfo" = "yes" &&
28306 test "$tst_compi_getaddrinfo" = "yes" &&
28307 test "$tst_allow_getaddrinfo" = "yes" &&
28308 test "$tst_works_getaddrinfo" != "no"; then
28309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28310 printf "%s\n" "yes" >&6; }
28312 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
28314 ac_cv_func_getaddrinfo="yes"
28316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28317 printf "%s\n" "no" >&6; }
28318 ac_cv_func_getaddrinfo="no"
28319 ac_cv_func_getaddrinfo_threadsafe="no"
28322 if test "$ac_cv_func_getaddrinfo" = "yes"; then
28323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
28324 printf %s "checking if getaddrinfo is threadsafe... " >&6; }
28326 aix[1234].* | aix5.[01].*)
28327 tst_tsafe_getaddrinfo="no"
28330 tst_tsafe_getaddrinfo="yes"
28333 tst_tsafe_getaddrinfo="no"
28336 tst_tsafe_getaddrinfo="yes"
28338 freebsd[1234].* | freebsd5.[1234]*)
28339 tst_tsafe_getaddrinfo="no"
28342 tst_tsafe_getaddrinfo="yes"
28344 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
28345 tst_tsafe_getaddrinfo="no"
28348 tst_tsafe_getaddrinfo="yes"
28351 tst_tsafe_getaddrinfo="no"
28354 tst_tsafe_getaddrinfo="yes"
28357 tst_tsafe_getaddrinfo="no"
28360 tst_tsafe_getaddrinfo="yes"
28363 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
28364 test "$ac_cv_native_windows" = "yes"; then
28365 tst_tsafe_getaddrinfo="yes"
28367 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
28370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28371 /* end confdefs.h. */
28374 $cares_includes_sys_socket
28375 $cares_includes_netdb
28382 force compilation error
28388 if ac_fn_c_try_compile "$LINENO"
28391 tst_symbol_defined="yes"
28395 tst_symbol_defined="no"
28398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28399 if test "$tst_symbol_defined" = "yes"; then
28400 curl_cv_have_def_h_errno=yes
28403 curl_cv_have_def_h_errno=no
28407 if test "$curl_cv_have_def_h_errno" = "yes"; then
28408 tst_h_errno_macro="yes"
28410 tst_h_errno_macro="no"
28412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28413 /* end confdefs.h. */
28416 $cares_includes_sys_socket
28417 $cares_includes_netdb
28432 if ac_fn_c_try_compile "$LINENO"
28435 tst_h_errno_modifiable_lvalue="yes"
28439 tst_h_errno_modifiable_lvalue="no"
28442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28444 /* end confdefs.h. */
28452 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
28454 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
28457 force compilation error
28465 if ac_fn_c_try_compile "$LINENO"
28468 tst_h_errno_sbs_issue_7="yes"
28472 tst_h_errno_sbs_issue_7="no"
28475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28476 if test "$tst_h_errno_macro" = "no" &&
28477 test "$tst_h_errno_modifiable_lvalue" = "no" &&
28478 test "$tst_h_errno_sbs_issue_7" = "no"; then
28479 tst_tsafe_getaddrinfo="no"
28481 tst_tsafe_getaddrinfo="yes"
28484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
28485 printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
28486 if test "$tst_tsafe_getaddrinfo" = "yes"; then
28488 printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
28490 ac_cv_func_getaddrinfo_threadsafe="yes"
28492 ac_cv_func_getaddrinfo_threadsafe="no"
28498 tst_links_getenv="unknown"
28499 tst_proto_getenv="unknown"
28500 tst_compi_getenv="unknown"
28501 tst_allow_getenv="unknown"
28503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
28504 printf %s "checking if getenv can be linked... " >&6; }
28505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28506 /* end confdefs.h. */
28508 /* Define getenv to an innocuous variant, in case <limits.h> declares getenv.
28509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28510 #define getenv innocuous_getenv
28512 /* System header to define __stub macros and hopefully few prototypes,
28513 which can conflict with char getenv (); below. */
28515 #include <limits.h>
28518 /* Override any GCC internal prototype to avoid an error.
28519 Use char because int might match the return type of a GCC
28520 builtin and then its argument prototype would still apply. */
28525 /* The GNU C library defines this for functions which it implements
28526 to always fail with ENOSYS. Some functions are actually named
28527 something starting with __ and the normal name is an alias. */
28528 #if defined __stub_getenv || defined __stub___getenv
28541 if ac_fn_c_try_link "$LINENO"
28544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28545 printf "%s\n" "yes" >&6; }
28546 tst_links_getenv="yes"
28550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28551 printf "%s\n" "no" >&6; }
28552 tst_links_getenv="no"
28555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28556 conftest$ac_exeext conftest.$ac_ext
28558 if test "$tst_links_getenv" = "yes"; then
28559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
28560 printf %s "checking if getenv is prototyped... " >&6; }
28561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28562 /* end confdefs.h. */
28564 $cares_includes_stdlib
28567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28568 $EGREP "getenv" >/dev/null 2>&1
28571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28572 printf "%s\n" "yes" >&6; }
28573 tst_proto_getenv="yes"
28577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28578 printf "%s\n" "no" >&6; }
28579 tst_proto_getenv="no"
28586 if test "$tst_proto_getenv" = "yes"; then
28587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
28588 printf %s "checking if getenv is compilable... " >&6; }
28589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28590 /* end confdefs.h. */
28593 $cares_includes_stdlib
28607 if ac_fn_c_try_compile "$LINENO"
28610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28611 printf "%s\n" "yes" >&6; }
28612 tst_compi_getenv="yes"
28616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28617 printf "%s\n" "no" >&6; }
28618 tst_compi_getenv="no"
28621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28624 if test "$tst_compi_getenv" = "yes"; then
28625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
28626 printf %s "checking if getenv usage allowed... " >&6; }
28627 if test "x$cares_disallow_getenv" != "xyes"; then
28628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28629 printf "%s\n" "yes" >&6; }
28630 tst_allow_getenv="yes"
28632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28633 printf "%s\n" "no" >&6; }
28634 tst_allow_getenv="no"
28638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
28639 printf %s "checking if getenv might be used... " >&6; }
28640 if test "$tst_links_getenv" = "yes" &&
28641 test "$tst_proto_getenv" = "yes" &&
28642 test "$tst_compi_getenv" = "yes" &&
28643 test "$tst_allow_getenv" = "yes"; then
28644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28645 printf "%s\n" "yes" >&6; }
28647 printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
28649 ac_cv_func_getenv="yes"
28651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28652 printf "%s\n" "no" >&6; }
28653 ac_cv_func_getenv="no"
28658 tst_links_gethostbyaddr="unknown"
28659 tst_proto_gethostbyaddr="unknown"
28660 tst_compi_gethostbyaddr="unknown"
28661 tst_allow_gethostbyaddr="unknown"
28663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
28664 printf %s "checking if gethostbyaddr can be linked... " >&6; }
28665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28666 /* end confdefs.h. */
28669 $cares_includes_winsock2
28670 $cares_includes_netdb
28676 if(0 != gethostbyaddr(0, 0, 0))
28684 if ac_fn_c_try_link "$LINENO"
28687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28688 printf "%s\n" "yes" >&6; }
28689 tst_links_gethostbyaddr="yes"
28693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28694 printf "%s\n" "no" >&6; }
28695 tst_links_gethostbyaddr="no"
28698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28699 conftest$ac_exeext conftest.$ac_ext
28701 if test "$tst_links_gethostbyaddr" = "yes"; then
28702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
28703 printf %s "checking if gethostbyaddr is prototyped... " >&6; }
28704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705 /* end confdefs.h. */
28707 $cares_includes_winsock2
28708 $cares_includes_netdb
28711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28712 $EGREP "gethostbyaddr" >/dev/null 2>&1
28715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28716 printf "%s\n" "yes" >&6; }
28717 tst_proto_gethostbyaddr="yes"
28721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28722 printf "%s\n" "no" >&6; }
28723 tst_proto_gethostbyaddr="no"
28730 if test "$tst_proto_gethostbyaddr" = "yes"; then
28731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
28732 printf %s "checking if gethostbyaddr is compilable... " >&6; }
28733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28734 /* end confdefs.h. */
28737 $cares_includes_winsock2
28738 $cares_includes_netdb
28744 if(0 != gethostbyaddr(0, 0, 0))
28752 if ac_fn_c_try_compile "$LINENO"
28755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28756 printf "%s\n" "yes" >&6; }
28757 tst_compi_gethostbyaddr="yes"
28761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28762 printf "%s\n" "no" >&6; }
28763 tst_compi_gethostbyaddr="no"
28766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28769 if test "$tst_compi_gethostbyaddr" = "yes"; then
28770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
28771 printf %s "checking if gethostbyaddr usage allowed... " >&6; }
28772 if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
28773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28774 printf "%s\n" "yes" >&6; }
28775 tst_allow_gethostbyaddr="yes"
28777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28778 printf "%s\n" "no" >&6; }
28779 tst_allow_gethostbyaddr="no"
28783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
28784 printf %s "checking if gethostbyaddr might be used... " >&6; }
28785 if test "$tst_links_gethostbyaddr" = "yes" &&
28786 test "$tst_proto_gethostbyaddr" = "yes" &&
28787 test "$tst_compi_gethostbyaddr" = "yes" &&
28788 test "$tst_allow_gethostbyaddr" = "yes"; then
28789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28790 printf "%s\n" "yes" >&6; }
28792 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
28794 ac_cv_func_gethostbyaddr="yes"
28796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28797 printf "%s\n" "no" >&6; }
28798 ac_cv_func_gethostbyaddr="no"
28803 tst_links_gethostbyname="unknown"
28804 tst_proto_gethostbyname="unknown"
28805 tst_compi_gethostbyname="unknown"
28806 tst_allow_gethostbyname="unknown"
28808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
28809 printf %s "checking if gethostbyname can be linked... " >&6; }
28810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28811 /* end confdefs.h. */
28814 $cares_includes_winsock2
28815 $cares_includes_netdb
28821 if(0 != gethostbyname(0))
28829 if ac_fn_c_try_link "$LINENO"
28832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28833 printf "%s\n" "yes" >&6; }
28834 tst_links_gethostbyname="yes"
28838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28839 printf "%s\n" "no" >&6; }
28840 tst_links_gethostbyname="no"
28843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28844 conftest$ac_exeext conftest.$ac_ext
28846 if test "$tst_links_gethostbyname" = "yes"; then
28847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
28848 printf %s "checking if gethostbyname is prototyped... " >&6; }
28849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28850 /* end confdefs.h. */
28852 $cares_includes_winsock2
28853 $cares_includes_netdb
28856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28857 $EGREP "gethostbyname" >/dev/null 2>&1
28860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28861 printf "%s\n" "yes" >&6; }
28862 tst_proto_gethostbyname="yes"
28866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28867 printf "%s\n" "no" >&6; }
28868 tst_proto_gethostbyname="no"
28875 if test "$tst_proto_gethostbyname" = "yes"; then
28876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
28877 printf %s "checking if gethostbyname is compilable... " >&6; }
28878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28879 /* end confdefs.h. */
28882 $cares_includes_winsock2
28883 $cares_includes_netdb
28889 if(0 != gethostbyname(0))
28897 if ac_fn_c_try_compile "$LINENO"
28900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28901 printf "%s\n" "yes" >&6; }
28902 tst_compi_gethostbyname="yes"
28906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28907 printf "%s\n" "no" >&6; }
28908 tst_compi_gethostbyname="no"
28911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28914 if test "$tst_compi_gethostbyname" = "yes"; then
28915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
28916 printf %s "checking if gethostbyname usage allowed... " >&6; }
28917 if test "x$cares_disallow_gethostbyname" != "xyes"; then
28918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28919 printf "%s\n" "yes" >&6; }
28920 tst_allow_gethostbyname="yes"
28922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28923 printf "%s\n" "no" >&6; }
28924 tst_allow_gethostbyname="no"
28928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
28929 printf %s "checking if gethostbyname might be used... " >&6; }
28930 if test "$tst_links_gethostbyname" = "yes" &&
28931 test "$tst_proto_gethostbyname" = "yes" &&
28932 test "$tst_compi_gethostbyname" = "yes" &&
28933 test "$tst_allow_gethostbyname" = "yes"; then
28934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28935 printf "%s\n" "yes" >&6; }
28937 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
28939 ac_cv_func_gethostbyname="yes"
28941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28942 printf "%s\n" "no" >&6; }
28943 ac_cv_func_gethostbyname="no"
28947 cares_includes_unistd="\
28948 /* includes start */
28949 #ifdef HAVE_SYS_TYPES_H
28950 # include <sys/types.h>
28952 #ifdef HAVE_UNISTD_H
28953 # include <unistd.h>
28955 /* includes end */"
28956 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_unistd
28958 if test "x$ac_cv_header_sys_types_h" = xyes
28960 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
28963 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_unistd
28965 if test "x$ac_cv_header_unistd_h" = xyes
28967 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
28974 tst_links_gethostname="unknown"
28975 tst_proto_gethostname="unknown"
28976 tst_compi_gethostname="unknown"
28977 tst_allow_gethostname="unknown"
28979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
28980 printf %s "checking if gethostname can be linked... " >&6; }
28981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28982 /* end confdefs.h. */
28985 $cares_includes_winsock2
28986 $cares_includes_unistd
28992 if(0 != gethostname(0, 0))
29000 if ac_fn_c_try_link "$LINENO"
29003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29004 printf "%s\n" "yes" >&6; }
29005 tst_links_gethostname="yes"
29009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29010 printf "%s\n" "no" >&6; }
29011 tst_links_gethostname="no"
29014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29015 conftest$ac_exeext conftest.$ac_ext
29017 if test "$tst_links_gethostname" = "yes"; then
29018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
29019 printf %s "checking if gethostname is prototyped... " >&6; }
29020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29021 /* end confdefs.h. */
29023 $cares_includes_winsock2
29024 $cares_includes_unistd
29027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29028 $EGREP "gethostname" >/dev/null 2>&1
29031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29032 printf "%s\n" "yes" >&6; }
29033 tst_proto_gethostname="yes"
29037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29038 printf "%s\n" "no" >&6; }
29039 tst_proto_gethostname="no"
29046 if test "$tst_proto_gethostname" = "yes"; then
29047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
29048 printf %s "checking if gethostname is compilable... " >&6; }
29049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050 /* end confdefs.h. */
29053 $cares_includes_winsock2
29054 $cares_includes_unistd
29060 if(0 != gethostname(0, 0))
29068 if ac_fn_c_try_compile "$LINENO"
29071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29072 printf "%s\n" "yes" >&6; }
29073 tst_compi_gethostname="yes"
29077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29078 printf "%s\n" "no" >&6; }
29079 tst_compi_gethostname="no"
29082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29085 if test "$tst_compi_gethostname" = "yes"; then
29086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
29087 printf %s "checking for gethostname arg 2 data type... " >&6; }
29088 tst_gethostname_type_arg2="unknown"
29089 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
29090 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
29091 if test "$tst_gethostname_type_arg2" = "unknown"; then
29092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29093 /* end confdefs.h. */
29096 $cares_includes_winsock2
29097 $cares_includes_unistd
29098 $cares_preprocess_callconv
29099 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
29105 if(0 != gethostname(0, 0))
29113 if ac_fn_c_try_compile "$LINENO"
29116 tst_gethostname_type_arg2="$tst_arg2"
29119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
29124 printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
29125 if test "$tst_gethostname_type_arg2" != "unknown"; then
29127 printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
29132 if test "$tst_compi_gethostname" = "yes"; then
29133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
29134 printf %s "checking if gethostname usage allowed... " >&6; }
29135 if test "x$cares_disallow_gethostname" != "xyes"; then
29136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29137 printf "%s\n" "yes" >&6; }
29138 tst_allow_gethostname="yes"
29140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29141 printf "%s\n" "no" >&6; }
29142 tst_allow_gethostname="no"
29146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
29147 printf %s "checking if gethostname might be used... " >&6; }
29148 if test "$tst_links_gethostname" = "yes" &&
29149 test "$tst_proto_gethostname" = "yes" &&
29150 test "$tst_compi_gethostname" = "yes" &&
29151 test "$tst_allow_gethostname" = "yes"; then
29152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29153 printf "%s\n" "yes" >&6; }
29155 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
29157 ac_cv_func_gethostname="yes"
29159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29160 printf "%s\n" "no" >&6; }
29161 ac_cv_func_gethostname="no"
29166 tst_links_getservbyport_r="unknown"
29167 tst_proto_getservbyport_r="unknown"
29168 tst_compi_getservbyport_r="unknown"
29169 tst_allow_getservbyport_r="unknown"
29170 tst_nargs_getservbyport_r="unknown"
29172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
29173 printf %s "checking if getservbyport_r can be linked... " >&6; }
29174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29175 /* end confdefs.h. */
29177 /* Define getservbyport_r to an innocuous variant, in case <limits.h> declares getservbyport_r.
29178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29179 #define getservbyport_r innocuous_getservbyport_r
29181 /* System header to define __stub macros and hopefully few prototypes,
29182 which can conflict with char getservbyport_r (); below. */
29184 #include <limits.h>
29185 #undef getservbyport_r
29187 /* Override any GCC internal prototype to avoid an error.
29188 Use char because int might match the return type of a GCC
29189 builtin and then its argument prototype would still apply. */
29193 char getservbyport_r ();
29194 /* The GNU C library defines this for functions which it implements
29195 to always fail with ENOSYS. Some functions are actually named
29196 something starting with __ and the normal name is an alias. */
29197 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
29204 return getservbyport_r ();
29210 if ac_fn_c_try_link "$LINENO"
29213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29214 printf "%s\n" "yes" >&6; }
29215 tst_links_getservbyport_r="yes"
29219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29220 printf "%s\n" "no" >&6; }
29221 tst_links_getservbyport_r="no"
29224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29225 conftest$ac_exeext conftest.$ac_ext
29227 if test "$tst_links_getservbyport_r" = "yes"; then
29228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
29229 printf %s "checking if getservbyport_r is prototyped... " >&6; }
29230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29231 /* end confdefs.h. */
29233 $cares_includes_netdb
29236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29237 $EGREP "getservbyport_r" >/dev/null 2>&1
29240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29241 printf "%s\n" "yes" >&6; }
29242 tst_proto_getservbyport_r="yes"
29246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29247 printf "%s\n" "no" >&6; }
29248 tst_proto_getservbyport_r="no"
29255 if test "$tst_proto_getservbyport_r" = "yes"; then
29256 if test "$tst_nargs_getservbyport_r" = "unknown"; then
29257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
29258 printf %s "checking if getservbyport_r takes 4 args.... " >&6; }
29259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29260 /* end confdefs.h. */
29263 $cares_includes_netdb
29269 if(0 != getservbyport_r(0, 0, 0, 0))
29277 if ac_fn_c_try_compile "$LINENO"
29280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29281 printf "%s\n" "yes" >&6; }
29282 tst_compi_getservbyport_r="yes"
29283 tst_nargs_getservbyport_r="4"
29287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29288 printf "%s\n" "no" >&6; }
29289 tst_compi_getservbyport_r="no"
29292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29294 if test "$tst_nargs_getservbyport_r" = "unknown"; then
29295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
29296 printf %s "checking if getservbyport_r takes 5 args.... " >&6; }
29297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29298 /* end confdefs.h. */
29301 $cares_includes_netdb
29307 if(0 != getservbyport_r(0, 0, 0, 0, 0))
29315 if ac_fn_c_try_compile "$LINENO"
29318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29319 printf "%s\n" "yes" >&6; }
29320 tst_compi_getservbyport_r="yes"
29321 tst_nargs_getservbyport_r="5"
29325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29326 printf "%s\n" "no" >&6; }
29327 tst_compi_getservbyport_r="no"
29330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29332 if test "$tst_nargs_getservbyport_r" = "unknown"; then
29333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
29334 printf %s "checking if getservbyport_r takes 6 args.... " >&6; }
29335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29336 /* end confdefs.h. */
29339 $cares_includes_netdb
29345 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
29353 if ac_fn_c_try_compile "$LINENO"
29356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29357 printf "%s\n" "yes" >&6; }
29358 tst_compi_getservbyport_r="yes"
29359 tst_nargs_getservbyport_r="6"
29363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29364 printf "%s\n" "no" >&6; }
29365 tst_compi_getservbyport_r="no"
29368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
29371 printf %s "checking if getservbyport_r is compilable... " >&6; }
29372 if test "$tst_compi_getservbyport_r" = "yes"; then
29373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29374 printf "%s\n" "yes" >&6; }
29376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29377 printf "%s\n" "no" >&6; }
29381 if test "$tst_compi_getservbyport_r" = "yes"; then
29382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
29383 printf %s "checking if getservbyport_r usage allowed... " >&6; }
29384 if test "x$cares_disallow_getservbyport_r" != "xyes"; then
29385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29386 printf "%s\n" "yes" >&6; }
29387 tst_allow_getservbyport_r="yes"
29389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29390 printf "%s\n" "no" >&6; }
29391 tst_allow_getservbyport_r="no"
29395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
29396 printf %s "checking if getservbyport_r might be used... " >&6; }
29397 if test "$tst_links_getservbyport_r" = "yes" &&
29398 test "$tst_proto_getservbyport_r" = "yes" &&
29399 test "$tst_compi_getservbyport_r" = "yes" &&
29400 test "$tst_allow_getservbyport_r" = "yes"; then
29401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29402 printf "%s\n" "yes" >&6; }
29404 printf "%s\n" "#define HAVE_GETSERVBYPORT_R 1" >>confdefs.h
29407 printf "%s\n" "#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r" >>confdefs.h
29409 if test "$tst_nargs_getservbyport_r" -eq "4"; then
29411 printf "%s\n" "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
29415 printf "%s\n" "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
29418 ac_cv_func_getservbyport_r="yes"
29420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29421 printf "%s\n" "no" >&6; }
29422 ac_cv_func_getservbyport_r="no"
29426 cares_includes_arpa_inet="\
29427 /* includes start */
29428 #ifdef HAVE_SYS_TYPES_H
29429 # include <sys/types.h>
29431 #ifdef HAVE_SYS_SOCKET_H
29432 # include <sys/socket.h>
29434 #ifdef HAVE_NETINET_IN_H
29435 # include <netinet/in.h>
29437 #ifdef HAVE_ARPA_INET_H
29438 # include <arpa/inet.h>
29440 /* includes end */"
29441 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_arpa_inet
29443 if test "x$ac_cv_header_sys_types_h" = xyes
29445 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
29448 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_arpa_inet
29450 if test "x$ac_cv_header_sys_socket_h" = xyes
29452 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
29455 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$cares_includes_arpa_inet
29457 if test "x$ac_cv_header_netinet_in_h" = xyes
29459 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
29462 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$cares_includes_arpa_inet
29464 if test "x$ac_cv_header_arpa_inet_h" = xyes
29466 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
29473 tst_links_inet_net_pton="unknown"
29474 tst_proto_inet_net_pton="unknown"
29475 tst_compi_inet_net_pton="unknown"
29476 tst_works_inet_net_pton="unknown"
29477 tst_allow_inet_net_pton="unknown"
29479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
29480 printf %s "checking if inet_net_pton can be linked... " >&6; }
29481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29482 /* end confdefs.h. */
29484 /* Define inet_net_pton to an innocuous variant, in case <limits.h> declares inet_net_pton.
29485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29486 #define inet_net_pton innocuous_inet_net_pton
29488 /* System header to define __stub macros and hopefully few prototypes,
29489 which can conflict with char inet_net_pton (); below. */
29491 #include <limits.h>
29492 #undef inet_net_pton
29494 /* Override any GCC internal prototype to avoid an error.
29495 Use char because int might match the return type of a GCC
29496 builtin and then its argument prototype would still apply. */
29500 char inet_net_pton ();
29501 /* The GNU C library defines this for functions which it implements
29502 to always fail with ENOSYS. Some functions are actually named
29503 something starting with __ and the normal name is an alias. */
29504 #if defined __stub_inet_net_pton || defined __stub___inet_net_pton
29511 return inet_net_pton ();
29517 if ac_fn_c_try_link "$LINENO"
29520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29521 printf "%s\n" "yes" >&6; }
29522 tst_links_inet_net_pton="yes"
29526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29527 printf "%s\n" "no" >&6; }
29528 tst_links_inet_net_pton="no"
29531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29532 conftest$ac_exeext conftest.$ac_ext
29534 if test "$tst_links_inet_net_pton" = "yes"; then
29535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
29536 printf %s "checking if inet_net_pton is prototyped... " >&6; }
29537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29538 /* end confdefs.h. */
29540 $cares_includes_arpa_inet
29543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29544 $EGREP "inet_net_pton" >/dev/null 2>&1
29547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29548 printf "%s\n" "yes" >&6; }
29549 tst_proto_inet_net_pton="yes"
29553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29554 printf "%s\n" "no" >&6; }
29555 tst_proto_inet_net_pton="no"
29562 if test "$tst_proto_inet_net_pton" = "yes"; then
29563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
29564 printf %s "checking if inet_net_pton is compilable... " >&6; }
29565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29566 /* end confdefs.h. */
29569 $cares_includes_arpa_inet
29575 if(0 != inet_net_pton(0, 0, 0, 0))
29583 if ac_fn_c_try_compile "$LINENO"
29586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29587 printf "%s\n" "yes" >&6; }
29588 tst_compi_inet_net_pton="yes"
29592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29593 printf "%s\n" "no" >&6; }
29594 tst_compi_inet_net_pton="no"
29597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29600 if test "x$cross_compiling" != "xyes" &&
29601 test "$tst_compi_inet_net_pton" = "yes"; then
29602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
29603 printf %s "checking if inet_net_pton seems to work... " >&6; }
29604 if test "$cross_compiling" = yes
29606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29608 as_fn_error $? "cannot run test program while cross compiling
29609 See \`config.log' for more details" "$LINENO" 5; }
29611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29612 /* end confdefs.h. */
29615 $cares_includes_stdlib
29616 $cares_includes_arpa_inet
29617 $cares_includes_string
29623 unsigned char ipv6a[16+1];
29624 unsigned char ipv4a[4+1];
29625 const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
29626 const char *ipv6net2 = "::fffe:7f00:1";
29627 const char *ipv6net3 = "7f20:1::/64";
29628 const char *ipv6net4 = "7f20:1::/2147483649";
29629 const char *ipv4net1 = "192.168.100.1";
29630 const char *ipv4net2 = "192.168.100/32";
29631 const char *ipv4net3 = "192.168.100.1/2147483649";
29633 memset(ipv4a, 1, sizeof(ipv4a));
29634 if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
29635 exit(1); /* fail */
29637 if( (ipv4a[0x00] != 0xc0) ||
29638 (ipv4a[0x01] != 0xa8) ||
29639 (ipv4a[0x02] != 0x64) ||
29640 (ipv4a[0x03] != 0x01) ||
29641 (ipv4a[0x04] != 0x01) )
29642 exit(1); /* fail */
29644 memset(ipv4a, 1, sizeof(ipv4a));
29645 if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
29646 exit(1); /* fail */
29648 if( (ipv4a[0x00] != 0xc0) ||
29649 (ipv4a[0x01] != 0xa8) ||
29650 (ipv4a[0x02] != 0x64) ||
29651 (ipv4a[0x03] != 0x00) ||
29652 (ipv4a[0x04] != 0x01) )
29653 exit(1); /* fail */
29655 memset(ipv4a, 1, sizeof(ipv4a));
29656 if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
29657 exit(1); /* fail */
29659 memset(ipv6a, 1, sizeof(ipv6a));
29660 if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
29661 exit(1); /* fail */
29663 if( (ipv6a[0x00] != 0xfe) ||
29664 (ipv6a[0x01] != 0x80) ||
29665 (ipv6a[0x08] != 0x02) ||
29666 (ipv6a[0x09] != 0x14) ||
29667 (ipv6a[0x0a] != 0x4f) ||
29668 (ipv6a[0x0b] != 0xff) ||
29669 (ipv6a[0x0c] != 0xfe) ||
29670 (ipv6a[0x0d] != 0x0b) ||
29671 (ipv6a[0x0e] != 0x76) ||
29672 (ipv6a[0x0f] != 0xc8) ||
29673 (ipv6a[0x10] != 0x01) )
29674 exit(1); /* fail */
29676 if( (ipv6a[0x02] != 0x0) ||
29677 (ipv6a[0x03] != 0x0) ||
29678 (ipv6a[0x04] != 0x0) ||
29679 (ipv6a[0x05] != 0x0) ||
29680 (ipv6a[0x06] != 0x0) ||
29681 (ipv6a[0x07] != 0x0) )
29682 exit(1); /* fail */
29684 memset(ipv6a, 0, sizeof(ipv6a));
29685 ipv6a[0x10] = 0x01;
29686 if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
29687 exit(1); /* fail */
29689 if( (ipv6a[0x0a] != 0xff) ||
29690 (ipv6a[0x0b] != 0xfe) ||
29691 (ipv6a[0x0c] != 0x7f) ||
29692 (ipv6a[0x0f] != 0x01) ||
29693 (ipv6a[0x10] != 0x01) )
29694 exit(1); /* fail */
29696 if( (ipv6a[0x00] != 0x0) ||
29697 (ipv6a[0x01] != 0x0) ||
29698 (ipv6a[0x02] != 0x0) ||
29699 (ipv6a[0x03] != 0x0) ||
29700 (ipv6a[0x04] != 0x0) ||
29701 (ipv6a[0x05] != 0x0) ||
29702 (ipv6a[0x06] != 0x0) ||
29703 (ipv6a[0x07] != 0x0) ||
29704 (ipv6a[0x08] != 0x0) ||
29705 (ipv6a[0x09] != 0x0) ||
29706 (ipv6a[0x0d] != 0x0) ||
29707 (ipv6a[0x0e] != 0x0) )
29708 exit(1); /* fail */
29710 memset(ipv6a, 1, sizeof(ipv6a));
29711 if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
29712 exit(1); /* fail */
29713 if( (ipv6a[0x00] != 0x7f) ||
29714 (ipv6a[0x01] != 0x20) ||
29715 (ipv6a[0x03] != 0x01) ||
29716 (ipv6a[0x08] != 0x01) ||
29717 (ipv6a[0x09] != 0x01) ||
29718 (ipv6a[0x0a] != 0x01) ||
29719 (ipv6a[0x0b] != 0x01) ||
29720 (ipv6a[0x0c] != 0x01) ||
29721 (ipv6a[0x0d] != 0x01) ||
29722 (ipv6a[0x0e] != 0x01) ||
29723 (ipv6a[0x0f] != 0x01) ||
29724 (ipv6a[0x10] != 0x01) )
29725 exit(1); /* fail */
29726 if( (ipv6a[0x02] != 0x0) ||
29727 (ipv6a[0x04] != 0x0) ||
29728 (ipv6a[0x05] != 0x0) ||
29729 (ipv6a[0x06] != 0x0) ||
29730 (ipv6a[0x07] != 0x0) ||
29731 (ipv6a[0x07] != 0x0) )
29732 exit(1); /* fail */
29734 memset(ipv6a, 1, sizeof(ipv6a));
29735 if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
29736 exit(1); /* fail */
29745 if ac_fn_c_try_run "$LINENO"
29748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29749 printf "%s\n" "yes" >&6; }
29750 tst_works_inet_net_pton="yes"
29754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29755 printf "%s\n" "no" >&6; }
29756 tst_works_inet_net_pton="no"
29759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29760 conftest.$ac_objext conftest.beam conftest.$ac_ext
29765 if test "$tst_compi_inet_net_pton" = "yes" &&
29766 test "$tst_works_inet_net_pton" != "no"; then
29767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
29768 printf %s "checking if inet_net_pton usage allowed... " >&6; }
29769 if test "x$cares_disallow_inet_net_pton" != "xyes"; then
29770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29771 printf "%s\n" "yes" >&6; }
29772 tst_allow_inet_net_pton="yes"
29774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29775 printf "%s\n" "no" >&6; }
29776 tst_allow_inet_net_pton="no"
29780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
29781 printf %s "checking if inet_net_pton might be used... " >&6; }
29782 if test "$tst_links_inet_net_pton" = "yes" &&
29783 test "$tst_proto_inet_net_pton" = "yes" &&
29784 test "$tst_compi_inet_net_pton" = "yes" &&
29785 test "$tst_allow_inet_net_pton" = "yes" &&
29786 test "$tst_works_inet_net_pton" != "no"; then
29787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29788 printf "%s\n" "yes" >&6; }
29790 printf "%s\n" "#define HAVE_INET_NET_PTON 1" >>confdefs.h
29792 ac_cv_func_inet_net_pton="yes"
29794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29795 printf "%s\n" "no" >&6; }
29796 ac_cv_func_inet_net_pton="no"
29801 tst_links_inet_ntop="unknown"
29802 tst_proto_inet_ntop="unknown"
29803 tst_compi_inet_ntop="unknown"
29804 tst_works_inet_ntop="unknown"
29805 tst_allow_inet_ntop="unknown"
29807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
29808 printf %s "checking if inet_ntop can be linked... " >&6; }
29809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29810 /* end confdefs.h. */
29812 /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
29813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29814 #define inet_ntop innocuous_inet_ntop
29816 /* System header to define __stub macros and hopefully few prototypes,
29817 which can conflict with char inet_ntop (); below. */
29819 #include <limits.h>
29822 /* Override any GCC internal prototype to avoid an error.
29823 Use char because int might match the return type of a GCC
29824 builtin and then its argument prototype would still apply. */
29829 /* The GNU C library defines this for functions which it implements
29830 to always fail with ENOSYS. Some functions are actually named
29831 something starting with __ and the normal name is an alias. */
29832 #if defined __stub_inet_ntop || defined __stub___inet_ntop
29839 return inet_ntop ();
29845 if ac_fn_c_try_link "$LINENO"
29848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29849 printf "%s\n" "yes" >&6; }
29850 tst_links_inet_ntop="yes"
29854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29855 printf "%s\n" "no" >&6; }
29856 tst_links_inet_ntop="no"
29859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29860 conftest$ac_exeext conftest.$ac_ext
29862 if test "$tst_links_inet_ntop" = "yes"; then
29863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
29864 printf %s "checking if inet_ntop is prototyped... " >&6; }
29865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29866 /* end confdefs.h. */
29868 $cares_includes_arpa_inet
29871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29872 $EGREP "inet_ntop" >/dev/null 2>&1
29875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29876 printf "%s\n" "yes" >&6; }
29877 tst_proto_inet_ntop="yes"
29881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29882 printf "%s\n" "no" >&6; }
29883 tst_proto_inet_ntop="no"
29890 if test "$tst_proto_inet_ntop" = "yes"; then
29891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
29892 printf %s "checking if inet_ntop is compilable... " >&6; }
29893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29894 /* end confdefs.h. */
29897 $cares_includes_arpa_inet
29903 if(0 != inet_ntop(0, 0, 0, 0))
29911 if ac_fn_c_try_compile "$LINENO"
29914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29915 printf "%s\n" "yes" >&6; }
29916 tst_compi_inet_ntop="yes"
29920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29921 printf "%s\n" "no" >&6; }
29922 tst_compi_inet_ntop="no"
29925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29928 if test "x$cross_compiling" != "xyes" &&
29929 test "$tst_compi_inet_ntop" = "yes"; then
29930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
29931 printf %s "checking if inet_ntop seems to work... " >&6; }
29932 if test "$cross_compiling" = yes
29934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29935 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29936 as_fn_error $? "cannot run test program while cross compiling
29937 See \`config.log' for more details" "$LINENO" 5; }
29939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29940 /* end confdefs.h. */
29943 $cares_includes_stdlib
29944 $cares_includes_arpa_inet
29945 $cares_includes_string
29951 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
29952 char ipv4res[sizeof "255.255.255.255"];
29953 unsigned char ipv6a[26];
29954 unsigned char ipv4a[5];
29965 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
29967 exit(1); /* fail */
29968 if(ipv4ptr != ipv4res)
29969 exit(1); /* fail */
29971 exit(1); /* fail */
29972 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
29973 exit(1); /* fail */
29976 memset(ipv6a, 0, sizeof(ipv6a));
29989 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
29991 exit(1); /* fail */
29992 if(ipv6ptr != ipv6res)
29993 exit(1); /* fail */
29995 exit(1); /* fail */
29996 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
29997 exit(1); /* fail */
30006 if ac_fn_c_try_run "$LINENO"
30009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30010 printf "%s\n" "yes" >&6; }
30011 tst_works_inet_ntop="yes"
30015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30016 printf "%s\n" "no" >&6; }
30017 tst_works_inet_ntop="no"
30020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30021 conftest.$ac_objext conftest.beam conftest.$ac_ext
30026 if test "$tst_compi_inet_ntop" = "yes" &&
30027 test "$tst_works_inet_ntop" != "no"; then
30028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
30029 printf %s "checking if inet_ntop usage allowed... " >&6; }
30030 if test "x$cares_disallow_inet_ntop" != "xyes"; then
30031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30032 printf "%s\n" "yes" >&6; }
30033 tst_allow_inet_ntop="yes"
30035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30036 printf "%s\n" "no" >&6; }
30037 tst_allow_inet_ntop="no"
30041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
30042 printf %s "checking if inet_ntop might be used... " >&6; }
30043 if test "$tst_links_inet_ntop" = "yes" &&
30044 test "$tst_proto_inet_ntop" = "yes" &&
30045 test "$tst_compi_inet_ntop" = "yes" &&
30046 test "$tst_allow_inet_ntop" = "yes" &&
30047 test "$tst_works_inet_ntop" != "no"; then
30048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30049 printf "%s\n" "yes" >&6; }
30051 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
30053 ac_cv_func_inet_ntop="yes"
30055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30056 printf "%s\n" "no" >&6; }
30057 ac_cv_func_inet_ntop="no"
30062 tst_links_inet_pton="unknown"
30063 tst_proto_inet_pton="unknown"
30064 tst_compi_inet_pton="unknown"
30065 tst_works_inet_pton="unknown"
30066 tst_allow_inet_pton="unknown"
30068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
30069 printf %s "checking if inet_pton can be linked... " >&6; }
30070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30071 /* end confdefs.h. */
30073 /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
30074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30075 #define inet_pton innocuous_inet_pton
30077 /* System header to define __stub macros and hopefully few prototypes,
30078 which can conflict with char inet_pton (); below. */
30080 #include <limits.h>
30083 /* Override any GCC internal prototype to avoid an error.
30084 Use char because int might match the return type of a GCC
30085 builtin and then its argument prototype would still apply. */
30090 /* The GNU C library defines this for functions which it implements
30091 to always fail with ENOSYS. Some functions are actually named
30092 something starting with __ and the normal name is an alias. */
30093 #if defined __stub_inet_pton || defined __stub___inet_pton
30100 return inet_pton ();
30106 if ac_fn_c_try_link "$LINENO"
30109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30110 printf "%s\n" "yes" >&6; }
30111 tst_links_inet_pton="yes"
30115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30116 printf "%s\n" "no" >&6; }
30117 tst_links_inet_pton="no"
30120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30121 conftest$ac_exeext conftest.$ac_ext
30123 if test "$tst_links_inet_pton" = "yes"; then
30124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
30125 printf %s "checking if inet_pton is prototyped... " >&6; }
30126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30127 /* end confdefs.h. */
30129 $cares_includes_arpa_inet
30132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30133 $EGREP "inet_pton" >/dev/null 2>&1
30136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30137 printf "%s\n" "yes" >&6; }
30138 tst_proto_inet_pton="yes"
30142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30143 printf "%s\n" "no" >&6; }
30144 tst_proto_inet_pton="no"
30151 if test "$tst_proto_inet_pton" = "yes"; then
30152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
30153 printf %s "checking if inet_pton is compilable... " >&6; }
30154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30155 /* end confdefs.h. */
30158 $cares_includes_arpa_inet
30164 if(0 != inet_pton(0, 0, 0))
30172 if ac_fn_c_try_compile "$LINENO"
30175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30176 printf "%s\n" "yes" >&6; }
30177 tst_compi_inet_pton="yes"
30181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30182 printf "%s\n" "no" >&6; }
30183 tst_compi_inet_pton="no"
30186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30189 if test "x$cross_compiling" != "xyes" &&
30190 test "$tst_compi_inet_pton" = "yes"; then
30191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
30192 printf %s "checking if inet_pton seems to work... " >&6; }
30193 if test "$cross_compiling" = yes
30195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30196 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30197 as_fn_error $? "cannot run test program while cross compiling
30198 See \`config.log' for more details" "$LINENO" 5; }
30200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30201 /* end confdefs.h. */
30204 $cares_includes_stdlib
30205 $cares_includes_arpa_inet
30206 $cares_includes_string
30212 unsigned char ipv6a[16+1];
30213 unsigned char ipv4a[4+1];
30214 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
30215 const char *ipv4src = "192.168.100.1";
30217 memset(ipv4a, 1, sizeof(ipv4a));
30218 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
30219 exit(1); /* fail */
30221 if( (ipv4a[0] != 0xc0) ||
30222 (ipv4a[1] != 0xa8) ||
30223 (ipv4a[2] != 0x64) ||
30224 (ipv4a[3] != 0x01) ||
30225 (ipv4a[4] != 0x01) )
30226 exit(1); /* fail */
30228 memset(ipv6a, 1, sizeof(ipv6a));
30229 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
30230 exit(1); /* fail */
30232 if( (ipv6a[0] != 0xfe) ||
30233 (ipv6a[1] != 0x80) ||
30234 (ipv6a[8] != 0x02) ||
30235 (ipv6a[9] != 0x14) ||
30236 (ipv6a[10] != 0x4f) ||
30237 (ipv6a[11] != 0xff) ||
30238 (ipv6a[12] != 0xfe) ||
30239 (ipv6a[13] != 0x0b) ||
30240 (ipv6a[14] != 0x76) ||
30241 (ipv6a[15] != 0xc8) ||
30242 (ipv6a[16] != 0x01) )
30243 exit(1); /* fail */
30245 if( (ipv6a[2] != 0x0) ||
30246 (ipv6a[3] != 0x0) ||
30247 (ipv6a[4] != 0x0) ||
30248 (ipv6a[5] != 0x0) ||
30249 (ipv6a[6] != 0x0) ||
30250 (ipv6a[7] != 0x0) )
30251 exit(1); /* fail */
30260 if ac_fn_c_try_run "$LINENO"
30263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30264 printf "%s\n" "yes" >&6; }
30265 tst_works_inet_pton="yes"
30269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30270 printf "%s\n" "no" >&6; }
30271 tst_works_inet_pton="no"
30274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30275 conftest.$ac_objext conftest.beam conftest.$ac_ext
30280 if test "$tst_compi_inet_pton" = "yes" &&
30281 test "$tst_works_inet_pton" != "no"; then
30282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
30283 printf %s "checking if inet_pton usage allowed... " >&6; }
30284 if test "x$cares_disallow_inet_pton" != "xyes"; then
30285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30286 printf "%s\n" "yes" >&6; }
30287 tst_allow_inet_pton="yes"
30289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30290 printf "%s\n" "no" >&6; }
30291 tst_allow_inet_pton="no"
30295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
30296 printf %s "checking if inet_pton might be used... " >&6; }
30297 if test "$tst_links_inet_pton" = "yes" &&
30298 test "$tst_proto_inet_pton" = "yes" &&
30299 test "$tst_compi_inet_pton" = "yes" &&
30300 test "$tst_allow_inet_pton" = "yes" &&
30301 test "$tst_works_inet_pton" != "no"; then
30302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30303 printf "%s\n" "yes" >&6; }
30305 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
30307 ac_cv_func_inet_pton="yes"
30309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30310 printf "%s\n" "no" >&6; }
30311 ac_cv_func_inet_pton="no"
30315 cares_includes_stropts="\
30316 /* includes start */
30317 #ifdef HAVE_SYS_TYPES_H
30318 # include <sys/types.h>
30320 #ifdef HAVE_UNISTD_H
30321 # include <unistd.h>
30323 #ifdef HAVE_SYS_SOCKET_H
30324 # include <sys/socket.h>
30326 #ifdef HAVE_SYS_IOCTL_H
30327 # include <sys/ioctl.h>
30329 #ifdef HAVE_STROPTS_H
30330 # include <stropts.h>
30332 /* includes end */"
30333 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_stropts
30335 if test "x$ac_cv_header_sys_types_h" = xyes
30337 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
30340 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_stropts
30342 if test "x$ac_cv_header_unistd_h" = xyes
30344 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
30347 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_stropts
30349 if test "x$ac_cv_header_sys_socket_h" = xyes
30351 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
30354 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$cares_includes_stropts
30356 if test "x$ac_cv_header_sys_ioctl_h" = xyes
30358 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
30361 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$cares_includes_stropts
30363 if test "x$ac_cv_header_stropts_h" = xyes
30365 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
30372 tst_links_ioctl="unknown"
30373 tst_proto_ioctl="unknown"
30374 tst_compi_ioctl="unknown"
30375 tst_allow_ioctl="unknown"
30377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
30378 printf %s "checking if ioctl can be linked... " >&6; }
30379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30380 /* end confdefs.h. */
30382 /* Define ioctl to an innocuous variant, in case <limits.h> declares ioctl.
30383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30384 #define ioctl innocuous_ioctl
30386 /* System header to define __stub macros and hopefully few prototypes,
30387 which can conflict with char ioctl (); below. */
30389 #include <limits.h>
30392 /* Override any GCC internal prototype to avoid an error.
30393 Use char because int might match the return type of a GCC
30394 builtin and then its argument prototype would still apply. */
30399 /* The GNU C library defines this for functions which it implements
30400 to always fail with ENOSYS. Some functions are actually named
30401 something starting with __ and the normal name is an alias. */
30402 #if defined __stub_ioctl || defined __stub___ioctl
30415 if ac_fn_c_try_link "$LINENO"
30418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30419 printf "%s\n" "yes" >&6; }
30420 tst_links_ioctl="yes"
30424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30425 printf "%s\n" "no" >&6; }
30426 tst_links_ioctl="no"
30429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30430 conftest$ac_exeext conftest.$ac_ext
30432 if test "$tst_links_ioctl" = "yes"; then
30433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
30434 printf %s "checking if ioctl is prototyped... " >&6; }
30435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30436 /* end confdefs.h. */
30438 $cares_includes_stropts
30441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30442 $EGREP "ioctl" >/dev/null 2>&1
30445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30446 printf "%s\n" "yes" >&6; }
30447 tst_proto_ioctl="yes"
30451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30452 printf "%s\n" "no" >&6; }
30453 tst_proto_ioctl="no"
30460 if test "$tst_proto_ioctl" = "yes"; then
30461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
30462 printf %s "checking if ioctl is compilable... " >&6; }
30463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30464 /* end confdefs.h. */
30467 $cares_includes_stropts
30473 if(0 != ioctl(0, 0, 0))
30481 if ac_fn_c_try_compile "$LINENO"
30484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30485 printf "%s\n" "yes" >&6; }
30486 tst_compi_ioctl="yes"
30490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30491 printf "%s\n" "no" >&6; }
30492 tst_compi_ioctl="no"
30495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30498 if test "$tst_compi_ioctl" = "yes"; then
30499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
30500 printf %s "checking if ioctl usage allowed... " >&6; }
30501 if test "x$cares_disallow_ioctl" != "xyes"; then
30502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30503 printf "%s\n" "yes" >&6; }
30504 tst_allow_ioctl="yes"
30506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30507 printf "%s\n" "no" >&6; }
30508 tst_allow_ioctl="no"
30512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
30513 printf %s "checking if ioctl might be used... " >&6; }
30514 if test "$tst_links_ioctl" = "yes" &&
30515 test "$tst_proto_ioctl" = "yes" &&
30516 test "$tst_compi_ioctl" = "yes" &&
30517 test "$tst_allow_ioctl" = "yes"; then
30518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30519 printf "%s\n" "yes" >&6; }
30521 printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
30523 ac_cv_func_ioctl="yes"
30526 tst_compi_ioctl_fionbio="unknown"
30527 tst_allow_ioctl_fionbio="unknown"
30529 if test "$ac_cv_func_ioctl" = "yes"; then
30530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
30531 printf %s "checking if ioctl FIONBIO is compilable... " >&6; }
30532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30533 /* end confdefs.h. */
30536 $cares_includes_stropts
30543 if(0 != ioctl(0, FIONBIO, &flags))
30551 if ac_fn_c_try_compile "$LINENO"
30554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30555 printf "%s\n" "yes" >&6; }
30556 tst_compi_ioctl_fionbio="yes"
30560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30561 printf "%s\n" "no" >&6; }
30562 tst_compi_ioctl_fionbio="no"
30565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30568 if test "$tst_compi_ioctl_fionbio" = "yes"; then
30569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
30570 printf %s "checking if ioctl FIONBIO usage allowed... " >&6; }
30571 if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
30572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30573 printf "%s\n" "yes" >&6; }
30574 tst_allow_ioctl_fionbio="yes"
30576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30577 printf "%s\n" "no" >&6; }
30578 tst_allow_ioctl_fionbio="no"
30582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
30583 printf %s "checking if ioctl FIONBIO might be used... " >&6; }
30584 if test "$tst_compi_ioctl_fionbio" = "yes" &&
30585 test "$tst_allow_ioctl_fionbio" = "yes"; then
30586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30587 printf "%s\n" "yes" >&6; }
30589 printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h
30591 ac_cv_func_ioctl_fionbio="yes"
30593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30594 printf "%s\n" "no" >&6; }
30595 ac_cv_func_ioctl_fionbio="no"
30600 tst_compi_ioctl_siocgifaddr="unknown"
30601 tst_allow_ioctl_siocgifaddr="unknown"
30603 if test "$ac_cv_func_ioctl" = "yes"; then
30604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
30605 printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
30606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30607 /* end confdefs.h. */
30610 $cares_includes_stropts
30611 #include <net/if.h>
30618 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
30626 if ac_fn_c_try_compile "$LINENO"
30629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30630 printf "%s\n" "yes" >&6; }
30631 tst_compi_ioctl_siocgifaddr="yes"
30635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30636 printf "%s\n" "no" >&6; }
30637 tst_compi_ioctl_siocgifaddr="no"
30640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30643 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
30644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
30645 printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
30646 if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
30647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30648 printf "%s\n" "yes" >&6; }
30649 tst_allow_ioctl_siocgifaddr="yes"
30651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30652 printf "%s\n" "no" >&6; }
30653 tst_allow_ioctl_siocgifaddr="no"
30657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
30658 printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; }
30659 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
30660 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
30661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30662 printf "%s\n" "yes" >&6; }
30664 printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h
30666 ac_cv_func_ioctl_siocgifaddr="yes"
30668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30669 printf "%s\n" "no" >&6; }
30670 ac_cv_func_ioctl_siocgifaddr="no"
30674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30675 printf "%s\n" "no" >&6; }
30676 ac_cv_func_ioctl="no"
30681 tst_links_ioctlsocket="unknown"
30682 tst_proto_ioctlsocket="unknown"
30683 tst_compi_ioctlsocket="unknown"
30684 tst_allow_ioctlsocket="unknown"
30686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
30687 printf %s "checking if ioctlsocket can be linked... " >&6; }
30688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30689 /* end confdefs.h. */
30692 $cares_includes_winsock2
30698 if(0 != ioctlsocket(0, 0, 0))
30706 if ac_fn_c_try_link "$LINENO"
30709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30710 printf "%s\n" "yes" >&6; }
30711 tst_links_ioctlsocket="yes"
30715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30716 printf "%s\n" "no" >&6; }
30717 tst_links_ioctlsocket="no"
30720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30721 conftest$ac_exeext conftest.$ac_ext
30723 if test "$tst_links_ioctlsocket" = "yes"; then
30724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
30725 printf %s "checking if ioctlsocket is prototyped... " >&6; }
30726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30727 /* end confdefs.h. */
30729 $cares_includes_winsock2
30732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30733 $EGREP "ioctlsocket" >/dev/null 2>&1
30736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30737 printf "%s\n" "yes" >&6; }
30738 tst_proto_ioctlsocket="yes"
30742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30743 printf "%s\n" "no" >&6; }
30744 tst_proto_ioctlsocket="no"
30751 if test "$tst_proto_ioctlsocket" = "yes"; then
30752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
30753 printf %s "checking if ioctlsocket is compilable... " >&6; }
30754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30755 /* end confdefs.h. */
30758 $cares_includes_winsock2
30764 if(0 != ioctlsocket(0, 0, 0))
30772 if ac_fn_c_try_compile "$LINENO"
30775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30776 printf "%s\n" "yes" >&6; }
30777 tst_compi_ioctlsocket="yes"
30781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30782 printf "%s\n" "no" >&6; }
30783 tst_compi_ioctlsocket="no"
30786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30789 if test "$tst_compi_ioctlsocket" = "yes"; then
30790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
30791 printf %s "checking if ioctlsocket usage allowed... " >&6; }
30792 if test "x$cares_disallow_ioctlsocket" != "xyes"; then
30793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30794 printf "%s\n" "yes" >&6; }
30795 tst_allow_ioctlsocket="yes"
30797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30798 printf "%s\n" "no" >&6; }
30799 tst_allow_ioctlsocket="no"
30803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
30804 printf %s "checking if ioctlsocket might be used... " >&6; }
30805 if test "$tst_links_ioctlsocket" = "yes" &&
30806 test "$tst_proto_ioctlsocket" = "yes" &&
30807 test "$tst_compi_ioctlsocket" = "yes" &&
30808 test "$tst_allow_ioctlsocket" = "yes"; then
30809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30810 printf "%s\n" "yes" >&6; }
30812 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
30814 ac_cv_func_ioctlsocket="yes"
30817 tst_compi_ioctlsocket_fionbio="unknown"
30818 tst_allow_ioctlsocket_fionbio="unknown"
30820 if test "$ac_cv_func_ioctlsocket" = "yes"; then
30821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
30822 printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
30823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30824 /* end confdefs.h. */
30827 $cares_includes_winsock2
30834 if(0 != ioctlsocket(0, FIONBIO, &flags))
30842 if ac_fn_c_try_compile "$LINENO"
30845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30846 printf "%s\n" "yes" >&6; }
30847 tst_compi_ioctlsocket_fionbio="yes"
30851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30852 printf "%s\n" "no" >&6; }
30853 tst_compi_ioctlsocket_fionbio="no"
30856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30859 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
30860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
30861 printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
30862 if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
30863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30864 printf "%s\n" "yes" >&6; }
30865 tst_allow_ioctlsocket_fionbio="yes"
30867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30868 printf "%s\n" "no" >&6; }
30869 tst_allow_ioctlsocket_fionbio="no"
30873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
30874 printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
30875 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
30876 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
30877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30878 printf "%s\n" "yes" >&6; }
30880 printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
30882 ac_cv_func_ioctlsocket_fionbio="yes"
30884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30885 printf "%s\n" "no" >&6; }
30886 ac_cv_func_ioctlsocket_fionbio="no"
30890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30891 printf "%s\n" "no" >&6; }
30892 ac_cv_func_ioctlsocket="no"
30897 tst_links_ioctlsocket_camel="unknown"
30898 tst_proto_ioctlsocket_camel="unknown"
30899 tst_compi_ioctlsocket_camel="unknown"
30900 tst_allow_ioctlsocket_camel="unknown"
30902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
30903 printf %s "checking if IoctlSocket can be linked... " >&6; }
30904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30905 /* end confdefs.h. */
30907 /* Define IoctlSocket to an innocuous variant, in case <limits.h> declares IoctlSocket.
30908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30909 #define IoctlSocket innocuous_IoctlSocket
30911 /* System header to define __stub macros and hopefully few prototypes,
30912 which can conflict with char IoctlSocket (); below. */
30914 #include <limits.h>
30917 /* Override any GCC internal prototype to avoid an error.
30918 Use char because int might match the return type of a GCC
30919 builtin and then its argument prototype would still apply. */
30923 char IoctlSocket ();
30924 /* The GNU C library defines this for functions which it implements
30925 to always fail with ENOSYS. Some functions are actually named
30926 something starting with __ and the normal name is an alias. */
30927 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
30934 return IoctlSocket ();
30940 if ac_fn_c_try_link "$LINENO"
30943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30944 printf "%s\n" "yes" >&6; }
30945 tst_links_ioctlsocket_camel="yes"
30949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30950 printf "%s\n" "no" >&6; }
30951 tst_links_ioctlsocket_camel="no"
30954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30955 conftest$ac_exeext conftest.$ac_ext
30957 if test "$tst_links_ioctlsocket_camel" = "yes"; then
30958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
30959 printf %s "checking if IoctlSocket is prototyped... " >&6; }
30960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30961 /* end confdefs.h. */
30963 $cares_includes_stropts
30966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30967 $EGREP "IoctlSocket" >/dev/null 2>&1
30970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30971 printf "%s\n" "yes" >&6; }
30972 tst_proto_ioctlsocket_camel="yes"
30976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30977 printf "%s\n" "no" >&6; }
30978 tst_proto_ioctlsocket_camel="no"
30985 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
30986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
30987 printf %s "checking if IoctlSocket is compilable... " >&6; }
30988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30989 /* end confdefs.h. */
30992 $cares_includes_stropts
30998 if(0 != IoctlSocket(0, 0, 0))
31006 if ac_fn_c_try_compile "$LINENO"
31009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31010 printf "%s\n" "yes" >&6; }
31011 tst_compi_ioctlsocket_camel="yes"
31015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31016 printf "%s\n" "no" >&6; }
31017 tst_compi_ioctlsocket_camel="no"
31020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31023 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
31024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
31025 printf %s "checking if IoctlSocket usage allowed... " >&6; }
31026 if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
31027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31028 printf "%s\n" "yes" >&6; }
31029 tst_allow_ioctlsocket_camel="yes"
31031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31032 printf "%s\n" "no" >&6; }
31033 tst_allow_ioctlsocket_camel="no"
31037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
31038 printf %s "checking if IoctlSocket might be used... " >&6; }
31039 if test "$tst_links_ioctlsocket_camel" = "yes" &&
31040 test "$tst_proto_ioctlsocket_camel" = "yes" &&
31041 test "$tst_compi_ioctlsocket_camel" = "yes" &&
31042 test "$tst_allow_ioctlsocket_camel" = "yes"; then
31043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31044 printf "%s\n" "yes" >&6; }
31046 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
31048 ac_cv_func_ioctlsocket_camel="yes"
31051 tst_compi_ioctlsocket_camel_fionbio="unknown"
31052 tst_allow_ioctlsocket_camel_fionbio="unknown"
31054 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
31055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
31056 printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
31057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31058 /* end confdefs.h. */
31061 $cares_includes_stropts
31068 if(0 != ioctlsocket(0, FIONBIO, &flags))
31076 if ac_fn_c_try_compile "$LINENO"
31079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31080 printf "%s\n" "yes" >&6; }
31081 tst_compi_ioctlsocket_camel_fionbio="yes"
31085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31086 printf "%s\n" "no" >&6; }
31087 tst_compi_ioctlsocket_camel_fionbio="no"
31090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31093 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
31094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
31095 printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
31096 if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
31097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31098 printf "%s\n" "yes" >&6; }
31099 tst_allow_ioctlsocket_camel_fionbio="yes"
31101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31102 printf "%s\n" "no" >&6; }
31103 tst_allow_ioctlsocket_camel_fionbio="no"
31107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
31108 printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
31109 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
31110 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
31111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31112 printf "%s\n" "yes" >&6; }
31114 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
31116 ac_cv_func_ioctlsocket_camel_fionbio="yes"
31118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31119 printf "%s\n" "no" >&6; }
31120 ac_cv_func_ioctlsocket_camel_fionbio="no"
31124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31125 printf "%s\n" "no" >&6; }
31126 ac_cv_func_ioctlsocket_camel="no"
31131 tst_links_setsockopt="unknown"
31132 tst_proto_setsockopt="unknown"
31133 tst_compi_setsockopt="unknown"
31134 tst_allow_setsockopt="unknown"
31136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
31137 printf %s "checking if setsockopt can be linked... " >&6; }
31138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31139 /* end confdefs.h. */
31142 $cares_includes_winsock2
31143 $cares_includes_sys_socket
31149 if(0 != setsockopt(0, 0, 0, 0, 0))
31157 if ac_fn_c_try_link "$LINENO"
31160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31161 printf "%s\n" "yes" >&6; }
31162 tst_links_setsockopt="yes"
31166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31167 printf "%s\n" "no" >&6; }
31168 tst_links_setsockopt="no"
31171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31172 conftest$ac_exeext conftest.$ac_ext
31174 if test "$tst_links_setsockopt" = "yes"; then
31175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
31176 printf %s "checking if setsockopt is prototyped... " >&6; }
31177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31178 /* end confdefs.h. */
31180 $cares_includes_winsock2
31181 $cares_includes_sys_socket
31184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31185 $EGREP "setsockopt" >/dev/null 2>&1
31188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31189 printf "%s\n" "yes" >&6; }
31190 tst_proto_setsockopt="yes"
31194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31195 printf "%s\n" "no" >&6; }
31196 tst_proto_setsockopt="no"
31203 if test "$tst_proto_setsockopt" = "yes"; then
31204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
31205 printf %s "checking if setsockopt is compilable... " >&6; }
31206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31207 /* end confdefs.h. */
31210 $cares_includes_winsock2
31211 $cares_includes_sys_socket
31217 if(0 != setsockopt(0, 0, 0, 0, 0))
31225 if ac_fn_c_try_compile "$LINENO"
31228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31229 printf "%s\n" "yes" >&6; }
31230 tst_compi_setsockopt="yes"
31234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31235 printf "%s\n" "no" >&6; }
31236 tst_compi_setsockopt="no"
31239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31242 if test "$tst_compi_setsockopt" = "yes"; then
31243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
31244 printf %s "checking if setsockopt usage allowed... " >&6; }
31245 if test "x$cares_disallow_setsockopt" != "xyes"; then
31246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31247 printf "%s\n" "yes" >&6; }
31248 tst_allow_setsockopt="yes"
31250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31251 printf "%s\n" "no" >&6; }
31252 tst_allow_setsockopt="no"
31256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
31257 printf %s "checking if setsockopt might be used... " >&6; }
31258 if test "$tst_links_setsockopt" = "yes" &&
31259 test "$tst_proto_setsockopt" = "yes" &&
31260 test "$tst_compi_setsockopt" = "yes" &&
31261 test "$tst_allow_setsockopt" = "yes"; then
31262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31263 printf "%s\n" "yes" >&6; }
31265 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
31267 ac_cv_func_setsockopt="yes"
31270 tst_compi_setsockopt_so_nonblock="unknown"
31271 tst_allow_setsockopt_so_nonblock="unknown"
31273 if test "$ac_cv_func_setsockopt" = "yes"; then
31274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
31275 printf %s "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
31276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31277 /* end confdefs.h. */
31280 $cares_includes_winsock2
31281 $cares_includes_sys_socket
31287 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
31295 if ac_fn_c_try_compile "$LINENO"
31298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31299 printf "%s\n" "yes" >&6; }
31300 tst_compi_setsockopt_so_nonblock="yes"
31304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31305 printf "%s\n" "no" >&6; }
31306 tst_compi_setsockopt_so_nonblock="no"
31309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31312 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
31313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
31314 printf %s "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
31315 if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
31316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31317 printf "%s\n" "yes" >&6; }
31318 tst_allow_setsockopt_so_nonblock="yes"
31320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31321 printf "%s\n" "no" >&6; }
31322 tst_allow_setsockopt_so_nonblock="no"
31326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
31327 printf %s "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
31328 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
31329 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
31330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31331 printf "%s\n" "yes" >&6; }
31333 printf "%s\n" "#define HAVE_SETSOCKOPT_SO_NONBLOCK 1" >>confdefs.h
31335 ac_cv_func_setsockopt_so_nonblock="yes"
31337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31338 printf "%s\n" "no" >&6; }
31339 ac_cv_func_setsockopt_so_nonblock="no"
31343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31344 printf "%s\n" "no" >&6; }
31345 ac_cv_func_setsockopt="no"
31350 tst_links_socket="unknown"
31351 tst_proto_socket="unknown"
31352 tst_compi_socket="unknown"
31353 tst_allow_socket="unknown"
31355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
31356 printf %s "checking if socket can be linked... " >&6; }
31357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31358 /* end confdefs.h. */
31361 $cares_includes_winsock2
31362 $cares_includes_sys_socket
31363 $cares_includes_socket
31369 if(0 != socket(0, 0, 0))
31377 if ac_fn_c_try_link "$LINENO"
31380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31381 printf "%s\n" "yes" >&6; }
31382 tst_links_socket="yes"
31386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31387 printf "%s\n" "no" >&6; }
31388 tst_links_socket="no"
31391 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31392 conftest$ac_exeext conftest.$ac_ext
31394 if test "$tst_links_socket" = "yes"; then
31395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
31396 printf %s "checking if socket is prototyped... " >&6; }
31397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31398 /* end confdefs.h. */
31400 $cares_includes_winsock2
31401 $cares_includes_sys_socket
31402 $cares_includes_socket
31405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31406 $EGREP "socket" >/dev/null 2>&1
31409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31410 printf "%s\n" "yes" >&6; }
31411 tst_proto_socket="yes"
31415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31416 printf "%s\n" "no" >&6; }
31417 tst_proto_socket="no"
31424 if test "$tst_proto_socket" = "yes"; then
31425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
31426 printf %s "checking if socket is compilable... " >&6; }
31427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31428 /* end confdefs.h. */
31431 $cares_includes_winsock2
31432 $cares_includes_sys_socket
31433 $cares_includes_socket
31439 if(0 != socket(0, 0, 0))
31447 if ac_fn_c_try_compile "$LINENO"
31450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31451 printf "%s\n" "yes" >&6; }
31452 tst_compi_socket="yes"
31456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31457 printf "%s\n" "no" >&6; }
31458 tst_compi_socket="no"
31461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31464 if test "$tst_compi_socket" = "yes"; then
31465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
31466 printf %s "checking if socket usage allowed... " >&6; }
31467 if test "x$cares_disallow_socket" != "xyes"; then
31468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31469 printf "%s\n" "yes" >&6; }
31470 tst_allow_socket="yes"
31472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31473 printf "%s\n" "no" >&6; }
31474 tst_allow_socket="no"
31478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
31479 printf %s "checking if socket might be used... " >&6; }
31480 if test "$tst_links_socket" = "yes" &&
31481 test "$tst_proto_socket" = "yes" &&
31482 test "$tst_compi_socket" = "yes" &&
31483 test "$tst_allow_socket" = "yes"; then
31484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31485 printf "%s\n" "yes" >&6; }
31487 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
31489 ac_cv_func_socket="yes"
31491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31492 printf "%s\n" "no" >&6; }
31493 ac_cv_func_socket="no"
31498 tst_links_strcasecmp="unknown"
31499 tst_proto_strcasecmp="unknown"
31500 tst_compi_strcasecmp="unknown"
31501 tst_allow_strcasecmp="unknown"
31503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
31504 printf %s "checking if strcasecmp can be linked... " >&6; }
31505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31506 /* end confdefs.h. */
31508 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
31509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31510 #define strcasecmp innocuous_strcasecmp
31512 /* System header to define __stub macros and hopefully few prototypes,
31513 which can conflict with char strcasecmp (); below. */
31515 #include <limits.h>
31518 /* Override any GCC internal prototype to avoid an error.
31519 Use char because int might match the return type of a GCC
31520 builtin and then its argument prototype would still apply. */
31524 char strcasecmp ();
31525 /* The GNU C library defines this for functions which it implements
31526 to always fail with ENOSYS. Some functions are actually named
31527 something starting with __ and the normal name is an alias. */
31528 #if defined __stub_strcasecmp || defined __stub___strcasecmp
31535 return strcasecmp ();
31541 if ac_fn_c_try_link "$LINENO"
31544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31545 printf "%s\n" "yes" >&6; }
31546 tst_links_strcasecmp="yes"
31550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31551 printf "%s\n" "no" >&6; }
31552 tst_links_strcasecmp="no"
31555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31556 conftest$ac_exeext conftest.$ac_ext
31558 if test "$tst_links_strcasecmp" = "yes"; then
31559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
31560 printf %s "checking if strcasecmp is prototyped... " >&6; }
31561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31562 /* end confdefs.h. */
31564 $cares_includes_string
31567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31568 $EGREP "strcasecmp" >/dev/null 2>&1
31571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31572 printf "%s\n" "yes" >&6; }
31573 tst_proto_strcasecmp="yes"
31577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31578 printf "%s\n" "no" >&6; }
31579 tst_proto_strcasecmp="no"
31586 if test "$tst_proto_strcasecmp" = "yes"; then
31587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
31588 printf %s "checking if strcasecmp is compilable... " >&6; }
31589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31590 /* end confdefs.h. */
31593 $cares_includes_string
31599 if(0 != strcasecmp(0, 0))
31607 if ac_fn_c_try_compile "$LINENO"
31610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31611 printf "%s\n" "yes" >&6; }
31612 tst_compi_strcasecmp="yes"
31616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31617 printf "%s\n" "no" >&6; }
31618 tst_compi_strcasecmp="no"
31621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31624 if test "$tst_compi_strcasecmp" = "yes"; then
31625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
31626 printf %s "checking if strcasecmp usage allowed... " >&6; }
31627 if test "x$cares_disallow_strcasecmp" != "xyes"; then
31628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31629 printf "%s\n" "yes" >&6; }
31630 tst_allow_strcasecmp="yes"
31632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31633 printf "%s\n" "no" >&6; }
31634 tst_allow_strcasecmp="no"
31638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
31639 printf %s "checking if strcasecmp might be used... " >&6; }
31640 if test "$tst_links_strcasecmp" = "yes" &&
31641 test "$tst_proto_strcasecmp" = "yes" &&
31642 test "$tst_compi_strcasecmp" = "yes" &&
31643 test "$tst_allow_strcasecmp" = "yes"; then
31644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31645 printf "%s\n" "yes" >&6; }
31647 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
31649 ac_cv_func_strcasecmp="yes"
31651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31652 printf "%s\n" "no" >&6; }
31653 ac_cv_func_strcasecmp="no"
31658 tst_links_strcmpi="unknown"
31659 tst_proto_strcmpi="unknown"
31660 tst_compi_strcmpi="unknown"
31661 tst_allow_strcmpi="unknown"
31663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
31664 printf %s "checking if strcmpi can be linked... " >&6; }
31665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31666 /* end confdefs.h. */
31668 /* Define strcmpi to an innocuous variant, in case <limits.h> declares strcmpi.
31669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31670 #define strcmpi innocuous_strcmpi
31672 /* System header to define __stub macros and hopefully few prototypes,
31673 which can conflict with char strcmpi (); below. */
31675 #include <limits.h>
31678 /* Override any GCC internal prototype to avoid an error.
31679 Use char because int might match the return type of a GCC
31680 builtin and then its argument prototype would still apply. */
31685 /* The GNU C library defines this for functions which it implements
31686 to always fail with ENOSYS. Some functions are actually named
31687 something starting with __ and the normal name is an alias. */
31688 #if defined __stub_strcmpi || defined __stub___strcmpi
31701 if ac_fn_c_try_link "$LINENO"
31704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31705 printf "%s\n" "yes" >&6; }
31706 tst_links_strcmpi="yes"
31710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31711 printf "%s\n" "no" >&6; }
31712 tst_links_strcmpi="no"
31715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31716 conftest$ac_exeext conftest.$ac_ext
31718 if test "$tst_links_strcmpi" = "yes"; then
31719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
31720 printf %s "checking if strcmpi is prototyped... " >&6; }
31721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31722 /* end confdefs.h. */
31724 $cares_includes_string
31727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31728 $EGREP "strcmpi" >/dev/null 2>&1
31731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31732 printf "%s\n" "yes" >&6; }
31733 tst_proto_strcmpi="yes"
31737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31738 printf "%s\n" "no" >&6; }
31739 tst_proto_strcmpi="no"
31746 if test "$tst_proto_strcmpi" = "yes"; then
31747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
31748 printf %s "checking if strcmpi is compilable... " >&6; }
31749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31750 /* end confdefs.h. */
31753 $cares_includes_string
31759 if(0 != strcmpi(0, 0))
31767 if ac_fn_c_try_compile "$LINENO"
31770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31771 printf "%s\n" "yes" >&6; }
31772 tst_compi_strcmpi="yes"
31776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31777 printf "%s\n" "no" >&6; }
31778 tst_compi_strcmpi="no"
31781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31784 if test "$tst_compi_strcmpi" = "yes"; then
31785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
31786 printf %s "checking if strcmpi usage allowed... " >&6; }
31787 if test "x$cares_disallow_strcmpi" != "xyes"; then
31788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31789 printf "%s\n" "yes" >&6; }
31790 tst_allow_strcmpi="yes"
31792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31793 printf "%s\n" "no" >&6; }
31794 tst_allow_strcmpi="no"
31798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
31799 printf %s "checking if strcmpi might be used... " >&6; }
31800 if test "$tst_links_strcmpi" = "yes" &&
31801 test "$tst_proto_strcmpi" = "yes" &&
31802 test "$tst_compi_strcmpi" = "yes" &&
31803 test "$tst_allow_strcmpi" = "yes"; then
31804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31805 printf "%s\n" "yes" >&6; }
31807 printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
31809 ac_cv_func_strcmpi="yes"
31811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31812 printf "%s\n" "no" >&6; }
31813 ac_cv_func_strcmpi="no"
31818 tst_links_strdup="unknown"
31819 tst_proto_strdup="unknown"
31820 tst_compi_strdup="unknown"
31821 tst_allow_strdup="unknown"
31823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
31824 printf %s "checking if strdup can be linked... " >&6; }
31825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31826 /* end confdefs.h. */
31828 /* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
31829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31830 #define strdup innocuous_strdup
31832 /* System header to define __stub macros and hopefully few prototypes,
31833 which can conflict with char strdup (); below. */
31835 #include <limits.h>
31838 /* Override any GCC internal prototype to avoid an error.
31839 Use char because int might match the return type of a GCC
31840 builtin and then its argument prototype would still apply. */
31845 /* The GNU C library defines this for functions which it implements
31846 to always fail with ENOSYS. Some functions are actually named
31847 something starting with __ and the normal name is an alias. */
31848 #if defined __stub_strdup || defined __stub___strdup
31861 if ac_fn_c_try_link "$LINENO"
31864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31865 printf "%s\n" "yes" >&6; }
31866 tst_links_strdup="yes"
31870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31871 printf "%s\n" "no" >&6; }
31872 tst_links_strdup="no"
31875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31876 conftest$ac_exeext conftest.$ac_ext
31878 if test "$tst_links_strdup" = "yes"; then
31879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
31880 printf %s "checking if strdup is prototyped... " >&6; }
31881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31882 /* end confdefs.h. */
31884 $cares_includes_string
31887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31888 $EGREP "strdup" >/dev/null 2>&1
31891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31892 printf "%s\n" "yes" >&6; }
31893 tst_proto_strdup="yes"
31897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31898 printf "%s\n" "no" >&6; }
31899 tst_proto_strdup="no"
31906 if test "$tst_proto_strdup" = "yes"; then
31907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
31908 printf %s "checking if strdup is compilable... " >&6; }
31909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31910 /* end confdefs.h. */
31913 $cares_includes_string
31927 if ac_fn_c_try_compile "$LINENO"
31930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31931 printf "%s\n" "yes" >&6; }
31932 tst_compi_strdup="yes"
31936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31937 printf "%s\n" "no" >&6; }
31938 tst_compi_strdup="no"
31941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31944 if test "$tst_compi_strdup" = "yes"; then
31945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
31946 printf %s "checking if strdup usage allowed... " >&6; }
31947 if test "x$cares_disallow_strdup" != "xyes"; then
31948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31949 printf "%s\n" "yes" >&6; }
31950 tst_allow_strdup="yes"
31952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31953 printf "%s\n" "no" >&6; }
31954 tst_allow_strdup="no"
31958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
31959 printf %s "checking if strdup might be used... " >&6; }
31960 if test "$tst_links_strdup" = "yes" &&
31961 test "$tst_proto_strdup" = "yes" &&
31962 test "$tst_compi_strdup" = "yes" &&
31963 test "$tst_allow_strdup" = "yes"; then
31964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31965 printf "%s\n" "yes" >&6; }
31967 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
31969 ac_cv_func_strdup="yes"
31971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31972 printf "%s\n" "no" >&6; }
31973 ac_cv_func_strdup="no"
31978 tst_links_stricmp="unknown"
31979 tst_proto_stricmp="unknown"
31980 tst_compi_stricmp="unknown"
31981 tst_allow_stricmp="unknown"
31983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
31984 printf %s "checking if stricmp can be linked... " >&6; }
31985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31986 /* end confdefs.h. */
31988 /* Define stricmp to an innocuous variant, in case <limits.h> declares stricmp.
31989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31990 #define stricmp innocuous_stricmp
31992 /* System header to define __stub macros and hopefully few prototypes,
31993 which can conflict with char stricmp (); below. */
31995 #include <limits.h>
31998 /* Override any GCC internal prototype to avoid an error.
31999 Use char because int might match the return type of a GCC
32000 builtin and then its argument prototype would still apply. */
32005 /* The GNU C library defines this for functions which it implements
32006 to always fail with ENOSYS. Some functions are actually named
32007 something starting with __ and the normal name is an alias. */
32008 #if defined __stub_stricmp || defined __stub___stricmp
32021 if ac_fn_c_try_link "$LINENO"
32024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32025 printf "%s\n" "yes" >&6; }
32026 tst_links_stricmp="yes"
32030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32031 printf "%s\n" "no" >&6; }
32032 tst_links_stricmp="no"
32035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32036 conftest$ac_exeext conftest.$ac_ext
32038 if test "$tst_links_stricmp" = "yes"; then
32039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
32040 printf %s "checking if stricmp is prototyped... " >&6; }
32041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32042 /* end confdefs.h. */
32044 $cares_includes_string
32047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32048 $EGREP "stricmp" >/dev/null 2>&1
32051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32052 printf "%s\n" "yes" >&6; }
32053 tst_proto_stricmp="yes"
32057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32058 printf "%s\n" "no" >&6; }
32059 tst_proto_stricmp="no"
32066 if test "$tst_proto_stricmp" = "yes"; then
32067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
32068 printf %s "checking if stricmp is compilable... " >&6; }
32069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32070 /* end confdefs.h. */
32073 $cares_includes_string
32079 if(0 != stricmp(0, 0))
32087 if ac_fn_c_try_compile "$LINENO"
32090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32091 printf "%s\n" "yes" >&6; }
32092 tst_compi_stricmp="yes"
32096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32097 printf "%s\n" "no" >&6; }
32098 tst_compi_stricmp="no"
32101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32104 if test "$tst_compi_stricmp" = "yes"; then
32105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
32106 printf %s "checking if stricmp usage allowed... " >&6; }
32107 if test "x$cares_disallow_stricmp" != "xyes"; then
32108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32109 printf "%s\n" "yes" >&6; }
32110 tst_allow_stricmp="yes"
32112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32113 printf "%s\n" "no" >&6; }
32114 tst_allow_stricmp="no"
32118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
32119 printf %s "checking if stricmp might be used... " >&6; }
32120 if test "$tst_links_stricmp" = "yes" &&
32121 test "$tst_proto_stricmp" = "yes" &&
32122 test "$tst_compi_stricmp" = "yes" &&
32123 test "$tst_allow_stricmp" = "yes"; then
32124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32125 printf "%s\n" "yes" >&6; }
32127 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
32129 ac_cv_func_stricmp="yes"
32131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32132 printf "%s\n" "no" >&6; }
32133 ac_cv_func_stricmp="no"
32138 tst_links_strncasecmp="unknown"
32139 tst_proto_strncasecmp="unknown"
32140 tst_compi_strncasecmp="unknown"
32141 tst_allow_strncasecmp="unknown"
32143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
32144 printf %s "checking if strncasecmp can be linked... " >&6; }
32145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32146 /* end confdefs.h. */
32148 /* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
32149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32150 #define strncasecmp innocuous_strncasecmp
32152 /* System header to define __stub macros and hopefully few prototypes,
32153 which can conflict with char strncasecmp (); below. */
32155 #include <limits.h>
32158 /* Override any GCC internal prototype to avoid an error.
32159 Use char because int might match the return type of a GCC
32160 builtin and then its argument prototype would still apply. */
32164 char strncasecmp ();
32165 /* The GNU C library defines this for functions which it implements
32166 to always fail with ENOSYS. Some functions are actually named
32167 something starting with __ and the normal name is an alias. */
32168 #if defined __stub_strncasecmp || defined __stub___strncasecmp
32175 return strncasecmp ();
32181 if ac_fn_c_try_link "$LINENO"
32184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32185 printf "%s\n" "yes" >&6; }
32186 tst_links_strncasecmp="yes"
32190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32191 printf "%s\n" "no" >&6; }
32192 tst_links_strncasecmp="no"
32195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32196 conftest$ac_exeext conftest.$ac_ext
32198 if test "$tst_links_strncasecmp" = "yes"; then
32199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
32200 printf %s "checking if strncasecmp is prototyped... " >&6; }
32201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32202 /* end confdefs.h. */
32204 $cares_includes_string
32207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32208 $EGREP "strncasecmp" >/dev/null 2>&1
32211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32212 printf "%s\n" "yes" >&6; }
32213 tst_proto_strncasecmp="yes"
32217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32218 printf "%s\n" "no" >&6; }
32219 tst_proto_strncasecmp="no"
32226 if test "$tst_proto_strncasecmp" = "yes"; then
32227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
32228 printf %s "checking if strncasecmp is compilable... " >&6; }
32229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32230 /* end confdefs.h. */
32233 $cares_includes_string
32239 if(0 != strncasecmp(0, 0, 0))
32247 if ac_fn_c_try_compile "$LINENO"
32250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32251 printf "%s\n" "yes" >&6; }
32252 tst_compi_strncasecmp="yes"
32256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32257 printf "%s\n" "no" >&6; }
32258 tst_compi_strncasecmp="no"
32261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32264 if test "$tst_compi_strncasecmp" = "yes"; then
32265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
32266 printf %s "checking if strncasecmp usage allowed... " >&6; }
32267 if test "x$cares_disallow_strncasecmp" != "xyes"; then
32268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32269 printf "%s\n" "yes" >&6; }
32270 tst_allow_strncasecmp="yes"
32272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32273 printf "%s\n" "no" >&6; }
32274 tst_allow_strncasecmp="no"
32278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
32279 printf %s "checking if strncasecmp might be used... " >&6; }
32280 if test "$tst_links_strncasecmp" = "yes" &&
32281 test "$tst_proto_strncasecmp" = "yes" &&
32282 test "$tst_compi_strncasecmp" = "yes" &&
32283 test "$tst_allow_strncasecmp" = "yes"; then
32284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32285 printf "%s\n" "yes" >&6; }
32287 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
32289 ac_cv_func_strncasecmp="yes"
32291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32292 printf "%s\n" "no" >&6; }
32293 ac_cv_func_strncasecmp="no"
32298 tst_links_strncmpi="unknown"
32299 tst_proto_strncmpi="unknown"
32300 tst_compi_strncmpi="unknown"
32301 tst_allow_strncmpi="unknown"
32303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
32304 printf %s "checking if strncmpi can be linked... " >&6; }
32305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32306 /* end confdefs.h. */
32308 /* Define strncmpi to an innocuous variant, in case <limits.h> declares strncmpi.
32309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32310 #define strncmpi innocuous_strncmpi
32312 /* System header to define __stub macros and hopefully few prototypes,
32313 which can conflict with char strncmpi (); below. */
32315 #include <limits.h>
32318 /* Override any GCC internal prototype to avoid an error.
32319 Use char because int might match the return type of a GCC
32320 builtin and then its argument prototype would still apply. */
32325 /* The GNU C library defines this for functions which it implements
32326 to always fail with ENOSYS. Some functions are actually named
32327 something starting with __ and the normal name is an alias. */
32328 #if defined __stub_strncmpi || defined __stub___strncmpi
32335 return strncmpi ();
32341 if ac_fn_c_try_link "$LINENO"
32344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32345 printf "%s\n" "yes" >&6; }
32346 tst_links_strncmpi="yes"
32350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32351 printf "%s\n" "no" >&6; }
32352 tst_links_strncmpi="no"
32355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32356 conftest$ac_exeext conftest.$ac_ext
32358 if test "$tst_links_strncmpi" = "yes"; then
32359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
32360 printf %s "checking if strncmpi is prototyped... " >&6; }
32361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32362 /* end confdefs.h. */
32364 $cares_includes_string
32367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32368 $EGREP "strncmpi" >/dev/null 2>&1
32371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32372 printf "%s\n" "yes" >&6; }
32373 tst_proto_strncmpi="yes"
32377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32378 printf "%s\n" "no" >&6; }
32379 tst_proto_strncmpi="no"
32386 if test "$tst_proto_strncmpi" = "yes"; then
32387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
32388 printf %s "checking if strncmpi is compilable... " >&6; }
32389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32390 /* end confdefs.h. */
32393 $cares_includes_string
32399 if(0 != strncmpi(0, 0))
32407 if ac_fn_c_try_compile "$LINENO"
32410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32411 printf "%s\n" "yes" >&6; }
32412 tst_compi_strncmpi="yes"
32416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32417 printf "%s\n" "no" >&6; }
32418 tst_compi_strncmpi="no"
32421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32424 if test "$tst_compi_strncmpi" = "yes"; then
32425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
32426 printf %s "checking if strncmpi usage allowed... " >&6; }
32427 if test "x$cares_disallow_strncmpi" != "xyes"; then
32428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32429 printf "%s\n" "yes" >&6; }
32430 tst_allow_strncmpi="yes"
32432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32433 printf "%s\n" "no" >&6; }
32434 tst_allow_strncmpi="no"
32438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
32439 printf %s "checking if strncmpi might be used... " >&6; }
32440 if test "$tst_links_strncmpi" = "yes" &&
32441 test "$tst_proto_strncmpi" = "yes" &&
32442 test "$tst_compi_strncmpi" = "yes" &&
32443 test "$tst_allow_strncmpi" = "yes"; then
32444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32445 printf "%s\n" "yes" >&6; }
32447 printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h
32449 ac_cv_func_strncmpi="yes"
32451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32452 printf "%s\n" "no" >&6; }
32453 ac_cv_func_strncmpi="no"
32458 tst_links_strnicmp="unknown"
32459 tst_proto_strnicmp="unknown"
32460 tst_compi_strnicmp="unknown"
32461 tst_allow_strnicmp="unknown"
32463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
32464 printf %s "checking if strnicmp can be linked... " >&6; }
32465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32466 /* end confdefs.h. */
32468 /* Define strnicmp to an innocuous variant, in case <limits.h> declares strnicmp.
32469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32470 #define strnicmp innocuous_strnicmp
32472 /* System header to define __stub macros and hopefully few prototypes,
32473 which can conflict with char strnicmp (); below. */
32475 #include <limits.h>
32478 /* Override any GCC internal prototype to avoid an error.
32479 Use char because int might match the return type of a GCC
32480 builtin and then its argument prototype would still apply. */
32485 /* The GNU C library defines this for functions which it implements
32486 to always fail with ENOSYS. Some functions are actually named
32487 something starting with __ and the normal name is an alias. */
32488 #if defined __stub_strnicmp || defined __stub___strnicmp
32495 return strnicmp ();
32501 if ac_fn_c_try_link "$LINENO"
32504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32505 printf "%s\n" "yes" >&6; }
32506 tst_links_strnicmp="yes"
32510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32511 printf "%s\n" "no" >&6; }
32512 tst_links_strnicmp="no"
32515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32516 conftest$ac_exeext conftest.$ac_ext
32518 if test "$tst_links_strnicmp" = "yes"; then
32519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
32520 printf %s "checking if strnicmp is prototyped... " >&6; }
32521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32522 /* end confdefs.h. */
32524 $cares_includes_string
32527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32528 $EGREP "strnicmp" >/dev/null 2>&1
32531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32532 printf "%s\n" "yes" >&6; }
32533 tst_proto_strnicmp="yes"
32537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32538 printf "%s\n" "no" >&6; }
32539 tst_proto_strnicmp="no"
32546 if test "$tst_proto_strnicmp" = "yes"; then
32547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
32548 printf %s "checking if strnicmp is compilable... " >&6; }
32549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32550 /* end confdefs.h. */
32553 $cares_includes_string
32559 if(0 != strnicmp(0, 0))
32567 if ac_fn_c_try_compile "$LINENO"
32570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32571 printf "%s\n" "yes" >&6; }
32572 tst_compi_strnicmp="yes"
32576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32577 printf "%s\n" "no" >&6; }
32578 tst_compi_strnicmp="no"
32581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32584 if test "$tst_compi_strnicmp" = "yes"; then
32585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
32586 printf %s "checking if strnicmp usage allowed... " >&6; }
32587 if test "x$cares_disallow_strnicmp" != "xyes"; then
32588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32589 printf "%s\n" "yes" >&6; }
32590 tst_allow_strnicmp="yes"
32592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32593 printf "%s\n" "no" >&6; }
32594 tst_allow_strnicmp="no"
32598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
32599 printf %s "checking if strnicmp might be used... " >&6; }
32600 if test "$tst_links_strnicmp" = "yes" &&
32601 test "$tst_proto_strnicmp" = "yes" &&
32602 test "$tst_compi_strnicmp" = "yes" &&
32603 test "$tst_allow_strnicmp" = "yes"; then
32604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32605 printf "%s\n" "yes" >&6; }
32607 printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
32609 ac_cv_func_strnicmp="yes"
32611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32612 printf "%s\n" "no" >&6; }
32613 ac_cv_func_strnicmp="no"
32617 cares_includes_sys_uio="\
32618 /* includes start */
32619 #ifdef HAVE_SYS_TYPES_H
32620 # include <sys/types.h>
32622 #ifdef HAVE_SYS_UIO_H
32623 # include <sys/uio.h>
32625 /* includes end */"
32626 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_sys_uio
32628 if test "x$ac_cv_header_sys_types_h" = xyes
32630 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
32633 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$cares_includes_sys_uio
32635 if test "x$ac_cv_header_sys_uio_h" = xyes
32637 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
32644 tst_links_writev="unknown"
32645 tst_proto_writev="unknown"
32646 tst_compi_writev="unknown"
32647 tst_allow_writev="unknown"
32649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
32650 printf %s "checking if writev can be linked... " >&6; }
32651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32652 /* end confdefs.h. */
32654 /* Define writev to an innocuous variant, in case <limits.h> declares writev.
32655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32656 #define writev innocuous_writev
32658 /* System header to define __stub macros and hopefully few prototypes,
32659 which can conflict with char writev (); below. */
32661 #include <limits.h>
32664 /* Override any GCC internal prototype to avoid an error.
32665 Use char because int might match the return type of a GCC
32666 builtin and then its argument prototype would still apply. */
32671 /* The GNU C library defines this for functions which it implements
32672 to always fail with ENOSYS. Some functions are actually named
32673 something starting with __ and the normal name is an alias. */
32674 #if defined __stub_writev || defined __stub___writev
32687 if ac_fn_c_try_link "$LINENO"
32690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32691 printf "%s\n" "yes" >&6; }
32692 tst_links_writev="yes"
32696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32697 printf "%s\n" "no" >&6; }
32698 tst_links_writev="no"
32701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32702 conftest$ac_exeext conftest.$ac_ext
32704 if test "$tst_links_writev" = "yes"; then
32705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
32706 printf %s "checking if writev is prototyped... " >&6; }
32707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32708 /* end confdefs.h. */
32710 $cares_includes_sys_uio
32713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32714 $EGREP "writev" >/dev/null 2>&1
32717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32718 printf "%s\n" "yes" >&6; }
32719 tst_proto_writev="yes"
32723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32724 printf "%s\n" "no" >&6; }
32725 tst_proto_writev="no"
32732 if test "$tst_proto_writev" = "yes"; then
32733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
32734 printf %s "checking if writev is compilable... " >&6; }
32735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32736 /* end confdefs.h. */
32739 $cares_includes_sys_uio
32745 if(0 != writev(0, 0, 0))
32753 if ac_fn_c_try_compile "$LINENO"
32756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32757 printf "%s\n" "yes" >&6; }
32758 tst_compi_writev="yes"
32762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32763 printf "%s\n" "no" >&6; }
32764 tst_compi_writev="no"
32767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32770 if test "$tst_compi_writev" = "yes"; then
32771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
32772 printf %s "checking if writev usage allowed... " >&6; }
32773 if test "x$cares_disallow_writev" != "xyes"; then
32774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32775 printf "%s\n" "yes" >&6; }
32776 tst_allow_writev="yes"
32778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32779 printf "%s\n" "no" >&6; }
32780 tst_allow_writev="no"
32784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
32785 printf %s "checking if writev might be used... " >&6; }
32786 if test "$tst_links_writev" = "yes" &&
32787 test "$tst_proto_writev" = "yes" &&
32788 test "$tst_compi_writev" = "yes" &&
32789 test "$tst_allow_writev" = "yes"; then
32790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32791 printf "%s\n" "yes" >&6; }
32793 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
32795 ac_cv_func_writev="yes"
32797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32798 printf "%s\n" "no" >&6; }
32799 ac_cv_func_writev="no"
32805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
32806 printf %s "checking for PF_INET6... " >&6; }
32807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32808 /* end confdefs.h. */
32812 #ifdef HAVE_WINDOWS_H
32813 #ifndef WIN32_LEAN_AND_MEAN
32814 #define WIN32_LEAN_AND_MEAN
32816 #include <windows.h>
32817 #ifdef HAVE_WINSOCK2_H
32818 #include <winsock2.h>
32821 #ifdef HAVE_SYS_TYPES_H
32822 #include <sys/types.h>
32824 #ifdef HAVE_SYS_SOCKET_H
32825 #include <sys/socket.h>
32837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32838 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1
32847 if test "$ac_constant" = "yes" ; then
32848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32849 printf "%s\n" "yes" >&6; }
32851 printf "%s\n" "#define HAVE_PF_INET6 1" >>confdefs.h
32855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32856 printf "%s\n" "no" >&6; }
32862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
32863 printf %s "checking for AF_INET6... " >&6; }
32864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32865 /* end confdefs.h. */
32869 #ifdef HAVE_WINDOWS_H
32870 #ifndef WIN32_LEAN_AND_MEAN
32871 #define WIN32_LEAN_AND_MEAN
32873 #include <windows.h>
32874 #ifdef HAVE_WINSOCK2_H
32875 #include <winsock2.h>
32878 #ifdef HAVE_SYS_TYPES_H
32879 #include <sys/types.h>
32881 #ifdef HAVE_SYS_SOCKET_H
32882 #include <sys/socket.h>
32894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32895 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1
32904 if test "$ac_constant" = "yes" ; then
32905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32906 printf "%s\n" "yes" >&6; }
32908 printf "%s\n" "#define HAVE_AF_INET6 1" >>confdefs.h
32912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32913 printf "%s\n" "no" >&6; }
32920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
32921 printf %s "checking for struct in6_addr... " >&6; }
32922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32923 /* end confdefs.h. */
32926 #ifdef HAVE_WINDOWS_H
32927 #ifndef WIN32_LEAN_AND_MEAN
32928 #define WIN32_LEAN_AND_MEAN
32930 #include <windows.h>
32931 #ifdef HAVE_WINSOCK2_H
32932 #include <winsock2.h>
32933 #ifdef HAVE_WS2TCPIP_H
32934 #include <ws2tcpip.h>
32938 #ifdef HAVE_SYS_TYPES_H
32939 #include <sys/types.h>
32941 #ifdef HAVE_NETINET_IN_H
32942 #include <netinet/in.h>
32950 struct in6_addr struct_instance;
32956 if ac_fn_c_try_compile "$LINENO"
32962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32963 if test "$ac_struct" = "yes" ; then
32964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32965 printf "%s\n" "yes" >&6; }
32967 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
32971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32972 printf "%s\n" "no" >&6; }
32978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
32979 printf %s "checking for struct sockaddr_in6... " >&6; }
32980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32981 /* end confdefs.h. */
32984 #ifdef HAVE_WINDOWS_H
32985 #ifndef WIN32_LEAN_AND_MEAN
32986 #define WIN32_LEAN_AND_MEAN
32988 #include <windows.h>
32989 #ifdef HAVE_WINSOCK2_H
32990 #include <winsock2.h>
32991 #ifdef HAVE_WS2TCPIP_H
32992 #include <ws2tcpip.h>
32996 #ifdef HAVE_SYS_TYPES_H
32997 #include <sys/types.h>
32999 #ifdef HAVE_NETINET_IN_H
33000 #include <netinet/in.h>
33008 struct sockaddr_in6 struct_instance;
33014 if ac_fn_c_try_compile "$LINENO"
33020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33021 if test "$ac_struct" = "yes" ; then
33022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33023 printf "%s\n" "yes" >&6; }
33025 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
33026 ac_have_sockaddr_in6=yes
33029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33030 printf "%s\n" "no" >&6; }
33035 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
33037 #ifdef HAVE_WINDOWS_H
33038 #ifndef WIN32_LEAN_AND_MEAN
33039 #define WIN32_LEAN_AND_MEAN
33041 #include <windows.h>
33042 #ifdef HAVE_WINSOCK2_H
33043 #include <winsock2.h>
33044 #ifdef HAVE_WS2TCPIP_H
33045 #include <ws2tcpip.h>
33049 #ifdef HAVE_SYS_TYPES_H
33050 #include <sys/types.h>
33052 #ifdef HAVE_NETINET_IN_H
33053 #include <netinet/in.h>
33058 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes
33061 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
33067 ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
33069 #ifdef HAVE_WINDOWS_H
33070 #ifndef WIN32_LEAN_AND_MEAN
33071 #define WIN32_LEAN_AND_MEAN
33073 #include <windows.h>
33074 #ifdef HAVE_WINSOCK2_H
33075 #include <winsock2.h>
33076 #ifdef HAVE_WS2TCPIP_H
33077 #include <ws2tcpip.h>
33081 #ifdef HAVE_SYS_TYPES_H
33082 #include <sys/types.h>
33084 #ifdef HAVE_NETINET_IN_H
33085 #include <netinet/in.h>
33087 #ifdef HAVE_SYS_SOCKET_H
33088 #include <sys/socket.h>
33090 #ifdef HAVE_NETDB_H
33097 if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes
33100 printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
33107 for ac_func in bitncmp gettimeofday if_indextoname
33109 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
33110 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33111 if eval test \"x\$"$as_ac_var"\" = x"yes"
33113 cat >>confdefs.h <<_ACEOF
33114 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
33121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
33122 printf %s "checking deeper for $func... " >&6; }
33123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33124 /* end confdefs.h. */
33139 if ac_fn_c_try_link "$LINENO"
33142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33143 printf "%s\n" "yes" >&6; }
33144 eval "ac_cv_func_$func=yes"
33146 cat >>confdefs.h <<_ACEOF
33147 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
33153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33154 printf "%s\n" "but still no" >&6; }
33157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33158 conftest$ac_exeext conftest.$ac_ext
33164 ac_fn_c_check_func "$LINENO" "__system_property_get" "ac_cv_func___system_property_get"
33165 if test "x$ac_cv_func___system_property_get" = xyes
33169 printf "%s\n" "#define HAVE___SYSTEM_PROPERTY_GET 1" >>confdefs.h
33176 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
33177 if test "x$ac_cv_header_sys_types_h" = xyes
33179 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
33182 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
33183 if test "x$ac_cv_header_sys_socket_h" = xyes
33185 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33188 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
33189 if test "x$ac_cv_header_netdb_h" = xyes
33191 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
33196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
33197 printf %s "checking for getnameinfo... " >&6; }
33198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33199 /* end confdefs.h. */
33201 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
33202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33203 #define getnameinfo innocuous_getnameinfo
33205 /* System header to define __stub macros and hopefully few prototypes,
33206 which can conflict with char getnameinfo (); below. */
33208 #include <limits.h>
33211 /* Override any GCC internal prototype to avoid an error.
33212 Use char because int might match the return type of a GCC
33213 builtin and then its argument prototype would still apply. */
33217 char getnameinfo ();
33218 /* The GNU C library defines this for functions which it implements
33219 to always fail with ENOSYS. Some functions are actually named
33220 something starting with __ and the normal name is an alias. */
33221 #if defined __stub_getnameinfo || defined __stub___getnameinfo
33228 return getnameinfo ();
33234 if ac_fn_c_try_link "$LINENO"
33237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33238 printf "%s\n" "yes" >&6; }
33239 curl_cv_getnameinfo="yes"
33243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33244 printf "%s\n" "no" >&6; }
33245 curl_cv_getnameinfo="no"
33248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33249 conftest$ac_exeext conftest.$ac_ext
33251 if test "$curl_cv_getnameinfo" != "yes"; then
33252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
33253 printf %s "checking deeper for getnameinfo... " >&6; }
33254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33255 /* end confdefs.h. */
33270 if ac_fn_c_try_link "$LINENO"
33273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33274 printf "%s\n" "yes" >&6; }
33275 curl_cv_getnameinfo="yes"
33279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33280 printf "%s\n" "but still no" >&6; }
33281 curl_cv_getnameinfo="no"
33284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33285 conftest$ac_exeext conftest.$ac_ext
33288 if test "$curl_cv_getnameinfo" != "yes"; then
33289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
33290 printf %s "checking deeper and deeper for getnameinfo... " >&6; }
33291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33292 /* end confdefs.h. */
33296 #ifdef HAVE_WINDOWS_H
33297 #ifndef WIN32_LEAN_AND_MEAN
33298 #define WIN32_LEAN_AND_MEAN
33300 #include <windows.h>
33301 #ifdef HAVE_WINSOCK2_H
33302 #include <winsock2.h>
33303 #ifdef HAVE_WS2TCPIP_H
33304 #include <ws2tcpip.h>
33308 #ifdef HAVE_SYS_TYPES_H
33309 #include <sys/types.h>
33311 #ifdef HAVE_SYS_SOCKET_H
33312 #include <sys/socket.h>
33314 #ifdef HAVE_NETDB_H
33323 getnameinfo(0, 0, 0, 0, 0, 0, 0);
33330 if ac_fn_c_try_link "$LINENO"
33333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33334 printf "%s\n" "yes" >&6; }
33335 curl_cv_getnameinfo="yes"
33339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33340 printf "%s\n" "but still no" >&6; }
33341 curl_cv_getnameinfo="no"
33344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33345 conftest$ac_exeext conftest.$ac_ext
33348 if test "$curl_cv_getnameinfo" = "yes"; then
33349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
33350 printf %s "checking types of arguments for getnameinfo... " >&6; }
33351 if test ${curl_cv_func_getnameinfo_args+y}
33353 printf %s "(cached) " >&6
33356 curl_cv_func_getnameinfo_args="unknown"
33357 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
33358 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
33359 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
33360 for gni_arg7 in 'int' 'unsigned int'; do
33361 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
33362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33363 /* end confdefs.h. */
33367 #ifdef HAVE_WINDOWS_H
33368 #ifndef WIN32_LEAN_AND_MEAN
33369 #define WIN32_LEAN_AND_MEAN
33371 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
33372 #undef _WIN32_WINNT
33373 #define _WIN32_WINNT 0x0501
33375 #include <windows.h>
33376 #ifdef HAVE_WINSOCK2_H
33377 #include <winsock2.h>
33378 #ifdef HAVE_WS2TCPIP_H
33379 #include <ws2tcpip.h>
33382 #define GNICALLCONV WSAAPI
33384 #ifdef HAVE_SYS_TYPES_H
33385 #include <sys/types.h>
33387 #ifdef HAVE_SYS_SOCKET_H
33388 #include <sys/socket.h>
33390 #ifdef HAVE_NETDB_H
33393 #define GNICALLCONV
33395 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
33396 char *, $gni_arg46,
33397 char *, $gni_arg46,
33405 $gni_arg46 hostlen=0;
33406 $gni_arg46 servlen=0;
33408 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
33415 if ac_fn_c_try_compile "$LINENO"
33418 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
33421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
33430 printf "%s\n" "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
33431 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
33432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
33433 printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
33434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
33435 printf "%s\n" "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
33437 gni_prev_IFS=$IFS; IFS=','
33438 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
33442 gni_qual_type_arg1=$1
33445 printf "%s\n" "#define GETNAMEINFO_TYPE_ARG2 $2" >>confdefs.h
33448 printf "%s\n" "#define GETNAMEINFO_TYPE_ARG46 $3" >>confdefs.h
33451 printf "%s\n" "#define GETNAMEINFO_TYPE_ARG7 $4" >>confdefs.h
33456 case $prev_sh_opts in
33464 case "$gni_qual_type_arg1" in
33466 gni_qual_arg1=const
33467 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
33471 gni_type_arg1=$gni_qual_type_arg1
33476 printf "%s\n" "#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1" >>confdefs.h
33479 printf "%s\n" "#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1" >>confdefs.h
33482 case $prev_sh_opts in
33491 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
33493 ac_cv_func_getnameinfo="yes"
33499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
33500 printf %s "checking whether byte ordering is bigendian... " >&6; }
33501 if test ${ac_cv_c_bigendian+y}
33503 printf %s "(cached) " >&6
33505 ac_cv_c_bigendian=unknown
33506 # See if we're dealing with a universal compiler.
33507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33508 /* end confdefs.h. */
33509 #ifndef __APPLE_CC__
33510 not a universal capable compiler
33515 if ac_fn_c_try_compile "$LINENO"
33518 # Check for potential -arch flags. It is not universal unless
33519 # there are at least two -arch flags with different values.
33522 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
33523 if test -n "$ac_prev"; then
33525 i?86 | x86_64 | ppc | ppc64)
33526 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
33529 ac_cv_c_bigendian=universal
33535 elif test "x$ac_word" = "x-arch"; then
33540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33541 if test $ac_cv_c_bigendian = unknown; then
33542 # See if sys/param.h defines the BYTE_ORDER macro.
33543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33544 /* end confdefs.h. */
33545 #include <sys/types.h>
33546 #include <sys/param.h>
33551 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
33552 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
33554 bogus endian macros
33561 if ac_fn_c_try_compile "$LINENO"
33563 # It does; now see whether it defined to BIG_ENDIAN or not.
33564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33565 /* end confdefs.h. */
33566 #include <sys/types.h>
33567 #include <sys/param.h>
33572 #if BYTE_ORDER != BIG_ENDIAN
33580 if ac_fn_c_try_compile "$LINENO"
33582 ac_cv_c_bigendian=yes
33584 ac_cv_c_bigendian=no
33586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33590 if test $ac_cv_c_bigendian = unknown; then
33591 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
33592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33593 /* end confdefs.h. */
33594 #include <limits.h>
33599 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
33600 bogus endian macros
33607 if ac_fn_c_try_compile "$LINENO"
33609 # It does; now see whether it defined to _BIG_ENDIAN or not.
33610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33611 /* end confdefs.h. */
33612 #include <limits.h>
33617 #ifndef _BIG_ENDIAN
33625 if ac_fn_c_try_compile "$LINENO"
33627 ac_cv_c_bigendian=yes
33629 ac_cv_c_bigendian=no
33631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33635 if test $ac_cv_c_bigendian = unknown; then
33636 # Compile a test program.
33637 if test "$cross_compiling" = yes
33639 # Try to guess by grepping values from an object file.
33640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33641 /* end confdefs.h. */
33642 unsigned short int ascii_mm[] =
33643 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33644 unsigned short int ascii_ii[] =
33645 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33646 int use_ascii (int i) {
33647 return ascii_mm[i] + ascii_ii[i];
33649 unsigned short int ebcdic_ii[] =
33650 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33651 unsigned short int ebcdic_mm[] =
33652 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33653 int use_ebcdic (int i) {
33654 return ebcdic_mm[i] + ebcdic_ii[i];
33661 return use_ascii (foo) == use_ebcdic (foo);
33666 if ac_fn_c_try_compile "$LINENO"
33668 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
33669 ac_cv_c_bigendian=yes
33671 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33672 if test "$ac_cv_c_bigendian" = unknown; then
33673 ac_cv_c_bigendian=no
33675 # finding both strings is unlikely to happen, but who knows?
33676 ac_cv_c_bigendian=unknown
33680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33683 /* end confdefs.h. */
33684 $ac_includes_default
33689 /* Are we little or big endian? From Harbison&Steele. */
33693 char c[sizeof (long int)];
33696 return u.c[sizeof (long int) - 1] == 1;
33702 if ac_fn_c_try_run "$LINENO"
33704 ac_cv_c_bigendian=no
33706 ac_cv_c_bigendian=yes
33708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33709 conftest.$ac_objext conftest.beam conftest.$ac_ext
33714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
33715 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
33716 case $ac_cv_c_bigendian in #(
33719 printf "%s\n" "#define ARES_BIG_ENDIAN 1" >>confdefs.h
33725 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
33729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
33730 printf "%s\n" "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
33736 # Check whether --with-random was given.
33737 if test ${with_random+y}
33739 withval=$with_random; CARES_RANDOM_FILE="$withval"
33742 if test "$cross_compiling" = "no"; then
33743 as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
33744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
33745 printf %s "checking for \"/dev/urandom\"... " >&6; }
33746 if eval test \${$as_ac_File+y}
33748 printf %s "(cached) " >&6
33750 test "$cross_compiling" = yes &&
33751 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
33752 if test -r ""/dev/urandom""; then
33753 eval "$as_ac_File=yes"
33755 eval "$as_ac_File=no"
33758 eval ac_res=\$$as_ac_File
33759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33760 printf "%s\n" "$ac_res" >&6; }
33761 if eval test \"x\$"$as_ac_File"\" = x"yes"
33763 CARES_RANDOM_FILE="/dev/urandom"
33767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
33768 printf "%s\n" "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
33775 if test -n "$CARES_RANDOM_FILE" && test X"$CARES_RANDOM_FILE" != Xno ; then
33778 printf "%s\n" "#define CARES_RANDOM_FILE \"$CARES_RANDOM_FILE\"" >>confdefs.h
33783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
33784 printf %s "checking whether to enable non-blocking communications... " >&6; }
33785 OPT_NONBLOCKING="default"
33786 # Check whether --enable-nonblocking was given.
33787 if test ${enable_nonblocking+y}
33789 enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
33792 case "$OPT_NONBLOCKING" in
33794 want_nonblocking="no"
33797 want_nonblocking="yes"
33800 want_nonblocking="yes"
33803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
33804 printf "%s\n" "$want_nonblocking" >&6; }
33808 tst_method="unknown"
33809 if test "$want_nonblocking" = "yes"; then
33810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
33811 printf %s "checking how to set a socket into non-blocking mode... " >&6; }
33812 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
33813 tst_method="fcntl O_NONBLOCK"
33814 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
33815 tst_method="ioctl FIONBIO"
33816 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
33817 tst_method="ioctlsocket FIONBIO"
33818 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
33819 tst_method="IoctlSocket FIONBIO"
33820 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
33821 tst_method="setsockopt SO_NONBLOCK"
33823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
33824 printf "%s\n" "$tst_method" >&6; }
33825 if test "$tst_method" = "unknown"; then
33826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
33827 printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
33830 if test "$tst_method" = "unknown"; then
33832 printf "%s\n" "#define USE_BLOCKING_SOCKETS 1" >>confdefs.h
33834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
33835 printf "%s\n" "$as_me: WARNING: non-blocking sockets disabled." >&2;}
33840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
33841 printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
33842 CFLAG_CARES_SYMBOL_HIDING=""
33843 doing_symbol_hiding="no"
33844 if test x"$ac_cv_native_windows" != "xyes" &&
33845 test "$want_symbol_hiding" = "yes" &&
33846 test "$supports_symbol_hiding" = "yes"; then
33847 doing_symbol_hiding="yes"
33848 CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
33850 printf "%s\n" "#define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN" >>confdefs.h
33852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33853 printf "%s\n" "yes" >&6; }
33855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33856 printf "%s\n" "no" >&6; }
33858 if test x$doing_symbol_hiding = xyes; then
33859 DOING_CARES_SYMBOL_HIDING_TRUE=
33860 DOING_CARES_SYMBOL_HIDING_FALSE='#'
33862 DOING_CARES_SYMBOL_HIDING_TRUE='#'
33863 DOING_CARES_SYMBOL_HIDING_FALSE=
33867 if test "$doing_symbol_hiding" = "yes"; then
33869 printf "%s\n" "#define CARES_SYMBOL_HIDING 1" >>confdefs.h
33874 CARES_PRIVATE_LIBS="$LIBS"
33877 CARES_CFLAG_EXTRAS=""
33878 if test X"$want_werror" = Xyes; then
33879 CARES_CFLAG_EXTRAS="-Werror"
33890 squeeze CARES_PRIVATE_LIBS
33895 for xc_word in $LIBS; do
33901 xc_bad_var_libs=yes
33905 if test $xc_bad_var_libs = yes; then
33906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
33907 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
33908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
33909 printf "%s\n" "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
33913 xc_bad_var_ldflags=no
33914 for xc_word in $LDFLAGS; do
33917 xc_bad_var_ldflags=yes
33920 xc_bad_var_ldflags=yes
33923 xc_bad_var_ldflags=yes
33926 xc_bad_var_ldflags=yes
33930 if test $xc_bad_var_ldflags = yes; then
33931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
33932 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
33933 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
33934 for xc_word in $LDFLAGS; do
33937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
33938 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
33941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
33942 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
33945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
33946 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
33949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
33950 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
33957 xc_bad_var_cppflags=no
33958 for xc_word in $CPPFLAGS; do
33961 xc_bad_var_cppflags=yes
33963 -L* | --library-path=*)
33964 xc_bad_var_cppflags=yes
33967 xc_bad_var_cppflags=yes
33971 if test $xc_bad_var_cppflags = yes; then
33972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
33973 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
33974 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
33975 for xc_word in $CPPFLAGS; do
33978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
33979 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
33981 -L* | --library-path=*)
33982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
33983 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
33986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
33987 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
33994 xc_bad_var_cflags=no
33995 for xc_word in $CFLAGS; do
33998 xc_bad_var_cflags=yes
34001 xc_bad_var_cflags=yes
34004 xc_bad_var_cflags=yes
34007 xc_bad_var_cflags=yes
34009 -L* | --library-path=*)
34010 xc_bad_var_cflags=yes
34013 xc_bad_var_cflags=yes
34017 if test $xc_bad_var_cflags = yes; then
34018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
34019 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
34020 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
34021 for xc_word in $CFLAGS; do
34024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
34025 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
34028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
34029 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
34032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
34033 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
34036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
34037 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
34039 -L* | --library-path=*)
34040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
34041 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
34044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
34045 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
34051 if test $xc_bad_var_libs = yes ||
34052 test $xc_bad_var_cflags = yes ||
34053 test $xc_bad_var_ldflags = yes ||
34054 test $xc_bad_var_cppflags = yes; then
34055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
34056 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
34060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5
34061 printf %s "checking whether to build tests... " >&6; }
34062 # Check whether --enable-tests was given.
34063 if test ${enable_tests+y}
34065 enableval=$enable_tests; build_tests="$enableval"
34067 if test "x$HAVE_CXX11" = "x1" && test "x$cross_compiling" = "xno" ; then
34077 if test "x$build_tests" = "xyes" ; then
34078 if test "x$HAVE_CXX11" = "0" ; then
34079 as_fn_error $? "*** Building tests requires a CXX11 compiler" "$LINENO" 5
34081 if test "x$cross_compiling" = "xyes" ; then
34082 as_fn_error $? "*** Tests not supported when cross compiling" "$LINENO" 5
34085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_tests" >&5
34086 printf "%s\n" "$build_tests" >&6; }
34089 BUILD_SUBDIRS="include src docs"
34090 if test "x$build_tests" = "xyes" ; then
34093 subdirs="$subdirs test"
34095 BUILD_SUBDIRS="${BUILD_SUBDIRS} test"
34100 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/lib/Makefile src/tools/Makefile docs/Makefile libcares.pc"
34103 cat >confcache <<\_ACEOF
34104 # This file is a shell script that caches the results of configure
34105 # tests run on this system so they can be shared between configure
34106 # scripts and configure runs, see configure's option --config-cache.
34107 # It is not useful on other systems. If it contains results you don't
34108 # want to keep, you may remove or edit it.
34110 # config.status only pays attention to the cache file if you give it
34111 # the --recheck option to rerun configure.
34113 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34114 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34115 # following values.
34119 # The following way of writing the cache mishandles newlines in values,
34120 # but we know of no workaround that is simple, portable, and efficient.
34121 # So, we kill variables containing newlines.
34122 # Ultrix sh set writes to stderr and can't be redirected directly,
34123 # and sets the high bit in the cache file unless we assign to the vars.
34125 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34126 eval ac_val=\$$ac_var
34130 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34131 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34134 _ | IFS | as_nl) ;; #(
34135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34136 *) { eval $ac_var=; unset $ac_var;} ;;
34142 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34143 *${as_nl}ac_space=\ *)
34144 # `set' does not quote correctly, so add quotes: double-quote
34145 # substitution turns \\\\ into \\, and sed turns \\ into \.
34148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34151 # `set' quotes correctly as required by POSIX, so do not add quotes.
34152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34161 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
34163 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34165 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34166 if test -w "$cache_file"; then
34167 if test "x$cache_file" != "x/dev/null"; then
34168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34169 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
34170 if test ! -f "$cache_file" || test -h "$cache_file"; then
34171 cat confcache >"$cache_file"
34173 case $cache_file in #(
34175 mv -f confcache "$cache_file"$$ &&
34176 mv -f "$cache_file"$$ "$cache_file" ;; #(
34178 mv -f confcache "$cache_file" ;;
34183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34184 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
34189 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34190 # Let make expand exec_prefix.
34191 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34193 DEFS=-DHAVE_CONFIG_H
34198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34199 # 1. Remove the extension, and $U if already installed.
34200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34201 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
34202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34203 # will be set to the directory where LIBOBJS objects are built.
34204 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34205 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34207 LIBOBJS=$ac_libobjs
34209 LTLIBOBJS=$ac_ltlibobjs
34212 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
34213 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
34214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34216 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
34217 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
34218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
34221 printf %s "checking that generated files are newer than configure... " >&6; }
34222 if test -n "$am_sleep_pid"; then
34223 # Hide warnings about reused PIDs.
34224 wait $am_sleep_pid 2>/dev/null
34226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
34227 printf "%s\n" "done" >&6; }
34228 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34229 as_fn_error $? "conditional \"AMDEP\" was never defined.
34230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34232 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34233 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34236 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34237 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34240 if test -n "$EXEEXT"; then
34242 am__EXEEXT_FALSE='#'
34244 am__EXEEXT_TRUE='#'
34248 if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
34249 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
34250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34252 if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
34253 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
34254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34256 if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
34257 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
34258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34260 if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
34261 as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
34262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34264 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
34265 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
34266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34269 if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
34270 as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
34271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34274 : "${CONFIG_STATUS=./config.status}"
34276 ac_clean_files_save=$ac_clean_files
34277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34279 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
34281 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34283 # Generated by $as_me.
34284 # Run this file to recreate the current configuration.
34285 # Compiler output produced by configure, useful for debugging
34286 # configure, is in config.log if it exists.
34289 ac_cs_recheck=false
34292 SHELL=\${CONFIG_SHELL-$SHELL}
34295 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34296 ## -------------------- ##
34297 ## M4sh Initialization. ##
34298 ## -------------------- ##
34300 # Be more Bourne compatible
34301 DUALCASE=1; export DUALCASE # for MKS sh
34303 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
34307 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34308 # is contrary to our usage. Disable this feature.
34309 alias -g '${1+"$@"}'='"$@"'
34310 setopt NO_GLOB_SUBST
34312 case `(set -o) 2>/dev/null` in #(
34322 # Reset variables that may have inherited troublesome values from
34325 # IFS needs to be set, to space, tab, and newline, in precisely that order.
34326 # (If _AS_PATH_WALK were called with IFS unset, it would have the
34327 # side effect of setting IFS to empty, thus disabling word splitting.)
34328 # Quoting is to prevent editors from complaining about space-tab.
34338 # Ensure predictable behavior from utilities with locale-dependent output.
34344 # We cannot yet rely on "unset" to work, but we need these variables
34345 # to be unset--not just set to an empty or harmless value--now, to
34346 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
34347 # also avoids known problems related to "unset" and subshell syntax
34348 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
34349 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
34350 do eval test \${$as_var+y} \
34351 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
34354 # Ensure that fds 0, 1, and 2 are open.
34355 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
34356 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
34357 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
34361 # Find who we are. Look in the path if we contain no directory separator.
34364 *[\\/]* ) as_myself=$0 ;;
34365 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34366 for as_dir in $PATH
34369 case $as_dir in #(((
34372 *) as_dir=$as_dir/ ;;
34374 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
34380 # We did not find ourselves, most probably we were run as `sh COMMAND'
34381 # in which case we are not to be found in the path.
34382 if test "x$as_myself" = x; then
34385 if test ! -f "$as_myself"; then
34386 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34392 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34393 # ----------------------------------------
34394 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34395 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34396 # script with STATUS, using 1 if that was 0.
34399 as_status=$1; test $as_status -eq 0 && as_status=1
34401 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34404 printf "%s\n" "$as_me: error: $2" >&2
34405 as_fn_exit $as_status
34410 # as_fn_set_status STATUS
34411 # -----------------------
34412 # Set $? to STATUS, without forking.
34413 as_fn_set_status ()
34416 } # as_fn_set_status
34418 # as_fn_exit STATUS
34419 # -----------------
34420 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34424 as_fn_set_status $1
34430 # Portably unset VAR.
34433 { eval $1=; unset $1;}
34435 as_unset=as_fn_unset
34437 # as_fn_append VAR VALUE
34438 # ----------------------
34439 # Append the text in VALUE to the end of the definition contained in VAR. Take
34440 # advantage of any shell optimizations that allow amortized linear growth over
34441 # repeated appends, instead of the typical quadratic growth present in naive
34443 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
34445 eval 'as_fn_append ()
34456 # as_fn_arith ARG...
34457 # ------------------
34458 # Perform arithmetic evaluation on the ARGs, and store the result in the
34459 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34460 # must be portable across $(()) and expr.
34461 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
34463 eval 'as_fn_arith ()
34470 as_val=`expr "$@" || test $? -eq 1`
34475 if expr a : '\(a\)' >/dev/null 2>&1 &&
34476 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34482 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34483 as_basename=basename
34488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34494 as_me=`$as_basename -- "$0" ||
34495 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34496 X"$0" : 'X\(//\)$' \| \
34497 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34498 printf "%s\n" X/"$0" |
34499 sed '/^.*\/\([^/][^/]*\)\/*$/{
34513 # Avoid depending upon Character Ranges.
34514 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34515 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34516 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34517 as_cr_digits='0123456789'
34518 as_cr_alnum=$as_cr_Letters$as_cr_digits
34521 # Determine whether it's possible to make 'echo' print without a newline.
34522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
34523 # for compatibility with existing Makefiles.
34524 ECHO_C= ECHO_N= ECHO_T=
34525 case `echo -n x` in #(((((
34527 case `echo 'xy\c'` in
34528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34537 # For backward compatibility with old third-party macros, we provide
34538 # the shell variables $as_echo and $as_echo_n. New code should use
34539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
34540 as_echo='printf %s\n'
34541 as_echo_n='printf %s'
34543 rm -f conf$$ conf$$.exe conf$$.file
34544 if test -d conf$$.dir; then
34545 rm -f conf$$.dir/conf$$.file
34548 mkdir conf$$.dir 2>/dev/null
34550 if (echo >conf$$.file) 2>/dev/null; then
34551 if ln -s conf$$.file conf$$ 2>/dev/null; then
34553 # ... but there are two gotchas:
34554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34556 # In both cases, we have to default to `cp -pR'.
34557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34559 elif ln conf$$.file conf$$ 2>/dev/null; then
34567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34568 rmdir conf$$.dir 2>/dev/null
34573 # Create "$as_dir" as a directory, including parents if necessary.
34578 -*) as_dir=./$as_dir;;
34580 test -d "$as_dir" || eval $as_mkdir_p || {
34584 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34585 *) as_qdir=$as_dir;;
34587 as_dirs="'$as_qdir' $as_dirs"
34588 as_dir=`$as_dirname -- "$as_dir" ||
34589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34590 X"$as_dir" : 'X\(//\)[^/]' \| \
34591 X"$as_dir" : 'X\(//\)$' \| \
34592 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34593 printf "%s\n" X"$as_dir" |
34594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34598 /^X\(\/\/\)[^/].*/{
34611 test -d "$as_dir" && break
34613 test -z "$as_dirs" || eval "mkdir $as_dirs"
34614 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34618 if mkdir -p . 2>/dev/null; then
34619 as_mkdir_p='mkdir -p "$as_dir"'
34621 test -d ./-p && rmdir ./-p
34626 # as_fn_executable_p FILE
34627 # -----------------------
34628 # Test if FILE is an executable regular file.
34629 as_fn_executable_p ()
34631 test -f "$1" && test -x "$1"
34632 } # as_fn_executable_p
34633 as_test_x='test -x'
34634 as_executable_p=as_fn_executable_p
34636 # Sed expression to map a string onto a valid CPP name.
34637 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34639 # Sed expression to map a string onto a valid variable name.
34640 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34644 ## ----------------------------------- ##
34645 ## Main body of $CONFIG_STATUS script. ##
34646 ## ----------------------------------- ##
34648 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34651 # Save the log message, to keep $0 and so on meaningful, and to
34652 # report actual input values of CONFIG_FILES etc. instead of their
34653 # values after options handling.
34655 This file was extended by c-ares $as_me 1.18.1, which was
34656 generated by GNU Autoconf 2.71. Invocation command line was
34658 CONFIG_FILES = $CONFIG_FILES
34659 CONFIG_HEADERS = $CONFIG_HEADERS
34660 CONFIG_LINKS = $CONFIG_LINKS
34661 CONFIG_COMMANDS = $CONFIG_COMMANDS
34664 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34669 case $ac_config_files in *"
34670 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34673 case $ac_config_headers in *"
34674 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34679 # Files that config.status was made for.
34680 config_files="$ac_config_files"
34681 config_headers="$ac_config_headers"
34682 config_commands="$ac_config_commands"
34686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34688 \`$as_me' instantiates files and other configuration actions
34689 from templates according to the current configuration. Unless the files
34690 and actions are specified as TAGs, all are instantiated by default.
34692 Usage: $0 [OPTION]... [TAG]...
34694 -h, --help print this help, then exit
34695 -V, --version print version number and configuration settings, then exit
34696 --config print configuration, then exit
34697 -q, --quiet, --silent
34698 do not print progress messages
34699 -d, --debug don't remove temporary files
34700 --recheck update $as_me by reconfiguring in the same conditions
34701 --file=FILE[:TEMPLATE]
34702 instantiate the configuration file FILE
34703 --header=FILE[:TEMPLATE]
34704 instantiate the configuration header FILE
34706 Configuration files:
34709 Configuration headers:
34712 Configuration commands:
34715 Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>."
34718 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
34719 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
34720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34721 ac_cs_config='$ac_cs_config_escaped'
34723 c-ares config.status 1.18.1
34724 configured by $0, generated by GNU Autoconf 2.71,
34725 with options \\"\$ac_cs_config\\"
34727 Copyright (C) 2021 Free Software Foundation, Inc.
34728 This config.status script is free software; the Free Software Foundation
34729 gives unlimited permission to copy, distribute and modify it."
34736 test -n "\$AWK" || AWK=awk
34739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34740 # The default lists apply if the user does not specify any file.
34746 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34747 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34751 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34763 # Handling of the options.
34764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34766 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34767 printf "%s\n" "$ac_cs_version"; exit ;;
34768 --config | --confi | --conf | --con | --co | --c )
34769 printf "%s\n" "$ac_cs_config"; exit ;;
34770 --debug | --debu | --deb | --de | --d | -d )
34772 --file | --fil | --fi | --f )
34775 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34776 '') as_fn_error $? "missing file argument" ;;
34778 as_fn_append CONFIG_FILES " '$ac_optarg'"
34779 ac_need_defaults=false;;
34780 --header | --heade | --head | --hea )
34783 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34785 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34786 ac_need_defaults=false;;
34788 # Conflict between --help and --header
34789 as_fn_error $? "ambiguous option: \`$1'
34790 Try \`$0 --help' for more information.";;
34791 --help | --hel | -h )
34792 printf "%s\n" "$ac_cs_usage"; exit ;;
34793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34794 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34797 # This is an error.
34798 -*) as_fn_error $? "unrecognized option: \`$1'
34799 Try \`$0 --help' for more information." ;;
34801 *) as_fn_append ac_config_targets " $1"
34802 ac_need_defaults=false ;;
34808 ac_configure_extra_args=
34810 if $ac_cs_silent; then
34812 ac_configure_extra_args="$ac_configure_extra_args --silent"
34816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34817 if \$ac_cs_recheck; then
34818 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34820 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
34821 CONFIG_SHELL='$SHELL'
34822 export CONFIG_SHELL
34827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34832 ## Running $as_me. ##
34834 printf "%s\n" "$ac_log"
34838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34842 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
34845 # The HP-UX ksh and POSIX shell print the target directory to stdout
34846 # if CDPATH is set.
34847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34849 sed_quote_subst='$sed_quote_subst'
34850 double_quote_subst='$double_quote_subst'
34851 delay_variable_subst='$delay_variable_subst'
34852 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34853 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34854 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34855 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34856 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34857 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34858 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34859 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34860 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34861 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
34862 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34863 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34864 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
34865 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34866 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34867 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34868 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34869 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34870 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34871 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34872 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34873 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34874 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34875 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34876 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34877 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34878 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34879 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34880 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34881 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34882 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34883 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34884 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34885 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34886 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34887 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34888 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34889 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34890 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34891 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34892 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34893 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34894 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34895 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34896 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34897 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34898 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34899 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34900 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34901 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34902 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34903 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34904 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34905 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34906 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34907 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34908 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34909 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
34910 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34911 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"`'
34912 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
34913 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34914 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34915 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
34916 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34917 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34918 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34919 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34920 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34921 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34922 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34923 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34924 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34925 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34926 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34927 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34928 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34929 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34930 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34931 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34932 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34933 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34934 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34935 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34936 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34937 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34938 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34939 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34940 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34941 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34942 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34943 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34944 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34945 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34946 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34947 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34948 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34949 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34950 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34951 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34952 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34953 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34954 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34955 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34956 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34957 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34958 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34959 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34960 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34961 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34962 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34963 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34964 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34965 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34966 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34967 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34968 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34969 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34970 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34971 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34972 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34973 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34974 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34975 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34976 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34977 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34978 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34979 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34980 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
34981 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
34982 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34983 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34984 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34985 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34986 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34987 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34988 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34989 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34990 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34991 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34992 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34993 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34994 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34995 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34996 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34997 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34998 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34999 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35000 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
35001 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
35002 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
35003 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35004 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35005 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35006 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35007 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35008 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35009 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35010 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35011 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35012 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35013 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35014 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35015 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35016 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35017 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35018 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35019 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35020 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35021 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35022 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35023 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35024 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35025 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35026 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35027 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
35028 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35029 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35030 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35031 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35032 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35033 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35034 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35035 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35036 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35037 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35038 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35039 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35040 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35041 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
35044 LTCFLAGS='$LTCFLAGS'
35045 compiler='$compiler_DEFAULT'
35047 # A function that is used when there is no print builtin or printf.
35048 func_fallback_echo ()
35050 eval 'cat <<_LTECHO_EOF
35055 # Quote evaled strings.
35072 deplibs_check_method \
35076 sharedlib_from_linklib_cmd \
35079 archiver_list_spec \
35085 lt_cv_sys_global_symbol_pipe \
35086 lt_cv_sys_global_symbol_to_cdecl \
35087 lt_cv_sys_global_symbol_to_import \
35088 lt_cv_sys_global_symbol_to_c_name_address \
35089 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35090 lt_cv_nm_interface \
35091 nm_file_list_spec \
35092 lt_cv_truncate_bin \
35093 lt_prog_compiler_no_builtin_flag \
35094 lt_prog_compiler_pic \
35095 lt_prog_compiler_wl \
35096 lt_prog_compiler_static \
35097 lt_cv_prog_compiler_c_o \
35106 export_dynamic_flag_spec \
35107 whole_archive_flag_spec \
35108 compiler_needs_object \
35110 allow_undefined_flag \
35111 no_undefined_flag \
35112 hardcode_libdir_flag_spec \
35113 hardcode_libdir_separator \
35117 variables_saved_for_relink \
35119 library_names_spec \
35121 install_override_mode \
35125 compiler_lib_search_dirs \
35130 compiler_lib_search_path \
35134 lt_prog_compiler_no_builtin_flag_CXX \
35135 lt_prog_compiler_pic_CXX \
35136 lt_prog_compiler_wl_CXX \
35137 lt_prog_compiler_static_CXX \
35138 lt_cv_prog_compiler_c_o_CXX \
35139 export_dynamic_flag_spec_CXX \
35140 whole_archive_flag_spec_CXX \
35141 compiler_needs_object_CXX \
35143 allow_undefined_flag_CXX \
35144 no_undefined_flag_CXX \
35145 hardcode_libdir_flag_spec_CXX \
35146 hardcode_libdir_separator_CXX \
35147 exclude_expsyms_CXX \
35148 include_expsyms_CXX \
35149 file_list_spec_CXX \
35150 compiler_lib_search_dirs_CXX \
35151 predep_objects_CXX \
35152 postdep_objects_CXX \
35155 compiler_lib_search_path_CXX; do
35156 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35157 *[\\\\\\\`\\"\\\$]*)
35158 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
35161 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35166 # Double-quote double-evaled strings.
35167 for var in reload_cmds \
35168 old_postinstall_cmds \
35169 old_postuninstall_cmds \
35171 extract_expsyms_cmds \
35172 old_archive_from_new_cmds \
35173 old_archive_from_expsyms_cmds \
35175 archive_expsym_cmds \
35177 module_expsym_cmds \
35178 export_symbols_cmds \
35182 postuninstall_cmds \
35184 sys_lib_search_path_spec \
35185 configure_time_dlsearch_path \
35186 configure_time_lt_sys_library_path \
35188 old_archive_cmds_CXX \
35189 old_archive_from_new_cmds_CXX \
35190 old_archive_from_expsyms_cmds_CXX \
35192 archive_expsym_cmds_CXX \
35194 module_expsym_cmds_CXX \
35195 export_symbols_cmds_CXX \
35197 postlink_cmds_CXX; do
35198 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35199 *[\\\\\\\`\\"\\\$]*)
35200 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
35203 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35208 ac_aux_dir='$ac_aux_dir'
35210 # See if we are running on zsh, and set the options that allow our
35211 # commands through without removal of \ escapes INIT.
35212 if test -n "\${ZSH_VERSION+set}"; then
35213 setopt NO_GLOB_SUBST
35229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35231 # Handling of arguments.
35232 for ac_config_target in $ac_config_targets
35234 case $ac_config_target in
35235 "src/lib/ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lib/ares_config.h" ;;
35236 "include/ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ares_build.h" ;;
35237 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35238 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35239 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35240 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
35241 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35242 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
35243 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
35244 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
35245 "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
35247 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35252 # If the user did not use the arguments to specify the items to instantiate,
35253 # then the envvar interface is used. Set only those that are not.
35254 # We use the long form for the default assignment because of an extremely
35255 # bizarre bug on SunOS 4.1.3.
35256 if $ac_need_defaults; then
35257 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
35258 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
35259 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
35262 # Have a temporary directory for convenience. Make it in the build tree
35263 # simply because there is no reason against having it here, and in addition,
35264 # creating and moving files from /tmp can sometimes cause problems.
35265 # Hook for its removal unless debugging.
35266 # Note that there is a small window in which the directory will not be cleaned:
35267 # after its creation but before its name has been assigned to `$tmp'.
35271 trap 'exit_status=$?
35272 : "${ac_tmp:=$tmp}"
35273 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35275 trap 'as_fn_exit 1' 1 2 13 15
35277 # Create a (secure) tmp directory for tmp files.
35280 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35284 tmp=./conf$$-$RANDOM
35285 (umask 077 && mkdir "$tmp")
35286 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35289 # Set up the scripts for CONFIG_FILES section.
35290 # No need to generate them if there are no CONFIG_FILES.
35291 # This happens for instance with `./config.status config.h'.
35292 if test -n "$CONFIG_FILES"; then
35295 ac_cr=`echo X | tr X '\015'`
35296 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35297 # But we know of no other shell where ac_cr would be empty at this
35298 # point, so we can use a bashism as a fallback.
35299 if test "x$ac_cr" = x; then
35300 eval ac_cr=\$\'\\r\'
35302 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35303 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35306 ac_cs_awk_cr=$ac_cr
35309 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35314 echo "cat >conf$$subs.awk <<_ACEOF" &&
35315 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35317 } >conf$$subs.sh ||
35318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35319 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35321 for ac_last_try in false false false false false :; do
35322 . ./conf$$subs.sh ||
35323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35325 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35326 if test $ac_delim_n = $ac_delim_num; then
35328 elif $ac_last_try; then
35329 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35334 rm -f conf$$subs.sh
35336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35337 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35341 s/^/S["/; s/!.*/"]=/
35351 s/\(.\{148\}\)..*/\1/
35353 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35358 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35365 s/\(.\{148\}\)..*/\1/
35367 s/["\\]/\\&/g; s/^/"/; s/$/"/
35371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35376 ' <conf$$subs.awk | sed '
35381 ' >>$CONFIG_STATUS || ac_write_fail=1
35382 rm -f conf$$subs.awk
35383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35385 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35386 for (key in S) S_is_set[key] = 1
35392 nfields = split(line, field, "@")
35394 len = length(field[1])
35395 for (i = 2; i < nfields; i++) {
35397 keylen = length(key)
35398 if (S_is_set[key]) {
35400 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35401 len += length(value) + length(field[++i])
35412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35413 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35414 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35417 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35418 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35421 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35422 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35423 # trailing colons and then remove the whole line if VPATH becomes empty
35424 # (actually we leave an empty line to preserve line numbers).
35425 if test "x$srcdir" = x.; then
35426 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35445 fi # test -n "$CONFIG_FILES"
35447 # Set up the scripts for CONFIG_HEADERS section.
35448 # No need to generate them if there are no CONFIG_HEADERS.
35449 # This happens for instance with `./config.status Makefile'.
35450 if test -n "$CONFIG_HEADERS"; then
35451 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35455 # Transform confdefs.h into an awk script `defines.awk', embedded as
35456 # here-document in config.status, that substitutes the proper values into
35457 # config.h.in to produce config.h.
35459 # Create a delimiter string that does not exist in confdefs.h, to ease
35460 # handling of long lines.
35462 for ac_last_try in false false :; do
35463 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35464 if test -z "$ac_tt"; then
35466 elif $ac_last_try; then
35467 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35469 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35473 # For the awk script, D is an array of macro values keyed by name,
35474 # likewise P contains macro parameters if any. Preserve backslash
35475 # newline sequences.
35477 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35479 s/.\{148\}/&'"$ac_delim"'/g
35482 s/^[ ]*#[ ]*define[ ][ ]*/ /
35489 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35491 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35495 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35496 D["\1"]=" \3\\\\\\n"\\/p
35498 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35503 s/.\{148\}/&'"$ac_delim"'/g
35508 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35511 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35513 ' <confdefs.h | sed '
35514 s/'"$ac_delim"'/"\\\
35515 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35518 for (key in D) D_is_set[key] = 1
35521 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35523 split(line, arg, " ")
35524 if (arg[1] == "#") {
35528 defundef = substr(arg[1], 2)
35531 split(mac1, mac2, "(") #)
35533 prefix = substr(line, 1, index(line, defundef) - 1)
35534 if (D_is_set[macro]) {
35535 # Preserve the white space surrounding the "#".
35536 print prefix "define", macro P[macro] D[macro]
35539 # Replace #undef with comments. This is necessary, for example,
35540 # in the case of _POSIX_SOURCE, which is predefined and required
35541 # on some systems where configure will not decide to define it.
35542 if (defundef == "undef") {
35543 print "/*", prefix defundef, macro, "*/"
35551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35552 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35553 fi # test -n "$CONFIG_HEADERS"
35556 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35561 :[FHLC]) ac_mode=$ac_tag; continue;;
35563 case $ac_mode$ac_tag in
35565 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35566 :[FH]-) ac_tag=-:-;;
35567 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35584 -) ac_f="$ac_tmp/stdin";;
35585 *) # Look for the file first in the build tree, then in the source tree
35586 # (if the path is not absolute). The absolute path cannot be DOS-style,
35587 # because $ac_f cannot contain `:'.
35591 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35593 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35595 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35596 as_fn_append ac_file_inputs " '$ac_f'"
35599 # Let's still pretend it is `configure' which instantiates (i.e., don't
35600 # use $as_me), people would be surprised to read:
35601 # /* config.h. Generated by config.status. */
35602 configure_input='Generated from '`
35603 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35605 if test x"$ac_file" != x-; then
35606 configure_input="$ac_file. $configure_input"
35607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35608 printf "%s\n" "$as_me: creating $ac_file" >&6;}
35610 # Neutralize special characters interpreted by sed in replacement strings.
35611 case $configure_input in #(
35612 *\&* | *\|* | *\\* )
35613 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
35614 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35615 *) ac_sed_conf_input=$configure_input;;
35619 *:-:* | *:-) cat >"$ac_tmp/stdin" \
35620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35625 ac_dir=`$as_dirname -- "$ac_file" ||
35626 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35627 X"$ac_file" : 'X\(//\)[^/]' \| \
35628 X"$ac_file" : 'X\(//\)$' \| \
35629 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35630 printf "%s\n" X"$ac_file" |
35631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35635 /^X\(\/\/\)[^/].*/{
35648 as_dir="$ac_dir"; as_fn_mkdir_p
35652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35654 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
35655 # A ".." for each directory in $ac_dir_suffix.
35656 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35657 case $ac_top_builddir_sub in
35658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35662 ac_abs_top_builddir=$ac_pwd
35663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35664 # for backward compatibility:
35665 ac_top_builddir=$ac_top_build_prefix
35668 .) # We are building in place.
35670 ac_top_srcdir=$ac_top_builddir_sub
35671 ac_abs_top_srcdir=$ac_pwd ;;
35672 [\\/]* | ?:[\\/]* ) # Absolute name.
35673 ac_srcdir=$srcdir$ac_dir_suffix;
35674 ac_top_srcdir=$srcdir
35675 ac_abs_top_srcdir=$srcdir ;;
35676 *) # Relative name.
35677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35678 ac_top_srcdir=$ac_top_build_prefix$srcdir
35679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35691 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35692 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35694 ac_MKDIR_P=$MKDIR_P
35696 [\\/$]* | ?:[\\/]* ) ;;
35697 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35702 # If the template does not know about datarootdir, expand it.
35703 # FIXME: This hack should be removed a few years after 2.60.
35704 ac_datarootdir_hack=; ac_datarootdir_seen=
35715 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35716 *datarootdir*) ac_datarootdir_seen=yes;;
35717 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35719 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35722 ac_datarootdir_hack='
35723 s&@datadir@&$datadir&g
35724 s&@docdir@&$docdir&g
35725 s&@infodir@&$infodir&g
35726 s&@localedir@&$localedir&g
35727 s&@mandir@&$mandir&g
35728 s&\\\${datarootdir}&$datarootdir&g' ;;
35732 # Neutralize VPATH when `$srcdir' = `.'.
35733 # Shell code in configure.ac might set extrasub.
35734 # FIXME: do we really want to maintain this feature?
35735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35736 ac_sed_extra="$ac_vpsub
35739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35742 s|@configure_input@|$ac_sed_conf_input|;t t
35743 s&@top_builddir@&$ac_top_builddir_sub&;t t
35744 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35745 s&@srcdir@&$ac_srcdir&;t t
35746 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35747 s&@top_srcdir@&$ac_top_srcdir&;t t
35748 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35749 s&@builddir@&$ac_builddir&;t t
35750 s&@abs_builddir@&$ac_abs_builddir&;t t
35751 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35752 s&@INSTALL@&$ac_INSTALL&;t t
35753 s&@MKDIR_P@&$ac_MKDIR_P&;t t
35754 $ac_datarootdir_hack
35756 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35757 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35759 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35760 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35761 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35762 "$ac_tmp/out"`; test -z "$ac_out"; } &&
35763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35764 which seems to be undefined. Please make sure it is defined" >&5
35765 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35766 which seems to be undefined. Please make sure it is defined" >&2;}
35768 rm -f "$ac_tmp/stdin"
35770 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35771 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35779 if test x"$ac_file" != x-; then
35781 printf "%s\n" "/* $configure_input */" >&1 \
35782 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35783 } >"$ac_tmp/config.h" \
35784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35785 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35787 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
35790 mv "$ac_tmp/config.h" "$ac_file" \
35791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35794 printf "%s\n" "/* $configure_input */" >&1 \
35795 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35796 || as_fn_error $? "could not create -" "$LINENO" 5
35798 # Compute "$ac_file"'s index in $config_headers.
35801 for _am_header in $config_headers :; do
35802 case $_am_header in
35803 $_am_arg | $_am_arg:* )
35806 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35809 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35810 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35811 X"$_am_arg" : 'X\(//\)[^/]' \| \
35812 X"$_am_arg" : 'X\(//\)$' \| \
35813 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35814 printf "%s\n" X"$_am_arg" |
35815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35819 /^X\(\/\/\)[^/].*/{
35831 s/.*/./; q'`/stamp-h$_am_stamp_count
35834 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35835 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
35840 case $ac_file$ac_mode in
35841 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35842 # Older Autoconf quotes --file arguments for eval, but not when files
35843 # are listed without --file. Let's play safe and only enable the eval
35844 # if we detect the quoting.
35845 # TODO: see whether this extra hack can be removed once we start
35846 # requiring Autoconf 2.70 or later.
35847 case $CONFIG_FILES in #(
35849 eval set x "$CONFIG_FILES" ;; #(
35851 set x $CONFIG_FILES ;; #(
35856 # Used to flag and report bootstrapping failures.
35860 # Strip MF so we end up with the name of the file.
35861 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
35862 # Check whether this is an Automake generated Makefile which includes
35863 # dependency-tracking related rules and includes.
35864 # Grep'ing the whole file directly is not great: AIX grep has a line
35865 # limit of 2048, but all sed's we know have understand at least 4000.
35866 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
35868 am_dirpart=`$as_dirname -- "$am_mf" ||
35869 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35870 X"$am_mf" : 'X\(//\)[^/]' \| \
35871 X"$am_mf" : 'X\(//\)$' \| \
35872 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
35873 printf "%s\n" X"$am_mf" |
35874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35878 /^X\(\/\/\)[^/].*/{
35891 am_filepart=`$as_basename -- "$am_mf" ||
35892 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
35893 X"$am_mf" : 'X\(//\)$' \| \
35894 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
35895 printf "%s\n" X/"$am_mf" |
35896 sed '/^.*\/\([^/][^/]*\)\/*$/{
35909 { echo "$as_me:$LINENO: cd "$am_dirpart" \
35910 && sed -e '/# am--include-marker/d' "$am_filepart" \
35911 | $MAKE -f - am--depfiles" >&5
35912 (cd "$am_dirpart" \
35913 && sed -e '/# am--include-marker/d' "$am_filepart" \
35914 | $MAKE -f - am--depfiles) >&5 2>&5
35916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917 (exit $ac_status); } || am_rc=$?
35919 if test $am_rc -ne 0; then
35920 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35921 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35922 as_fn_error $? "Something went wrong bootstrapping makefile fragments
35923 for automatic dependency tracking. If GNU make was not used, consider
35924 re-running the configure script with MAKE=\"gmake\" (or whatever is
35925 necessary). You can also try re-running configure with the
35926 '--disable-dependency-tracking' option to at least be able to build
35927 the package (albeit without support for automatic dependency tracking).
35928 See \`config.log' for more details" "$LINENO" 5; }
35930 { am_dirpart=; unset am_dirpart;}
35931 { am_filepart=; unset am_filepart;}
35932 { am_mf=; unset am_mf;}
35933 { am_rc=; unset am_rc;}
35934 rm -f conftest-deps.mk
35939 # See if we are running on zsh, and set the options that allow our
35940 # commands through without removal of \ escapes.
35941 if test -n "${ZSH_VERSION+set}"; then
35942 setopt NO_GLOB_SUBST
35946 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35949 cat <<_LT_EOF >> "$cfgfile"
35951 # Generated automatically by $as_me ($PACKAGE) $VERSION
35952 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35954 # Provide generalized library-building support services.
35955 # Written by Gordon Matzigkeit, 1996
35957 # Copyright (C) 2014 Free Software Foundation, Inc.
35958 # This is free software; see the source for copying conditions. There is NO
35959 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35961 # GNU Libtool is free software; you can redistribute it and/or modify
35962 # it under the terms of the GNU General Public License as published by
35963 # the Free Software Foundation; either version 2 of of the License, or
35964 # (at your option) any later version.
35966 # As a special exception to the GNU General Public License, if you
35967 # distribute this file as part of a program or library that is built
35968 # using GNU Libtool, you may include this file under the same
35969 # distribution terms that you use for the rest of that program.
35971 # GNU Libtool is distributed in the hope that it will be useful, but
35972 # WITHOUT ANY WARRANTY; without even the implied warranty of
35973 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35974 # GNU General Public License for more details.
35976 # You should have received a copy of the GNU General Public License
35977 # along with this program. If not, see <http://www.gnu.org/licenses/>.
35980 # The names of the tagged configurations supported by this script.
35981 available_tags='CXX '
35983 # Configured defaults for sys_lib_dlsearch_path munging.
35984 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35986 # ### BEGIN LIBTOOL CONFIG
35988 # Which release of libtool.m4 was used?
35989 macro_version=$macro_version
35990 macro_revision=$macro_revision
35992 # Assembler program.
35995 # DLL creation program.
35996 DLLTOOL=$lt_DLLTOOL
35998 # Object dumper program.
35999 OBJDUMP=$lt_OBJDUMP
36001 # Whether or not to build shared libraries.
36002 build_libtool_libs=$enable_shared
36004 # Whether or not to build static libraries.
36005 build_old_libs=$enable_static
36007 # What type of objects to build.
36010 # Whether or not to optimize for fast installation.
36011 fast_install=$enable_fast_install
36013 # Shared archive member basename,for filename based shared library versioning on AIX.
36014 shared_archive_member_spec=$shared_archive_member_spec
36016 # Shell to use when invoking shell scripts.
36019 # An echo program that protects backslashes.
36022 # The PATH separator for the build system.
36023 PATH_SEPARATOR=$lt_PATH_SEPARATOR
36026 host_alias=$host_alias
36030 # The build system.
36031 build_alias=$build_alias
36035 # A sed program that does not truncate output.
36038 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36039 Xsed="\$SED -e 1s/^X//"
36041 # A grep program that handles long lines.
36047 # A literal string matcher.
36050 # A BSD- or MS-compatible name lister.
36053 # Whether we need soft or hard links.
36056 # What is the maximum length of a command?
36057 max_cmd_len=$max_cmd_len
36059 # Object file suffix (normally "o").
36062 # Executable file suffix (normally "").
36065 # whether the shell understands "unset".
36068 # turn spaces into newlines.
36071 # turn newlines into spaces.
36074 # convert \$build file names to \$host format.
36075 to_host_file_cmd=$lt_cv_to_host_file_cmd
36077 # convert \$build files to toolchain format.
36078 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36080 # Method to check whether dependent libraries are shared objects.
36081 deplibs_check_method=$lt_deplibs_check_method
36083 # Command to use when deplibs_check_method = "file_magic".
36084 file_magic_cmd=$lt_file_magic_cmd
36086 # How to find potential files when deplibs_check_method = "file_magic".
36087 file_magic_glob=$lt_file_magic_glob
36089 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36090 want_nocaseglob=$lt_want_nocaseglob
36092 # Command to associate shared and link libraries.
36093 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36098 # Flags to create an archive.
36099 AR_FLAGS=$lt_AR_FLAGS
36101 # How to feed a file listing to the archiver.
36102 archiver_list_spec=$lt_archiver_list_spec
36104 # A symbol stripping program.
36107 # Commands used to install an old-style archive.
36109 old_postinstall_cmds=$lt_old_postinstall_cmds
36110 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36112 # Whether to use a lock for old archive extraction.
36113 lock_old_archive_extraction=$lock_old_archive_extraction
36118 # LTCC compiler flags.
36119 LTCFLAGS=$lt_CFLAGS
36121 # Take the output of nm and produce a listing of raw symbols and C names.
36122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36124 # Transform the output of nm in a proper C declaration.
36125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36127 # Transform the output of nm into a list of symbols to manually relocate.
36128 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
36130 # Transform the output of nm in a C name address pair.
36131 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36133 # Transform the output of nm in a C name address pair when lib prefix is needed.
36134 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36136 # The name lister interface.
36137 nm_interface=$lt_lt_cv_nm_interface
36139 # Specify filename containing input files for \$NM.
36140 nm_file_list_spec=$lt_nm_file_list_spec
36142 # The root where to search for dependent libraries,and where our libraries should be installed.
36143 lt_sysroot=$lt_sysroot
36145 # Command to truncate a binary pipe.
36146 lt_truncate_bin=$lt_lt_cv_truncate_bin
36148 # The name of the directory that contains temporary libtool files.
36151 # Used to examine libraries when file_magic_cmd begins with "file".
36152 MAGIC_CMD=$MAGIC_CMD
36154 # Must we lock files when doing compilation?
36155 need_locks=$lt_need_locks
36158 MANIFEST_TOOL=$lt_MANIFEST_TOOL
36160 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36161 DSYMUTIL=$lt_DSYMUTIL
36163 # Tool to change global to local symbols on Mac OS X.
36166 # Tool to manipulate fat objects and archives on Mac OS X.
36169 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36172 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36173 OTOOL64=$lt_OTOOL64
36175 # Old archive suffix (normally "a").
36178 # Shared library suffix (normally ".so").
36179 shrext_cmds=$lt_shrext_cmds
36181 # The commands to extract the exported symbol list from a shared archive.
36182 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36184 # Variables whose values should be saved in libtool wrapper scripts and
36185 # restored at link time.
36186 variables_saved_for_relink=$lt_variables_saved_for_relink
36188 # Do we need the "lib" prefix for modules?
36189 need_lib_prefix=$need_lib_prefix
36191 # Do we need a version for libraries?
36192 need_version=$need_version
36194 # Library versioning type.
36195 version_type=$version_type
36197 # Shared library runtime path variable.
36198 runpath_var=$runpath_var
36200 # Shared library path variable.
36201 shlibpath_var=$shlibpath_var
36203 # Is shlibpath searched before the hard-coded library search path?
36204 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36206 # Format of library name prefix.
36207 libname_spec=$lt_libname_spec
36209 # List of archive names. First name is the real one, the rest are links.
36210 # The last name is the one that the linker finds with -lNAME
36211 library_names_spec=$lt_library_names_spec
36213 # The coded name of the library, if different from the real name.
36214 soname_spec=$lt_soname_spec
36216 # Permission mode override for installation of shared libraries.
36217 install_override_mode=$lt_install_override_mode
36219 # Command to use after installation of a shared archive.
36220 postinstall_cmds=$lt_postinstall_cmds
36222 # Command to use after uninstallation of a shared archive.
36223 postuninstall_cmds=$lt_postuninstall_cmds
36225 # Commands used to finish a libtool library installation in a directory.
36226 finish_cmds=$lt_finish_cmds
36228 # As "finish_cmds", except a single script fragment to be evaled but
36230 finish_eval=$lt_finish_eval
36232 # Whether we should hardcode library paths into libraries.
36233 hardcode_into_libs=$hardcode_into_libs
36235 # Compile-time system search path for libraries.
36236 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36238 # Detected run-time system search path for libraries.
36239 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
36241 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
36242 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
36244 # Whether dlopen is supported.
36245 dlopen_support=$enable_dlopen
36247 # Whether dlopen of programs is supported.
36248 dlopen_self=$enable_dlopen_self
36250 # Whether dlopen of statically linked programs is supported.
36251 dlopen_self_static=$enable_dlopen_self_static
36253 # Commands to strip libraries.
36254 old_striplib=$lt_old_striplib
36255 striplib=$lt_striplib
36258 # The linker used to build libraries.
36261 # How to create reloadable object files.
36262 reload_flag=$lt_reload_flag
36263 reload_cmds=$lt_reload_cmds
36265 # Commands used to build an old-style archive.
36266 old_archive_cmds=$lt_old_archive_cmds
36268 # A language specific compiler.
36271 # Is the compiler the GNU compiler?
36274 # Compiler flag to turn off builtin functions.
36275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36277 # Additional compiler flags for building library objects.
36278 pic_flag=$lt_lt_prog_compiler_pic
36280 # How to pass a linker flag through the compiler.
36281 wl=$lt_lt_prog_compiler_wl
36283 # Compiler flag to prevent dynamic linking.
36284 link_static_flag=$lt_lt_prog_compiler_static
36286 # Does compiler simultaneously support -c and -o options?
36287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36289 # Whether or not to add -lc for building shared libraries.
36290 build_libtool_need_lc=$archive_cmds_need_lc
36292 # Whether or not to disallow shared libs when runtime libs are static.
36293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36295 # Compiler flag to allow reflexive dlopens.
36296 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36298 # Compiler flag to generate shared objects directly from archives.
36299 whole_archive_flag_spec=$lt_whole_archive_flag_spec
36301 # Whether the compiler copes with passing no objects directly.
36302 compiler_needs_object=$lt_compiler_needs_object
36304 # Create an old-style archive from a shared archive.
36305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36307 # Create a temporary old-style archive to link instead of a shared archive.
36308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36310 # Commands used to build a shared archive.
36311 archive_cmds=$lt_archive_cmds
36312 archive_expsym_cmds=$lt_archive_expsym_cmds
36314 # Commands used to build a loadable module if different from building
36315 # a shared archive.
36316 module_cmds=$lt_module_cmds
36317 module_expsym_cmds=$lt_module_expsym_cmds
36319 # Whether we are building with GNU ld or not.
36320 with_gnu_ld=$lt_with_gnu_ld
36322 # Flag that allows shared libraries with undefined symbols to be built.
36323 allow_undefined_flag=$lt_allow_undefined_flag
36325 # Flag that enforces no undefined symbols.
36326 no_undefined_flag=$lt_no_undefined_flag
36328 # Flag to hardcode \$libdir into a binary during linking.
36329 # This must work even if \$libdir does not exist
36330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36332 # Whether we need a single "-rpath" flag with a separated argument.
36333 hardcode_libdir_separator=$lt_hardcode_libdir_separator
36335 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
36336 # DIR into the resulting binary.
36337 hardcode_direct=$hardcode_direct
36339 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
36340 # DIR into the resulting binary and the resulting library dependency is
36341 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
36342 # library is relocated.
36343 hardcode_direct_absolute=$hardcode_direct_absolute
36345 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36346 # into the resulting binary.
36347 hardcode_minus_L=$hardcode_minus_L
36349 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36350 # into the resulting binary.
36351 hardcode_shlibpath_var=$hardcode_shlibpath_var
36353 # Set to "yes" if building a shared library automatically hardcodes DIR
36354 # into the library and all subsequent libraries and executables linked
36356 hardcode_automatic=$hardcode_automatic
36358 # Set to yes if linker adds runtime paths of dependent libraries
36359 # to runtime path list.
36360 inherit_rpath=$inherit_rpath
36362 # Whether libtool must link a program against all its dependency libraries.
36363 link_all_deplibs=$link_all_deplibs
36365 # Set to "yes" if exported symbols are required.
36366 always_export_symbols=$always_export_symbols
36368 # The commands to list exported symbols.
36369 export_symbols_cmds=$lt_export_symbols_cmds
36371 # Symbols that should not be listed in the preloaded symbols.
36372 exclude_expsyms=$lt_exclude_expsyms
36374 # Symbols that must always be exported.
36375 include_expsyms=$lt_include_expsyms
36377 # Commands necessary for linking programs (against libraries) with templates.
36378 prelink_cmds=$lt_prelink_cmds
36380 # Commands necessary for finishing linking programs.
36381 postlink_cmds=$lt_postlink_cmds
36383 # Specify filename containing input files.
36384 file_list_spec=$lt_file_list_spec
36386 # How to hardcode a shared library path into an executable.
36387 hardcode_action=$hardcode_action
36389 # The directories searched by this compiler when creating a shared library.
36390 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36392 # Dependencies to place before and after the objects being linked to
36393 # create a shared library.
36394 predep_objects=$lt_predep_objects
36395 postdep_objects=$lt_postdep_objects
36396 predeps=$lt_predeps
36397 postdeps=$lt_postdeps
36399 # The library search path used internally by the compiler when linking
36400 # a shared library.
36401 compiler_lib_search_path=$lt_compiler_lib_search_path
36403 # ### END LIBTOOL CONFIG
36407 cat <<'_LT_EOF' >> "$cfgfile"
36409 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
36411 # func_munge_path_list VARIABLE PATH
36412 # -----------------------------------
36413 # VARIABLE is name of variable containing _space_ separated list of
36414 # directories to be munged by the contents of PATH, which is string
36417 # string "DIR[ DIR]" will be prepended to VARIABLE
36419 # string "DIR[ DIR]" will be appended to VARIABLE
36420 # "DIRP[:DIRP]::[DIRA:]DIRA"
36421 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
36422 # "DIRA[ DIRA]" will be appended to VARIABLE
36424 # VARIABLE will be replaced by "DIR[ DIR]"
36425 func_munge_path_list ()
36431 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
36434 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
36437 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
36438 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
36441 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
36447 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
36448 func_cc_basename ()
36450 for cc_temp in $*""; do
36452 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
36453 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
36458 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
36462 # ### END FUNCTIONS SHARED WITH CONFIGURE
36468 cat <<\_LT_EOF >> "$cfgfile"
36469 # AIX sometimes has problems with the GCC collect2 program. For some
36470 # reason, if we set the COLLECT_NAMES environment variable, the problems
36471 # vanish in a puff of smoke.
36472 if test set != "${COLLECT_NAMES+set}"; then
36474 export COLLECT_NAMES
36482 ltmain=$ac_aux_dir/ltmain.sh
36485 # We use sed instead of cat because bash on DJGPP gets confused if
36486 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36487 # text mode, it properly converts lines to CR/LF. This bash problem
36488 # is reportedly fixed, but why not run on old versions too?
36489 sed '$q' "$ltmain" >> "$cfgfile" \
36490 || (rm -f "$cfgfile"; exit 1)
36492 mv -f "$cfgfile" "$ofile" ||
36493 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36497 cat <<_LT_EOF >> "$ofile"
36499 # ### BEGIN LIBTOOL TAG CONFIG: CXX
36501 # The linker used to build libraries.
36504 # How to create reloadable object files.
36505 reload_flag=$lt_reload_flag_CXX
36506 reload_cmds=$lt_reload_cmds_CXX
36508 # Commands used to build an old-style archive.
36509 old_archive_cmds=$lt_old_archive_cmds_CXX
36511 # A language specific compiler.
36512 CC=$lt_compiler_CXX
36514 # Is the compiler the GNU compiler?
36517 # Compiler flag to turn off builtin functions.
36518 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36520 # Additional compiler flags for building library objects.
36521 pic_flag=$lt_lt_prog_compiler_pic_CXX
36523 # How to pass a linker flag through the compiler.
36524 wl=$lt_lt_prog_compiler_wl_CXX
36526 # Compiler flag to prevent dynamic linking.
36527 link_static_flag=$lt_lt_prog_compiler_static_CXX
36529 # Does compiler simultaneously support -c and -o options?
36530 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36532 # Whether or not to add -lc for building shared libraries.
36533 build_libtool_need_lc=$archive_cmds_need_lc_CXX
36535 # Whether or not to disallow shared libs when runtime libs are static.
36536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36538 # Compiler flag to allow reflexive dlopens.
36539 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36541 # Compiler flag to generate shared objects directly from archives.
36542 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36544 # Whether the compiler copes with passing no objects directly.
36545 compiler_needs_object=$lt_compiler_needs_object_CXX
36547 # Create an old-style archive from a shared archive.
36548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36550 # Create a temporary old-style archive to link instead of a shared archive.
36551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36553 # Commands used to build a shared archive.
36554 archive_cmds=$lt_archive_cmds_CXX
36555 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36557 # Commands used to build a loadable module if different from building
36558 # a shared archive.
36559 module_cmds=$lt_module_cmds_CXX
36560 module_expsym_cmds=$lt_module_expsym_cmds_CXX
36562 # Whether we are building with GNU ld or not.
36563 with_gnu_ld=$lt_with_gnu_ld_CXX
36565 # Flag that allows shared libraries with undefined symbols to be built.
36566 allow_undefined_flag=$lt_allow_undefined_flag_CXX
36568 # Flag that enforces no undefined symbols.
36569 no_undefined_flag=$lt_no_undefined_flag_CXX
36571 # Flag to hardcode \$libdir into a binary during linking.
36572 # This must work even if \$libdir does not exist
36573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36575 # Whether we need a single "-rpath" flag with a separated argument.
36576 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36578 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
36579 # DIR into the resulting binary.
36580 hardcode_direct=$hardcode_direct_CXX
36582 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
36583 # DIR into the resulting binary and the resulting library dependency is
36584 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
36585 # library is relocated.
36586 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36588 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36589 # into the resulting binary.
36590 hardcode_minus_L=$hardcode_minus_L_CXX
36592 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36593 # into the resulting binary.
36594 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36596 # Set to "yes" if building a shared library automatically hardcodes DIR
36597 # into the library and all subsequent libraries and executables linked
36599 hardcode_automatic=$hardcode_automatic_CXX
36601 # Set to yes if linker adds runtime paths of dependent libraries
36602 # to runtime path list.
36603 inherit_rpath=$inherit_rpath_CXX
36605 # Whether libtool must link a program against all its dependency libraries.
36606 link_all_deplibs=$link_all_deplibs_CXX
36608 # Set to "yes" if exported symbols are required.
36609 always_export_symbols=$always_export_symbols_CXX
36611 # The commands to list exported symbols.
36612 export_symbols_cmds=$lt_export_symbols_cmds_CXX
36614 # Symbols that should not be listed in the preloaded symbols.
36615 exclude_expsyms=$lt_exclude_expsyms_CXX
36617 # Symbols that must always be exported.
36618 include_expsyms=$lt_include_expsyms_CXX
36620 # Commands necessary for linking programs (against libraries) with templates.
36621 prelink_cmds=$lt_prelink_cmds_CXX
36623 # Commands necessary for finishing linking programs.
36624 postlink_cmds=$lt_postlink_cmds_CXX
36626 # Specify filename containing input files.
36627 file_list_spec=$lt_file_list_spec_CXX
36629 # How to hardcode a shared library path into an executable.
36630 hardcode_action=$hardcode_action_CXX
36632 # The directories searched by this compiler when creating a shared library.
36633 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36635 # Dependencies to place before and after the objects being linked to
36636 # create a shared library.
36637 predep_objects=$lt_predep_objects_CXX
36638 postdep_objects=$lt_postdep_objects_CXX
36639 predeps=$lt_predeps_CXX
36640 postdeps=$lt_postdeps_CXX
36642 # The library search path used internally by the compiler when linking
36643 # a shared library.
36644 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36646 # ### END LIBTOOL TAG CONFIG: CXX
36657 ac_clean_files=$ac_clean_files_save
36659 test $ac_write_fail = 0 ||
36660 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36663 # configure is writing to config.log, and then calls config.status.
36664 # config.status does its own redirection, appending to config.log.
36665 # Unfortunately, on DOS this fails, as config.log is still kept open
36666 # by configure, so config.status won't be able to write to it; its
36667 # output is simply discarded. So we exec the FD to /dev/null,
36668 # effectively closing config.log, so it can be properly (re)opened and
36669 # appended to by config.status. When coming back to configure, we
36670 # need to make the FD available again.
36671 if test "$no_create" != yes; then
36673 ac_config_status_args=
36674 test "$silent" = yes &&
36675 ac_config_status_args="$ac_config_status_args --quiet"
36677 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36679 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36680 # would make configure fail if this is the last instruction.
36681 $ac_cs_success || as_fn_exit 1
36685 # CONFIG_SUBDIRS section.
36687 if test "$no_recursion" != yes; then
36689 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
36690 # so they do not pile up.
36691 ac_sub_configure_args=
36693 eval "set x $ac_configure_args"
36697 if test -n "$ac_prev"; then
36702 -cache-file | --cache-file | --cache-fil | --cache-fi \
36703 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36704 ac_prev=cache_file ;;
36705 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36706 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36709 --config-cache | -C)
36711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36715 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36717 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36719 --disable-option-checking)
36723 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36725 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
36729 # Always prepend --prefix to ensure using the same prefix
36730 # in subdir configurations.
36731 ac_arg="--prefix=$prefix"
36733 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36735 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
36738 if test "$silent" = yes; then
36739 ac_sub_configure_args="--silent $ac_sub_configure_args"
36742 # Always prepend --disable-option-checking to silence warnings, since
36743 # different subdirs can have different --enable and --with options.
36744 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
36747 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36749 # Do not complain, so a configure script can configure whichever
36750 # parts of a large source tree are present.
36751 test -d "$srcdir/$ac_dir" || continue
36753 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
36755 printf "%s\n" "$ac_msg" >&6
36756 as_dir="$ac_dir"; as_fn_mkdir_p
36760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36762 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
36763 # A ".." for each directory in $ac_dir_suffix.
36764 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36765 case $ac_top_builddir_sub in
36766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36770 ac_abs_top_builddir=$ac_pwd
36771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36772 # for backward compatibility:
36773 ac_top_builddir=$ac_top_build_prefix
36776 .) # We are building in place.
36778 ac_top_srcdir=$ac_top_builddir_sub
36779 ac_abs_top_srcdir=$ac_pwd ;;
36780 [\\/]* | ?:[\\/]* ) # Absolute name.
36781 ac_srcdir=$srcdir$ac_dir_suffix;
36782 ac_top_srcdir=$srcdir
36783 ac_abs_top_srcdir=$srcdir ;;
36784 *) # Relative name.
36785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36786 ac_top_srcdir=$ac_top_build_prefix$srcdir
36787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36794 # Check for configure.gnu first; this name is used for a wrapper for
36795 # Metaconfig's "Configure" on case-insensitive file systems.
36796 if test -f "$ac_srcdir/configure.gnu"; then
36797 ac_sub_configure=$ac_srcdir/configure.gnu
36798 elif test -f "$ac_srcdir/configure"; then
36799 ac_sub_configure=$ac_srcdir/configure
36801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
36802 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36806 # The recursion is here.
36807 if test -n "$ac_sub_configure"; then
36808 # Make the cache file name correct relative to the subdirectory.
36809 case $cache_file in
36810 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36811 *) # Relative name.
36812 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36816 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36817 # The eval makes quoting arguments work.
36818 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36819 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36820 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
36826 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36828 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36832 ## ---------------------------------- ##
36833 ## Start of distclean amending code ##
36834 ## ---------------------------------- ##
36836 for xc_subdir in '.'
36839 if test ! -f "$xc_subdir/Makefile"; then
36840 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
36844 # Fetch dependency tracking file list from Makefile include lines.
36846 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
36847 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
36849 # --disable-dependency-tracking might have been used, consequently
36850 # there is nothing to amend without a dependency tracking file list.
36852 if test $xc_cnt_words -gt 0; then
36854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
36855 printf "%s\n" "$as_me: amending $xc_subdir/Makefile" >&6;}
36857 # Build Makefile specific patch hunk.
36859 xc_p="$xc_subdir/xc_patch.tmp"
36861 xc_rm_depfiles=`echo "$xc_inc_lines" \
36862 | $SED 's%include% -rm -f%' 2>/dev/null`
36864 xc_dep_subdirs=`echo "$xc_inc_lines" \
36865 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
36866 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
36869 echo "$xc_rm_depfiles" >$xc_p
36871 for xc_dep_dir in $xc_dep_subdirs; do
36872 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
36873 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
36874 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
36875 echo "${xc_tab}fi" >>$xc_p
36878 # Build Makefile patching sed scripts.
36880 xc_s1="$xc_subdir/xc_script_1.tmp"
36881 xc_s2="$xc_subdir/xc_script_2.tmp"
36882 xc_s3="$xc_subdir/xc_script_3.tmp"
36884 cat >$xc_s1 <<\_EOT
36885 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
36886 s/^.*(DEPDIR)/___xc_depdir_line___/
36888 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
36889 s/^.*(DEPDIR)/___xc_depdir_line___/
36893 cat >$xc_s2 <<\_EOT
36894 /___xc_depdir_line___$/{
36896 /___xc_depdir_line___$/D
36901 /^___xc_depdir_line___/{
36907 # Apply patch to Makefile and cleanup.
36909 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
36910 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
36911 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
36913 if test -f "$xc_subdir/Makefile.tmp3"; then
36914 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
36917 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
36918 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
36919 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
36921 test -f "$xc_p" && rm -f "$xc_p"
36922 test -f "$xc_s1" && rm -f "$xc_s1"
36923 test -f "$xc_s2" && rm -f "$xc_s2"
36924 test -f "$xc_s3" && rm -f "$xc_s3"
36930 ## -------------------------------- ##
36931 ## End of distclean amending code ##
36932 ## -------------------------------- ##