2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
595 ac_unique_file
="tree.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
633 ac_subst_vars
='LTLIBOBJS
641 enable_libgdiagnostics
669 common_out_object_file
685 gcc_gxx_libcxx_include_dir_add_sysroot
686 gcc_gxx_libcxx_include_dir
687 gcc_gxx_include_dir_add_sysroot
694 user_headers_inc_next_post
695 user_headers_inc_next_pre
697 TM_MULTILIB_EXCEPTIONS_CONFIG
707 build_xm_include_list
709 build_install_headers_dir
711 all_selected_languages
714 all_lang_configurefrags
722 DO_LINK_SERIALIZATION
734 ld_version_script_option
736 ORIGINAL_DSYMUTIL_FOR_TARGET
741 ORIGINAL_NM_FOR_TARGET
743 ORIGINAL_LD_GOLD_FOR_TARGET
744 ORIGINAL_LD_BFD_FOR_TARGET
745 ORIGINAL_LD_FOR_TARGET
746 ORIGINAL_PLUGIN_LD_FOR_TARGET
748 ORIGINAL_AS_FOR_TARGET
750 ENABLE_DARWIN_AT_RPATH_FALSE
751 ENABLE_DARWIN_AT_RPATH_TRUE
775 BUILD_SYSTEM_HEADER_DIR
802 NATIVE_SYSTEM_HEADER_DIR
828 MAKEINFO_TOC_INLINE_FLAG
842 omp_device_property_deps
843 omp_device_properties
845 real_target_noncanonical
846 enable_as_accelerator
856 DEFAULT_INSNEMIT_PARTITIONS
857 DEFAULT_MATCHPD_PARTITIONS
864 valgrind_path_defines
895 CROSS_SYSTEM_HEADER_DIR
896 TARGET_SYSTEM_ROOT_DEFINE
898 SYSROOT_CFLAGS_FOR_TARGET
944 program_transform_name
955 ac_subst_files
='option_includes
958 enable_option_checking
961 with_native_system_header_dir
965 with_gxx_libcxx_include_dir
967 enable_generated_files_in_srcdir
975 enable_build_format_warnings
979 enable_gather_detailed_mem_stats
980 enable_valgrind_annotations
983 with_stack_clash_protection_guard_size
984 with_matchpd_partitions
985 with_insnemit_partitions
1000 with_documentation_root_url
1001 with_changes_root_url
1004 with_multilib_generator
1009 with_libiconv_prefix
1011 enable_sjlj_exceptions
1012 enable_win32_utf8_manifest
1013 with_gcc_major_version_only
1018 enable_mingw_wildcard
1019 enable_large_address_aware
1020 enable_leading_mingw64_underscores
1022 enable_frame_pointer
1023 enable_win32_registry
1028 enable_darwin_at_rpath
1029 with_darwin_extra_rpath
1033 enable_gnu_indirect_function
1034 enable_initfini_array
1036 enable_newlib_nano_formatted_io
1037 enable_standard_branch_protection
1038 enable_fix_cortex_a53_835769
1039 enable_fix_cortex_a53_843419
1041 enable_gnu_unique_object
1042 enable_linker_build_id
1045 with_long_double_128
1046 with_long_double_format
1049 enable_maintainer_mode
1051 enable_link_serialization
1052 enable_version_specific_runtime_libs
1056 enable_libgdiagnostics
1057 enable_host_bind_now
1058 enable_libquadmath_support
1059 with_linker_hash_style
1060 with_diagnostics_color
1061 with_diagnostics_urls
1064 enable_s390_excess_float_precision
1066 ac_precious_vars
='build_alias
1085 # Initialize some variables set by options.
1087 ac_init_version
=false
1088 ac_unrecognized_opts
=
1089 ac_unrecognized_sep
=
1090 # The variables have the same names as the options, with
1091 # dashes changed to underlines.
1092 cache_file
=/dev
/null
1099 program_transform_name
=s
,x
,x
,
1107 # Installation directory options.
1108 # These are left unexpanded so users can "make install exec_prefix=/foo"
1109 # and all the variables that are supposed to be based on exec_prefix
1110 # by default will actually change.
1111 # Use braces instead of parens because sh, perl, etc. also accept them.
1112 # (The list follows the same order as the GNU Coding Standards.)
1113 bindir
='${exec_prefix}/bin'
1114 sbindir
='${exec_prefix}/sbin'
1115 libexecdir
='${exec_prefix}/libexec'
1116 datarootdir
='${prefix}/share'
1117 datadir
='${datarootdir}'
1118 sysconfdir
='${prefix}/etc'
1119 sharedstatedir
='${prefix}/com'
1120 localstatedir
='${prefix}/var'
1121 includedir
='${prefix}/include'
1122 oldincludedir
='/usr/include'
1123 docdir
='${datarootdir}/doc/${PACKAGE}'
1124 infodir
='${datarootdir}/info'
1129 libdir
='${exec_prefix}/lib'
1130 localedir
='${datarootdir}/locale'
1131 mandir
='${datarootdir}/man'
1137 # If the previous option needs an argument, assign it.
1138 if test -n "$ac_prev"; then
1139 eval $ac_prev=\
$ac_option
1145 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1150 # Accept the important Cygnus configure options, so we can diagnose typos.
1152 case $ac_dashdash$ac_option in
1156 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1158 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1159 bindir
=$ac_optarg ;;
1161 -build |
--build |
--buil |
--bui |
--bu)
1162 ac_prev
=build_alias
;;
1163 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1164 build_alias
=$ac_optarg ;;
1166 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1167 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1168 ac_prev
=cache_file
;;
1169 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1170 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1171 cache_file
=$ac_optarg ;;
1173 --config-cache |
-C)
1174 cache_file
=config.cache
;;
1176 -datadir |
--datadir |
--datadi |
--datad)
1178 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1179 datadir
=$ac_optarg ;;
1181 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1182 |
--dataroo |
--dataro |
--datar)
1183 ac_prev
=datarootdir
;;
1184 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1185 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1186 datarootdir
=$ac_optarg ;;
1188 -disable-* |
--disable-*)
1189 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1192 as_fn_error $?
"invalid feature name: $ac_useropt"
1193 ac_useropt_orig
=$ac_useropt
1194 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "enable_
$ac_useropt"
1199 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1200 ac_unrecognized_sep
=', ';;
1202 eval enable_
$ac_useropt=no
;;
1204 -docdir |
--docdir |
--docdi |
--doc |
--do)
1206 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1207 docdir
=$ac_optarg ;;
1209 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1211 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1212 dvidir
=$ac_optarg ;;
1214 -enable-* |
--enable-*)
1215 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1218 as_fn_error $?
"invalid feature name: $ac_useropt"
1219 ac_useropt_orig
=$ac_useropt
1220 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1223 "enable_
$ac_useropt"
1225 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1226 ac_unrecognized_sep
=', ';;
1228 eval enable_
$ac_useropt=\
$ac_optarg ;;
1230 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1231 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1232 |
--exec |
--exe |
--ex)
1233 ac_prev
=exec_prefix
;;
1234 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1235 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1236 |
--exec=* |
--exe=* |
--ex=*)
1237 exec_prefix
=$ac_optarg ;;
1239 -gas |
--gas |
--ga |
--g)
1240 # Obsolete; use --with-gas.
1243 -help |
--help |
--hel |
--he |
-h)
1244 ac_init_help
=long
;;
1245 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1246 ac_init_help
=recursive
;;
1247 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1248 ac_init_help
=short
;;
1250 -host |
--host |
--hos |
--ho)
1251 ac_prev
=host_alias
;;
1252 -host=* |
--host=* |
--hos=* |
--ho=*)
1253 host_alias
=$ac_optarg ;;
1255 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1257 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1259 htmldir
=$ac_optarg ;;
1261 -includedir |
--includedir |
--includedi |
--included |
--include \
1262 |
--includ |
--inclu |
--incl |
--inc)
1263 ac_prev
=includedir
;;
1264 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1265 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1266 includedir
=$ac_optarg ;;
1268 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1270 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1271 infodir
=$ac_optarg ;;
1273 -libdir |
--libdir |
--libdi |
--libd)
1275 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1276 libdir
=$ac_optarg ;;
1278 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1279 |
--libexe |
--libex |
--libe)
1280 ac_prev
=libexecdir
;;
1281 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1282 |
--libexe=* |
--libex=* |
--libe=*)
1283 libexecdir
=$ac_optarg ;;
1285 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1286 ac_prev
=localedir
;;
1287 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1288 localedir
=$ac_optarg ;;
1290 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1291 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1292 ac_prev
=localstatedir
;;
1293 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1294 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1295 localstatedir
=$ac_optarg ;;
1297 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1299 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1300 mandir
=$ac_optarg ;;
1302 -nfp |
--nfp |
--nf)
1303 # Obsolete; use --without-fp.
1306 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1307 |
--no-cr |
--no-c |
-n)
1310 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1311 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1314 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1315 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1316 |
--oldin |
--oldi |
--old |
--ol |
--o)
1317 ac_prev
=oldincludedir
;;
1318 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1319 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1320 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1321 oldincludedir
=$ac_optarg ;;
1323 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1325 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1326 prefix
=$ac_optarg ;;
1328 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1329 |
--program-pre |
--program-pr |
--program-p)
1330 ac_prev
=program_prefix
;;
1331 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1332 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1333 program_prefix
=$ac_optarg ;;
1335 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1336 |
--program-suf |
--program-su |
--program-s)
1337 ac_prev
=program_suffix
;;
1338 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1339 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1340 program_suffix
=$ac_optarg ;;
1342 -program-transform-name |
--program-transform-name \
1343 |
--program-transform-nam |
--program-transform-na \
1344 |
--program-transform-n |
--program-transform- \
1345 |
--program-transform |
--program-transfor \
1346 |
--program-transfo |
--program-transf \
1347 |
--program-trans |
--program-tran \
1348 |
--progr-tra |
--program-tr |
--program-t)
1349 ac_prev
=program_transform_name
;;
1350 -program-transform-name=* |
--program-transform-name=* \
1351 |
--program-transform-nam=* |
--program-transform-na=* \
1352 |
--program-transform-n=* |
--program-transform-=* \
1353 |
--program-transform=* |
--program-transfor=* \
1354 |
--program-transfo=* |
--program-transf=* \
1355 |
--program-trans=* |
--program-tran=* \
1356 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1357 program_transform_name
=$ac_optarg ;;
1359 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1361 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1362 pdfdir
=$ac_optarg ;;
1364 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1366 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1369 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1370 |
-silent |
--silent |
--silen |
--sile |
--sil)
1373 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1375 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1377 sbindir
=$ac_optarg ;;
1379 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1380 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1381 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1383 ac_prev
=sharedstatedir
;;
1384 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1385 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1386 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1388 sharedstatedir
=$ac_optarg ;;
1390 -site |
--site |
--sit)
1392 -site=* |
--site=* |
--sit=*)
1395 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1397 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1398 srcdir
=$ac_optarg ;;
1400 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1401 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1402 ac_prev
=sysconfdir
;;
1403 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1404 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1405 sysconfdir
=$ac_optarg ;;
1407 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1408 ac_prev
=target_alias
;;
1409 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1410 target_alias
=$ac_optarg ;;
1412 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1415 -version |
--version |
--versio |
--versi |
--vers |
-V)
1416 ac_init_version
=: ;;
1419 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1422 as_fn_error $?
"invalid package name: $ac_useropt"
1423 ac_useropt_orig
=$ac_useropt
1424 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425 case $ac_user_opts in
1429 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1430 ac_unrecognized_sep
=', ';;
1432 eval with_
$ac_useropt=\
$ac_optarg ;;
1434 -without-* |
--without-*)
1435 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1436 # Reject names that are not valid shell variable names.
1437 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1438 as_fn_error $?
"invalid package name: $ac_useropt"
1439 ac_useropt_orig
=$ac_useropt
1440 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1441 case $ac_user_opts in
1445 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1446 ac_unrecognized_sep
=', ';;
1448 eval with_
$ac_useropt=no
;;
1451 # Obsolete; use --with-x.
1454 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1455 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1456 ac_prev
=x_includes
;;
1457 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1458 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1459 x_includes
=$ac_optarg ;;
1461 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1462 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1463 ac_prev
=x_libraries
;;
1464 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1465 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1466 x_libraries
=$ac_optarg ;;
1468 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1469 Try \`$0 --help' for more information"
1473 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1474 # Reject names that are not valid shell variable names.
1475 case $ac_envvar in #(
1476 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1477 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1479 eval $ac_envvar=\
$ac_optarg
1480 export $ac_envvar ;;
1483 # FIXME: should be removed in autoconf 3.0.
1484 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1485 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1486 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1487 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1493 if test -n "$ac_prev"; then
1494 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1495 as_fn_error $?
"missing argument to $ac_option"
1498 if test -n "$ac_unrecognized_opts"; then
1499 case $enable_option_checking in
1501 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1502 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1506 # Check all directory arguments for consistency.
1507 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1508 datadir sysconfdir sharedstatedir localstatedir includedir \
1509 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1510 libdir localedir mandir
1512 eval ac_val
=\$
$ac_var
1513 # Remove trailing slashes.
1516 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1517 eval $ac_var=\
$ac_val;;
1519 # Be sure to have absolute directory names.
1521 [\\/$
]* | ?
:[\\/]* ) continue;;
1522 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1524 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1527 # There might be people who depend on the old broken behavior: `$host'
1528 # used to hold the argument of --host etc.
1529 # FIXME: To remove some day.
1532 target
=$target_alias
1534 # FIXME: To remove some day.
1535 if test "x$host_alias" != x
; then
1536 if test "x$build_alias" = x
; then
1537 cross_compiling
=maybe
1538 elif test "x$build_alias" != "x$host_alias"; then
1544 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1546 test "$silent" = yes && exec 6>/dev
/null
1549 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1550 ac_ls_di
=`ls -di .` &&
1551 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1552 as_fn_error $?
"working directory cannot be determined"
1553 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1554 as_fn_error $?
"pwd does not report name of working directory"
1557 # Find the source files, if location was not specified.
1558 if test -z "$srcdir"; then
1559 ac_srcdir_defaulted
=yes
1560 # Try the directory containing this script, then the parent directory.
1561 ac_confdir
=`$as_dirname -- "$as_myself" ||
1562 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1563 X"$as_myself" : 'X\(//\)[^/]' \| \
1564 X"$as_myself" : 'X\(//\)$' \| \
1565 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1566 $as_echo X"$as_myself" |
1567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1585 if test ! -r "$srcdir/$ac_unique_file"; then
1589 ac_srcdir_defaulted
=no
1591 if test ! -r "$srcdir/$ac_unique_file"; then
1592 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1593 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1595 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1597 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1599 # When building in place, set srcdir=.
1600 if test "$ac_abs_confdir" = "$ac_pwd"; then
1603 # Remove unnecessary trailing slashes from srcdir.
1604 # Double slashes in file names in object file debugging info
1605 # mess up M-x gdb in Emacs.
1607 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1609 for ac_var
in $ac_precious_vars; do
1610 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1611 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1612 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1613 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1617 # Report the --help message.
1619 if test "$ac_init_help" = "long"; then
1620 # Omit some internal or obsolete options to make the list less imposing.
1621 # This message is too long to be a string in the A/UX 3.1 sh.
1623 \`configure' configures this package to adapt to many kinds of systems.
1625 Usage: $0 [OPTION]... [VAR=VALUE]...
1627 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1628 VAR=VALUE. See below for descriptions of some of the useful variables.
1630 Defaults for the options are specified in brackets.
1633 -h, --help display this help and exit
1634 --help=short display options specific to this package
1635 --help=recursive display the short help of all the included packages
1636 -V, --version display version information and exit
1637 -q, --quiet, --silent do not print \`checking ...' messages
1638 --cache-file=FILE cache test results in FILE [disabled]
1639 -C, --config-cache alias for \`--cache-file=config.cache'
1640 -n, --no-create do not create output files
1641 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1643 Installation directories:
1644 --prefix=PREFIX install architecture-independent files in PREFIX
1645 [$ac_default_prefix]
1646 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1649 By default, \`make install' will install all the files in
1650 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1651 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1652 for instance \`--prefix=\$HOME'.
1654 For better control, use the options below.
1656 Fine tuning of the installation directories:
1657 --bindir=DIR user executables [EPREFIX/bin]
1658 --sbindir=DIR system admin executables [EPREFIX/sbin]
1659 --libexecdir=DIR program executables [EPREFIX/libexec]
1660 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1661 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1662 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1663 --libdir=DIR object code libraries [EPREFIX/lib]
1664 --includedir=DIR C header files [PREFIX/include]
1665 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1666 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1667 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1668 --infodir=DIR info documentation [DATAROOTDIR/info]
1669 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1670 --mandir=DIR man documentation [DATAROOTDIR/man]
1671 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1672 --htmldir=DIR html documentation [DOCDIR]
1673 --dvidir=DIR dvi documentation [DOCDIR]
1674 --pdfdir=DIR pdf documentation [DOCDIR]
1675 --psdir=DIR ps documentation [DOCDIR]
1681 --program-prefix=PREFIX prepend PREFIX to installed program names
1682 --program-suffix=SUFFIX append SUFFIX to installed program names
1683 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1686 --build=BUILD configure
for building on BUILD
[guessed
]
1687 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1688 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1692 if test -n "$ac_init_help"; then
1697 --disable-option-checking ignore unrecognized
--enable/--with options
1698 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1699 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1700 --enable-generated-files-in-srcdir
1701 put copies of generated files
in source dir intended
1702 for creating
source tarballs
for users without
1703 texinfo bison or flex
1704 --disable-largefile omit support
for large files
1705 --disable-build-format-warnings
1706 don
't use -Wformat while building GCC
1707 --enable-werror-always enable -Werror despite compiler version
1708 --enable-checking[=LIST]
1709 enable expensive run-time checks. With LIST, enable
1710 only specific categories of checks. Categories are:
1711 yes,no,all,none,release. Flags are:
1712 assert,df,extra,fold,gc,gcac,gimple,misc,
1713 rtlflag,rtl,runtime,tree,valgrind,types
1714 --enable-coverage[=LEVEL]
1715 enable compiler's code coverage collection. Use to
1716 measure compiler performance and
locate unused parts
1717 of the compiler. With LEVEL
, specify optimization.
1718 Values are opt
, noopt
, default is noopt
1719 --enable-gather-detailed-mem-stats
1720 enable detailed memory allocation stats gathering
1721 --enable-valgrind-annotations
1722 enable valgrind runtime interaction
1723 --enable-multilib enable library support
for multiple ABIs
1724 --enable-multiarch enable support
for multiarch paths
1725 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1726 --enable-decimal-float={no
,yes,bid
,dpd
}
1727 enable decimal float extension to C. Selecting
'bid'
1728 or
'dpd' choses
which decimal floating point format
1730 --enable-fixed-point enable fixed-point arithmetic extension to C
1731 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1733 --enable-tls enable or disable generation of tls code overriding
1734 the assembler check
for tls support
1735 --enable-vtable-verify enable vtable verification feature
1736 --disable-analyzer disable
-fanalyzer static analyzer
1737 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1738 GNU Objective-C runtime
1739 --disable-shared don't provide a shared libgcc
1740 --disable-gcov don
't provide libgcov and related host tools
1741 --enable-languages=LIST specify which front-ends to build
1742 --disable-rpath do not hardcode runtime library paths
1743 --enable-sjlj-exceptions
1744 arrange to use setjmp/longjmp exception handling
1745 --disable-win32-utf8-manifest
1746 disable embedding a utf8 manifest on mingw hosts
1747 --enable-win32-utf8-manifest
1748 enable embedding a utf8 manifest on mingw hosts
1750 --disable-nls do not use Native Language Support
1751 --enable-secureplt enable -msecure-plt by default for PowerPC
1752 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1753 Default to platform configuration
1754 --enable-large-address-aware
1755 Link mingw executables with --large-address-aware
1756 --enable-leading-mingw64-underscores
1757 enable leading underscores on 64 bit mingw targets
1758 --enable-cld enable -mcld by default for 32bit x86
1759 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1760 --disable-win32-registry
1761 disable lookup of installation paths in the Registry
1763 --enable-win32-registry enable registry lookup (default)
1764 --enable-win32-registry=KEY
1765 use KEY instead of GCC version as the last portion
1767 --enable-shared[=PKGS] build shared libraries [default=yes]
1768 --enable-static[=PKGS] build static libraries [default=yes]
1769 --enable-fast-install[=PKGS]
1770 optimize for fast installation [default=yes]
1771 --disable-libtool-lock avoid locking (might break parallel builds)
1772 --enable-darwin-at-rpath
1773 install libraries with @rpath/library-name, requires
1774 rpaths to be added to executables
1775 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1776 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1777 --enable-gnu-indirect-function
1778 enable the use of the @gnu_indirect_function to
1780 --enable-initfini-array use .init_array/.fini_array sections
1781 --enable-comdat enable COMDAT group support
1782 --enable-newlib-nano-formatted-io
1783 Use nano version formatted IO
1785 --enable-standard-branch-protection
1786 enable Branch Target Identification Mechanism,
1787 Return Address Signing, and Guarded Control Stack by
1789 --disable-standard-branch-protection
1790 disable Branch Target Identification Mechanism,
1791 Return Address Signing, and Guarded Control Stack by
1795 --enable-fix-cortex-a53-835769
1796 enable workaround for AArch64 Cortex-A53 erratum
1798 --disable-fix-cortex-a53-835769
1799 disable workaround for AArch64 Cortex-A53 erratum
1803 --enable-fix-cortex-a53-843419
1804 enable workaround for AArch64 Cortex-A53 erratum
1806 --disable-fix-cortex-a53-843419
1807 disable workaround for AArch64 Cortex-A53 erratum
1810 --enable-gnu-unique-object
1811 enable the use of the @gnu_unique_object ELF
1812 extension on glibc systems
1813 --enable-linker-build-id
1814 compiler will always pass --build-id to linker
1815 --enable-libssp enable linking against libssp
1816 --enable-default-ssp enable Stack Smashing Protection as default
1817 --enable-maintainer-mode
1818 enable make rules and dependencies not useful (and
1819 sometimes confusing) to the casual installer
1820 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1821 thrashing on the build machine
1822 --enable-link-serialization
1823 avoid linking multiple GCC front-ends at once using
1824 make dependencies to avoid thrashing on the build
1826 --enable-version-specific-runtime-libs
1827 specify that runtime libraries should be installed
1828 in a compiler-specific directory
1829 --enable-plugin enable plugin support
1830 --enable-host-shared build host code as shared libraries
1831 --enable-host-pie build host code as PIE
1832 --enable-libgdiagnostics
1833 build libgdiagnostics shared library
1834 --enable-host-bind-now link host code as BIND_NOW
1835 --disable-libquadmath-support
1836 disable libquadmath support for Fortran
1837 --enable-default-pie enable Position Independent Executable as default
1838 --enable-cet enable Intel CET in host libraries [default=auto]
1839 --enable-s390-excess-float-precision
1840 on s390 targets, evaluate float with double
1841 precision when in standards-conforming mode
1844 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1845 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1846 --with-build-libsubdir=DIR Directory where to find libraries for build system
1847 --with-local-prefix=DIR specifies directory to put local include
1848 --with-native-system-header-dir=dir
1849 use dir as the directory to look for standard
1850 system header files in. Defaults to /usr/include.
1851 --with-build-sysroot=sysroot
1852 use sysroot as the system root during the build
1853 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1854 --with-gxx-include-dir=DIR
1855 specifies directory to put g++ header files
1856 --with-gxx-libcxx-include-dir=DIR
1857 specifies directory to find libc++ header files
1858 --with-cpp-install-dir=DIR
1859 install the user visible C preprocessor in DIR
1860 (relative to PREFIX) as well as PREFIX/bin
1861 --with-gnu-ld arrange to work with GNU ld
1862 --with-ld arrange to use the specified ld (full pathname)
1863 --with-demangler-in-ld try to use demangler in GNU ld
1864 --with-dsymutil arrange to use the specified dsymutil (full
1866 --with-gnu-as arrange to work with GNU as
1867 --with-as arrange to use the specified as (full pathname)
1868 --with-stack-clash-protection-guard-size=size
1869 Set the default stack clash protection guard size
1870 for specific targets as a power of two in bytes.
1871 --with-matchpd-partitions=num
1872 Set the number of partitions to make for gimple and
1873 generic when splitting match.pd. [default=10]
1874 --with-insnemit-partitions=num
1875 Set the number of partitions of insn-emit.cc for
1876 genemit and genrecog to create. [default=10]
1877 --with-dwarf2 force the default debug format to be DWARF 2 (or
1879 --with-specs=SPECS add SPECS to driver command-line processing
1880 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1881 --with-bugurl=URL Direct users to URL to report a bug
1882 --with-documentation-root-url=URL
1883 Root for documentation URLs
1884 --with-changes-root-url=URL
1885 Root for GCC changes URLs
1886 --with-multilib-list select multilibs (AArch64, ARM, AVR, nvptx, OR1K,
1887 RISC-V, SH and x86-64 only)
1888 --with-multilib-generator
1889 Multi-libs configuration string (RISC-V only)
1890 --with-zstd=PATH specify prefix directory for installed zstd library.
1891 Equivalent to --with-zstd-include=PATH/include plus
1892 --with-zstd-lib=PATH/lib
1893 --with-zstd-include=PATH
1894 specify directory for installed zstd include files
1895 --with-zstd-lib=PATH specify directory for the installed zstd library
1896 --with-gnu-ld assume the C compiler uses GNU ld default=no
1897 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1898 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1899 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1900 --with-gcc-major-version-only
1901 use only GCC major number
in filesystem paths
1902 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
1903 --without-libintl-prefix don
't search for libintl in includedir and libdir
1904 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1905 --with-pic try to use only PIC/non-PIC objects [default=use
1907 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1908 --with-darwin-extra-rpath=[ARG]
1909 Specify a runpath directory, additional to those
1910 provided by the compiler
1911 --with-plugin-ld=[ARG] specify the plugin linker
1912 --with-glibc-version=M.N
1913 assume GCC used with glibc version M.N or later
1914 --with-long-double-128 use 128-bit long double by default
1915 --with-long-double-format={ieee,ibm}
1916 Specify whether PowerPC long double uses IEEE or IBM format
1918 --with-gc={page,zone} this option is not supported anymore. It used to
1919 choose the garbage collection mechanism to use with
1921 --with-system-zlib use installed libz
1922 --with-linker-hash-style={sysv,gnu,both}
1923 specify the linker hash style
1924 --with-diagnostics-color={never,auto,auto-if-env,always}
1925 specify the default of -fdiagnostics-color option
1926 auto-if-env stands for -fdiagnostics-color=auto if
1927 GCC_COLOR environment variable is present and
1928 -fdiagnostics-color=never otherwise
1929 --with-diagnostics-urls={never,auto,auto-if-env,always}
1930 specify the default of -fdiagnostics-urls option
1931 auto-if-env stands for -fdiagnostics-urls=auto if
1932 GCC_URLS or TERM_URLS environment variable is
1933 present and -fdiagnostics-urls=never otherwise
1935 Some influential environment variables:
1936 CC C compiler command
1937 CFLAGS C compiler flags
1938 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1939 nonstandard directory <lib dir>
1940 LIBS libraries to pass to the linker, e.g. -l<library>
1941 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1942 you have headers in a nonstandard directory <include dir>
1943 CXX C++ compiler command
1944 CXXFLAGS C++ compiler flags
1945 CXXCPP C++ preprocessor
1947 GMPLIBS How to link GMP
1948 GMPINC How to find GMP include files
1949 ISLLIBS How to link isl
1950 ISLINC How to find isl include files
1952 Use these variables to override the choices made by `configure' or to
help
1953 it to
find libraries and programs with nonstandard names
/locations.
1955 Report bugs to the package provider.
1960 if test "$ac_init_help" = "recursive"; then
1961 # If there are subdirs, report their specific --help.
1962 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1963 test -d "$ac_dir" ||
1964 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1969 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1971 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1972 # A ".." for each directory in $ac_dir_suffix.
1973 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1974 case $ac_top_builddir_sub in
1975 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1976 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1979 ac_abs_top_builddir
=$ac_pwd
1980 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1981 # for backward compatibility:
1982 ac_top_builddir
=$ac_top_build_prefix
1985 .
) # We are building in place.
1987 ac_top_srcdir
=$ac_top_builddir_sub
1988 ac_abs_top_srcdir
=$ac_pwd ;;
1989 [\\/]* | ?
:[\\/]* ) # Absolute name.
1990 ac_srcdir
=$srcdir$ac_dir_suffix;
1991 ac_top_srcdir
=$srcdir
1992 ac_abs_top_srcdir
=$srcdir ;;
1994 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1995 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1996 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1998 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2000 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2001 # Check for guested configure.
2002 if test -f "$ac_srcdir/configure.gnu"; then
2004 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2005 elif test -f "$ac_srcdir/configure"; then
2007 $SHELL "$ac_srcdir/configure" --help=recursive
2009 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2011 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2015 test -n "$ac_init_help" && exit $ac_status
2016 if $ac_init_version; then
2019 generated by GNU Autoconf
2.69
2021 Copyright
(C
) 2012 Free Software Foundation
, Inc.
2022 This configure
script is free software
; the Free Software Foundation
2023 gives unlimited permission to copy
, distribute and modify it.
2028 ## ------------------------ ##
2029 ## Autoconf initialization. ##
2030 ## ------------------------ ##
2032 # ac_fn_c_try_compile LINENO
2033 # --------------------------
2034 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2035 ac_fn_c_try_compile
()
2037 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2038 rm -f conftest.
$ac_objext
2039 if { { ac_try
="$ac_compile"
2041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_compile") 2>conftest.err
2048 if test -s conftest.err; then
2049 grep -v '^ *+' conftest.err >conftest.er1
2050 cat conftest.er1 >&5
2051 mv -f conftest.er1 conftest.err
2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054 test $ac_status = 0; } && {
2055 test -z "$ac_c_werror_flag" ||
2056 test ! -s conftest.err
2057 } && test -s conftest.$ac_objext; then :
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 as_fn_set_status $ac_retval
2068 } # ac_fn_c_try_compile
2070 # ac_fn_cxx_try_compile LINENO
2071 # ----------------------------
2072 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2073 ac_fn_cxx_try_compile ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 rm -f conftest.$ac_objext
2077 if { { ac_try="$ac_compile"
2079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2080 *) ac_try_echo
=$ac_try;;
2082 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_compile") 2>conftest.err
2086 if test -s conftest.err
; then
2087 grep -v '^ *+' conftest.err
>conftest.er1
2088 cat conftest.er1
>&5
2089 mv -f conftest.er1 conftest.err
2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092 test $ac_status = 0; } && {
2093 test -z "$ac_cxx_werror_flag" ||
2094 test ! -s conftest.err
2095 } && test -s conftest.
$ac_objext; then :
2098 $as_echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.
$ac_ext >&5
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 as_fn_set_status
$ac_retval
2106 } # ac_fn_cxx_try_compile
2108 # ac_fn_cxx_try_cpp LINENO
2109 # ------------------------
2110 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2111 ac_fn_cxx_try_cpp
()
2113 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2114 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2123 if test -s conftest.err; then
2124 grep -v '^ *+' conftest.err >conftest.er1
2125 cat conftest.er1 >&5
2126 mv -f conftest.er1 conftest.err
2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; } > conftest.i && {
2130 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2131 test ! -s conftest.err
2135 $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 as_fn_set_status $ac_retval
2143 } # ac_fn_cxx_try_cpp
2145 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2146 # ---------------------------------------------------------
2147 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2148 # the include files in INCLUDES and setting the cache variable VAR
2150 ac_fn_cxx_check_header_mongrel ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 if eval \${$3+:} false; then :
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if eval \${$3+:} false; then :
2157 $as_echo_n "(cached) " >&6
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2163 # Is the header compilable?
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2165 $as_echo_n "checking $2 usability... " >&6; }
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2171 if ac_fn_cxx_try_compile "$LINENO"; then :
2172 ac_header_compiler=yes
2174 ac_header_compiler=no
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2178 $as_echo "$ac_header_compiler" >&6; }
2180 # Is the header present?
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2182 $as_echo_n "checking $2 presence... " >&6; }
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2187 if ac_fn_cxx_try_cpp "$LINENO"; then :
2188 ac_header_preproc=yes
2190 ac_header_preproc=no
2192 rm -f conftest.err conftest.i conftest.$ac_ext
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2194 $as_echo "$ac_header_preproc" >&6; }
2196 # So? What about this header?
2197 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2200 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2202 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2206 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2208 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2210 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2212 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2214 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2222 eval "$3=\$ac_header_compiler"
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230 } # ac_fn_cxx_check_header_mongrel
2232 # ac_fn_cxx_try_run LINENO
2233 # ------------------------
2234 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2235 # that executables *can* be run.
2236 ac_fn_cxx_try_run ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 if { { ac_try="$ac_link"
2241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2242 *) ac_try_echo
=$ac_try;;
2244 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2245 $as_echo "$ac_try_echo"; } >&5
2246 (eval "$ac_link") 2>&5
2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2250 { { case "(($ac_try" in
2251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255 $as_echo "$ac_try_echo"; } >&5
2256 (eval "$ac_try") 2>&5
2258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259 test $ac_status = 0; }; }; then :
2262 $as_echo "$as_me: program exited with status $ac_status" >&5
2263 $as_echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2266 ac_retval=$ac_status
2268 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 as_fn_set_status $ac_retval
2272 } # ac_fn_cxx_try_run
2274 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2275 # ---------------------------------------------------------
2276 # Tests whether HEADER exists and can be compiled using the include files in
2277 # INCLUDES, setting the cache variable VAR accordingly.
2278 ac_fn_cxx_check_header_compile ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if eval \${$3+:} false; then :
2284 $as_echo_n "(cached) " >&6
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2291 if ac_fn_cxx_try_compile "$LINENO"; then :
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303 } # ac_fn_cxx_check_header_compile
2305 # ac_fn_c_try_cpp LINENO
2306 # ----------------------
2307 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 if { { ac_try="$ac_cpp conftest.$ac_ext"
2313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2314 *) ac_try_echo
=$ac_try;;
2316 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2317 $as_echo "$ac_try_echo"; } >&5
2318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2320 if test -s conftest.err
; then
2321 grep -v '^ *+' conftest.err
>conftest.er1
2322 cat conftest.er1
>&5
2323 mv -f conftest.er1 conftest.err
2325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2326 test $ac_status = 0; } > conftest.i
&& {
2327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2328 test ! -s conftest.err
2332 $as_echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.
$ac_ext >&5
2337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338 as_fn_set_status
$ac_retval
2342 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2343 # ----------------------------------------------
2344 # Tries to find the compile-time value of EXPR in a program that includes
2345 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2347 ac_fn_cxx_compute_int
()
2349 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2350 if test "$cross_compiling" = yes; then
2351 # Depending upon the size, compute the lo and hi bounds.
2352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2358 static int test_array [1 - 2 * !(($2) >= 0)];
2360 return test_array [0];
2366 if ac_fn_cxx_try_compile
"$LINENO"; then :
2369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2375 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2377 return test_array [0];
2383 if ac_fn_cxx_try_compile
"$LINENO"; then :
2384 ac_hi
=$ac_mid; break
2386 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2387 if test $ac_lo -le $ac_mid; then
2391 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2402 static int test_array [1 - 2 * !(($2) < 0)];
2404 return test_array [0];
2410 if ac_fn_cxx_try_compile
"$LINENO"; then :
2413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2419 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2421 return test_array [0];
2427 if ac_fn_cxx_try_compile
"$LINENO"; then :
2428 ac_lo
=$ac_mid; break
2430 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2431 if test $ac_mid -le $ac_hi; then
2435 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2445 # Binary search between lo and hi bounds.
2446 while test "x$ac_lo" != "x$ac_hi"; do
2447 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2454 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2456 return test_array [0];
2462 if ac_fn_cxx_try_compile
"$LINENO"; then :
2465 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2470 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2477 static long int longval () { return $2; }
2478 static unsigned long int ulongval () { return $2; }
2485 FILE *f = fopen ("conftest.val", "w");
2490 long int i = longval ();
2493 fprintf (f, "%ld", i);
2497 unsigned long int i = ulongval ();
2500 fprintf (f, "%lu", i);
2502 /* Do not output a trailing newline, as this causes \r\n confusion
2503 on some platforms. */
2504 return ferror (f) || fclose (f) != 0;
2510 if ac_fn_cxx_try_run
"$LINENO"; then :
2511 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2515 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2516 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2521 as_fn_set_status
$ac_retval
2523 } # ac_fn_cxx_compute_int
2525 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2526 # ---------------------------------------------
2527 # Tests whether TYPE exists after having included INCLUDES, setting cache
2528 # variable VAR accordingly.
2529 ac_fn_cxx_check_type
()
2531 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2533 $as_echo_n "checking for $2... " >&6; }
2534 if eval \
${$3+:} false
; then :
2535 $as_echo_n "(cached) " >&6
2538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2550 if ac_fn_cxx_try_compile
"$LINENO"; then :
2551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2563 if ac_fn_cxx_try_compile
"$LINENO"; then :
2568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 $as_echo "$ac_res" >&6; }
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2577 } # ac_fn_cxx_check_type
2579 # ac_fn_c_find_intX_t LINENO BITS VAR
2580 # -----------------------------------
2581 # Finds a signed integer type with width BITS, setting cache variable VAR
2583 ac_fn_c_find_intX_t
()
2585 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2587 $as_echo_n "checking for int$2_t... " >&6; }
2588 if eval \
${$3+:} false
; then :
2589 $as_echo_n "(cached) " >&6
2592 # Order is important - never check a type that is potentially smaller
2593 # than half of the expected target width.
2594 for ac_type
in int
$2_t 'int' 'long int' \
2595 'long long int' 'short int' 'signed char'; do
2596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2598 $ac_includes_default
2599 enum { N = $2 / 2 - 1 };
2603 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2605 return test_array [0];
2611 if ac_fn_cxx_try_compile
"$LINENO"; then :
2612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2614 $ac_includes_default
2615 enum { N = $2 / 2 - 1 };
2619 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2620 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2622 return test_array [0];
2628 if ac_fn_cxx_try_compile
"$LINENO"; then :
2635 eval "$3=\$ac_type" ;;
2638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2641 if eval test \"x\$
"$3"\" = x
"no"; then :
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 } # ac_fn_c_find_intX_t
2655 # ac_fn_cxx_try_link LINENO
2656 # -------------------------
2657 # Try to link conftest.$ac_ext, and return whether this succeeded.
2658 ac_fn_cxx_try_link
()
2660 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2661 rm -f conftest.
$ac_objext conftest
$ac_exeext
2662 if { { ac_try
="$ac_link"
2664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2668 $as_echo "$ac_try_echo"; } >&5
2669 (eval "$ac_link") 2>conftest.err
2671 if test -s conftest.err; then
2672 grep -v '^ *+' conftest.err >conftest.er1
2673 cat conftest.er1 >&5
2674 mv -f conftest.er1 conftest.err
2676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2677 test $ac_status = 0; } && {
2678 test -z "$ac_cxx_werror_flag" ||
2679 test ! -s conftest.err
2680 } && test -s conftest$ac_exeext && {
2681 test "$cross_compiling" = yes ||
2682 test -x conftest$ac_exeext
2686 $as_echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2693 # interfere with the next link command; also delete a directory that is
2694 # left behind by Apple's compiler. We do this before executing the actions.
2695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697 as_fn_set_status $ac_retval
2699 } # ac_fn_cxx_try_link
2701 # ac_fn_c_find_uintX_t LINENO BITS VAR
2702 # ------------------------------------
2703 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2705 ac_fn_c_find_uintX_t ()
2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2709 $as_echo_n "checking for uint$2_t... " >&6; }
2710 if eval \${$3+:} false; then :
2711 $as_echo_n "(cached) " >&6
2714 # Order is important - never check a type that is potentially smaller
2715 # than half of the expected target width.
2716 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2717 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2720 $ac_includes_default
2724 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2726 return test_array [0];
2732 if ac_fn_cxx_try_compile "$LINENO"; then :
2737 eval "$3=\$ac_type" ;;
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 if eval test \"x\$"$3"\" = x"no"; then :
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2750 $as_echo "$ac_res" >&6; }
2751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2753 } # ac_fn_c_find_uintX_t
2755 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2756 # ------------------------------------------------
2757 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2758 ac_fn_cxx_check_header_preproc ()
2760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2762 $as_echo_n "checking for $2... " >&6; }
2763 if eval \${$3+:} false; then :
2764 $as_echo_n "(cached) " >&6
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2770 if ac_fn_cxx_try_cpp "$LINENO"; then :
2775 rm -f conftest.err conftest.i conftest.$ac_ext
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2779 $as_echo "$ac_res" >&6; }
2780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2782 } # ac_fn_cxx_check_header_preproc
2784 # ac_fn_cxx_check_func LINENO FUNC VAR
2785 # ------------------------------------
2786 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2787 ac_fn_cxx_check_func ()
2789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2791 $as_echo_n "checking for $2... " >&6; }
2792 if eval \${$3+:} false; then :
2793 $as_echo_n "(cached) " >&6
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h. */
2797 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2799 #define $2 innocuous_$2
2801 /* System header to define __stub macros and hopefully few prototypes,
2802 which can conflict with char $2 (); below.
2803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2804 <limits.h> exists even on freestanding compilers. */
2807 # include <limits.h>
2809 # include <assert.h>
2814 /* Override any GCC internal prototype to avoid an error.
2815 Use char because int might match the return type of a GCC
2816 builtin and then its argument prototype would still apply. */
2821 /* The GNU C library defines this for functions which it implements
2822 to always fail with ENOSYS. Some functions are actually named
2823 something starting with __ and the normal name is an alias. */
2824 #if defined __stub_$2 || defined __stub___$2
2836 if ac_fn_cxx_try_link "$LINENO"; then :
2841 rm -f core conftest.err conftest.$ac_objext \
2842 conftest$ac_exeext conftest.$ac_ext
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2846 $as_echo "$ac_res" >&6; }
2847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2849 } # ac_fn_cxx_check_func
2851 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2852 # -----------------------------------------------
2853 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2855 ac_fn_cxx_check_decl ()
2857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2858 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2859 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2861 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2862 if eval \${$3+:} false; then :
2863 $as_echo_n "(cached) " >&6
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2871 #ifndef $as_decl_name
2873 (void) $as_decl_use;
2875 (void) $as_decl_name;
2883 if ac_fn_cxx_try_compile "$LINENO"; then :
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2892 $as_echo "$ac_res" >&6; }
2893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2895 } # ac_fn_cxx_check_decl
2897 # ac_fn_c_try_link LINENO
2898 # -----------------------
2899 # Try to link conftest.$ac_ext, and return whether this succeeded.
2902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2903 rm -f conftest.$ac_objext conftest$ac_exeext
2904 if { { ac_try="$ac_link"
2906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2907 *) ac_try_echo
=$ac_try;;
2909 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_link") 2>conftest.err
2913 if test -s conftest.err
; then
2914 grep -v '^ *+' conftest.err
>conftest.er1
2915 cat conftest.er1
>&5
2916 mv -f conftest.er1 conftest.err
2918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2919 test $ac_status = 0; } && {
2920 test -z "$ac_c_werror_flag" ||
2921 test ! -s conftest.err
2922 } && test -s conftest
$ac_exeext && {
2923 test "$cross_compiling" = yes ||
2924 test -x conftest
$ac_exeext
2928 $as_echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.
$ac_ext >&5
2933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2935 # interfere with the next link command; also delete a directory that is
2936 # left behind by Apple's compiler. We do this before executing the actions.
2937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2939 as_fn_set_status
$ac_retval
2941 } # ac_fn_c_try_link
2943 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2944 # ----------------------------------------------
2945 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2946 ac_fn_c_check_header_preproc
()
2948 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2950 $as_echo_n "checking for $2... " >&6; }
2951 if eval \
${$3+:} false
; then :
2952 $as_echo_n "(cached) " >&6
2954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2958 if ac_fn_c_try_cpp
"$LINENO"; then :
2963 rm -f conftest.err conftest.i conftest.
$ac_ext
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2967 $as_echo "$ac_res" >&6; }
2968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2970 } # ac_fn_c_check_header_preproc
2972 # ac_fn_c_check_func LINENO FUNC VAR
2973 # ----------------------------------
2974 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2975 ac_fn_c_check_func
()
2977 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2979 $as_echo_n "checking for $2... " >&6; }
2980 if eval \
${$3+:} false
; then :
2981 $as_echo_n "(cached) " >&6
2983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2984 /* end confdefs.h. */
2985 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2987 #define $2 innocuous_$2
2989 /* System header to define __stub macros and hopefully few prototypes,
2990 which can conflict with char $2 (); below.
2991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2992 <limits.h> exists even on freestanding compilers. */
2995 # include <limits.h>
2997 # include <assert.h>
3002 /* Override any GCC internal prototype to avoid an error.
3003 Use char because int might match the return type of a GCC
3004 builtin and then its argument prototype would still apply. */
3009 /* The GNU C library defines this for functions which it implements
3010 to always fail with ENOSYS. Some functions are actually named
3011 something starting with __ and the normal name is an alias. */
3012 #if defined __stub_$2 || defined __stub___$2
3024 if ac_fn_c_try_link
"$LINENO"; then :
3029 rm -f core conftest.err conftest.
$ac_objext \
3030 conftest
$ac_exeext conftest.
$ac_ext
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3034 $as_echo "$ac_res" >&6; }
3035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3037 } # ac_fn_c_check_func
3038 cat >config.log
<<_ACEOF
3039 This file contains any messages produced by compilers while
3040 running configure, to aid debugging if configure makes a mistake.
3042 It was created by $as_me, which was
3043 generated by GNU Autoconf 2.69. Invocation command line was
3055 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3056 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3057 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3058 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3059 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3061 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3062 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3064 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3065 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3066 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3067 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3068 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3069 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3070 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir
=.
3079 $as_echo "PATH: $as_dir"
3095 # Keep a trace of the command line.
3096 # Strip out --no-create and --no-recursion so they do not pile up.
3097 # Strip out --silent because we don't want to record it for future runs.
3098 # Also quote any args containing shell meta-characters.
3099 # Make two passes to allow for proper duplicate-argument suppression.
3103 ac_must_keep_next
=false
3109 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3110 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3111 |
-silent |
--silent |
--silen |
--sile |
--sil)
3114 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3117 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3119 as_fn_append ac_configure_args1
" '$ac_arg'"
3120 if test $ac_must_keep_next = true
; then
3121 ac_must_keep_next
=false
# Got value, back to normal.
3124 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3125 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3126 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3127 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3128 case "$ac_configure_args0 " in
3129 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3132 -* ) ac_must_keep_next
=true
;;
3135 as_fn_append ac_configure_args
" '$ac_arg'"
3140 { ac_configure_args0
=; unset ac_configure_args0
;}
3141 { ac_configure_args1
=; unset ac_configure_args1
;}
3143 # When interrupted or exit'd, cleanup temporary files, and complete
3144 # config.log. We remove comments because anyway the quotes in there
3145 # would cause problems or look ugly.
3146 # WARNING: Use '\'' to represent an apostrophe within the trap.
3147 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3148 trap 'exit_status=$?
3149 # Save into config.log some information that might help in debugging.
3153 $as_echo "## ---------------- ##
3154 ## Cache variables. ##
3155 ## ---------------- ##"
3157 # The following way of writing the cache mishandles newlines in values,
3159 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3160 eval ac_val=\$$ac_var
3164 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3168 _ | IFS | as_nl) ;; #(
3169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3170 *) { eval $ac_var=; unset $ac_var;} ;;
3175 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3176 *${as_nl}ac_space=\ *)
3178 "s/'\''/'\''\\\\'\'''\''/g;
3179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3189 $as_echo "## ----------------- ##
3190 ## Output variables. ##
3191 ## ----------------- ##"
3193 for ac_var in $ac_subst_vars
3195 eval ac_val=\$$ac_var
3197 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3199 $as_echo "$ac_var='\''$ac_val'\''"
3203 if test -n "$ac_subst_files"; then
3204 $as_echo "## ------------------- ##
3205 ## File substitutions. ##
3206 ## ------------------- ##"
3208 for ac_var
in $ac_subst_files
3210 eval ac_val
=\$
$ac_var
3212 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3214 $as_echo "$ac_var='\''$ac_val'\''"
3219 if test -s confdefs.h; then
3220 $as_echo "## ----------- ##
3227 test "$ac_signal" != 0 &&
3228 $as_echo "$as_me: caught signal $ac_signal"
3229 $as_echo "$as_me: exit $exit_status"
3231 rm -f core *.core core.conftest.* &&
3232 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3235 for ac_signal
in 1 2 13 15; do
3236 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3241 rm -f -r conftest
* confdefs.h
3243 $as_echo "/* confdefs.h */" > confdefs.h
3245 # Predefined preprocessor variables.
3247 cat >>confdefs.h
<<_ACEOF
3248 #define PACKAGE_NAME "$PACKAGE_NAME"
3251 cat >>confdefs.h
<<_ACEOF
3252 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3255 cat >>confdefs.h
<<_ACEOF
3256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3259 cat >>confdefs.h
<<_ACEOF
3260 #define PACKAGE_STRING "$PACKAGE_STRING"
3263 cat >>confdefs.h
<<_ACEOF
3264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3267 cat >>confdefs.h
<<_ACEOF
3268 #define PACKAGE_URL "$PACKAGE_URL"
3272 # Let the site file select an alternate cache file if it wants to.
3273 # Prefer an explicitly selected file to automatically selected ones.
3276 if test -n "$CONFIG_SITE"; then
3277 # We do not want a PATH search for config.site.
3278 case $CONFIG_SITE in #((
3279 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3280 */*) ac_site_file1
=$CONFIG_SITE;;
3281 *) ac_site_file1
=.
/$CONFIG_SITE;;
3283 elif test "x$prefix" != xNONE
; then
3284 ac_site_file1
=$prefix/share
/config.site
3285 ac_site_file2
=$prefix/etc
/config.site
3287 ac_site_file1
=$ac_default_prefix/share
/config.site
3288 ac_site_file2
=$ac_default_prefix/etc
/config.site
3290 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3292 test "x$ac_site_file" = xNONE
&& continue
3293 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3295 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3296 sed 's/^/| /' "$ac_site_file" >&5
3298 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $?
"failed to load site script $ac_site_file
3301 See \`config.log' for more details" "$LINENO" 5; }
3305 if test -r "$cache_file"; then
3306 # Some versions of bash will fail to source /dev/null (special files
3307 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3308 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3310 $as_echo "$as_me: loading cache $cache_file" >&6;}
3312 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3313 *) .
"./$cache_file";;
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3318 $as_echo "$as_me: creating cache $cache_file" >&6;}
3322 gt_needs
="$gt_needs "
3323 # Check that the precious variables saved in the cache have kept the same
3325 ac_cache_corrupted
=false
3326 for ac_var
in $ac_precious_vars; do
3327 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3328 eval ac_new_set
=\
$ac_env_${ac_var}_set
3329 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3330 eval ac_new_val
=\
$ac_env_${ac_var}_value
3331 case $ac_old_set,$ac_new_set in
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3334 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3335 ac_cache_corrupted
=: ;;
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3338 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3339 ac_cache_corrupted
=: ;;
3342 if test "x$ac_old_val" != "x$ac_new_val"; then
3343 # differences in whitespace do not lead to failure.
3344 ac_old_val_w
=`echo x $ac_old_val`
3345 ac_new_val_w
=`echo x $ac_new_val`
3346 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3348 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3349 ac_cache_corrupted
=:
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3352 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3353 eval $ac_var=\
$ac_old_val
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3356 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3358 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3361 # Pass precious variables to config.status.
3362 if test "$ac_new_set" = set; then
3364 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3365 *) ac_arg
=$ac_var=$ac_new_val ;;
3367 case " $ac_configure_args " in
3368 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3369 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3373 if $ac_cache_corrupted; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3377 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3378 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3380 ## -------------------- ##
3381 ## Main body of script. ##
3382 ## -------------------- ##
3385 ac_cpp
='$CPP $CPPFLAGS'
3386 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3396 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3399 gcc_version
=`cat $srcdir/BASE-VER`
3401 # Determine the host, build, and target systems
3403 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3404 if test -f "$ac_dir/install-sh"; then
3406 ac_install_sh
="$ac_aux_dir/install-sh -c"
3408 elif test -f "$ac_dir/install.sh"; then
3410 ac_install_sh
="$ac_aux_dir/install.sh -c"
3412 elif test -f "$ac_dir/shtool"; then
3414 ac_install_sh
="$ac_aux_dir/shtool install -c"
3418 if test -z "$ac_aux_dir"; then
3419 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3422 # These three variables are undocumented and unsupported,
3423 # and are intended to be withdrawn in a future Autoconf release.
3424 # They can cause serious problems if a builder's source tree is in a directory
3425 # whose full name contains unusual characters.
3426 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3427 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3428 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3431 # Make sure we can run config.sub.
3432 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3433 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3436 $as_echo_n "checking build system type... " >&6; }
3437 if ${ac_cv_build+:} false
; then :
3438 $as_echo_n "(cached) " >&6
3440 ac_build_alias
=$build_alias
3441 test "x$ac_build_alias" = x
&&
3442 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3443 test "x$ac_build_alias" = x
&&
3444 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3445 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3446 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3450 $as_echo "$ac_cv_build" >&6; }
3451 case $ac_cv_build in
3453 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3456 ac_save_IFS
=$IFS; IFS
='-'
3462 # Remember, the first character of IFS is used to create $*,
3463 # except with old shells:
3466 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3470 $as_echo_n "checking host system type... " >&6; }
3471 if ${ac_cv_host+:} false
; then :
3472 $as_echo_n "(cached) " >&6
3474 if test "x$host_alias" = x
; then
3475 ac_cv_host
=$ac_cv_build
3477 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3478 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3483 $as_echo "$ac_cv_host" >&6; }
3486 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3489 ac_save_IFS
=$IFS; IFS
='-'
3495 # Remember, the first character of IFS is used to create $*,
3496 # except with old shells:
3499 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3503 $as_echo_n "checking target system type... " >&6; }
3504 if ${ac_cv_target+:} false
; then :
3505 $as_echo_n "(cached) " >&6
3507 if test "x$target_alias" = x
; then
3508 ac_cv_target
=$ac_cv_host
3510 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3511 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3516 $as_echo "$ac_cv_target" >&6; }
3517 case $ac_cv_target in
3519 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
3521 target
=$ac_cv_target
3522 ac_save_IFS
=$IFS; IFS
='-'
3528 # Remember, the first character of IFS is used to create $*,
3529 # except with old shells:
3532 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3535 # The aliases save the names the user supplied, while $host etc.
3536 # will get canonicalized.
3537 test -n "$target_alias" &&
3538 test "$program_prefix$program_suffix$program_transform_name" = \
3540 program_prefix
=${target_alias}-
3542 # Determine the noncanonical host name, for Ada.
3543 case ${build_alias} in
3544 "") build_noncanonical
=${build} ;;
3545 *) build_noncanonical
=${build_alias} ;;
3548 case ${host_alias} in
3549 "") host_noncanonical
=${build_noncanonical} ;;
3550 *) host_noncanonical
=${host_alias} ;;
3556 # Determine the noncanonical target name, for directory use.
3557 case ${target_alias} in
3558 "") target_noncanonical
=${host_noncanonical} ;;
3559 *) target_noncanonical
=${target_alias} ;;
3565 # Used for constructing correct paths for offload compilers.
3566 real_target_noncanonical
=${target_noncanonical}
3569 # Determine the target- and build-specific subdirectories
3571 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3572 # have matching libraries, they should use host libraries: Makefile.tpl
3573 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3574 # However, they still use the build modules, because the corresponding
3575 # host modules (e.g. bison) are only built for the host when bootstrap
3577 # - build_subdir is where we find build modules, and never changes.
3578 # - build_libsubdir is where we find build libraries, and can be overridden.
3580 # Prefix 'build-' so this never conflicts with target_subdir.
3581 build_subdir
="build-${build_noncanonical}"
3583 # Check whether --with-build-libsubdir was given.
3584 if test "${with_build_libsubdir+set}" = set; then :
3585 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3587 build_libsubdir
="$build_subdir"
3590 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3591 if ( test $srcdir = .
&& test -d gcc
) \
3592 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3593 host_subdir
="host-${host_noncanonical}"
3598 target_subdir
=${target_noncanonical}
3601 # Set program_transform_name
3602 test "$program_prefix" != NONE
&&
3603 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3604 # Use a double $ so make ignores it.
3605 test "$program_suffix" != NONE
&&
3606 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3607 # Double any \ or $.
3608 # By default was `s,x,x', remove it if useless.
3609 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3610 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3613 # Check for bogus environment variables.
3614 # Test if LIBRARY_PATH contains the notation for the current directory
3615 # since this would lead to problems installing/building glibc.
3616 # LIBRARY_PATH contains the current directory if one of the following
3618 # - one of the terminals (":" and ";") is the first or last sign
3619 # - two terminals occur directly after each other
3620 # - the path contains an element with a dot in it
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3622 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3623 case ${LIBRARY_PATH} in
3624 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3625 library_path_setting
="contains current directory"
3628 library_path_setting
="ok"
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3632 $as_echo "$library_path_setting" >&6; }
3633 if test "$library_path_setting" != "ok"; then
3635 *** LIBRARY_PATH shouldn't contain the current directory when
3636 *** building gcc. Please change the environment variable
3637 *** and run configure again." "$LINENO" 5
3640 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3641 # since this would lead to problems installing/building glibc.
3642 # GCC_EXEC_PREFIX contains the current directory if one of the following
3644 # - one of the terminals (":" and ";") is the first or last sign
3645 # - two terminals occur directly after each other
3646 # - the path contains an element with a dot in it
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3648 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3649 case ${GCC_EXEC_PREFIX} in
3650 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3651 gcc_exec_prefix_setting
="contains current directory"
3654 gcc_exec_prefix_setting
="ok"
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3658 $as_echo "$gcc_exec_prefix_setting" >&6; }
3659 if test "$gcc_exec_prefix_setting" != "ok"; then
3661 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3662 *** building gcc. Please change the environment variable
3663 *** and run configure again." "$LINENO" 5
3670 # Specify the local prefix
3673 # Check whether --with-local-prefix was given.
3674 if test "${with_local_prefix+set}" = set; then :
3675 withval
=$with_local_prefix; case "${withval}" in
3676 yes) as_fn_error $?
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3678 *) local_prefix
=$with_local_prefix ;;
3683 # Default local prefix if it is empty
3684 if test x
$local_prefix = x
; then
3685 local_prefix
=/usr
/local
3689 # Check whether --with-native-system-header-dir was given.
3690 if test "${with_native_system_header_dir+set}" = set; then :
3691 withval
=$with_native_system_header_dir;
3692 case ${with_native_system_header_dir} in
3693 yes|no
) as_fn_error $?
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3694 /* |
[A-Za-z
]:[\\/]*) ;;
3695 *) as_fn_error $?
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3697 configured_native_system_header_dir
="${withval}"
3700 configured_native_system_header_dir
=
3705 # Check whether --with-build-sysroot was given.
3706 if test "${with_build_sysroot+set}" = set; then :
3707 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3708 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3711 SYSROOT_CFLAGS_FOR_TARGET
=
3716 if test "x$prefix" = xNONE
; then
3717 test_prefix
=/usr
/local
3721 if test "x$exec_prefix" = xNONE
; then
3722 test_exec_prefix
=$test_prefix
3724 test_exec_prefix
=$exec_prefix
3728 # Check whether --with-sysroot was given.
3729 if test "${with_sysroot+set}" = set; then :
3730 withval
=$with_sysroot;
3731 case ${with_sysroot} in
3733 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3735 case ${with_sysroot} in
3736 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3737 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3740 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3741 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3743 case ${TARGET_SYSTEM_ROOT} in
3744 "${test_prefix}"|
"${test_prefix}/"*|\
3745 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3746 '${prefix}'|
'${prefix}/'*|\
3747 '${exec_prefix}'|
'${exec_prefix}/'*)
3748 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3749 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3756 TARGET_SYSTEM_ROOT_DEFINE
=
3757 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3765 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3766 # passed in by the toplevel make and thus we'd get different behavior
3767 # depending on where we built the sources.
3768 gcc_gxx_include_dir
=
3769 # Specify the g++ header file directory
3771 # Check whether --with-gxx-include-dir was given.
3772 if test "${with_gxx_include_dir+set}" = set; then :
3773 withval
=$with_gxx_include_dir; case "${withval}" in
3774 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3776 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3781 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3782 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3783 # relative to the sysroot.
3784 gcc_gxx_include_dir_add_sysroot
=0
3786 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3787 if test x
${gcc_gxx_include_dir} = x
; then
3788 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3789 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3791 libstdcxx_incdir
='include/c++/$(version)'
3792 if test x
$host != x
$target; then
3793 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3795 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3797 elif test "${with_sysroot+set}" = set; then
3798 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3799 if test "${gcc_gxx_without_sysroot}"; then
3800 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3801 gcc_gxx_include_dir_add_sysroot
=1
3805 # Configuration for an alternate set of C++ headers.
3806 gcc_gxx_libcxx_include_dir
=
3807 # Specify the alternate g++ header file directory
3809 # Check whether --with-gxx-libcxx-include-dir was given.
3810 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3811 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3812 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3813 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3818 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3819 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3820 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3821 #Â based on the platform (to be available on platform versions where it is the
3822 # default for the system tools). We also use a default path within the compiler
3824 #Â Otherwise, we use the path provided and enable the stdlib option.
3825 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3826 # check to see if the latter starts with the former and, upon success, compute
3827 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3828 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3829 gcc_enable_stdlib_opt
=0
3830 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3831 if test x
${gcc_gxx_libcxx_include_dir} = xno
; then
3832 #Â set defaults for the dir, but the option is disabled anyway.
3833 gcc_gxx_libcxx_include_dir
=
3835 gcc_enable_stdlib_opt
=1
3839 *-darwin1[1-9]* |
*-darwin2*)
3840 #Â Default this on for Darwin versions which default to libcxx,
3841 #Â and embed the path in the compiler install so that we get a
3842 # self-contained toolchain.
3843 gcc_enable_stdlib_opt
=1
3849 cat >>confdefs.h
<<_ACEOF
3850 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3854 # Sysroot behaviour as for gxx-include-dir
3855 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3856 # default path,embedded in the compiler tree.
3857 libcxx_incdir
='include/c++/v1'
3858 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3859 gcc_gxx_libcxx_include_dir
='${libsubdir}/$libcxx_incdir'
3861 if test x
$host != x
$target; then
3862 libcxx_incdir
="$target_alias/$libcxx_incdir"
3864 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3866 elif test "${with_sysroot+set}" = set; then
3867 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3868 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3869 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3870 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3875 # Check whether --with-cpp_install_dir was given.
3876 if test "${with_cpp_install_dir+set}" = set; then :
3877 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3878 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3879 elif test x
$withval != xno
; then
3880 cpp_install_dir
=$withval
3885 # We would like to our source tree to be readonly. However when releases or
3886 # pre-releases are generated, the flex/bison generated files as well as the
3887 # various formats of manuals need to be included along with the rest of the
3888 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3892 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3893 # Check whether --enable-generated-files-in-srcdir was given.
3894 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3895 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3897 generated_files_in_srcdir
=no
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3902 $as_echo "$generated_files_in_srcdir" >&6; }
3904 if test "$generated_files_in_srcdir" = "yes"; then
3911 # -------------------
3912 # Find default linker
3913 # -------------------
3917 # Check whether --with-gnu-ld was given.
3918 if test "${with_gnu_ld+set}" = set; then :
3919 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3927 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3928 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3936 # With pre-defined ld
3938 # Check whether --with-ld was given.
3939 if test "${with_ld+set}" = set; then :
3940 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3943 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3944 if test ! -x "$DEFAULT_LINKER"; then
3945 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3946 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3948 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3952 cat >>confdefs.h
<<_ACEOF
3953 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3959 $as_echo_n "checking whether a default linker was specified... " >&6; }
3960 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3961 if test x
"$gnu_ld_flag" = x
"no"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3963 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3966 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3973 # With demangler in GNU ld
3975 # Check whether --with-demangler-in-ld was given.
3976 if test "${with_demangler_in_ld+set}" = set; then :
3977 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3983 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3985 # Check whether --with-dsymutil was given.
3986 if test "${with_dsymutil+set}" = set; then :
3987 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3992 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3993 if test ! -x "$DEFAULT_DSYMUTIL"; then
3994 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3996 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
4001 cat >>confdefs.h
<<_ACEOF
4002 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
4008 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
4009 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
4011 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4017 # ----------------------
4018 # Find default assembler
4019 # ----------------------
4023 # Check whether --with-gnu-as was given.
4024 if test "${with_gnu_as+set}" = set; then :
4025 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
4032 # Check whether --with-as was given.
4033 if test "${with_as+set}" = set; then :
4034 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
4037 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
4038 if test ! -x "$DEFAULT_ASSEMBLER"; then
4039 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4040 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
4044 cat >>confdefs.h
<<_ACEOF
4045 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4051 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4052 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
4053 if test x
"$gas_flag" = x
"no"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4055 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4058 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4069 # If a non-executable a.out is present (e.g. created by GNU as above even if
4070 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4071 # file, even when creating an executable, so an execution test fails.
4072 # Remove possible default executable files to avoid this.
4074 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4075 # Autoconf includes it.
4076 rm -f a.out a.exe b.out
4078 # Find the native compiler
4080 ac_cpp
='$CPP $CPPFLAGS'
4081 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4084 if test -n "$ac_tool_prefix"; then
4085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4086 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if ${ac_cv_prog_CC+:} false
; then :
4090 $as_echo_n "(cached) " >&6
4092 if test -n "$CC"; then
4093 ac_cv_prog_CC
="$CC" # Let the user override the test.
4095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4099 test -z "$as_dir" && as_dir
=.
4100 for ac_exec_ext
in '' $ac_executable_extensions; do
4101 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 if test -n "$CC"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115 $as_echo "$CC" >&6; }
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4123 if test -z "$ac_cv_prog_CC"; then
4125 # Extract the first word of "gcc", so it can be a program name with args.
4126 set dummy gcc
; ac_word
=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4130 $as_echo_n "(cached) " >&6
4132 if test -n "$ac_ct_CC"; then
4133 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir
=.
4140 for ac_exec_ext
in '' $ac_executable_extensions; do
4141 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_ac_ct_CC
="gcc"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4153 if test -n "$ac_ct_CC"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4155 $as_echo "$ac_ct_CC" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4161 if test "x$ac_ct_CC" = x
; then
4164 case $cross_compiling:$ac_tool_warned in
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168 ac_tool_warned
=yes ;;
4176 if test -z "$CC"; then
4177 if test -n "$ac_tool_prefix"; then
4178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4179 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_CC+:} false
; then :
4183 $as_echo_n "(cached) " >&6
4185 if test -n "$CC"; then
4186 ac_cv_prog_CC
="$CC" # Let the user override the test.
4188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir
=.
4193 for ac_exec_ext
in '' $ac_executable_extensions; do
4194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 if test -n "$CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208 $as_echo "$CC" >&6; }
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4217 if test -z "$CC"; then
4218 # Extract the first word of "cc", so it can be a program name with args.
4219 set dummy cc
; ac_word
=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_CC+:} false
; then :
4223 $as_echo_n "(cached) " >&6
4225 if test -n "$CC"; then
4226 ac_cv_prog_CC
="$CC" # Let the user override the test.
4229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir
=.
4234 for ac_exec_ext
in '' $ac_executable_extensions; do
4235 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4237 ac_prog_rejected
=yes
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 if test $ac_prog_rejected = yes; then
4249 # We found a bogon in the path, so make sure we never use it.
4250 set dummy
$ac_cv_prog_CC
4252 if test $# != 0; then
4253 # We chose a different compiler from the bogus one.
4254 # However, it has the same basename, so the bogon will be chosen
4255 # first if we set CC to just the basename; use the full file name.
4257 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4263 if test -n "$CC"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4265 $as_echo "$CC" >&6; }
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4273 if test -z "$CC"; then
4274 if test -n "$ac_tool_prefix"; then
4275 for ac_prog
in cl.exe
4277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_CC+:} false
; then :
4282 $as_echo_n "(cached) " >&6
4284 if test -n "$CC"; then
4285 ac_cv_prog_CC
="$CC" # Let the user override the test.
4287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir
=.
4292 for ac_exec_ext
in '' $ac_executable_extensions; do
4293 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 if test -n "$CC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307 $as_echo "$CC" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4314 test -n "$CC" && break
4317 if test -z "$CC"; then
4319 for ac_prog
in cl.exe
4321 # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy
$ac_prog; ac_word
=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4326 $as_echo_n "(cached) " >&6
4328 if test -n "$ac_ct_CC"; then
4329 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir
=.
4336 for ac_exec_ext
in '' $ac_executable_extensions; do
4337 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_CC
="$ac_prog"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4349 if test -n "$ac_ct_CC"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4351 $as_echo "$ac_ct_CC" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4358 test -n "$ac_ct_CC" && break
4361 if test "x$ac_ct_CC" = x
; then
4364 case $cross_compiling:$ac_tool_warned in
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368 ac_tool_warned
=yes ;;
4377 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4379 as_fn_error $?
"no acceptable C compiler found in \$PATH
4380 See \`config.log' for more details" "$LINENO" 5; }
4382 # Provide some information about the compiler.
4383 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4386 for ac_option
in --version -v -V -qversion; do
4387 { { ac_try
="$ac_compiler $ac_option >&5"
4389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4396 if test -s conftest.err; then
4398 ... rest of stderr output deleted ...
4399 10q' conftest.err >conftest.er1
4400 cat conftest.er1 >&5
4402 rm -f conftest.er1 conftest.err
4403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404 test $ac_status = 0; }
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4418 ac_clean_files_save=$ac_clean_files
4419 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4420 # Try to create an executable without -o first, disregard a.out.
4421 # It will help us diagnose broken compilers, and finding out an intuition
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4424 $as_echo_n "checking whether the C compiler works... " >&6; }
4425 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4427 # The possible output files:
4428 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4431 for ac_file in $ac_files
4434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4435 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4440 if { { ac_try="$ac_link_default"
4442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4443 *) ac_try_echo
=$ac_try;;
4445 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 $as_echo "$ac_try_echo"; } >&5
4447 (eval "$ac_link_default") 2>&5
4449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450 test $ac_status = 0; }; then :
4451 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4452 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4453 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4454 # so that the user can short-circuit this test for compilers unknown to
4456 for ac_file
in $ac_files ''
4458 test -f "$ac_file" ||
continue
4460 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4463 # We found the default executable, but exeext='' is most
4467 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4469 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4471 # We set ac_cv_exeext here because the later test for it is not
4472 # safe: cross compilers may not add the suffix if given an `-o'
4473 # argument, so we may need to know it at that point already.
4474 # Even if this section looks crufty: it has the advantage of
4481 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4486 if test -z "$ac_file"; then :
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 $as_echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.
$ac_ext >&5
4492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4494 as_fn_error
77 "C compiler cannot create executables
4495 See \`config.log' for more details" "$LINENO" 5; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4498 $as_echo "yes" >&6; }
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4501 $as_echo_n "checking for C compiler default output file name... " >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4503 $as_echo "$ac_file" >&6; }
4504 ac_exeext
=$ac_cv_exeext
4506 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4507 ac_clean_files
=$ac_clean_files_save
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4509 $as_echo_n "checking for suffix of executables... " >&6; }
4510 if { { ac_try
="$ac_link"
4512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_link") 2>&5
4519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }; then :
4521 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4522 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4523 # work properly (i.e., refer to `conftest.exe'), while it won't with
4525 for ac_file
in conftest.exe conftest conftest.
*; do
4526 test -f "$ac_file" ||
continue
4528 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4529 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4537 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4538 See \`config.log' for more details" "$LINENO" 5; }
4540 rm -f conftest conftest
$ac_cv_exeext
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4542 $as_echo "$ac_cv_exeext" >&6; }
4544 rm -f conftest.
$ac_ext
4545 EXEEXT
=$ac_cv_exeext
4547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4553 FILE *f = fopen ("conftest.out", "w");
4554 return ferror (f) || fclose (f) != 0;
4560 ac_clean_files
="$ac_clean_files conftest.out"
4561 # Check that the compiler produces executables we can run. If not, either
4562 # the compiler is broken, or we cross compile.
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4564 $as_echo_n "checking whether we are cross compiling... " >&6; }
4565 if test "$cross_compiling" != yes; then
4566 { { ac_try
="$ac_link"
4568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_link") 2>&5
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }
4577 if { ac_try='./conftest$ac_cv_exeext'
4578 { { case "(($ac_try" in
4579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4580 *) ac_try_echo
=$ac_try;;
4582 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583 $as_echo "$ac_try_echo"; } >&5
4584 (eval "$ac_try") 2>&5
4586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }; }; then
4590 if test "$cross_compiling" = maybe
; then
4593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4595 as_fn_error $?
"cannot run C compiled programs.
4596 If you meant to cross compile, use \`--host'.
4597 See \`config.log' for more details" "$LINENO" 5; }
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4602 $as_echo "$cross_compiling" >&6; }
4604 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4605 ac_clean_files
=$ac_clean_files_save
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4607 $as_echo_n "checking for suffix of object files... " >&6; }
4608 if ${ac_cv_objext+:} false
; then :
4609 $as_echo_n "(cached) " >&6
4611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4622 rm -f conftest.o conftest.obj
4623 if { { ac_try
="$ac_compile"
4625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4629 $as_echo "$ac_try_echo"; } >&5
4630 (eval "$ac_compile") 2>&5
4632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4633 test $ac_status = 0; }; then :
4634 for ac_file in conftest.o conftest.obj conftest.*; do
4635 test -f "$ac_file" || continue;
4637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4638 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4643 $as_echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4649 See \
`config.log' for more details" "$LINENO" 5; }
4651 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4654 $as_echo "$ac_cv_objext" >&6; }
4655 OBJEXT=$ac_cv_objext
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4658 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4659 if ${ac_cv_c_compiler_gnu+:} false; then :
4660 $as_echo_n "(cached) " >&6
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4676 if ac_fn_c_try_compile "$LINENO"; then :
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4686 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4687 if test $ac_compiler_gnu = yes; then
4692 ac_test_CFLAGS=${CFLAGS+set}
4693 ac_save_CFLAGS=$CFLAGS
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4695 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4696 if ${ac_cv_prog_cc_g+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 ac_save_c_werror_flag=$ac_c_werror_flag
4700 ac_c_werror_flag=yes
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4714 if ac_fn_c_try_compile "$LINENO"; then :
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4729 if ac_fn_c_try_compile "$LINENO"; then :
4732 ac_c_werror_flag=$ac_save_c_werror_flag
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4745 if ac_fn_c_try_compile "$LINENO"; then :
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 ac_c_werror_flag=$ac_save_c_werror_flag
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4756 $as_echo "$ac_cv_prog_cc_g" >&6; }
4757 if test "$ac_test_CFLAGS" = set; then
4758 CFLAGS=$ac_save_CFLAGS
4759 elif test $ac_cv_prog_cc_g = yes; then
4760 if test "$GCC" = yes; then
4766 if test "$GCC" = yes; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4773 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4774 if ${ac_cv_prog_cc_c89+:} false; then :
4775 $as_echo_n "(cached) " >&6
4777 ac_cv_prog_cc_c89=no
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4784 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4785 struct buf { int x; };
4786 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4787 static char *e (p, i)
4793 static char *f (char * (*g) (char **, int), char **p, ...)
4798 s = g (p, va_arg (v,int));
4803 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4804 function prototypes and stuff, but not '\xHH' hex character constants.
4805 These don't provoke an error unfortunately, instead are silently treated
4806 as 'x'. The following induces an error, until -std is added to get
4807 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4808 array size at least. It's necessary to write '\x00'==0 to get something
4809 that's true only with -std. */
4810 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4812 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4813 inside strings and character constants. */
4815 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4817 int test (int i, double x);
4818 struct s1 {int (*f) (int a);};
4819 struct s2 {int (*f) (double a);};
4820 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4826 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4831 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4832 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4834 CC="$ac_save_CC $ac_arg"
4835 if ac_fn_c_try_compile "$LINENO"; then :
4836 ac_cv_prog_cc_c89=$ac_arg
4838 rm -f core conftest.err conftest.$ac_objext
4839 test "x$ac_cv_prog_cc_c89" != "xno" && break
4841 rm -f conftest.$ac_ext
4846 case "x$ac_cv_prog_cc_c89" in
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4849 $as_echo "none needed" >&6; } ;;
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4852 $as_echo "unsupported" >&6; } ;;
4854 CC="$CC $ac_cv_prog_cc_c89"
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4858 if test "x$ac_cv_prog_cc_c89" != xno; then :
4863 ac_cpp='$CPP $CPPFLAGS'
4864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869 ac_cpp='$CXXCPP $CPPFLAGS'
4870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4873 if test -z "$CXX"; then
4874 if test -n "$CCC"; then
4877 if test -n "$ac_tool_prefix"; then
4878 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_prog_CXX+:} false; then :
4885 $as_echo_n "(cached) " >&6
4887 if test -n "$CXX"; then
4888 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4897 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 if test -n "$CXX"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4910 $as_echo "$CXX" >&6; }
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4917 test -n "$CXX" && break
4920 if test -z "$CXX"; then
4922 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4929 $as_echo_n "(cached) " >&6
4931 if test -n "$ac_ct_CXX"; then
4932 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_ac_ct_CXX="$ac_prog"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4952 if test -n "$ac_ct_CXX"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4954 $as_echo "$ac_ct_CXX" >&6; }
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 test -n "$ac_ct_CXX" && break
4964 if test "x$ac_ct_CXX" = x; then
4967 case $cross_compiling:$ac_tool_warned in
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4979 # Provide some information about the compiler.
4980 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4983 for ac_option in --version -v -V -qversion; do
4984 { { ac_try="$ac_compiler $ac_option >&5"
4986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4987 *) ac_try_echo
=$ac_try;;
4989 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4990 $as_echo "$ac_try_echo"; } >&5
4991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4993 if test -s conftest.err
; then
4995 ... rest of stderr output deleted ...
4996 10q' conftest.err
>conftest.er1
4997 cat conftest.er1
>&5
4999 rm -f conftest.er1 conftest.err
5000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; }
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5005 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5006 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5007 $as_echo_n "(cached) " >&6
5009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5023 if ac_fn_cxx_try_compile
"$LINENO"; then :
5028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5029 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5033 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5034 if test $ac_compiler_gnu = yes; then
5039 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5040 ac_save_CXXFLAGS
=$CXXFLAGS
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5042 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5043 if ${ac_cv_prog_cxx_g+:} false
; then :
5044 $as_echo_n "(cached) " >&6
5046 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5047 ac_cxx_werror_flag
=yes
5050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5061 if ac_fn_cxx_try_compile
"$LINENO"; then :
5062 ac_cv_prog_cxx_g
=yes
5065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5076 if ac_fn_cxx_try_compile
"$LINENO"; then :
5079 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5092 if ac_fn_cxx_try_compile
"$LINENO"; then :
5093 ac_cv_prog_cxx_g
=yes
5095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5100 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5103 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5104 if test "$ac_test_CXXFLAGS" = set; then
5105 CXXFLAGS
=$ac_save_CXXFLAGS
5106 elif test $ac_cv_prog_cxx_g = yes; then
5107 if test "$GXX" = yes; then
5113 if test "$GXX" = yes; then
5120 ac_cpp
='$CPP $CPPFLAGS'
5121 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5128 if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5130 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_GNATBIND+:} false
; then :
5134 $as_echo_n "(cached) " >&6
5136 if test -n "$GNATBIND"; then
5137 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5143 test -z "$as_dir" && as_dir
=.
5144 for ac_exec_ext
in '' $ac_executable_extensions; do
5145 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 GNATBIND
=$ac_cv_prog_GNATBIND
5157 if test -n "$GNATBIND"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5159 $as_echo "$GNATBIND" >&6; }
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5167 if test -z "$ac_cv_prog_GNATBIND"; then
5168 ac_ct_GNATBIND
=$GNATBIND
5169 # Extract the first word of "gnatbind", so it can be a program name with args.
5170 set dummy gnatbind
; ac_word
=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5174 $as_echo_n "(cached) " >&6
5176 if test -n "$ac_ct_GNATBIND"; then
5177 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir
=.
5184 for ac_exec_ext
in '' $ac_executable_extensions; do
5185 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5197 if test -n "$ac_ct_GNATBIND"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5199 $as_echo "$ac_ct_GNATBIND" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5205 if test "x$ac_ct_GNATBIND" = x
; then
5208 case $cross_compiling:$ac_tool_warned in
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned
=yes ;;
5214 GNATBIND
=$ac_ct_GNATBIND
5217 GNATBIND
="$ac_cv_prog_GNATBIND"
5220 if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5222 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5226 $as_echo_n "(cached) " >&6
5228 if test -n "$GNATMAKE"; then
5229 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir
=.
5236 for ac_exec_ext
in '' $ac_executable_extensions; do
5237 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 GNATMAKE
=$ac_cv_prog_GNATMAKE
5249 if test -n "$GNATMAKE"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5251 $as_echo "$GNATMAKE" >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5259 if test -z "$ac_cv_prog_GNATMAKE"; then
5260 ac_ct_GNATMAKE
=$GNATMAKE
5261 # Extract the first word of "gnatmake", so it can be a program name with args.
5262 set dummy gnatmake
; ac_word
=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5266 $as_echo_n "(cached) " >&6
5268 if test -n "$ac_ct_GNATMAKE"; then
5269 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5275 test -z "$as_dir" && as_dir
=.
5276 for ac_exec_ext
in '' $ac_executable_extensions; do
5277 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5289 if test -n "$ac_ct_GNATMAKE"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5291 $as_echo "$ac_ct_GNATMAKE" >&6; }
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5297 if test "x$ac_ct_GNATMAKE" = x
; then
5300 case $cross_compiling:$ac_tool_warned in
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304 ac_tool_warned
=yes ;;
5306 GNATMAKE
=$ac_ct_GNATMAKE
5309 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5313 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5314 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5315 $as_echo_n "(cached) " >&6
5317 cat >conftest.adb
<<EOF
5318 pragma Warnings (Off);
5320 pragma Warnings (On);
5321 use type System.CRTL.int64;
5322 procedure conftest is begin null; end conftest;
5324 acx_cv_cc_gcc_supports_ada
=no
5325 # There is a bug in old released versions of GCC which causes the
5326 # driver to exit successfully when the appropriate language module
5327 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5328 # Therefore we must check for the error message as well as an
5329 # unsuccessful exit.
5330 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5331 # given a .adb file, but produce no object file. So we must check
5332 # if an object file was really produced to guard against this.
5333 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5334 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5335 acx_cv_cc_gcc_supports_ada
=yes
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5340 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5342 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5350 if test -n "$ac_tool_prefix"; then
5351 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5352 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_prog_GDC+:} false
; then :
5356 $as_echo_n "(cached) " >&6
5358 if test -n "$GDC"; then
5359 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir
=.
5366 for ac_exec_ext
in '' $ac_executable_extensions; do
5367 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 if test -n "$GDC"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5381 $as_echo "$GDC" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5389 if test -z "$ac_cv_prog_GDC"; then
5391 # Extract the first word of "gdc", so it can be a program name with args.
5392 set dummy gdc
; ac_word
=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5396 $as_echo_n "(cached) " >&6
5398 if test -n "$ac_ct_GDC"; then
5399 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir
=.
5406 for ac_exec_ext
in '' $ac_executable_extensions; do
5407 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5408 ac_cv_prog_ac_ct_GDC
="gdc"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5419 if test -n "$ac_ct_GDC"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5421 $as_echo "$ac_ct_GDC" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5427 if test "x$ac_ct_GDC" = x
; then
5430 case $cross_compiling:$ac_tool_warned in
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5434 ac_tool_warned
=yes ;;
5439 GDC
="$ac_cv_prog_GDC"
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5443 $as_echo_n "checking whether the D compiler works... " >&6; }
5444 if ${acx_cv_d_compiler_works+:} false
; then :
5445 $as_echo_n "(cached) " >&6
5447 cat >conftest.d
<<EOF
5448 module conftest; int main() { return 0; }
5450 acx_cv_d_compiler_works
=no
5451 if test "x$GDC" != xno
; then
5452 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5453 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5454 acx_cv_d_compiler_works
=yes
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5460 $as_echo "$acx_cv_d_compiler_works" >&6; }
5461 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5468 # Do configure tests with the C++ compiler, since that's what we build with.
5470 ac_cpp
='$CXXCPP $CPPFLAGS'
5471 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5476 # Remove all -O flags: for historical reasons, unless bootstrapping we prefer
5477 # optimizations to be activated explicitly by the toplevel.
5479 */prev-gcc
/xgcc
*) ;;
5482 for flag
in $CFLAGS; do
5485 *) new_CFLAGS
="$new_CFLAGS $flag" ;;
5490 for flag
in $CXXFLAGS; do
5493 *) new_CXXFLAGS
="$new_CXXFLAGS $flag" ;;
5496 CXXFLAGS
=$new_CXXFLAGS
5503 # Determine PICFLAG for target gnatlib.
5509 # PIC is the default on some targets or must not be used.
5511 # For darwin, common symbols are not allowed in MH_DYLIB files
5513 # If we are using a compiler supporting mdynamic-no-pic
5514 # and the option has been tested as safe to add, then cancel
5515 # it here, since the code generated is incompatible with shared
5517 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5518 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5522 # PIC is the default.
5525 # PIC is the default for 64-bit PA HP-UX.
5527 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5529 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5531 i
[34567]86-*-interix[3-9]*)
5532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5533 # Instead, we relocate shared libraries at runtime.
5535 i
[34567]86-*-nto-qnx*)
5536 # QNX uses GNU C++, but need to define -shared option too, otherwise
5538 PICFLAG_FOR_TARGET
='-fPIC -shared'
5540 i
[34567]86-pc-msdosdjgpp*)
5541 # DJGPP does not support shared libraries at all.
5544 # On IA64 HP-UX, PIC is the default but the pic flag
5545 # sets the default TLS model and affects inlining.
5546 PICFLAG_FOR_TARGET
=-fPIC
5549 PICFLAG_FOR_TARGET
=-fpic
5552 # PIC is the default.
5554 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5555 # All AIX code is PIC.
5558 # Some targets support both -fPIC and -fpic, but prefer the latter.
5560 i
[34567]86-*-* | x86_64-
*-*)
5561 PICFLAG_FOR_TARGET
=-fpic
5563 # FIXME: Override -fPIC default in libgcc only?
5564 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5565 PICFLAG_FOR_TARGET
=-fpic
5568 PICFLAG_FOR_TARGET
=-fpic
5570 # Default to -fPIC unless specified otherwise.
5572 PICFLAG_FOR_TARGET
=-fPIC
5576 # If the user explicitly uses -fpic/-fPIC, keep that.
5577 case "${CFLAGS_FOR_TARGET}" in
5579 PICFLAG_FOR_TARGET
=-fpic
5582 PICFLAG_FOR_TARGET
=-fPIC
5588 # -------------------------
5589 # Check C compiler features
5590 # -------------------------
5594 ac_cpp
='$CXXCPP $CPPFLAGS'
5595 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5596 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5597 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5599 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5600 if test -z "$CXXCPP"; then
5601 if ${ac_cv_prog_CXXCPP+:} false
; then :
5602 $as_echo_n "(cached) " >&6
5604 # Double quotes because CXXCPP needs to be expanded
5605 for CXXCPP
in "$CXX -E" "/lib/cpp"
5608 for ac_cxx_preproc_warn_flag
in '' yes
5610 # Use a header file that comes with gcc, so configuring glibc
5611 # with a fresh cross-compiler works.
5612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5613 # <limits.h> exists even on freestanding compilers.
5614 # On the NeXT, cc -E runs the code through the compiler's parser,
5615 # not just through cpp. "Syntax error" is here to catch this case.
5616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5619 # include <limits.h>
5621 # include <assert.h>
5625 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5628 # Broken: fails on valid input.
5631 rm -f conftest.err conftest.i conftest.
$ac_ext
5633 # OK, works on sane cases. Now check whether nonexistent headers
5634 # can be detected and how.
5635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #include <ac_nonexistent.h>
5639 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5640 # Broken: success on invalid input.
5643 # Passes both tests.
5647 rm -f conftest.err conftest.i conftest.
$ac_ext
5650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5651 rm -f conftest.i conftest.err conftest.
$ac_ext
5652 if $ac_preproc_ok; then :
5657 ac_cv_prog_CXXCPP
=$CXXCPP
5660 CXXCPP
=$ac_cv_prog_CXXCPP
5662 ac_cv_prog_CXXCPP
=$CXXCPP
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5665 $as_echo "$CXXCPP" >&6; }
5667 for ac_cxx_preproc_warn_flag
in '' yes
5669 # Use a header file that comes with gcc, so configuring glibc
5670 # with a fresh cross-compiler works.
5671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5672 # <limits.h> exists even on freestanding compilers.
5673 # On the NeXT, cc -E runs the code through the compiler's parser,
5674 # not just through cpp. "Syntax error" is here to catch this case.
5675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5678 # include <limits.h>
5680 # include <assert.h>
5684 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5687 # Broken: fails on valid input.
5690 rm -f conftest.err conftest.i conftest.
$ac_ext
5692 # OK, works on sane cases. Now check whether nonexistent headers
5693 # can be detected and how.
5694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #include <ac_nonexistent.h>
5698 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5699 # Broken: success on invalid input.
5702 # Passes both tests.
5706 rm -f conftest.err conftest.i conftest.
$ac_ext
5709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5710 rm -f conftest.i conftest.err conftest.
$ac_ext
5711 if $ac_preproc_ok; then :
5714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5716 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5717 See \`config.log' for more details" "$LINENO" 5; }
5721 ac_cpp
='$CXXCPP $CPPFLAGS'
5722 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5723 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5724 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5728 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5729 if ${ac_cv_path_GREP+:} false
; then :
5730 $as_echo_n "(cached) " >&6
5732 if test -z "$GREP"; then
5733 ac_path_GREP_found
=false
5734 # Loop through the user's path and test for each of PROGNAME-LIST
5735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5736 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5739 test -z "$as_dir" && as_dir
=.
5740 for ac_prog
in grep ggrep
; do
5741 for ac_exec_ext
in '' $ac_executable_extensions; do
5742 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5743 as_fn_executable_p
"$ac_path_GREP" ||
continue
5744 # Check for GNU ac_path_GREP and select it if it is found.
5745 # Check for GNU $ac_path_GREP
5746 case `"$ac_path_GREP" --version 2>&1` in
5748 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5751 $as_echo_n 0123456789 >"conftest.in"
5754 cat "conftest.in" "conftest.in" >"conftest.tmp"
5755 mv "conftest.tmp" "conftest.in"
5756 cp "conftest.in" "conftest.nl"
5757 $as_echo 'GREP' >> "conftest.nl"
5758 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5759 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5760 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5761 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5762 # Best one so far, save it but keep looking for a better one
5763 ac_cv_path_GREP
="$ac_path_GREP"
5764 ac_path_GREP_max
=$ac_count
5766 # 10*(2^10) chars as input seems more than enough
5767 test $ac_count -gt 10 && break
5769 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5772 $ac_path_GREP_found && break 3
5777 if test -z "$ac_cv_path_GREP"; then
5778 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5781 ac_cv_path_GREP
=$GREP
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5786 $as_echo "$ac_cv_path_GREP" >&6; }
5787 GREP
="$ac_cv_path_GREP"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5791 $as_echo_n "checking for egrep... " >&6; }
5792 if ${ac_cv_path_EGREP+:} false
; then :
5793 $as_echo_n "(cached) " >&6
5795 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5796 then ac_cv_path_EGREP
="$GREP -E"
5798 if test -z "$EGREP"; then
5799 ac_path_EGREP_found
=false
5800 # Loop through the user's path and test for each of PROGNAME-LIST
5801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5802 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5805 test -z "$as_dir" && as_dir
=.
5806 for ac_prog
in egrep; do
5807 for ac_exec_ext
in '' $ac_executable_extensions; do
5808 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5809 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5810 # Check for GNU ac_path_EGREP and select it if it is found.
5811 # Check for GNU $ac_path_EGREP
5812 case `"$ac_path_EGREP" --version 2>&1` in
5814 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5817 $as_echo_n 0123456789 >"conftest.in"
5820 cat "conftest.in" "conftest.in" >"conftest.tmp"
5821 mv "conftest.tmp" "conftest.in"
5822 cp "conftest.in" "conftest.nl"
5823 $as_echo 'EGREP' >> "conftest.nl"
5824 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5825 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5826 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5827 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5828 # Best one so far, save it but keep looking for a better one
5829 ac_cv_path_EGREP
="$ac_path_EGREP"
5830 ac_path_EGREP_max
=$ac_count
5832 # 10*(2^10) chars as input seems more than enough
5833 test $ac_count -gt 10 && break
5835 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5838 $ac_path_EGREP_found && break 3
5843 if test -z "$ac_cv_path_EGREP"; then
5844 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5847 ac_cv_path_EGREP
=$EGREP
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5853 $as_echo "$ac_cv_path_EGREP" >&6; }
5854 EGREP
="$ac_cv_path_EGREP"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5858 $as_echo_n "checking for ANSI C header files... " >&6; }
5859 if ${ac_cv_header_stdc+:} false
; then :
5860 $as_echo_n "(cached) " >&6
5862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5877 if ac_fn_cxx_try_compile
"$LINENO"; then :
5878 ac_cv_header_stdc
=yes
5880 ac_cv_header_stdc
=no
5882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5884 if test $ac_cv_header_stdc = yes; then
5885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892 $EGREP "memchr" >/dev
/null
2>&1; then :
5895 ac_cv_header_stdc
=no
5901 if test $ac_cv_header_stdc = yes; then
5902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5909 $EGREP "free" >/dev
/null
2>&1; then :
5912 ac_cv_header_stdc
=no
5918 if test $ac_cv_header_stdc = yes; then
5919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5920 if test "$cross_compiling" = yes; then :
5923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5927 #if ((' ' & 0x0FF) == 0x020)
5928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5931 # define ISLOWER(c) \
5932 (('a' <= (c) && (c) <= 'i') \
5933 || ('j' <= (c) && (c) <= 'r') \
5934 || ('s' <= (c) && (c) <= 'z'))
5935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5943 for (i = 0; i < 256; i++)
5944 if (XOR (islower (i), ISLOWER (i))
5945 || toupper (i) != TOUPPER (i))
5950 if ac_fn_cxx_try_run
"$LINENO"; then :
5953 ac_cv_header_stdc
=no
5955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5956 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5962 $as_echo "$ac_cv_header_stdc" >&6; }
5963 if test $ac_cv_header_stdc = yes; then
5965 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5970 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5971 inttypes.h stdint.h unistd.h
5973 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5974 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5976 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5977 cat >>confdefs.h
<<_ACEOF
5978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5987 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5988 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5995 if test "$MINIX" = yes; then
5997 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6000 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6003 $as_echo "#define _MINIX 1" >>confdefs.h
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6009 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6010 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
6011 $as_echo_n "(cached) " >&6
6013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6016 # define __EXTENSIONS__ 1
6017 $ac_includes_default
6026 if ac_fn_cxx_try_compile
"$LINENO"; then :
6027 ac_cv_safe_to_define___extensions__
=yes
6029 ac_cv_safe_to_define___extensions__
=no
6031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6034 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6035 test $ac_cv_safe_to_define___extensions__ = yes &&
6036 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6038 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6040 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6042 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6044 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6049 ac_cpp
='$CPP $CPPFLAGS'
6050 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6054 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6055 # On Suns, sometimes $CPP names a directory.
6056 if test -n "$CPP" && test -d "$CPP"; then
6059 if test -z "$CPP"; then
6060 if ${ac_cv_prog_CPP+:} false
; then :
6061 $as_echo_n "(cached) " >&6
6063 # Double quotes because CPP needs to be expanded
6064 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6067 for ac_c_preproc_warn_flag
in '' yes
6069 # Use a header file that comes with gcc, so configuring glibc
6070 # with a fresh cross-compiler works.
6071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6072 # <limits.h> exists even on freestanding compilers.
6073 # On the NeXT, cc -E runs the code through the compiler's parser,
6074 # not just through cpp. "Syntax error" is here to catch this case.
6075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6078 # include <limits.h>
6080 # include <assert.h>
6084 if ac_fn_c_try_cpp
"$LINENO"; then :
6087 # Broken: fails on valid input.
6090 rm -f conftest.err conftest.i conftest.
$ac_ext
6092 # OK, works on sane cases. Now check whether nonexistent headers
6093 # can be detected and how.
6094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 #include <ac_nonexistent.h>
6098 if ac_fn_c_try_cpp
"$LINENO"; then :
6099 # Broken: success on invalid input.
6102 # Passes both tests.
6106 rm -f conftest.err conftest.i conftest.
$ac_ext
6109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6110 rm -f conftest.i conftest.err conftest.
$ac_ext
6111 if $ac_preproc_ok; then :
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6124 $as_echo "$CPP" >&6; }
6126 for ac_c_preproc_warn_flag
in '' yes
6128 # Use a header file that comes with gcc, so configuring glibc
6129 # with a fresh cross-compiler works.
6130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6131 # <limits.h> exists even on freestanding compilers.
6132 # On the NeXT, cc -E runs the code through the compiler's parser,
6133 # not just through cpp. "Syntax error" is here to catch this case.
6134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6137 # include <limits.h>
6139 # include <assert.h>
6143 if ac_fn_c_try_cpp
"$LINENO"; then :
6146 # Broken: fails on valid input.
6149 rm -f conftest.err conftest.i conftest.
$ac_ext
6151 # OK, works on sane cases. Now check whether nonexistent headers
6152 # can be detected and how.
6153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 #include <ac_nonexistent.h>
6157 if ac_fn_c_try_cpp
"$LINENO"; then :
6158 # Broken: success on invalid input.
6161 # Passes both tests.
6165 rm -f conftest.err conftest.i conftest.
$ac_ext
6168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6169 rm -f conftest.i conftest.err conftest.
$ac_ext
6170 if $ac_preproc_ok; then :
6173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6175 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6176 See \`config.log' for more details" "$LINENO" 5; }
6180 ac_cpp
='$CXXCPP $CPPFLAGS'
6181 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6186 $as_echo_n "checking for inline... " >&6; }
6187 if ${ac_cv_c_inline+:} false
; then :
6188 $as_echo_n "(cached) " >&6
6191 for ac_kw
in inline __inline__ __inline
; do
6192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6196 static $ac_kw foo_t static_foo () {return 0; }
6197 $ac_kw foo_t foo () {return 0; }
6201 if ac_fn_cxx_try_compile
"$LINENO"; then :
6202 ac_cv_c_inline
=$ac_kw
6204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6205 test "$ac_cv_c_inline" != no
&& break
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6210 $as_echo "$ac_cv_c_inline" >&6; }
6212 case $ac_cv_c_inline in
6215 case $ac_cv_c_inline in
6217 *) ac_val
=$ac_cv_c_inline;;
6219 cat >>confdefs.h
<<_ACEOF
6221 #define inline $ac_val
6228 # Check whether --enable-largefile was given.
6229 if test "${enable_largefile+set}" = set; then :
6230 enableval
=$enable_largefile;
6233 if test "$enable_largefile" != no
; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6236 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6237 if ${ac_cv_sys_largefile_CC+:} false
; then :
6238 $as_echo_n "(cached) " >&6
6240 ac_cv_sys_largefile_CC
=no
6241 if test "$GCC" != yes; then
6244 # IRIX 6.2 and later do not support large files by default,
6245 # so use the C compiler's -n32 option if that helps.
6246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248 #include <sys/types.h>
6249 /* Check that off_t can represent 2**63 - 1 correctly.
6250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6251 since some C++ compilers masquerading as C compilers
6252 incorrectly reject 9223372036854775807. */
6253 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6255 && LARGE_OFF_T % 2147483647 == 1)
6265 if ac_fn_cxx_try_compile
"$LINENO"; then :
6268 rm -f core conftest.err conftest.
$ac_objext
6270 if ac_fn_cxx_try_compile
"$LINENO"; then :
6271 ac_cv_sys_largefile_CC
=' -n32'; break
6273 rm -f core conftest.err conftest.
$ac_objext
6277 rm -f conftest.
$ac_ext
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6281 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6282 if test "$ac_cv_sys_largefile_CC" != no
; then
6283 CC
=$CC$ac_cv_sys_largefile_CC
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6287 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6288 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6289 $as_echo_n "(cached) " >&6
6292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 #include <sys/types.h>
6295 /* Check that off_t can represent 2**63 - 1 correctly.
6296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6297 since some C++ compilers masquerading as C compilers
6298 incorrectly reject 9223372036854775807. */
6299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6301 && LARGE_OFF_T % 2147483647 == 1)
6311 if ac_fn_cxx_try_compile
"$LINENO"; then :
6312 ac_cv_sys_file_offset_bits
=no
; break
6314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 #define _FILE_OFFSET_BITS 64
6318 #include <sys/types.h>
6319 /* Check that off_t can represent 2**63 - 1 correctly.
6320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6321 since some C++ compilers masquerading as C compilers
6322 incorrectly reject 9223372036854775807. */
6323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6325 && LARGE_OFF_T % 2147483647 == 1)
6335 if ac_fn_cxx_try_compile
"$LINENO"; then :
6336 ac_cv_sys_file_offset_bits
=64; break
6338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6339 ac_cv_sys_file_offset_bits
=unknown
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6344 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6345 case $ac_cv_sys_file_offset_bits in #(
6348 cat >>confdefs.h
<<_ACEOF
6349 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6354 if test $ac_cv_sys_file_offset_bits = unknown
; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6356 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6357 if ${ac_cv_sys_large_files+:} false
; then :
6358 $as_echo_n "(cached) " >&6
6361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 #include <sys/types.h>
6364 /* Check that off_t can represent 2**63 - 1 correctly.
6365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6366 since some C++ compilers masquerading as C compilers
6367 incorrectly reject 9223372036854775807. */
6368 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6370 && LARGE_OFF_T % 2147483647 == 1)
6380 if ac_fn_cxx_try_compile
"$LINENO"; then :
6381 ac_cv_sys_large_files
=no
; break
6383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 #define _LARGE_FILES 1
6387 #include <sys/types.h>
6388 /* Check that off_t can represent 2**63 - 1 correctly.
6389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6390 since some C++ compilers masquerading as C compilers
6391 incorrectly reject 9223372036854775807. */
6392 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6394 && LARGE_OFF_T % 2147483647 == 1)
6404 if ac_fn_cxx_try_compile
"$LINENO"; then :
6405 ac_cv_sys_large_files
=1; break
6407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6408 ac_cv_sys_large_files
=unknown
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6413 $as_echo "$ac_cv_sys_large_files" >&6; }
6414 case $ac_cv_sys_large_files in #(
6417 cat >>confdefs.h
<<_ACEOF
6418 #define _LARGE_FILES $ac_cv_sys_large_files
6428 # The cast to long int works around a bug in the HP C Compiler
6429 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6430 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6431 # This bug is HP SR number 8606223364.
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6433 $as_echo_n "checking size of ino_t... " >&6; }
6434 if ${ac_cv_sizeof_ino_t+:} false
; then :
6435 $as_echo_n "(cached) " >&6
6437 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6440 if test "$ac_cv_type_ino_t" = yes; then
6441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6443 as_fn_error
77 "cannot compute sizeof (ino_t)
6444 See \`config.log' for more details" "$LINENO" 5; }
6446 ac_cv_sizeof_ino_t
=0
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6452 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6456 cat >>confdefs.h
<<_ACEOF
6457 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6461 # The cast to long int works around a bug in the HP C Compiler
6462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6464 # This bug is HP SR number 8606223364.
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6466 $as_echo_n "checking size of dev_t... " >&6; }
6467 if ${ac_cv_sizeof_dev_t+:} false
; then :
6468 $as_echo_n "(cached) " >&6
6470 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6473 if test "$ac_cv_type_dev_t" = yes; then
6474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6476 as_fn_error
77 "cannot compute sizeof (dev_t)
6477 See \`config.log' for more details" "$LINENO" 5; }
6479 ac_cv_sizeof_dev_t
=0
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6485 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6489 cat >>confdefs.h
<<_ACEOF
6490 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6495 # Select the right stat being able to handle 64bit inodes, if needed.
6496 if test "$enable_largefile" != no
; then
6497 case "$host, $build" in
6498 *-*-aix*,*|
*,*-*-aix*)
6499 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6501 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6508 # sizeof(char) is 1 by definition.
6509 # The cast to long int works around a bug in the HP C Compiler
6510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6512 # This bug is HP SR number 8606223364.
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6514 $as_echo_n "checking size of void *... " >&6; }
6515 if ${ac_cv_sizeof_void_p+:} false
; then :
6516 $as_echo_n "(cached) " >&6
6518 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6521 if test "$ac_cv_type_void_p" = yes; then
6522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6524 as_fn_error
77 "cannot compute sizeof (void *)
6525 See \`config.log' for more details" "$LINENO" 5; }
6527 ac_cv_sizeof_void_p
=0
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6533 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6537 cat >>confdefs.h
<<_ACEOF
6538 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6542 # The cast to long int works around a bug in the HP C Compiler
6543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6545 # This bug is HP SR number 8606223364.
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6547 $as_echo_n "checking size of short... " >&6; }
6548 if ${ac_cv_sizeof_short+:} false
; then :
6549 $as_echo_n "(cached) " >&6
6551 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6554 if test "$ac_cv_type_short" = yes; then
6555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6557 as_fn_error
77 "cannot compute sizeof (short)
6558 See \`config.log' for more details" "$LINENO" 5; }
6560 ac_cv_sizeof_short
=0
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6566 $as_echo "$ac_cv_sizeof_short" >&6; }
6570 cat >>confdefs.h
<<_ACEOF
6571 #define SIZEOF_SHORT $ac_cv_sizeof_short
6575 # The cast to long int works around a bug in the HP C Compiler
6576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6578 # This bug is HP SR number 8606223364.
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6580 $as_echo_n "checking size of int... " >&6; }
6581 if ${ac_cv_sizeof_int+:} false
; then :
6582 $as_echo_n "(cached) " >&6
6584 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6587 if test "$ac_cv_type_int" = yes; then
6588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6590 as_fn_error
77 "cannot compute sizeof (int)
6591 See \`config.log' for more details" "$LINENO" 5; }
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6599 $as_echo "$ac_cv_sizeof_int" >&6; }
6603 cat >>confdefs.h
<<_ACEOF
6604 #define SIZEOF_INT $ac_cv_sizeof_int
6608 # The cast to long int works around a bug in the HP C Compiler
6609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6611 # This bug is HP SR number 8606223364.
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6613 $as_echo_n "checking size of long... " >&6; }
6614 if ${ac_cv_sizeof_long+:} false
; then :
6615 $as_echo_n "(cached) " >&6
6617 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6620 if test "$ac_cv_type_long" = yes; then
6621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6623 as_fn_error
77 "cannot compute sizeof (long)
6624 See \`config.log' for more details" "$LINENO" 5; }
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6632 $as_echo "$ac_cv_sizeof_long" >&6; }
6636 cat >>confdefs.h
<<_ACEOF
6637 #define SIZEOF_LONG $ac_cv_sizeof_long
6641 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6642 if test "x$ac_cv_type_long_long" = xyes
; then :
6644 cat >>confdefs.h
<<_ACEOF
6645 #define HAVE_LONG_LONG 1
6648 # The cast to long int works around a bug in the HP C Compiler
6649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6651 # This bug is HP SR number 8606223364.
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6653 $as_echo_n "checking size of long long... " >&6; }
6654 if ${ac_cv_sizeof_long_long+:} false
; then :
6655 $as_echo_n "(cached) " >&6
6657 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6660 if test "$ac_cv_type_long_long" = yes; then
6661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6663 as_fn_error
77 "cannot compute sizeof (long long)
6664 See \`config.log' for more details" "$LINENO" 5; }
6666 ac_cv_sizeof_long_long
=0
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6672 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6676 cat >>confdefs.h
<<_ACEOF
6677 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6683 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6684 case $ac_cv_c_int8_t in #(
6688 cat >>confdefs.h
<<_ACEOF
6689 #define int8_t $ac_cv_c_int8_t
6694 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6695 case $ac_cv_c_int16_t in #(
6699 cat >>confdefs.h
<<_ACEOF
6700 #define int16_t $ac_cv_c_int16_t
6705 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6706 case $ac_cv_c_int32_t in #(
6710 cat >>confdefs.h
<<_ACEOF
6711 #define int32_t $ac_cv_c_int32_t
6716 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6717 case $ac_cv_c_int64_t in #(
6721 cat >>confdefs.h
<<_ACEOF
6722 #define int64_t $ac_cv_c_int64_t
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6729 $as_echo_n "checking for unsigned long long int... " >&6; }
6730 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6731 $as_echo_n "(cached) " >&6
6733 ac_cv_type_unsigned_long_long_int
=yes
6734 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6738 /* For now, do not test the preprocessor; as of 2007 there are too many
6739 implementations with broken preprocessors. Perhaps this can
6740 be revisited in 2012. In the meantime, code should not expect
6741 #if to work with literals wider than 32 bits. */
6742 /* Test literals. */
6743 long long int ll = 9223372036854775807ll;
6744 long long int nll = -9223372036854775807LL;
6745 unsigned long long int ull = 18446744073709551615ULL;
6746 /* Test constant expressions. */
6747 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6749 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6755 /* Test availability of runtime routines for shift and division. */
6756 long long int llmax = 9223372036854775807ll;
6757 unsigned long long int ullmax = 18446744073709551615ull;
6758 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6759 | (llmax / ll) | (llmax % ll)
6760 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6761 | (ullmax / ull) | (ullmax % ull));
6767 if ac_fn_cxx_try_link
"$LINENO"; then :
6770 ac_cv_type_unsigned_long_long_int
=no
6772 rm -f core conftest.err conftest.
$ac_objext \
6773 conftest
$ac_exeext conftest.
$ac_ext
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6777 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6778 if test $ac_cv_type_unsigned_long_long_int = yes; then
6780 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6787 $as_echo_n "checking for long long int... " >&6; }
6788 if ${ac_cv_type_long_long_int+:} false
; then :
6789 $as_echo_n "(cached) " >&6
6791 ac_cv_type_long_long_int
=yes
6792 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6793 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6794 if test $ac_cv_type_long_long_int = yes; then
6795 if test "$cross_compiling" = yes; then :
6798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6803 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6804 # define LLONG_MAX (HALF - 1 + HALF)
6809 long long int n = 1;
6813 long long int m = n << i;
6816 if (LLONG_MAX / 2 < m)
6824 if ac_fn_cxx_try_run
"$LINENO"; then :
6827 ac_cv_type_long_long_int
=no
6829 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6830 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6837 $as_echo "$ac_cv_type_long_long_int" >&6; }
6838 if test $ac_cv_type_long_long_int = yes; then
6840 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6846 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6847 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6849 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6852 test $ac_cv_type_long_long_int = yes \
6853 && ac_type
='long long int' \
6854 || ac_type
='long int'
6856 cat >>confdefs.h
<<_ACEOF
6857 #define intmax_t $ac_type
6864 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6865 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6867 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6870 for ac_type
in 'int' 'long int' 'long long int'; do
6871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 $ac_includes_default
6877 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6879 return test_array [0];
6885 if ac_fn_cxx_try_compile
"$LINENO"; then :
6887 cat >>confdefs.h
<<_ACEOF
6888 #define intptr_t $ac_type
6893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6894 test -z "$ac_type" && break
6899 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6900 case $ac_cv_c_uint8_t in #(
6904 $as_echo "#define _UINT8_T 1" >>confdefs.h
6907 cat >>confdefs.h
<<_ACEOF
6908 #define uint8_t $ac_cv_c_uint8_t
6913 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6914 case $ac_cv_c_uint16_t in #(
6919 cat >>confdefs.h
<<_ACEOF
6920 #define uint16_t $ac_cv_c_uint16_t
6925 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6926 case $ac_cv_c_uint32_t in #(
6930 $as_echo "#define _UINT32_T 1" >>confdefs.h
6933 cat >>confdefs.h
<<_ACEOF
6934 #define uint32_t $ac_cv_c_uint32_t
6939 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6940 case $ac_cv_c_uint64_t in #(
6944 $as_echo "#define _UINT64_T 1" >>confdefs.h
6947 cat >>confdefs.h
<<_ACEOF
6948 #define uint64_t $ac_cv_c_uint64_t
6955 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6956 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6958 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6961 test $ac_cv_type_unsigned_long_long_int = yes \
6962 && ac_type
='unsigned long long int' \
6963 || ac_type
='unsigned long int'
6965 cat >>confdefs.h
<<_ACEOF
6966 #define uintmax_t $ac_type
6973 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6974 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6976 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6979 for ac_type
in 'unsigned int' 'unsigned long int' \
6980 'unsigned long long int'; do
6981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 $ac_includes_default
6987 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6989 return test_array [0];
6995 if ac_fn_cxx_try_compile
"$LINENO"; then :
6997 cat >>confdefs.h
<<_ACEOF
6998 #define uintptr_t $ac_type
7003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7004 test -z "$ac_type" && break
7021 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
7022 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
7025 # check what underlying integer type int64_t uses
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7027 $as_echo_n "checking for int64_t underlying type... " >&6; }
7028 if ${ac_cv_int64_t_type+:} false
; then :
7029 $as_echo_n "(cached) " >&6
7032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7035 #ifdef HAVE_STDINT_H
7038 template <typename T> struct X { };
7040 struct X<long> { typedef long t; };
7050 if ac_fn_cxx_try_compile
"$LINENO"; then :
7051 ac_cv_int64_t_type
=long
7053 ac_cv_int64_t_type
="long long"
7055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7058 $as_echo "$ac_cv_int64_t_type" >&6; }
7059 if test "$ac_cv_int64_t_type" = "long"; then
7061 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7067 #ifdef HAVE_STDINT_H
7070 template <typename T> struct X { };
7072 struct X<long long> { typedef long long t; };
7082 if ac_fn_cxx_try_compile
"$LINENO"; then :
7085 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
7087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7091 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7092 if ${ac_cv_std_swap_in_utility+:} false
; then :
7093 $as_echo_n "(cached) " >&6
7096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7104 int a, b; std::swap(a,b);
7109 if ac_fn_cxx_try_compile
"$LINENO"; then :
7110 ac_cv_std_swap_in_utility
=yes
7112 ac_cv_std_swap_in_utility
=no
7114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7117 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7118 if test $ac_cv_std_swap_in_utility = yes; then
7120 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7124 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7125 # If the host compiler is affected by the bug, and we build with optimization
7126 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7127 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7128 # Since there is no reliable feature check for the presence of this bug,
7129 # we simply use a GCC version number check. (This should never trigger for
7130 # stages 2 or 3 of a native bootstrap.)
7132 if test "$GCC" = yes; then
7133 saved_CXXFLAGS
="$CXXFLAGS"
7135 # The following test compilation will succeed if and only if $CXX accepts
7136 # -fno-strict-aliasing *and* is older than GCC 4.3.
7137 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7139 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7143 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7144 #error compiler not affected by placement new aliasing bug
7148 if ac_fn_cxx_try_compile
"$LINENO"; then :
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7150 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7157 CXXFLAGS
="$saved_CXXFLAGS"
7163 # ---------------------
7164 # Warnings and checking
7165 # ---------------------
7167 # Check $CC warning features (if it's GCC).
7168 # We want to use -pedantic, but we don't want warnings about
7171 # * overlong strings
7172 # So, we only use -pedantic if we can disable those warnings.
7174 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7175 # Check whether --enable-build-format-warnings was given.
7176 if test "${enable_build_format_warnings+set}" = set; then :
7177 enableval
=$enable_build_format_warnings;
7179 enable_build_format_warnings
=yes
7182 if test $enable_build_format_warnings = no
; then :
7188 ac_cpp
='$CXXCPP $CPPFLAGS'
7189 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7190 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7194 save_CXXFLAGS
="$CXXFLAGS"
7195 for real_option
in -W -Wall -Wno-error=narrowing
-Wwrite-strings -Wcast-qual $wf_opt; do
7196 # Do the check with the no- prefix removed since gcc silently
7197 # accepts any -Wno-* option on purpose
7198 case $real_option in
7199 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7200 *) option
=$real_option ;;
7202 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7205 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7206 if eval \
${$as_acx_Woption+:} false
; then :
7207 $as_echo_n "(cached) " >&6
7210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7221 if ac_fn_cxx_try_compile
"$LINENO"; then :
7222 eval "$as_acx_Woption=yes"
7224 eval "$as_acx_Woption=no"
7226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7229 eval ac_res
=\$
$as_acx_Woption
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7231 $as_echo "$ac_res" >&6; }
7232 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7233 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7236 CXXFLAGS
="$save_CXXFLAGS"
7238 ac_cpp
='$CXXCPP $CPPFLAGS'
7239 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7240 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7241 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7246 ac_cpp
='$CPP $CPPFLAGS'
7247 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7252 save_CFLAGS
="$CFLAGS"
7253 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7254 # Do the check with the no- prefix removed since gcc silently
7255 # accepts any -Wno-* option on purpose
7256 case $real_option in
7257 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7258 *) option
=$real_option ;;
7260 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7263 $as_echo_n "checking whether $CC supports $option... " >&6; }
7264 if eval \
${$as_acx_Woption+:} false
; then :
7265 $as_echo_n "(cached) " >&6
7268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7279 if ac_fn_c_try_compile
"$LINENO"; then :
7280 eval "$as_acx_Woption=yes"
7282 eval "$as_acx_Woption=no"
7284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7287 eval ac_res
=\$
$as_acx_Woption
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7289 $as_echo "$ac_res" >&6; }
7290 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7291 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7294 CFLAGS
="$save_CFLAGS"
7296 ac_cpp
='$CXXCPP $CPPFLAGS'
7297 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7303 ac_cpp
='$CXXCPP $CPPFLAGS'
7304 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7309 save_CXXFLAGS
="$CXXFLAGS"
7310 for real_option
in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7311 # Do the check with the no- prefix removed since gcc silently
7312 # accepts any -Wno-* option on purpose
7313 case $real_option in
7314 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7315 *) option
=$real_option ;;
7317 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7320 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7321 if eval \
${$as_acx_Woption+:} false
; then :
7322 $as_echo_n "(cached) " >&6
7325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7336 if ac_fn_cxx_try_compile
"$LINENO"; then :
7337 eval "$as_acx_Woption=yes"
7339 eval "$as_acx_Woption=no"
7341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7344 eval ac_res
=\$
$as_acx_Woption
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7346 $as_echo "$ac_res" >&6; }
7347 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7348 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7351 CXXFLAGS
="$save_CXXFLAGS"
7353 ac_cpp
='$CXXCPP $CPPFLAGS'
7354 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7360 ac_cpp
='$CPP $CPPFLAGS'
7361 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7366 save_CFLAGS
="$CFLAGS"
7367 for real_option
in -Wold-style-definition -Wc++-compat; do
7368 # Do the check with the no- prefix removed since gcc silently
7369 # accepts any -Wno-* option on purpose
7370 case $real_option in
7371 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7372 *) option
=$real_option ;;
7374 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7377 $as_echo_n "checking whether $CC supports $option... " >&6; }
7378 if eval \
${$as_acx_Woption+:} false
; then :
7379 $as_echo_n "(cached) " >&6
7382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7393 if ac_fn_c_try_compile
"$LINENO"; then :
7394 eval "$as_acx_Woption=yes"
7396 eval "$as_acx_Woption=no"
7398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7401 eval ac_res
=\$
$as_acx_Woption
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7403 $as_echo "$ac_res" >&6; }
7404 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7405 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7408 CFLAGS
="$save_CFLAGS"
7410 ac_cpp
='$CXXCPP $CPPFLAGS'
7411 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7412 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7413 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7417 ac_cpp
='$CXXCPP $CPPFLAGS'
7418 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7422 # Do the check with the no- prefix removed from the warning options
7423 # since gcc silently accepts any -Wno-* option on purpose
7424 if test "$GXX" = yes; then :
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7426 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7427 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7428 $as_echo_n "(cached) " >&6
7430 save_CXXFLAGS
="$CXXFLAGS"
7431 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7443 if ac_fn_cxx_try_compile
"$LINENO"; then :
7444 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7446 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7449 CXXFLAGS
="$save_CXXFLAGS"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7452 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7453 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7454 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7459 ac_cpp
='$CXXCPP $CPPFLAGS'
7460 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7466 ac_cpp
='$CXXCPP $CPPFLAGS'
7467 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7471 # Check whether --enable-werror-always was given.
7472 if test "${enable_werror_always+set}" = set; then :
7473 enableval
=$enable_werror_always;
7475 enable_werror_always
=no
7478 if test $enable_werror_always = yes; then :
7479 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7483 ac_cpp
='$CXXCPP $CPPFLAGS'
7484 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7490 # The above macros do nothing if the compiler is not GCC. However, the
7491 # Makefile has more goo to add other flags, so these variables are used
7492 # to enable warnings only for GCC.
7495 if test "x$GCC" = "xyes"; then
7496 warn_cflags
='$(GCC_WARN_CFLAGS)'
7497 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7502 # Disable exceptions and RTTI if building with g++
7504 ac_cpp
='$CPP $CPPFLAGS'
7505 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7506 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7507 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7510 save_CFLAGS
="$CFLAGS"
7511 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7512 # Do the check with the no- prefix removed since gcc silently
7513 # accepts any -Wno-* option on purpose
7514 case $real_option in
7515 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7516 *) option
=$real_option ;;
7518 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7521 $as_echo_n "checking whether $CC supports $option... " >&6; }
7522 if eval \
${$as_acx_Woption+:} false
; then :
7523 $as_echo_n "(cached) " >&6
7526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7537 if ac_fn_c_try_compile
"$LINENO"; then :
7538 eval "$as_acx_Woption=yes"
7540 eval "$as_acx_Woption=no"
7542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7545 eval ac_res
=\$
$as_acx_Woption
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7547 $as_echo "$ac_res" >&6; }
7548 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7549 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7552 CFLAGS
="$save_CFLAGS"
7554 ac_cpp
='$CXXCPP $CPPFLAGS'
7555 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7561 # Enable expensive internal checks
7563 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7567 # Check whether --enable-checking was given.
7568 if test "${enable_checking+set}" = set; then :
7569 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7572 # Determine the default checks.
7573 if test x
$is_release = x
; then
7574 ac_checking_flags
=yes,extra
7576 ac_checking_flags
=release
7580 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7581 for check
in release
$ac_checking_flags
7584 # these set all the flags to specific states
7585 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7586 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7587 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7588 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7589 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7590 ac_types_checking
=1 ;;
7591 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7592 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7593 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7594 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7595 ac_tree_checking
= ; ac_valgrind_checking
= ;
7596 ac_types_checking
= ;;
7597 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7598 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7599 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7600 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7601 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7602 ac_types_checking
=1 ;;
7603 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7604 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7605 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7606 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7607 ac_tree_checking
= ; ac_valgrind_checking
= ;
7608 ac_types_checking
= ;;
7609 # these enable particular checks
7610 assert
) ac_assert_checking
=1 ;;
7611 df
) ac_df_checking
=1 ;;
7612 extra
) ac_extra_checking
=1 ;;
7613 fold) ac_fold_checking
=1 ;;
7614 gc
) ac_gc_checking
=1 ;;
7615 gcac
) ac_gc_always_collect
=1 ;;
7616 gimple
) ac_gimple_checking
=1 ;;
7617 misc
) ac_checking
=1 ;;
7618 rtl
) ac_rtl_checking
=1 ;;
7619 rtlflag
) ac_rtlflag_checking
=1 ;;
7620 runtime
) ac_runtime_checking
=1 ;;
7621 tree
) ac_tree_checking
=1 ;;
7622 types
) ac_types_checking
=1 ;;
7623 valgrind
) ac_valgrind_checking
=1 ;;
7624 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7629 if test x
$ac_checking != x
; then
7631 $as_echo "#define CHECKING_P 1" >>confdefs.h
7634 $as_echo "#define CHECKING_P 0" >>confdefs.h
7637 if test x
$ac_extra_checking != x
; then
7639 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7642 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7645 if test x
$ac_df_checking != x
; then
7647 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7650 if test x
$ac_assert_checking != x
; then
7652 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7655 if test x
$ac_gimple_checking != x
; then
7657 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7661 if test x
$ac_runtime_checking != x
; then
7663 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7666 if test x
$ac_tree_checking != x
; then
7668 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7672 if test x
$ac_types_checking != x
; then
7674 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7678 if test x
$ac_rtl_checking != x
; then
7680 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7683 if test x
$ac_rtlflag_checking != x
; then
7685 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7688 if test x
$ac_gc_checking != x
; then
7690 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7693 if test x
$ac_gc_always_collect != x
; then
7695 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7698 if test x
$ac_fold_checking != x
; then
7700 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7703 valgrind_path_defines
=
7705 if test x
$ac_valgrind_checking != x
; then
7707 # Prepare PATH_SEPARATOR.
7708 # The user is always right.
7709 if test "${PATH_SEPARATOR+set}" != set; then
7710 echo "#! /bin/sh" >conf$$.sh
7711 echo "exit 0" >>conf$$.sh
7713 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7721 # Find out how to test for executable files. Don't use a zero-byte file,
7722 # as systems may use methods other than mode bits to determine executability.
7723 cat >conf$$.
file <<_ASEOF
7727 chmod +x conf$$.
file
7728 if test -x conf$$.
file >/dev
/null
2>&1; then
7729 ac_executable_p
="test -x"
7731 ac_executable_p
="test -f"
7735 # Extract the first word of "valgrind", so it can be a program name with args.
7736 set dummy valgrind
; ac_word
=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_path_valgrind_path+:} false
; then :
7740 $as_echo_n "(cached) " >&6
7742 case "$valgrind_path" in
7744 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7747 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7748 for ac_dir
in $PATH; do
7750 test -z "$ac_dir" && ac_dir
=.
7751 for ac_exec_ext
in '' $ac_executable_extensions; do
7752 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7753 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7754 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7764 valgrind_path
="$ac_cv_path_valgrind_path"
7765 if test -n "$valgrind_path"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7767 $as_echo "$valgrind_path" >&6; }
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7773 if test "x$valgrind_path" = "x"; then
7774 as_fn_error $?
"*** Cannot find valgrind" "$LINENO" 5
7776 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7777 valgrind_command
="$valgrind_path -q"
7779 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7785 # Enable code coverage collection
7786 # Check whether --enable-coverage was given.
7787 if test "${enable_coverage+set}" = set; then :
7788 enableval
=$enable_coverage; case "${enableval}" in
7790 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7793 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7796 # a.k.a. --disable-coverage
7800 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7809 # Check whether --enable-gather-detailed-mem-stats was given.
7810 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7811 enableval
=$enable_gather_detailed_mem_stats;
7813 enable_gather_detailed_mem_stats
=no
7816 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7818 cat >>confdefs.h
<<_ACEOF
7819 #define GATHER_STATISTICS $gather_stats
7823 # Check whether --enable-valgrind-annotations was given.
7824 if test "${enable_valgrind_annotations+set}" = set; then :
7825 enableval
=$enable_valgrind_annotations;
7827 enable_valgrind_annotations
=no
7830 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
7831 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
; then :
7836 if test x
$enable_valgrind_annotations != xno \
7837 ||
test x
$ac_valgrind_checking != x
; then
7838 if test $ac_cv_header_valgrind_memcheck_h = no
; then
7839 as_fn_error $?
"*** Cannot find valgrind/memcheck.h" "$LINENO" 5
7842 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7846 # -------------------------------
7847 # Miscenalleous configure options
7848 # -------------------------------
7850 # Determine whether or not multilibs are enabled.
7851 # Check whether --enable-multilib was given.
7852 if test "${enable_multilib+set}" = set; then :
7853 enableval
=$enable_multilib;
7860 # Determine whether or not multiarch is enabled.
7861 # Check whether --enable-multiarch was given.
7862 if test "${enable_multiarch+set}" = set; then :
7863 enableval
=$enable_multiarch; case "${enableval}" in
7864 yes|no|auto
) enable_multiarch
=$enableval;;
7865 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7868 enable_multiarch
=auto
7871 if test x
${enable_multiarch} = xauto
; then
7872 if test x
${with_native_system_header_dir} != x
; then
7873 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7876 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7877 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7881 if test x
${enable_multiarch} = xyes
; then
7883 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7887 $as_echo_n "checking for multiarch configuration... " >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7890 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7892 # needed for setting the multiarch name for soft-float/hard-float ABIs
7896 # default stack clash protection guard size as power of twos in bytes.
7897 # Please keep these in sync with params.def.
7901 # Keep the default value when the option is not used to 0, this allows us to
7902 # distinguish between the cases where the user specifially set a value via
7903 # configure and when the normal default value is used.
7905 # Check whether --with-stack-clash-protection-guard-size was given.
7906 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7907 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7909 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7912 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7913 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7914 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7915 as_fn_error $?
"Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7919 cat >>confdefs.h
<<_ACEOF
7920 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7924 # Specify the number of splits of match.pd to generate.
7926 # Check whether --with-matchpd-partitions was given.
7927 if test "${with_matchpd_partitions+set}" = set; then :
7928 withval
=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS
="$with_matchpd_partitions"
7930 DEFAULT_MATCHPD_PARTITIONS
=10
7933 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7934 as_fn_error $?
"Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7939 # Specify the number of splits of insn-emit.cc and insn-recog.cc to generate.
7941 # Check whether --with-insnemit-partitions was given.
7942 if test "${with_insnemit_partitions+set}" = set; then :
7943 withval
=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS
="$with_insnemit_partitions"
7945 DEFAULT_INSNEMIT_PARTITIONS
=10
7948 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7949 as_fn_error $?
"Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7954 # Enable __cxa_atexit for C++.
7955 # Check whether --enable-__cxa_atexit was given.
7956 if test "${enable___cxa_atexit+set}" = set; then :
7957 enableval
=$enable___cxa_atexit;
7961 # Enable C extension for decimal float if target supports it.
7963 # Check whether --enable-decimal-float was given.
7964 if test "${enable_decimal_float+set}" = set; then :
7965 enableval
=$enable_decimal_float;
7966 case $enable_decimal_float in
7967 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7968 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7969 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7976 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7977 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7978 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7979 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7980 enable_decimal_float
=yes
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7984 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7985 enable_decimal_float
=no
7992 # x86's use BID format instead of DPD
7993 case x
$enable_decimal_float in
7996 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
7997 enable_decimal_float
=bid
8000 enable_decimal_float
=dpd
8003 default_decimal_float
=$enable_decimal_float
8006 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8007 # dependency on libdecnumber.
8008 default_decimal_float
=dpd
8015 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8017 cat >>confdefs.h
<<_ACEOF
8018 #define ENABLE_DECIMAL_FLOAT $dfp
8022 # Use default_decimal_float for dependency.
8023 enable_decimal_float
=$default_decimal_float
8025 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8027 cat >>confdefs.h
<<_ACEOF
8028 #define ENABLE_DECIMAL_BID_FORMAT $bid
8032 # Enable C extension for fixed-point arithmetic.
8033 # Check whether --enable-fixed-point was given.
8034 if test "${enable_fixed_point+set}" = set; then :
8035 enableval
=$enable_fixed_point;
8040 enable_fixed_point
=yes
8044 enable_fixed_point
=yes
8047 enable_fixed_point
=yes
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8051 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8052 enable_fixed_point
=no
8060 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8062 cat >>confdefs.h
<<_ACEOF
8063 #define ENABLE_FIXED_POINT $fixedpoint
8068 # Pass with no value to take the default
8069 # Pass with a value to specify a thread package
8070 # Check whether --enable-threads was given.
8071 if test "${enable_threads+set}" = set; then :
8072 enableval
=$enable_threads;
8078 # Check whether --enable-tls was given.
8079 if test "${enable_tls+set}" = set; then :
8080 enableval
=$enable_tls;
8083 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8084 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8092 # Check whether --enable-vtable-verify was given.
8093 if test "${enable_vtable_verify+set}" = set; then :
8094 enableval
=$enable_vtable_verify;
8096 enable_vtable_verify
=no
8099 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8101 cat >>confdefs.h
<<_ACEOF
8102 #define ENABLE_VTABLE_VERIFY $vtable_verify
8106 # Check whether --enable-analyzer was given.
8107 if test "${enable_analyzer+set}" = set; then :
8108 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8118 cat >>confdefs.h
<<_ACEOF
8119 #define ENABLE_ANALYZER $analyzer
8123 # Check whether --enable-objc-gc was given.
8124 if test "${enable_objc_gc+set}" = set; then :
8125 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8136 # Check whether --with-dwarf2 was given.
8137 if test "${with_dwarf2+set}" = set; then :
8138 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8144 # Check whether --enable-shared was given.
8145 if test "${enable_shared+set}" = set; then :
8146 enableval
=$enable_shared;
8147 case $enable_shared in
8151 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8152 for pkg
in $enableval; do
8153 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8167 # Check whether --enable-gcov was given.
8168 if test "${enable_gcov+set}" = set; then :
8169 enableval
=$enable_gcov;
8185 # Check whether --with-specs was given.
8186 if test "${with_specs+set}" = set; then :
8187 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8197 # Check whether --with-pkgversion was given.
8198 if test "${with_pkgversion+set}" = set; then :
8199 withval
=$with_pkgversion; case "$withval" in
8200 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8202 *) PKGVERSION
="($withval) " ;;
8213 # Check whether --with-bugurl was given.
8214 if test "${with_bugurl+set}" = set; then :
8215 withval
=$with_bugurl; case "$withval" in
8216 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8219 *) BUGURL
="$withval"
8223 BUGURL
="https://gcc.gnu.org/bugs/"
8233 REPORT_BUGS_TO
="<$BUGURL>"
8234 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8241 # Allow overriding the default URL for documentation
8243 # Check whether --with-documentation-root-url was given.
8244 if test "${with_documentation_root_url+set}" = set; then :
8245 withval
=$with_documentation_root_url; case "$withval" in
8246 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8247 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8248 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8249 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8254 case "$gcc_version" in
8255 *.
[123456].0) docroot_url_suffix
="gcc-$gcc_version/";;
8256 *.
[123456].1) docroot_url_suffix
="gcc-`echo $gcc_version | sed 's/1$/0/'`/";;
8258 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/$docroot_url_suffix"
8263 cat >>confdefs.h
<<_ACEOF
8264 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8268 # Allow overriding the default URL for GCC changes
8270 # Check whether --with-changes-root-url was given.
8271 if test "${with_changes_root_url+set}" = set; then :
8272 withval
=$with_changes_root_url; case "$withval" in
8273 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8274 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8275 */) CHANGES_ROOT_URL
="$withval" ;;
8276 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8279 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8284 cat >>confdefs.h
<<_ACEOF
8285 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8289 # Sanity check enable_languages in case someone does not run the toplevel
8290 # configure # script.
8291 # Check whether --enable-languages was given.
8292 if test "${enable_languages+set}" = set; then :
8293 enableval
=$enable_languages; case ,${enable_languages}, in
8295 # go safe -- we cannot be much sure without the toplevel
8297 # analysis of which target libs are present and usable
8301 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8306 enable_languages
=c
,${enable_languages}
8314 # If top-level libada has been disabled, then wire in install-gnatlib
8315 # invocation with `make install', so that one can build and install
8316 # the library manually with `make -C gcc all gnatlib gnattools install'.
8317 if test x
"$enable_libada" = xno
; then
8318 gnat_install_lib
=gnat-install-lib
8324 if test x
"$enable_as_accelerator_for" != x
; then
8326 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8328 enable_as_accelerator
=yes
8329 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8330 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8331 accel_dir_suffix
=/accel
/${target_noncanonical}
8332 real_target_noncanonical
=${enable_as_accelerator_for}
8338 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8339 tgt
=`echo $tgt | sed 's/=.*//'`
8344 omp_device_property
=omp-device-properties-gcn
8345 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8348 omp_device_property
=omp-device-properties-nvptx
8349 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8352 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8355 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8356 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8358 if test x
"$offload_targets" = x
; then
8359 offload_targets
=$tgt
8361 offload_targets
="$offload_targets,$tgt"
8368 cat >>confdefs.h
<<_ACEOF
8369 #define OFFLOAD_TARGETS "$offload_targets"
8372 if test x
"$enable_offloading" != x
; then
8374 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8378 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8382 if test "x$enable_offload_defaulted" = xyes
; then
8384 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8389 # Check whether --with-multilib-list was given.
8390 if test "${with_multilib_list+set}" = set; then :
8391 withval
=$with_multilib_list; :
8393 with_multilib_list
=default
8398 # Check whether --with-multilib-generator was given.
8399 if test "${with_multilib_generator+set}" = set; then :
8400 withval
=$with_multilib_generator; :
8402 with_multilib_generator
=default
8406 # -------------------------
8407 # Checks for other programs
8408 # -------------------------
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8411 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8413 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8414 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8415 $as_echo_n "(cached) " >&6
8417 cat >conftest.
make <<\_ACEOF
8420 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8422 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8423 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8425 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8427 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8431 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8433 $as_echo "yes" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8438 SET_MAKE
="MAKE=${MAKE-make}"
8442 # Find some useful tools
8443 for ac_prog
in gawk mawk nawk
awk
8445 # Extract the first word of "$ac_prog", so it can be a program name with args.
8446 set dummy
$ac_prog; ac_word
=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_prog_AWK+:} false
; then :
8450 $as_echo_n "(cached) " >&6
8452 if test -n "$AWK"; then
8453 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8459 test -z "$as_dir" && as_dir
=.
8460 for ac_exec_ext
in '' $ac_executable_extensions; do
8461 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_AWK
="$ac_prog"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 if test -n "$AWK"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8475 $as_echo "$AWK" >&6; }
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8482 test -n "$AWK" && break
8485 # We need awk to create options.cc and options.h.
8486 # Bail out if it's missing.
8488 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8492 $as_echo_n "checking whether ln -s works... " >&6; }
8493 if ${gcc_cv_prog_LN_S+:} false
; then :
8494 $as_echo_n "(cached) " >&6
8496 rm -f conftestdata_t
8497 echo >conftestdata_f
8498 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8500 gcc_cv_prog_LN_S
="ln -s"
8502 if ln conftestdata_f conftestdata_t
2>/dev
/null
8506 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8508 gcc_cv_prog_LN_S
="cp -p"
8514 rm -f conftestdata_f conftestdata_t
8517 LN_S
="$gcc_cv_prog_LN_S"
8518 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8520 $as_echo "yes" >&6; }
8522 if test "$gcc_cv_prog_LN_S" = "ln"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8524 $as_echo "no, using ln" >&6; }
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8527 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8532 $as_echo_n "checking whether ln works... " >&6; }
8533 if ${acx_cv_prog_LN+:} false
; then :
8534 $as_echo_n "(cached) " >&6
8536 rm -f conftestdata_t
8537 echo >conftestdata_f
8538 if ln conftestdata_f conftestdata_t
2>/dev
/null
8544 rm -f conftestdata_f conftestdata_t
8547 if test $acx_cv_prog_LN = no
; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8550 $as_echo "no, using $LN" >&6; }
8552 LN
="$acx_cv_prog_LN"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8554 $as_echo "yes" >&6; }
8557 if test -n "$ac_tool_prefix"; then
8558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8559 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561 $as_echo_n "checking for $ac_word... " >&6; }
8562 if ${ac_cv_prog_RANLIB+:} false
; then :
8563 $as_echo_n "(cached) " >&6
8565 if test -n "$RANLIB"; then
8566 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8572 test -z "$as_dir" && as_dir
=.
8573 for ac_exec_ext
in '' $ac_executable_extensions; do
8574 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8575 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8585 RANLIB
=$ac_cv_prog_RANLIB
8586 if test -n "$RANLIB"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8588 $as_echo "$RANLIB" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8596 if test -z "$ac_cv_prog_RANLIB"; then
8597 ac_ct_RANLIB
=$RANLIB
8598 # Extract the first word of "ranlib", so it can be a program name with args.
8599 set dummy ranlib
; ac_word
=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8603 $as_echo_n "(cached) " >&6
8605 if test -n "$ac_ct_RANLIB"; then
8606 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8612 test -z "$as_dir" && as_dir
=.
8613 for ac_exec_ext
in '' $ac_executable_extensions; do
8614 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8626 if test -n "$ac_ct_RANLIB"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8628 $as_echo "$ac_ct_RANLIB" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8634 if test "x$ac_ct_RANLIB" = x
; then
8637 case $cross_compiling:$ac_tool_warned in
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8641 ac_tool_warned
=yes ;;
8643 RANLIB
=$ac_ct_RANLIB
8646 RANLIB
="$ac_cv_prog_RANLIB"
8652 # Find a good install program. We prefer a C program (faster),
8653 # so one script is as good as another. But avoid the broken or
8654 # incompatible versions:
8655 # SysV /etc/install, /usr/sbin/install
8656 # SunOS /usr/etc/install
8657 # IRIX /sbin/install
8659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8661 # ./install, which can be erroneously created by make from ./install.sh.
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8663 $as_echo_n "checking for a BSD compatible install... " >&6; }
8664 if test -z "$INSTALL"; then
8665 if ${ac_cv_path_install+:} false
; then :
8666 $as_echo_n "(cached) " >&6
8668 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8669 for ac_dir
in $PATH; do
8670 # Account for people who put trailing slashes in PATH elements.
8672 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8674 # OSF1 and SCO ODT 3.0 have their own names for install.
8675 for ac_prog
in ginstall scoinst
install; do
8676 if test -f $ac_dir/$ac_prog; then
8677 if test $ac_prog = install &&
8678 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8679 # AIX install. It has an incompatible calling convention.
8680 # OSF/1 installbsd also uses dspmsg, but is usable.
8683 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8694 if test "${ac_cv_path_install+set}" = set; then
8695 INSTALL
="$ac_cv_path_install"
8697 # As a last resort, use the slow shell script. We don't cache a
8698 # path for INSTALL within a source directory, because that will
8699 # break other packages using the cache if that directory is
8700 # removed, or if the path is relative.
8701 INSTALL
="$ac_install_sh"
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8705 $as_echo "$INSTALL" >&6; }
8707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8708 # It thinks the first close brace ends the variable substitution.
8709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8711 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8714 # See if cmp has --ignore-initial.
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8716 $as_echo_n "checking for cmp's capabilities... " >&6; }
8717 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8718 $as_echo_n "(cached) " >&6
8722 gcc_cv_prog_cmp_skip
=slowcompare
8723 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8724 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8727 gcc_cv_prog_cmp_skip
=gnucompare
8730 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8731 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8732 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8735 gcc_cv_prog_cmp_skip
=fastcompare
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8743 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8744 make_compare_target
=$gcc_cv_prog_cmp_skip
8748 # See if we have the mktemp command.
8749 # Extract the first word of "mktemp", so it can be a program name with args.
8750 set dummy mktemp
; ac_word
=$2
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 $as_echo_n "checking for $ac_word... " >&6; }
8753 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8754 $as_echo_n "(cached) " >&6
8756 if test -n "$have_mktemp_command"; then
8757 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8763 test -z "$as_dir" && as_dir
=.
8764 for ac_exec_ext
in '' $ac_executable_extensions; do
8765 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8766 ac_cv_prog_have_mktemp_command
="yes"
8767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8777 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8778 if test -n "$have_mktemp_command"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8780 $as_echo "$have_mktemp_command" >&6; }
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8788 # See if makeinfo has been installed and is modern enough
8789 # that we can use it.
8791 # Extract the first word of "makeinfo", so it can be a program name with args.
8792 set dummy makeinfo
; ac_word
=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8796 $as_echo_n "(cached) " >&6
8798 if test -n "$MAKEINFO"; then
8799 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8805 test -z "$as_dir" && as_dir
=.
8806 for ac_exec_ext
in '' $ac_executable_extensions; do
8807 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8808 ac_cv_prog_MAKEINFO
="makeinfo"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 MAKEINFO
=$ac_cv_prog_MAKEINFO
8819 if test -n "$MAKEINFO"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8821 $as_echo "$MAKEINFO" >&6; }
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8828 if test -n "$MAKEINFO"; then
8829 # Found it, now check the version.
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8831 $as_echo_n "checking for modern makeinfo... " >&6; }
8832 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8833 $as_echo_n "(cached) " >&6
8835 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8836 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8838 case $ac_prog_version in
8839 '') gcc_cv_prog_makeinfo_modern
=no
;;
8840 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8841 *) gcc_cv_prog_makeinfo_modern
=no
;;
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8846 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8848 gcc_cv_prog_makeinfo_modern
=no
8850 if test $gcc_cv_prog_makeinfo_modern = no
; then
8851 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8854 if test $gcc_cv_prog_makeinfo_modern = no
; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8856 *** Makeinfo is missing or too old.
8857 *** Info documentation will not be built." >&5
8858 $as_echo "$as_me: WARNING:
8859 *** Makeinfo is missing or too old.
8860 *** Info documentation will not be built." >&2;}
8867 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8868 # If it does, we want to pass it to makeinfo in order to restore the old
8869 # behavior of @{summary,}contents placement.
8870 MAKEINFO_TOC_INLINE_FLAG
=
8871 if test x
"$MAKEINFO" != x
; then :
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8874 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8875 if ${gcc_cv_texi_add_toc_inline_flags+:} false
; then :
8876 $as_echo_n "(cached) " >&6
8879 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8880 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION
=inline
</dev
/null
2>&1 \
8881 |
grep CONTENTS_OUTPUT_LOCATION
>/dev
/null
; then
8882 gcc_cv_texi_add_toc_inline_flags
=no
8884 gcc_cv_texi_add_toc_inline_flags
=yes
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8889 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8890 if test x
"$gcc_cv_texi_add_toc_inline_flags" = xyes
; then
8891 MAKEINFO_TOC_INLINE_FLAG
='-c CONTENTS_OUTPUT_LOCATION=inline'
8897 # Is pod2man recent enough to regenerate manpages?
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8899 $as_echo_n "checking for recent Pod::Man... " >&6; }
8900 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8902 $as_echo "yes" >&6; }
8903 GENERATED_MANPAGES
=generated-manpages
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8911 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8916 # Extract the first word of "$ac_prog", so it can be a program name with args.
8917 set dummy
$ac_prog; ac_word
=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if ${ac_cv_prog_FLEX+:} false
; then :
8921 $as_echo_n "(cached) " >&6
8923 if test -n "$FLEX"; then
8924 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8930 test -z "$as_dir" && as_dir
=.
8931 for ac_exec_ext
in '' $ac_executable_extensions; do
8932 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_FLEX
="$ac_prog"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8943 FLEX
=$ac_cv_prog_FLEX
8944 if test -n "$FLEX"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8946 $as_echo "$FLEX" >&6; }
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8953 test -n "$FLEX" && break
8955 test -n "$FLEX" || FLEX
="$MISSING flex"
8959 for ac_prog
in bison
8961 # Extract the first word of "$ac_prog", so it can be a program name with args.
8962 set dummy
$ac_prog; ac_word
=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if ${ac_cv_prog_BISON+:} false
; then :
8966 $as_echo_n "(cached) " >&6
8968 if test -n "$BISON"; then
8969 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8975 test -z "$as_dir" && as_dir
=.
8976 for ac_exec_ext
in '' $ac_executable_extensions; do
8977 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8978 ac_cv_prog_BISON
="$ac_prog"
8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 BISON
=$ac_cv_prog_BISON
8989 if test -n "$BISON"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8991 $as_echo "$BISON" >&6; }
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8998 test -n "$BISON" && break
9000 test -n "$BISON" || BISON
="$MISSING bison"
9005 # Extract the first word of "python3", so it can be a program name with args.
9006 set dummy python3
; ac_word
=$2
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9008 $as_echo_n "checking for $ac_word... " >&6; }
9009 if ${ac_cv_prog_PYTHON+:} false
; then :
9010 $as_echo_n "(cached) " >&6
9012 if test -n "$PYTHON"; then
9013 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
9015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9019 test -z "$as_dir" && as_dir
=.
9020 for ac_exec_ext
in '' $ac_executable_extensions; do
9021 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9022 ac_cv_prog_PYTHON
="python3"
9023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9032 PYTHON
=$ac_cv_prog_PYTHON
9033 if test -n "$PYTHON"; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9035 $as_echo "$PYTHON" >&6; }
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038 $as_echo "no" >&6; }
9042 if test -n "$PYTHON"; then
9043 # Found it, now check the version.
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9045 $as_echo_n "checking for modern python3... " >&6; }
9046 if ${gcc_cv_prog_python3_modern+:} false
; then :
9047 $as_echo_n "(cached) " >&6
9049 ac_prog_version
=`eval $PYTHON --version 2>&1 |
9050 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9052 case $ac_prog_version in
9053 '') gcc_cv_prog_python3_modern
=no
;;
9054 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*) gcc_cv_prog_python3_modern
=yes;;
9055 *) gcc_cv_prog_python3_modern
=no
;;
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9060 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9062 gcc_cv_prog_python3_modern
=no
9064 if test $gcc_cv_prog_python3_modern = no
; then
9065 PYTHON
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9068 if test $gcc_cv_prog_python3_modern = no
; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9070 *** Python3 is missing.
9071 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9072 $as_echo "$as_me: WARNING:
9073 *** Python3 is missing.
9074 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9081 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9082 # check for build == host before using them.
9085 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9086 && test -d ..
/binutils
; then
9087 NM
='../binutils/nm-new'
9089 # Extract the first word of "nm", so it can be a program name with args.
9090 set dummy nm
; ac_word
=$2
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092 $as_echo_n "checking for $ac_word... " >&6; }
9093 if ${ac_cv_prog_NM+:} false
; then :
9094 $as_echo_n "(cached) " >&6
9096 if test -n "$NM"; then
9097 ac_cv_prog_NM
="$NM" # Let the user override the test.
9099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9103 test -z "$as_dir" && as_dir
=.
9104 for ac_exec_ext
in '' $ac_executable_extensions; do
9105 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9118 if test -n "$NM"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9120 $as_echo "$NM" >&6; }
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9130 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9131 && test -d ..
/binutils
; then
9134 # Extract the first word of "ar", so it can be a program name with args.
9135 set dummy
ar; ac_word
=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_prog_AR+:} false
; then :
9139 $as_echo_n "(cached) " >&6
9141 if test -n "$AR"; then
9142 ac_cv_prog_AR
="$AR" # Let the user override the test.
9144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9148 test -z "$as_dir" && as_dir
=.
9149 for ac_exec_ext
in '' $ac_executable_extensions; do
9150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9163 if test -n "$AR"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9165 $as_echo "$AR" >&6; }
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9174 # The jit documentation looks better if built with sphinx, but can be
9175 # built with texinfo if sphinx is not available.
9176 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9177 # Extract the first word of "sphinx-build", so it can be a program name with args.
9178 set dummy sphinx-build
; ac_word
=$2
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 $as_echo_n "checking for $ac_word... " >&6; }
9181 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9182 $as_echo_n "(cached) " >&6
9184 if test -n "$doc_build_sys"; then
9185 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9191 test -z "$as_dir" && as_dir
=.
9192 for ac_exec_ext
in '' $ac_executable_extensions; do
9193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9194 ac_cv_prog_doc_build_sys
="sphinx"
9195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9202 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9205 doc_build_sys
=$ac_cv_prog_doc_build_sys
9206 if test -n "$doc_build_sys"; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9208 $as_echo "$doc_build_sys" >&6; }
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9216 # --------------------
9217 # Checks for C headers
9218 # --------------------
9220 # Need to reject headers which give warnings, so that the -Werror bootstrap
9221 # works later. *sigh* This needs to come before all header checks.
9223 ac_c_preproc_warn_flag
=yes
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9226 $as_echo_n "checking for ANSI C header files... " >&6; }
9227 if ${ac_cv_header_stdc+:} false
; then :
9228 $as_echo_n "(cached) " >&6
9230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9245 if ac_fn_cxx_try_compile
"$LINENO"; then :
9246 ac_cv_header_stdc
=yes
9248 ac_cv_header_stdc
=no
9250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9252 if test $ac_cv_header_stdc = yes; then
9253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "memchr" >/dev
/null
2>&1; then :
9263 ac_cv_header_stdc
=no
9269 if test $ac_cv_header_stdc = yes; then
9270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9277 $EGREP "free" >/dev
/null
2>&1; then :
9280 ac_cv_header_stdc
=no
9286 if test $ac_cv_header_stdc = yes; then
9287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9288 if test "$cross_compiling" = yes; then :
9291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9295 #if ((' ' & 0x0FF) == 0x020)
9296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9299 # define ISLOWER(c) \
9300 (('a' <= (c) && (c) <= 'i') \
9301 || ('j' <= (c) && (c) <= 'r') \
9302 || ('s' <= (c) && (c) <= 'z'))
9303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9311 for (i = 0; i < 256; i++)
9312 if (XOR (islower (i), ISLOWER (i))
9313 || toupper (i) != TOUPPER (i))
9318 if ac_fn_cxx_try_run
"$LINENO"; then :
9321 ac_cv_header_stdc
=no
9323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9330 $as_echo "$ac_cv_header_stdc" >&6; }
9331 if test $ac_cv_header_stdc = yes; then
9333 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9338 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9339 if ${ac_cv_header_time+:} false
; then :
9340 $as_echo_n "(cached) " >&6
9342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 #include <sys/types.h>
9345 #include <sys/time.h>
9351 if ((struct tm *) 0)
9357 if ac_fn_cxx_try_compile
"$LINENO"; then :
9358 ac_cv_header_time
=yes
9360 ac_cv_header_time
=no
9362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9365 $as_echo "$ac_cv_header_time" >&6; }
9366 if test $ac_cv_header_time = yes; then
9368 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9373 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9374 if ${gcc_cv_header_string+:} false
; then :
9375 $as_echo_n "(cached) " >&6
9377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9380 #include <strings.h>
9389 if ac_fn_cxx_try_compile
"$LINENO"; then :
9390 gcc_cv_header_string
=yes
9392 gcc_cv_header_string
=no
9394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9397 $as_echo "$gcc_cv_header_string" >&6; }
9398 if test $gcc_cv_header_string = yes; then
9400 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9405 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9406 if ${ac_cv_header_sys_wait_h+:} false
; then :
9407 $as_echo_n "(cached) " >&6
9409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 #include <sys/types.h>
9412 #include <sys/wait.h>
9414 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9417 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9425 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9430 if ac_fn_cxx_try_compile
"$LINENO"; then :
9431 ac_cv_header_sys_wait_h
=yes
9433 ac_cv_header_sys_wait_h
=no
9435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9438 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9439 if test $ac_cv_header_sys_wait_h = yes; then
9441 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9446 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9447 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9448 $as_echo_n "(cached) " >&6
9450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 #include <sys/types.h>
9453 #include <termios.h>
9459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9460 $EGREP "yes" >/dev
/null
2>&1; then :
9461 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9463 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9469 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9471 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9473 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9474 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9475 $as_echo_n "(cached) " >&6
9477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 #include <sys/types.h>
9480 #include <sys/ioctl.h>
9486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9487 $EGREP "yes" >/dev
/null
2>&1; then :
9488 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9490 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9496 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9498 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9500 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9505 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9506 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9507 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9508 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9510 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9511 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9512 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9513 cat >>confdefs.h
<<_ACEOF
9514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9521 # Check for thread headers.
9522 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9523 if test "x$ac_cv_header_thread_h" = xyes
; then :
9529 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9530 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9537 # These tests can't be done till we know if we have limits.h.
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9539 $as_echo_n "checking for CHAR_BIT... " >&6; }
9540 if ${gcc_cv_decl_char_bit+:} false
; then :
9541 $as_echo_n "(cached) " >&6
9543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545 #ifdef HAVE_LIMITS_H
9552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9553 $EGREP "found" >/dev
/null
2>&1; then :
9554 gcc_cv_decl_char_bit
=yes
9556 gcc_cv_decl_char_bit
=no
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9563 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9564 if test $gcc_cv_decl_char_bit = no
; then
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9566 $as_echo_n "checking number of bits in a byte... " >&6; }
9567 if ${gcc_cv_c_nbby+:} false
; then :
9568 $as_echo_n "(cached) " >&6
9572 while test $i -lt 65; do
9573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9580 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9581 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9587 if ac_fn_cxx_try_compile
"$LINENO"; then :
9588 gcc_cv_c_nbby
=$i; break
9590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9593 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9597 $as_echo "$gcc_cv_c_nbby" >&6; }
9598 if test $gcc_cv_c_nbby = failed
; then
9599 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9602 cat >>confdefs.h
<<_ACEOF
9603 #define CHAR_BIT $gcc_cv_c_nbby
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9609 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9610 if ${ac_cv_c_bigendian+:} false
; then :
9611 $as_echo_n "(cached) " >&6
9613 ac_cv_c_bigendian
=unknown
9614 # See if we're dealing with a universal compiler.
9615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 #ifndef __APPLE_CC__
9618 not a universal capable compiler
9623 if ac_fn_cxx_try_compile
"$LINENO"; then :
9625 # Check for potential -arch flags. It is not universal unless
9626 # there are at least two -arch flags with different values.
9629 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9630 if test -n "$ac_prev"; then
9632 i?
86 | x86_64 | ppc | ppc64
)
9633 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9636 ac_cv_c_bigendian
=universal
9642 elif test "x$ac_word" = "x-arch"; then
9647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9648 if test $ac_cv_c_bigendian = unknown
; then
9649 # See if sys/param.h defines the BYTE_ORDER macro.
9650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9652 #include <sys/types.h>
9653 #include <sys/param.h>
9658 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9659 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9668 if ac_fn_cxx_try_compile
"$LINENO"; then :
9669 # It does; now see whether it defined to BIG_ENDIAN or not.
9670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 #include <sys/types.h>
9673 #include <sys/param.h>
9678 #if BYTE_ORDER != BIG_ENDIAN
9686 if ac_fn_cxx_try_compile
"$LINENO"; then :
9687 ac_cv_c_bigendian
=yes
9689 ac_cv_c_bigendian
=no
9691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9695 if test $ac_cv_c_bigendian = unknown
; then
9696 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9704 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9712 if ac_fn_cxx_try_compile
"$LINENO"; then :
9713 # It does; now see whether it defined to _BIG_ENDIAN or not.
9714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9729 if ac_fn_cxx_try_compile
"$LINENO"; then :
9730 ac_cv_c_bigendian
=yes
9732 ac_cv_c_bigendian
=no
9734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9738 if test $ac_cv_c_bigendian = unknown
; then
9739 # Compile a test program.
9740 if test "$cross_compiling" = yes; then :
9741 # Try to guess by grepping values from an object file.
9742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 short int ascii_mm[] =
9745 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9746 short int ascii_ii[] =
9747 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9748 int use_ascii (int i) {
9749 return ascii_mm[i] + ascii_ii[i];
9751 short int ebcdic_ii[] =
9752 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9753 short int ebcdic_mm[] =
9754 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9755 int use_ebcdic (int i) {
9756 return ebcdic_mm[i] + ebcdic_ii[i];
9763 return use_ascii (foo) == use_ebcdic (foo);
9768 if ac_fn_cxx_try_compile
"$LINENO"; then :
9769 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9770 ac_cv_c_bigendian
=yes
9772 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9773 if test "$ac_cv_c_bigendian" = unknown
; then
9774 ac_cv_c_bigendian
=no
9776 # finding both strings is unlikely to happen, but who knows?
9777 ac_cv_c_bigendian
=unknown
9781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785 $ac_includes_default
9790 /* Are we little or big endian? From Harbison&Steele. */
9794 char c[sizeof (long int)];
9797 return u.c[sizeof (long int) - 1] == 1;
9803 if ac_fn_cxx_try_run
"$LINENO"; then :
9804 ac_cv_c_bigendian
=no
9806 ac_cv_c_bigendian
=yes
9808 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9809 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9815 $as_echo "$ac_cv_c_bigendian" >&6; }
9816 case $ac_cv_c_bigendian in #(
9818 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9824 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9828 as_fn_error $?
"unknown endianness
9829 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9833 # ----------------------
9834 # Checks for C++ headers
9835 # ----------------------
9838 ac_cpp
='$CXXCPP $CPPFLAGS'
9839 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9841 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9843 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9844 if test -z "$CXXCPP"; then
9845 if ${ac_cv_prog_CXXCPP+:} false
; then :
9846 $as_echo_n "(cached) " >&6
9848 # Double quotes because CXXCPP needs to be expanded
9849 for CXXCPP
in "$CXX -E" "/lib/cpp"
9852 for ac_cxx_preproc_warn_flag
in '' yes
9854 # Use a header file that comes with gcc, so configuring glibc
9855 # with a fresh cross-compiler works.
9856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857 # <limits.h> exists even on freestanding compilers.
9858 # On the NeXT, cc -E runs the code through the compiler's parser,
9859 # not just through cpp. "Syntax error" is here to catch this case.
9860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9863 # include <limits.h>
9865 # include <assert.h>
9869 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9872 # Broken: fails on valid input.
9875 rm -f conftest.err conftest.i conftest.
$ac_ext
9877 # OK, works on sane cases. Now check whether nonexistent headers
9878 # can be detected and how.
9879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9881 #include <ac_nonexistent.h>
9883 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9884 # Broken: success on invalid input.
9887 # Passes both tests.
9891 rm -f conftest.err conftest.i conftest.
$ac_ext
9894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9895 rm -f conftest.i conftest.err conftest.
$ac_ext
9896 if $ac_preproc_ok; then :
9901 ac_cv_prog_CXXCPP
=$CXXCPP
9904 CXXCPP
=$ac_cv_prog_CXXCPP
9906 ac_cv_prog_CXXCPP
=$CXXCPP
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9909 $as_echo "$CXXCPP" >&6; }
9911 for ac_cxx_preproc_warn_flag
in '' yes
9913 # Use a header file that comes with gcc, so configuring glibc
9914 # with a fresh cross-compiler works.
9915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916 # <limits.h> exists even on freestanding compilers.
9917 # On the NeXT, cc -E runs the code through the compiler's parser,
9918 # not just through cpp. "Syntax error" is here to catch this case.
9919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9922 # include <limits.h>
9924 # include <assert.h>
9928 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9931 # Broken: fails on valid input.
9934 rm -f conftest.err conftest.i conftest.
$ac_ext
9936 # OK, works on sane cases. Now check whether nonexistent headers
9937 # can be detected and how.
9938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 #include <ac_nonexistent.h>
9942 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9943 # Broken: success on invalid input.
9946 # Passes both tests.
9950 rm -f conftest.err conftest.i conftest.
$ac_ext
9953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9954 rm -f conftest.i conftest.err conftest.
$ac_ext
9955 if $ac_preproc_ok; then :
9958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9961 See \`config.log' for more details" >&5
9962 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9963 See \`config.log' for more details" >&2;}; }
9967 ac_cpp
='$CXXCPP $CPPFLAGS'
9968 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9969 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9970 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9973 for ac_header
in unordered_map
9975 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9976 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9977 cat >>confdefs.h
<<_ACEOF
9978 #define HAVE_UNORDERED_MAP 1
9984 for ac_header
in tr1/unordered_map
9986 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9987 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9988 cat >>confdefs.h
<<_ACEOF
9989 #define HAVE_TR1_UNORDERED_MAP 1
9995 for ac_header
in ext
/hash_map
9997 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9998 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9999 cat >>confdefs.h
<<_ACEOF
10000 #define HAVE_EXT_HASH_MAP 1
10008 # Dependency checking.
10011 rm -rf .tst
2>/dev
/null
10012 mkdir .tst
2>/dev
/null
10013 if test -d .tst
; then
10018 rmdir .tst
2>/dev
/null
10020 DEPDIR
="${am__leading_dot}deps"
10022 ac_config_commands
="$ac_config_commands depdir"
10025 ac_config_commands
="$ac_config_commands gccdepdir"
10028 depcc
="$CXX" am_compiler_list
=
10030 am_depcomp
=$ac_aux_dir/depcomp
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10032 $as_echo_n "checking dependency style of $depcc... " >&6; }
10033 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
10034 $as_echo_n "(cached) " >&6
10036 if test -f "$am_depcomp"; then
10037 # We make a subdir and do the tests there. Otherwise we can end up
10038 # making bogus files that we don't know about and never remove. For
10039 # instance it was reported that on HP-UX the gcc test will end up
10040 # making a dummy file named `D' -- because `-MD' means `put the output
10043 # Copy depcomp to subdir because otherwise we won't find it if we're
10044 # using a relative directory.
10045 cp "$am_depcomp" conftest.dir
10047 # We will build objects and dependencies in a subdirectory because
10048 # it helps to detect inapplicable dependency modes. For instance
10049 # both Tru64's cc and ICC support -MD to output dependencies as a
10050 # side effect of compilation, but ICC will put the dependencies in
10051 # the current directory while Tru64 will put them in the object
10055 am_cv_CXX_dependencies_compiler_type
=none
10056 if test "$am_compiler_list" = ""; then
10057 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10059 for depmode
in $am_compiler_list; do
10060 if test $depmode = none
; then break; fi
10062 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10063 # Setup a source with many dependencies, because some compilers
10064 # like to wrap large dependency lists on column 80 (with \), and
10065 # we should not choose a depcomp mode which is confused by this.
10067 # We need to recreate these files for each test, as the compiler may
10068 # overwrite some of them when testing with obscure command lines.
10069 # This happens at least with the AIX C compiler.
10071 for i
in 1 2 3 4 5 6; do
10072 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10073 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10074 # Solaris 8's {/usr,}/bin/sh.
10075 touch sub
/conftst
$i.h
10077 echo "include sub/conftest.Po" > confmf
10079 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10080 # mode. It turns out that the SunPro C++ compiler does not properly
10081 # handle `-M -o', and we need to detect this.
10082 depcmd
="depmode=$depmode \
10083 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10085 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10086 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
10087 if env
$depcmd > conftest.err
2>&1 &&
10088 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
10089 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
10090 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
10091 # icc doesn't choke on unknown options, it will just issue warnings
10092 # or remarks (even with -Werror). So we grep stderr for any message
10093 # that says an option was ignored or not supported.
10094 # When given -MP, icc 7.0 and 7.1 complain thusly:
10095 # icc: Command line warning: ignoring option '-M'; no argument required
10096 # The diagnosis changed in icc 8.0:
10097 # icc: Command line remark: option '-MP' not supported
10098 if (grep 'ignoring option' conftest.err ||
10099 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10100 am_cv_CXX_dependencies_compiler_type
=$depmode
10101 $as_echo "$as_me:$LINENO: success" >&5
10105 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10106 sed -e 's/^/| /' < conftest.err
>&5
10110 rm -rf conftest.dir
10112 am_cv_CXX_dependencies_compiler_type
=none
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10117 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10118 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10119 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10120 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10130 # These libraries may be used by collect2.
10131 # We may need a special search path to get them linked.
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10133 $as_echo_n "checking for collect2 libraries... " >&6; }
10134 if ${gcc_cv_collect2_libs+:} false
; then :
10135 $as_echo_n "(cached) " >&6
10138 for libs
in '' -lld -lmld \
10139 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10140 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10146 /* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10161 if ac_fn_cxx_try_link
"$LINENO"; then :
10162 gcc_cv_collect2_libs
="$libs"; break
10164 rm -f core conftest.err conftest.
$ac_objext \
10165 conftest
$ac_exeext conftest.
$ac_ext
10168 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10171 $as_echo "$gcc_cv_collect2_libs" >&6; }
10172 case $gcc_cv_collect2_libs in
10173 "none required") ;;
10174 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10178 # When building Ada code on Alpha, we need exc_resume which is usually in
10179 # -lexc. So test for it.
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10183 $as_echo_n "checking for library containing exc_resume... " >&6; }
10184 if ${ac_cv_search_exc_resume+:} false
; then :
10185 $as_echo_n "(cached) " >&6
10187 ac_func_search_save_LIBS
=$LIBS
10188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10197 char exc_resume ();
10201 return exc_resume ();
10206 for ac_lib
in '' exc
; do
10207 if test -z "$ac_lib"; then
10208 ac_res
="none required"
10211 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10213 if ac_fn_cxx_try_link
"$LINENO"; then :
10214 ac_cv_search_exc_resume
=$ac_res
10216 rm -f core conftest.err conftest.
$ac_objext \
10218 if ${ac_cv_search_exc_resume+:} false
; then :
10222 if ${ac_cv_search_exc_resume+:} false
; then :
10225 ac_cv_search_exc_resume
=no
10227 rm conftest.
$ac_ext
10228 LIBS
=$ac_func_search_save_LIBS
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10231 $as_echo "$ac_cv_search_exc_resume" >&6; }
10232 ac_res
=$ac_cv_search_exc_resume
10233 if test "$ac_res" != no
; then :
10234 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10238 GNAT_LIBEXC
="$LIBS"
10242 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10246 $as_echo_n "checking for library containing kstat_open... " >&6; }
10247 if ${ac_cv_search_kstat_open+:} false
; then :
10248 $as_echo_n "(cached) " >&6
10250 ac_func_search_save_LIBS
=$LIBS
10251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10260 char kstat_open ();
10264 return kstat_open ();
10269 for ac_lib
in '' kstat
; do
10270 if test -z "$ac_lib"; then
10271 ac_res
="none required"
10274 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10276 if ac_fn_cxx_try_link
"$LINENO"; then :
10277 ac_cv_search_kstat_open
=$ac_res
10279 rm -f core conftest.err conftest.
$ac_objext \
10281 if ${ac_cv_search_kstat_open+:} false
; then :
10285 if ${ac_cv_search_kstat_open+:} false
; then :
10288 ac_cv_search_kstat_open
=no
10290 rm conftest.
$ac_ext
10291 LIBS
=$ac_func_search_save_LIBS
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10294 $as_echo "$ac_cv_search_kstat_open" >&6; }
10295 ac_res
=$ac_cv_search_kstat_open
10296 if test "$ac_res" != no
; then :
10297 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10301 EXTRA_GCC_LIBS
="$LIBS"
10305 # Some systems put ldexp and frexp in libm instead of libc; assume
10306 # they're both in the same place. jcf-dump needs them.
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10310 $as_echo_n "checking for library containing ldexp... " >&6; }
10311 if ${ac_cv_search_ldexp+:} false
; then :
10312 $as_echo_n "(cached) " >&6
10314 ac_func_search_save_LIBS
=$LIBS
10315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10333 for ac_lib
in '' m
; do
10334 if test -z "$ac_lib"; then
10335 ac_res
="none required"
10338 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10340 if ac_fn_cxx_try_link
"$LINENO"; then :
10341 ac_cv_search_ldexp
=$ac_res
10343 rm -f core conftest.err conftest.
$ac_objext \
10345 if ${ac_cv_search_ldexp+:} false
; then :
10349 if ${ac_cv_search_ldexp+:} false
; then :
10352 ac_cv_search_ldexp
=no
10354 rm conftest.
$ac_ext
10355 LIBS
=$ac_func_search_save_LIBS
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10358 $as_echo "$ac_cv_search_ldexp" >&6; }
10359 ac_res
=$ac_cv_search_ldexp
10360 if test "$ac_res" != no
; then :
10361 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10369 # Some systems need dlopen
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10373 $as_echo_n "checking for library containing dlopen... " >&6; }
10374 if ${ac_cv_search_dlopen+:} false
; then :
10375 $as_echo_n "(cached) " >&6
10377 ac_func_search_save_LIBS
=$LIBS
10378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10381 /* Override any GCC internal prototype to avoid an error.
10382 Use char because int might match the return type of a GCC
10383 builtin and then its argument prototype would still apply. */
10396 for ac_lib
in '' dl
; do
10397 if test -z "$ac_lib"; then
10398 ac_res
="none required"
10401 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10403 if ac_fn_cxx_try_link
"$LINENO"; then :
10404 ac_cv_search_dlopen
=$ac_res
10406 rm -f core conftest.err conftest.
$ac_objext \
10408 if ${ac_cv_search_dlopen+:} false
; then :
10412 if ${ac_cv_search_dlopen+:} false
; then :
10415 ac_cv_search_dlopen
=no
10417 rm conftest.
$ac_ext
10418 LIBS
=$ac_func_search_save_LIBS
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10421 $as_echo "$ac_cv_search_dlopen" >&6; }
10422 ac_res
=$ac_cv_search_dlopen
10423 if test "$ac_res" != no
; then :
10424 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10432 # Use <inttypes.h> only if it exists,
10433 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10436 $as_echo_n "checking for inttypes.h... " >&6; }
10437 if ${gcc_cv_header_inttypes_h+:} false
; then :
10438 $as_echo_n "(cached) " >&6
10440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10442 #define __STDC_FORMAT_MACROS
10443 #include <sys/types.h>
10444 #include <inttypes.h>
10456 if ac_fn_cxx_try_compile
"$LINENO"; then :
10457 gcc_cv_header_inttypes_h
=yes
10459 gcc_cv_header_inttypes_h
=no
10461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10465 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10466 if test $gcc_cv_header_inttypes_h = yes; then
10468 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10472 # Look for the ZSTD package.
10482 # Check whether --with-zstd was given.
10483 if test "${with_zstd+set}" = set; then :
10484 withval
=$with_zstd;
10488 # Check whether --with-zstd-include was given.
10489 if test "${with_zstd_include+set}" = set; then :
10490 withval
=$with_zstd_include;
10494 # Check whether --with-zstd-lib was given.
10495 if test "${with_zstd_lib+set}" = set; then :
10496 withval
=$with_zstd_lib;
10499 case "x$with_zstd" in
10505 *) ZSTD_INCLUDE
=$with_zstd/include
10506 ZSTD_LIB
=$with_zstd/lib
10510 if test "x$with_zstd" != xno
; then
10511 if test "x$with_zstd_include" != x
; then
10512 ZSTD_INCLUDE
=$with_zstd_include
10514 if test "x$with_zstd_lib" != x
; then
10515 ZSTD_LIB
=$with_zstd_lib
10517 if test "x$ZSTD_INCLUDE" != x \
10518 && test "x$ZSTD_INCLUDE" != xno
; then
10519 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10521 if test "x$ZSTD_LIB" != x \
10522 && test "x$ZSTD_LIB" != xno
; then
10523 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10526 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10527 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10529 # LTO can use zstd compression algorithm
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10533 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10534 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10535 $as_echo_n "(cached) " >&6
10537 ac_func_search_save_LIBS
=$LIBS
10538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10547 char ZSTD_compress ();
10551 return ZSTD_compress ();
10556 for ac_lib
in '' zstd
; do
10557 if test -z "$ac_lib"; then
10558 ac_res
="none required"
10561 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10563 if ac_fn_cxx_try_link
"$LINENO"; then :
10564 ac_cv_search_ZSTD_compress
=$ac_res
10566 rm -f core conftest.err conftest.
$ac_objext \
10568 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10572 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10575 ac_cv_search_ZSTD_compress
=no
10577 rm conftest.
$ac_ext
10578 LIBS
=$ac_func_search_save_LIBS
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10581 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10582 ac_res
=$ac_cv_search_ZSTD_compress
10583 if test "$ac_res" != no
; then :
10584 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10587 gcc_cv_header_zstd_h
=no
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10595 $as_echo_n "checking for zstd.h... " >&6; }
10596 if ${gcc_cv_header_zstd_h+:} false
; then :
10597 $as_echo_n "(cached) " >&6
10599 # We require version 1.3.0 or later. This is the first version that has
10600 # ZSTD_getFrameContentSize.
10601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10604 #if ZSTD_VERSION_NUMBER < 10300
10605 #error "need zstd 1.3.0 or better"
10615 if ac_fn_cxx_try_compile
"$LINENO"; then :
10616 gcc_cv_header_zstd_h
=yes
10618 gcc_cv_header_zstd_h
=no
10620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10624 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10625 if test $gcc_cv_header_zstd_h = yes; then
10627 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10629 elif test "x$with_zstd" != x
; then
10630 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10636 for ac_func
in times clock kill getrlimit setrlimit atoq \
10637 popen sysconf strsignal getrusage nl_langinfo \
10638 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10639 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise mallinfo mallinfo2 fstatat getauxval \
10640 clock_gettime munmap msync
10642 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10644 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10645 cat >>confdefs.h
<<_ACEOF
10646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10653 # At least for glibc, clock_gettime is in librt. But don't pull that
10654 # in if it still doesn't give us the function we want.
10655 if test $ac_cv_func_clock_gettime = no
; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
10657 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
10658 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
10659 $as_echo_n "(cached) " >&6
10661 ac_check_lib_save_LIBS
=$LIBS
10663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10672 char clock_gettime ();
10676 return clock_gettime ();
10681 if ac_fn_cxx_try_link
"$LINENO"; then :
10682 ac_cv_lib_rt_clock_gettime
=yes
10684 ac_cv_lib_rt_clock_gettime
=no
10686 rm -f core conftest.err conftest.
$ac_objext \
10687 conftest
$ac_exeext conftest.
$ac_ext
10688 LIBS
=$ac_check_lib_save_LIBS
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
10691 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10692 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
10695 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
10701 if test x
$ac_cv_func_mbstowcs = xyes
; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10703 $as_echo_n "checking whether mbstowcs works... " >&6; }
10704 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10705 $as_echo_n "(cached) " >&6
10707 if test "$cross_compiling" = yes; then :
10708 gcc_cv_func_mbstowcs_works
=yes
10710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712 #include <stdlib.h>
10715 mbstowcs(0, "", 0);
10719 if ac_fn_cxx_try_run
"$LINENO"; then :
10720 gcc_cv_func_mbstowcs_works
=yes
10722 gcc_cv_func_mbstowcs_works
=no
10724 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10725 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10730 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10731 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10733 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10738 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10739 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10743 cat >>confdefs.h
<<_ACEOF
10744 #define ssize_t int
10749 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10750 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10754 cat >>confdefs.h
<<_ACEOF
10755 #define caddr_t char *
10760 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10762 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10764 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10770 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10771 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10772 gcc_header_sys_mman_h
=yes
10774 gcc_header_sys_mman_h
=no
10777 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10778 if test "x$ac_cv_func_mmap" = xyes
; then :
10784 if test "$gcc_header_sys_mman_h" != yes \
10785 ||
test "$gcc_func_mmap" != yes; then
10786 gcc_cv_func_mmap_file
=no
10787 gcc_cv_func_mmap_dev_zero
=no
10788 gcc_cv_func_mmap_anon
=no
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10791 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10792 if ${gcc_cv_func_mmap_file+:} false
; then :
10793 $as_echo_n "(cached) " >&6
10795 # Add a system to this blacklist if
10796 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10797 # memory area containing the same data that you'd get if you applied
10798 # read() to the same fd. The only system known to have a problem here
10799 # is VMS, where text files have record structure.
10802 gcc_cv_func_mmap_file
=no
;;
10804 gcc_cv_func_mmap_file
=yes;;
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10808 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10810 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10811 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10812 $as_echo_n "(cached) " >&6
10814 # Add a system to this blacklist if it has mmap() but /dev/zero
10815 # does not exist, or if mmapping /dev/zero does not give anonymous
10816 # zeroed pages with both the following properties:
10817 # 1. If you map N consecutive pages in with one call, and then
10818 # unmap any subset of those pages, the pages that were not
10819 # explicitly unmapped remain accessible.
10820 # 2. If you map two adjacent blocks of memory and then unmap them
10821 # both at once, they must both go away.
10822 # Systems known to be in this category are Windows (all variants),
10825 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10826 gcc_cv_func_mmap_dev_zero
=no
;;
10828 gcc_cv_func_mmap_dev_zero
=yes;;
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10832 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10834 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10836 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10837 if ${gcc_cv_decl_map_anon+:} false
; then :
10838 $as_echo_n "(cached) " >&6
10840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10842 #include <sys/types.h>
10843 #include <sys/mman.h>
10844 #include <unistd.h>
10846 #ifndef MAP_ANONYMOUS
10847 #define MAP_ANONYMOUS MAP_ANON
10853 int n = MAP_ANONYMOUS;
10858 if ac_fn_cxx_try_compile
"$LINENO"; then :
10859 gcc_cv_decl_map_anon
=yes
10861 gcc_cv_decl_map_anon
=no
10863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10866 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10868 if test $gcc_cv_decl_map_anon = no
; then
10869 gcc_cv_func_mmap_anon
=no
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10872 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10873 if ${gcc_cv_func_mmap_anon+:} false
; then :
10874 $as_echo_n "(cached) " >&6
10876 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10877 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10878 # doesn't give anonymous zeroed pages with the same properties listed
10879 # above for use of /dev/zero.
10880 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10882 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10883 gcc_cv_func_mmap_anon
=no
;;
10885 gcc_cv_func_mmap_anon
=yes;;
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10889 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10893 if test $gcc_cv_func_mmap_file = yes; then
10895 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10898 if test $gcc_cv_func_mmap_dev_zero = yes; then
10900 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10903 if test $gcc_cv_func_mmap_anon = yes; then
10905 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10912 # Under VMS, vfork works very differently than on Unix. The standard test
10913 # won't work, and it isn't easily adaptable. It makes more sense to
10915 ac_cv_func_vfork_works
=yes
10918 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10919 if test "x$ac_cv_type_pid_t" = xyes
; then :
10923 cat >>confdefs.h
<<_ACEOF
10929 for ac_header
in vfork.h
10931 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10932 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10933 cat >>confdefs.h
<<_ACEOF
10934 #define HAVE_VFORK_H 1
10940 for ac_func
in fork vfork
10942 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10943 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10944 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10945 cat >>confdefs.h
<<_ACEOF
10946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10952 if test "x$ac_cv_func_fork" = xyes
; then
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10954 $as_echo_n "checking for working fork... " >&6; }
10955 if ${ac_cv_func_fork_works+:} false
; then :
10956 $as_echo_n "(cached) " >&6
10958 if test "$cross_compiling" = yes; then :
10959 ac_cv_func_fork_works
=cross
10961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10963 $ac_includes_default
10968 /* By Ruediger Kuhlmann. */
10969 return fork () < 0;
10975 if ac_fn_cxx_try_run
"$LINENO"; then :
10976 ac_cv_func_fork_works
=yes
10978 ac_cv_func_fork_works
=no
10980 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10981 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10986 $as_echo "$ac_cv_func_fork_works" >&6; }
10989 ac_cv_func_fork_works
=$ac_cv_func_fork
10991 if test "x$ac_cv_func_fork_works" = xcross
; then
10993 *-*-amigaos* |
*-*-msdosdjgpp*)
10994 # Override, as these systems have only a dummy fork() stub
10995 ac_cv_func_fork_works
=no
10998 ac_cv_func_fork_works
=yes
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11002 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11004 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11005 if test "x$ac_cv_func_vfork" = xyes
; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11007 $as_echo_n "checking for working vfork... " >&6; }
11008 if ${ac_cv_func_vfork_works+:} false
; then :
11009 $as_echo_n "(cached) " >&6
11011 if test "$cross_compiling" = yes; then :
11012 ac_cv_func_vfork_works
=cross
11014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11016 /* Thanks to Paul Eggert for this test. */
11017 $ac_includes_default
11018 #include <sys/wait.h>
11019 #ifdef HAVE_VFORK_H
11020 # include <vfork.h>
11022 /* On some sparc systems, changes by the child to local and incoming
11023 argument registers are propagated back to the parent. The compiler
11024 is told about this with #include <vfork.h>, but some compilers
11025 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11026 static variable whose address is put into a register that is
11027 clobbered by the vfork. */
11030 sparc_address_test (int arg)
11032 sparc_address_test (arg) int arg;
11035 static pid_t child;
11053 pid_t parent = getpid ();
11056 sparc_address_test (0);
11061 /* Here is another test for sparc vfork register problems. This
11062 test uses lots of local variables, at least as many local
11063 variables as main has allocated so far including compiler
11064 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11065 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11066 reuse the register of parent for one of the local variables,
11067 since it will think that parent can't possibly be used any more
11068 in this routine. Assigning to the local variable will thus
11069 munge parent in the parent process. */
11071 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11072 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11073 /* Convince the compiler that p..p7 are live; otherwise, it might
11074 use the same hardware register for all 8 local variables. */
11075 if (p != p1 || p != p2 || p != p3 || p != p4
11076 || p != p5 || p != p6 || p != p7)
11079 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11080 from child file descriptors. If the child closes a descriptor
11081 before it execs or exits, this munges the parent's descriptor
11082 as well. Test for this by closing stdout in the child. */
11083 _exit(close(fileno(stdout)) != 0);
11088 while (wait(&status) != child)
11091 /* Was there some problem with vforking? */
11094 /* Did the child fail? (This shouldn't happen.) */
11097 /* Did the vfork/compiler bug occur? */
11098 || parent != getpid()
11100 /* Did the file descriptor bug occur? */
11101 || fstat(fileno(stdout), &st) != 0
11106 if ac_fn_cxx_try_run
"$LINENO"; then :
11107 ac_cv_func_vfork_works
=yes
11109 ac_cv_func_vfork_works
=no
11111 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11112 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11117 $as_echo "$ac_cv_func_vfork_works" >&6; }
11120 if test "x$ac_cv_func_fork_works" = xcross
; then
11121 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11123 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11126 if test "x$ac_cv_func_vfork_works" = xyes
; then
11128 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11132 $as_echo "#define vfork fork" >>confdefs.h
11135 if test "x$ac_cv_func_fork_works" = xyes
; then
11137 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11143 if test "X$prefix" = "XNONE"; then
11144 acl_final_prefix
="$ac_default_prefix"
11146 acl_final_prefix
="$prefix"
11148 if test "X$exec_prefix" = "XNONE"; then
11149 acl_final_exec_prefix
='${prefix}'
11151 acl_final_exec_prefix
="$exec_prefix"
11153 acl_save_prefix
="$prefix"
11154 prefix
="$acl_final_prefix"
11155 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11156 prefix
="$acl_save_prefix"
11159 # Check whether --with-gnu-ld was given.
11160 if test "${with_gnu_ld+set}" = set; then :
11161 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11166 # Prepare PATH_SEPARATOR.
11167 # The user is always right.
11168 if test "${PATH_SEPARATOR+set}" != set; then
11169 echo "#! /bin/sh" >conf$$.sh
11170 echo "exit 0" >>conf$$.sh
11172 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11180 if test "$GCC" = yes; then
11181 # Check if gcc -print-prog-name=ld gives a path.
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11183 $as_echo_n "checking for ld used by GCC... " >&6; }
11186 # gcc leaves a trailing carriage return which upsets mingw
11187 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11189 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11192 # Accept absolute paths.
11193 [\\/]* |
[A-Za-z
]:[\\/]*)
11194 re_direlt
='/[^/][^/]*/\.\./'
11195 # Canonicalize the path of ld
11196 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11197 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11198 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11200 test -z "$LD" && LD
="$ac_prog"
11203 # If it fails, then pretend we aren't using GCC.
11207 # If it is relative, then search for the first ld in PATH.
11208 with_gnu_ld
=unknown
11211 elif test "$with_gnu_ld" = yes; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11213 $as_echo_n "checking for GNU ld... " >&6; }
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11216 $as_echo_n "checking for non-GNU ld... " >&6; }
11218 if ${acl_cv_path_LD+:} false
; then :
11219 $as_echo_n "(cached) " >&6
11221 if test -z "$LD"; then
11222 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11223 for ac_dir
in $PATH; do
11224 test -z "$ac_dir" && ac_dir
=.
11225 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11226 acl_cv_path_LD
="$ac_dir/$ac_prog"
11227 # Check to see if the program is GNU ld. I'd rather use --version,
11228 # but apparently some GNU ld's only accept -v.
11229 # Break only if it was the GNU/non-GNU ld that we prefer.
11230 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
11231 test "$with_gnu_ld" != no
&& break
11233 test "$with_gnu_ld" != yes && break
11239 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11243 LD
="$acl_cv_path_LD"
11244 if test -n "$LD"; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11246 $as_echo "$LD" >&6; }
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249 $as_echo "no" >&6; }
11251 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11253 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11254 if ${acl_cv_prog_gnu_ld+:} false
; then :
11255 $as_echo_n "(cached) " >&6
11257 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11258 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
11259 acl_cv_prog_gnu_ld
=yes
11261 acl_cv_prog_gnu_ld
=no
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11265 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11266 with_gnu_ld
=$acl_cv_prog_gnu_ld
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11271 $as_echo_n "checking for shared library run path origin... " >&6; }
11272 if ${acl_cv_rpath+:} false
; then :
11273 $as_echo_n "(cached) " >&6
11276 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11277 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11279 rm -f .
/conftest.sh
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11284 $as_echo "$acl_cv_rpath" >&6; }
11286 libext
="$acl_cv_libext"
11287 shlibext
="$acl_cv_shlibext"
11288 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11289 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11290 hardcode_direct
="$acl_cv_hardcode_direct"
11291 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11292 # Check whether --enable-rpath was given.
11293 if test "${enable_rpath+set}" = set; then :
11294 enableval
=$enable_rpath; :
11308 acl_save_prefix
="$prefix"
11309 prefix
="$acl_final_prefix"
11310 acl_save_exec_prefix
="$exec_prefix"
11311 exec_prefix
="$acl_final_exec_prefix"
11313 eval additional_includedir
=\"$includedir\"
11314 eval additional_libdir
=\"$libdir\"
11316 exec_prefix
="$acl_save_exec_prefix"
11317 prefix
="$acl_save_prefix"
11320 # Check whether --with-libiconv-prefix was given.
11321 if test "${with_libiconv_prefix+set}" = set; then :
11322 withval
=$with_libiconv_prefix;
11323 if test "X$withval" = "Xno"; then
11326 if test "X$withval" = "X"; then
11328 acl_save_prefix
="$prefix"
11329 prefix
="$acl_final_prefix"
11330 acl_save_exec_prefix
="$exec_prefix"
11331 exec_prefix
="$acl_final_exec_prefix"
11333 eval additional_includedir
=\"$includedir\"
11334 eval additional_libdir
=\"$libdir\"
11336 exec_prefix
="$acl_save_exec_prefix"
11337 prefix
="$acl_save_prefix"
11340 additional_includedir
="$withval/include"
11341 additional_libdir
="$withval/lib"
11348 # Check whether --with-libiconv-type was given.
11349 if test "${with_libiconv_type+set}" = set; then :
11350 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11352 with_libiconv_type
=auto
11355 lib_type
=`eval echo \$with_libiconv_type`
11362 names_already_handled
=
11363 names_next_round
='iconv '
11364 while test -n "$names_next_round"; do
11365 names_this_round
="$names_next_round"
11367 for name
in $names_this_round; do
11369 for n
in $names_already_handled; do
11370 if test "$n" = "$name"; then
11371 already_handled
=yes
11375 if test -z "$already_handled"; then
11376 names_already_handled
="$names_already_handled $name"
11377 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11378 eval value
=\"\
$HAVE_LIB$uppername\"
11379 if test -n "$value"; then
11380 if test "$value" = yes; then
11381 eval value
=\"\
$LIB$uppername\"
11382 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11383 eval value
=\"\
$LTLIB$uppername\"
11384 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11393 if test $use_additional = yes; then
11394 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11395 found_dir
="$additional_libdir"
11396 found_so
="$additional_libdir/lib$name.$shlibext"
11397 if test -f "$additional_libdir/lib$name.la"; then
11398 found_la
="$additional_libdir/lib$name.la"
11400 elif test x
$lib_type != xshared
; then
11401 if test -f "$additional_libdir/lib$name.$libext"; then
11402 found_dir
="$additional_libdir"
11403 found_a
="$additional_libdir/lib$name.$libext"
11404 if test -f "$additional_libdir/lib$name.la"; then
11405 found_la
="$additional_libdir/lib$name.la"
11410 if test "X$found_dir" = "X"; then
11411 for x
in $LDFLAGS $LTLIBICONV; do
11413 acl_save_prefix
="$prefix"
11414 prefix
="$acl_final_prefix"
11415 acl_save_exec_prefix
="$exec_prefix"
11416 exec_prefix
="$acl_final_exec_prefix"
11418 exec_prefix
="$acl_save_exec_prefix"
11419 prefix
="$acl_save_prefix"
11423 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11424 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11426 found_so
="$dir/lib$name.$shlibext"
11427 if test -f "$dir/lib$name.la"; then
11428 found_la
="$dir/lib$name.la"
11430 elif test x
$lib_type != xshared
; then
11431 if test -f "$dir/lib$name.$libext"; then
11433 found_a
="$dir/lib$name.$libext"
11434 if test -f "$dir/lib$name.la"; then
11435 found_la
="$dir/lib$name.la"
11441 if test "X$found_dir" != "X"; then
11446 if test "X$found_dir" != "X"; then
11447 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11448 if test "X$found_so" != "X"; then
11449 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11450 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11453 for x
in $ltrpathdirs; do
11454 if test "X$x" = "X$found_dir"; then
11459 if test -z "$haveit"; then
11460 ltrpathdirs
="$ltrpathdirs $found_dir"
11462 if test "$hardcode_direct" = yes; then
11463 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11465 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11466 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11468 for x
in $rpathdirs; do
11469 if test "X$x" = "X$found_dir"; then
11474 if test -z "$haveit"; then
11475 rpathdirs
="$rpathdirs $found_dir"
11479 for x
in $LDFLAGS $LIBICONV; do
11481 acl_save_prefix
="$prefix"
11482 prefix
="$acl_final_prefix"
11483 acl_save_exec_prefix
="$exec_prefix"
11484 exec_prefix
="$acl_final_exec_prefix"
11486 exec_prefix
="$acl_save_exec_prefix"
11487 prefix
="$acl_save_prefix"
11489 if test "X$x" = "X-L$found_dir"; then
11494 if test -z "$haveit"; then
11495 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11497 if test "$hardcode_minus_L" != no
; then
11498 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11500 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11506 if test "X$found_a" != "X"; then
11507 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11509 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11512 additional_includedir
=
11513 case "$found_dir" in
11515 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11516 additional_includedir
="$basedir/include"
11519 if test "X$additional_includedir" != "X"; then
11520 if test "X$additional_includedir" != "X/usr/include"; then
11522 if test "X$additional_includedir" = "X/usr/local/include"; then
11523 if test -n "$GCC"; then
11525 linux
*) haveit
=yes;;
11529 if test -z "$haveit"; then
11530 for x
in $CPPFLAGS $INCICONV; do
11532 acl_save_prefix
="$prefix"
11533 prefix
="$acl_final_prefix"
11534 acl_save_exec_prefix
="$exec_prefix"
11535 exec_prefix
="$acl_final_exec_prefix"
11537 exec_prefix
="$acl_save_exec_prefix"
11538 prefix
="$acl_save_prefix"
11540 if test "X$x" = "X-I$additional_includedir"; then
11545 if test -z "$haveit"; then
11546 if test -d "$additional_includedir"; then
11547 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11553 if test -n "$found_la"; then
11554 save_libdir
="$libdir"
11555 case "$found_la" in
11556 */* |
*\\*) .
"$found_la" ;;
11557 *) .
"./$found_la" ;;
11559 libdir
="$save_libdir"
11560 for dep
in $dependency_libs; do
11563 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11564 if test "X$additional_libdir" != "X/usr/lib"; then
11566 if test "X$additional_libdir" = "X/usr/local/lib"; then
11567 if test -n "$GCC"; then
11569 linux
*) haveit
=yes;;
11573 if test -z "$haveit"; then
11575 for x
in $LDFLAGS $LIBICONV; do
11577 acl_save_prefix
="$prefix"
11578 prefix
="$acl_final_prefix"
11579 acl_save_exec_prefix
="$exec_prefix"
11580 exec_prefix
="$acl_final_exec_prefix"
11582 exec_prefix
="$acl_save_exec_prefix"
11583 prefix
="$acl_save_prefix"
11585 if test "X$x" = "X-L$additional_libdir"; then
11590 if test -z "$haveit"; then
11591 if test -d "$additional_libdir"; then
11592 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11596 for x
in $LDFLAGS $LTLIBICONV; do
11598 acl_save_prefix
="$prefix"
11599 prefix
="$acl_final_prefix"
11600 acl_save_exec_prefix
="$exec_prefix"
11601 exec_prefix
="$acl_final_exec_prefix"
11603 exec_prefix
="$acl_save_exec_prefix"
11604 prefix
="$acl_save_prefix"
11606 if test "X$x" = "X-L$additional_libdir"; then
11611 if test -z "$haveit"; then
11612 if test -d "$additional_libdir"; then
11613 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11620 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11621 if test "$enable_rpath" != no
; then
11623 for x
in $rpathdirs; do
11624 if test "X$x" = "X$dir"; then
11629 if test -z "$haveit"; then
11630 rpathdirs
="$rpathdirs $dir"
11633 for x
in $ltrpathdirs; do
11634 if test "X$x" = "X$dir"; then
11639 if test -z "$haveit"; then
11640 ltrpathdirs
="$ltrpathdirs $dir"
11645 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11648 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11651 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11652 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11658 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11659 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11660 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11662 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11663 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11670 if test "X$rpathdirs" != "X"; then
11671 if test -n "$hardcode_libdir_separator"; then
11673 for found_dir
in $rpathdirs; do
11674 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11676 acl_save_libdir
="$libdir"
11678 eval flag
=\"$hardcode_libdir_flag_spec\"
11679 libdir
="$acl_save_libdir"
11680 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11682 for found_dir
in $rpathdirs; do
11683 acl_save_libdir
="$libdir"
11684 libdir
="$found_dir"
11685 eval flag
=\"$hardcode_libdir_flag_spec\"
11686 libdir
="$acl_save_libdir"
11687 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11691 if test "X$ltrpathdirs" != "X"; then
11692 for found_dir
in $ltrpathdirs; do
11693 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11703 am_save_CPPFLAGS
="$CPPFLAGS"
11705 for element
in $INCICONV; do
11707 for x
in $CPPFLAGS; do
11709 acl_save_prefix
="$prefix"
11710 prefix
="$acl_final_prefix"
11711 acl_save_exec_prefix
="$exec_prefix"
11712 exec_prefix
="$acl_final_exec_prefix"
11714 exec_prefix
="$acl_save_exec_prefix"
11715 prefix
="$acl_save_prefix"
11717 if test "X$x" = "X$element"; then
11722 if test -z "$haveit"; then
11723 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11729 $as_echo_n "checking for iconv... " >&6; }
11730 if ${am_cv_func_iconv+:} false
; then :
11731 $as_echo_n "(cached) " >&6
11734 am_cv_func_iconv
="no, consider installing GNU libiconv"
11736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11739 #include <stdlib.h>
11745 iconv_t cd = iconv_open("","");
11746 iconv(cd,NULL,NULL,NULL,NULL);
11752 if ac_fn_cxx_try_link
"$LINENO"; then :
11753 am_cv_func_iconv
=yes
11755 rm -f core conftest.err conftest.
$ac_objext \
11756 conftest
$ac_exeext conftest.
$ac_ext
11757 if test "$am_cv_func_iconv" != yes; then
11758 am_save_LIBS
="$LIBS"
11759 LIBS
="$LIBS $LIBICONV"
11760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11763 #include <stdlib.h>
11769 iconv_t cd = iconv_open("","");
11770 iconv(cd,NULL,NULL,NULL,NULL);
11776 if ac_fn_cxx_try_link
"$LINENO"; then :
11777 am_cv_lib_iconv
=yes
11778 am_cv_func_iconv
=yes
11780 rm -f core conftest.err conftest.
$ac_objext \
11781 conftest
$ac_exeext conftest.
$ac_ext
11782 LIBS
="$am_save_LIBS"
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11787 $as_echo "$am_cv_func_iconv" >&6; }
11788 if test "$am_cv_func_iconv" = yes; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11790 $as_echo_n "checking for working iconv... " >&6; }
11791 if ${am_cv_func_iconv_works+:} false
; then :
11792 $as_echo_n "(cached) " >&6
11795 am_save_LIBS
="$LIBS"
11796 if test $am_cv_lib_iconv = yes; then
11797 LIBS
="$LIBS $LIBICONV"
11799 am_cv_func_iconv_works
=no
11800 for ac_iconv_const
in '' 'const'; do
11801 if test "$cross_compiling" = yes; then :
11803 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
11804 *) am_cv_func_iconv_works
="guessing yes" ;;
11807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11811 #include <string.h>
11813 #ifndef ICONV_CONST
11814 # define ICONV_CONST $ac_iconv_const
11821 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11822 successful returns. This is even documented in
11823 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11825 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11826 if (cd_utf8_to_88591 != (iconv_t)(-1))
11828 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11830 ICONV_CONST char *inptr = input;
11831 size_t inbytesleft = strlen (input);
11832 char *outptr = buf;
11833 size_t outbytesleft = sizeof (buf);
11834 size_t res = iconv (cd_utf8_to_88591,
11835 &inptr, &inbytesleft,
11836 &outptr, &outbytesleft);
11839 iconv_close (cd_utf8_to_88591);
11842 /* Test against Solaris 10 bug: Failures are not distinguishable from
11843 successful returns. */
11845 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11846 if (cd_ascii_to_88591 != (iconv_t)(-1))
11848 static ICONV_CONST char input[] = "\263";
11850 ICONV_CONST char *inptr = input;
11851 size_t inbytesleft = strlen (input);
11852 char *outptr = buf;
11853 size_t outbytesleft = sizeof (buf);
11854 size_t res = iconv (cd_ascii_to_88591,
11855 &inptr, &inbytesleft,
11856 &outptr, &outbytesleft);
11859 iconv_close (cd_ascii_to_88591);
11862 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11864 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11865 if (cd_88591_to_utf8 != (iconv_t)(-1))
11867 static ICONV_CONST char input[] = "\304";
11868 static char buf[2] = { (char)0xDE, (char)0xAD };
11869 ICONV_CONST char *inptr = input;
11870 size_t inbytesleft = 1;
11871 char *outptr = buf;
11872 size_t outbytesleft = 1;
11873 size_t res = iconv (cd_88591_to_utf8,
11874 &inptr, &inbytesleft,
11875 &outptr, &outbytesleft);
11876 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11878 iconv_close (cd_88591_to_utf8);
11881 #if 0 /* This bug could be worked around by the caller. */
11882 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11884 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11885 if (cd_88591_to_utf8 != (iconv_t)(-1))
11887 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11889 ICONV_CONST char *inptr = input;
11890 size_t inbytesleft = strlen (input);
11891 char *outptr = buf;
11892 size_t outbytesleft = sizeof (buf);
11893 size_t res = iconv (cd_88591_to_utf8,
11894 &inptr, &inbytesleft,
11895 &outptr, &outbytesleft);
11898 iconv_close (cd_88591_to_utf8);
11902 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11905 /* Try standardized names. */
11906 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11907 /* Try IRIX, OSF/1 names. */
11908 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11909 /* Try AIX names. */
11910 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11911 /* Try HP-UX names. */
11912 iconv_t cd4 = iconv_open ("utf8", "eucJP");
11913 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11914 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11916 if (cd1 != (iconv_t)(-1))
11918 if (cd2 != (iconv_t)(-1))
11920 if (cd3 != (iconv_t)(-1))
11922 if (cd4 != (iconv_t)(-1))
11931 if ac_fn_cxx_try_run
"$LINENO"; then :
11932 am_cv_func_iconv_works
=yes
11934 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11935 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11938 test "$am_cv_func_iconv_works" = no ||
break
11940 LIBS
="$am_save_LIBS"
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11944 $as_echo "$am_cv_func_iconv_works" >&6; }
11945 case "$am_cv_func_iconv_works" in
11946 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
11947 *) am_func_iconv
=yes ;;
11950 am_func_iconv
=no am_cv_lib_iconv
=no
11952 if test "$am_func_iconv" = yes; then
11954 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11957 if test "$am_cv_lib_iconv" = yes; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11959 $as_echo_n "checking how to link with libiconv... " >&6; }
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11961 $as_echo "$LIBICONV" >&6; }
11963 CPPFLAGS
="$am_save_CPPFLAGS"
11970 if test "$am_cv_func_iconv" = yes; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
11972 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
11973 if ${gl_cv_iconv_nonconst+:} false
; then :
11974 $as_echo_n "(cached) " >&6
11976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11979 #include <stdlib.h>
11985 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11995 if ac_fn_cxx_try_compile
"$LINENO"; then :
11996 gl_cv_iconv_nonconst
=yes
11998 gl_cv_iconv_nonconst
=no
12000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
12004 $as_echo "$gl_cv_iconv_nonconst" >&6; }
12006 gl_cv_iconv_nonconst
=yes
12008 if test $gl_cv_iconv_nonconst = yes; then
12014 cat >>confdefs.h
<<_ACEOF
12015 #define ICONV_CONST $iconv_arg1
12020 if test "$am_func_iconv" = yes; then
12021 if test -n "$LIBICONV"; then
12022 am_cv_func_iconv_summary
='yes, in libiconv'
12024 am_cv_func_iconv_summary
='yes, in libc'
12027 if test "$am_cv_func_iconv" = yes; then
12028 am_cv_func_iconv_summary
='not working, consider installing GNU libiconv'
12030 am_cv_func_iconv_summary
='no, consider installing GNU libiconv'
12035 # Until we have in-tree GNU iconv:
12037 if test -f "$LTLIBICONV"; then
12038 LIBICONV_DEP
=$LTLIBICONV
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12044 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12045 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12046 $as_echo_n "(cached) " >&6
12048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 #include <locale.h>
12059 if ac_fn_cxx_try_link
"$LINENO"; then :
12060 am_cv_val_LC_MESSAGES
=yes
12062 am_cv_val_LC_MESSAGES
=no
12064 rm -f core conftest.err conftest.
$ac_objext \
12065 conftest
$ac_exeext conftest.
$ac_ext
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12068 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12069 if test $am_cv_val_LC_MESSAGES = yes; then
12071 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12078 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12079 if ${am_cv_langinfo_codeset+:} false
; then :
12080 $as_echo_n "(cached) " >&6
12082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 #include <langinfo.h>
12088 char* cs = nl_langinfo(CODESET);
12093 if ac_fn_cxx_try_link
"$LINENO"; then :
12094 am_cv_langinfo_codeset
=yes
12096 am_cv_langinfo_codeset
=no
12098 rm -f core conftest.err conftest.
$ac_objext \
12099 conftest
$ac_exeext conftest.
$ac_ext
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12103 $as_echo "$am_cv_langinfo_codeset" >&6; }
12104 if test $am_cv_langinfo_codeset = yes; then
12106 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12111 # We will need to find libiberty.h and ansidecl.h
12112 saved_CFLAGS
="$CFLAGS"
12113 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12114 saved_CXXFLAGS
="$CXXFLAGS"
12115 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12117 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12118 # normal autoconf function for these. But force definition of
12119 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12120 # basename handling in libiberty.h.
12121 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12122 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12123 #undef HAVE_DECL_BASENAME
12124 #define HAVE_DECL_BASENAME 1
12125 #include \"ansidecl.h\"
12126 #include \"system.h\"
12128 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12134 cat >>confdefs.h
<<_ACEOF
12135 #define HAVE_DECL_BASENAME $ac_have_decl
12137 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12138 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12139 #undef HAVE_DECL_BASENAME
12140 #define HAVE_DECL_BASENAME 1
12141 #include \"ansidecl.h\"
12142 #include \"system.h\"
12144 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12150 cat >>confdefs.h
<<_ACEOF
12151 #define HAVE_DECL_STRSTR $ac_have_decl
12155 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12156 madvise mkstemps stpcpy strnlen strsignal strverscmp \
12157 strtol strtoul strtoll strtoull setenv unsetenv \
12158 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12159 free getopt
clock getpagesize ffs fmemopen clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
12161 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12163 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12164 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12165 $as_echo_n "(cached) " >&6
12167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12170 #define $ac_tr_decl 1
12172 #include "ansidecl.h"
12173 #include "system.h"
12179 char *(*pfn) = (char *(*)) $ac_func ;
12185 if ac_fn_cxx_try_compile
"$LINENO"; then :
12186 eval "gcc_cv_have_decl_$ac_func=yes"
12188 eval "gcc_cv_have_decl_$ac_func=no"
12190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12193 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12195 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12196 #define $ac_tr_decl 1
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12202 #define $ac_tr_decl 0
12210 for ac_func
in getrlimit setrlimit getrusage
12212 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12214 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12215 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12216 $as_echo_n "(cached) " >&6
12218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12221 #define $ac_tr_decl 1
12223 #include "ansidecl.h"
12224 #include "system.h"
12225 #ifdef HAVE_SYS_RESOURCE_H
12226 #include <sys/resource.h>
12234 char *(*pfn) = (char *(*)) $ac_func ;
12240 if ac_fn_cxx_try_compile
"$LINENO"; then :
12241 eval "gcc_cv_have_decl_$ac_func=yes"
12243 eval "gcc_cv_have_decl_$ac_func=no"
12245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12248 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12250 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12251 #define $ac_tr_decl 1
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12257 #define $ac_tr_decl 0
12265 for ac_func
in mallinfo mallinfo2
12267 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12269 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12270 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12271 $as_echo_n "(cached) " >&6
12273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12276 #define $ac_tr_decl 1
12278 #include "ansidecl.h"
12279 #include "system.h"
12280 #ifdef HAVE_MALLOC_H
12281 #include <malloc.h>
12289 char *(*pfn) = (char *(*)) $ac_func ;
12295 if ac_fn_cxx_try_compile
"$LINENO"; then :
12296 eval "gcc_cv_have_decl_$ac_func=yes"
12298 eval "gcc_cv_have_decl_$ac_func=no"
12300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12303 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12305 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12306 #define $ac_tr_decl 1
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12312 #define $ac_tr_decl 0
12320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 #include "ansidecl.h"
12324 #include "system.h"
12325 #ifdef HAVE_SYS_RESOURCE_H
12326 #include <sys/resource.h>
12337 if ac_fn_cxx_try_compile
"$LINENO"; then :
12341 $as_echo "#define rlim_t long" >>confdefs.h
12344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12346 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12347 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12348 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12349 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12350 for ac_func
in ldgetname
12352 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12354 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12355 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12356 $as_echo_n "(cached) " >&6
12358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12361 #define $ac_tr_decl 1
12363 #include "ansidecl.h"
12364 #include "system.h"
12365 #ifdef HAVE_LDFCN_H
12376 char *(*pfn) = (char *(*)) $ac_func ;
12382 if ac_fn_cxx_try_compile
"$LINENO"; then :
12383 eval "gcc_cv_have_decl_$ac_func=yes"
12385 eval "gcc_cv_have_decl_$ac_func=no"
12387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12390 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12392 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12393 #define $ac_tr_decl 1
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12399 #define $ac_tr_decl 0
12407 for ac_func
in times
12409 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12411 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12412 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12413 $as_echo_n "(cached) " >&6
12415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12418 #define $ac_tr_decl 1
12420 #include "ansidecl.h"
12421 #include "system.h"
12422 #ifdef HAVE_SYS_TIMES_H
12423 #include <sys/times.h>
12431 char *(*pfn) = (char *(*)) $ac_func ;
12437 if ac_fn_cxx_try_compile
"$LINENO"; then :
12438 eval "gcc_cv_have_decl_$ac_func=yes"
12440 eval "gcc_cv_have_decl_$ac_func=no"
12442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12445 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12448 #define $ac_tr_decl 1
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12454 #define $ac_tr_decl 0
12462 for ac_func
in sigaltstack
12464 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12466 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12467 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12468 $as_echo_n "(cached) " >&6
12470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12473 #define $ac_tr_decl 1
12475 #include "ansidecl.h"
12476 #include "system.h"
12477 #include <signal.h>
12484 char *(*pfn) = (char *(*)) $ac_func ;
12490 if ac_fn_cxx_try_compile
"$LINENO"; then :
12491 eval "gcc_cv_have_decl_$ac_func=yes"
12493 eval "gcc_cv_have_decl_$ac_func=no"
12495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12498 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12500 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12501 #define $ac_tr_decl 1
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12507 #define $ac_tr_decl 0
12515 # More time-related stuff.
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12517 $as_echo_n "checking for struct tms... " >&6; }
12518 if ${ac_cv_struct_tms+:} false
; then :
12519 $as_echo_n "(cached) " >&6
12522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12525 #include "ansidecl.h"
12526 #include "system.h"
12527 #ifdef HAVE_SYS_TIMES_H
12528 #include <sys/times.h>
12539 if ac_fn_cxx_try_compile
"$LINENO"; then :
12540 ac_cv_struct_tms
=yes
12542 ac_cv_struct_tms
=no
12544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12547 $as_echo "$ac_cv_struct_tms" >&6; }
12548 if test $ac_cv_struct_tms = yes; then
12550 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12554 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12555 # revisit after autoconf 2.50.
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12557 $as_echo_n "checking for clock_t... " >&6; }
12558 if ${gcc_cv_type_clock_t+:} false
; then :
12559 $as_echo_n "(cached) " >&6
12562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12565 #include "ansidecl.h"
12566 #include "system.h"
12576 if ac_fn_cxx_try_compile
"$LINENO"; then :
12577 gcc_cv_type_clock_t
=yes
12579 gcc_cv_type_clock_t
=no
12581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12584 $as_echo "$gcc_cv_type_clock_t" >&6; }
12585 if test $gcc_cv_type_clock_t = yes; then
12587 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12591 # Check if F_SETLKW is supported by fcntl.
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12593 $as_echo_n "checking for F_SETLKW... " >&6; }
12594 if ${ac_cv_f_setlkw+:} false
; then :
12595 $as_echo_n "(cached) " >&6
12598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12611 return fcntl (1, F_SETLKW, &fl);
12616 if ac_fn_cxx_try_compile
"$LINENO"; then :
12621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12624 $as_echo "$ac_cv_f_setlkw" >&6; }
12625 if test $ac_cv_f_setlkw = yes; then
12627 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12631 # Check if O_CLOEXEC is defined by fcntl
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12633 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12634 if ${ac_cv_o_cloexec+:} false
; then :
12635 $as_echo_n "(cached) " >&6
12638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12646 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12651 if ac_fn_cxx_try_compile
"$LINENO"; then :
12652 ac_cv_o_cloexec
=yes
12656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12659 $as_echo "$ac_cv_o_cloexec" >&6; }
12660 if test $ac_cv_o_cloexec = yes; then
12662 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12666 # Check if O_NONBLOCK is defined by fcntl
12667 for ac_header
in fcntl.h
12669 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12670 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12671 cat >>confdefs.h
<<_ACEOF
12672 #define HAVE_FCNTL_H 1
12678 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12680 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12684 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12686 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12691 # C++ Modules would like some networking features to provide the mapping
12692 # server. You can still use modules without them though.
12693 # The following network-related checks could probably do with some
12694 # Windows and other non-linux defenses and checking.
12696 # Local socket connectivity wants AF_UNIX networking
12697 # Check for AF_UNIX networking
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12699 $as_echo_n "checking for AF_UNIX... " >&6; }
12700 if ${ac_cv_af_unix+:} false
; then :
12701 $as_echo_n "(cached) " >&6
12704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12707 #include <sys/types.h>
12708 #include <sys/socket.h>
12709 #include <sys/un.h>
12710 #include <netinet/in.h>
12716 un.sun_family = AF_UNSPEC;
12717 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12718 connect (fd, (sockaddr *)&un, sizeof (un));
12723 if ac_fn_cxx_try_compile
"$LINENO"; then :
12728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12731 $as_echo "$ac_cv_af_unix" >&6; }
12732 if test $ac_cv_af_unix = yes; then
12734 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12738 # Remote socket connectivity wants AF_INET6 networking
12739 # Check for AF_INET6 networking
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12741 $as_echo_n "checking for AF_INET6... " >&6; }
12742 if ${ac_cv_af_inet6+:} false
; then :
12743 $as_echo_n "(cached) " >&6
12746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12749 #include <sys/types.h>
12750 #include <sys/socket.h>
12751 #include <netinet/in.h>
12758 in6.sin6_family = AF_UNSPEC;
12759 struct addrinfo *addrs = 0;
12760 struct addrinfo hints;
12761 hints.ai_flags = 0;
12762 hints.ai_family = AF_INET6;
12763 hints.ai_socktype = SOCK_STREAM;
12764 hints.ai_protocol = 0;
12765 hints.ai_canonname = 0;
12768 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12769 const char *str = gai_strerror (e);
12770 freeaddrinfo (addrs);
12771 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12772 connect (fd, (sockaddr *)&in6, sizeof (in6));
12777 if ac_fn_cxx_try_compile
"$LINENO"; then :
12782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12785 $as_echo "$ac_cv_af_inet6" >&6; }
12786 if test $ac_cv_af_inet6 = yes; then
12788 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12792 # Check if _LK_LOCK is supported by _locking
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12794 $as_echo_n "checking for _LK_LOCK... " >&6; }
12795 if ${ac_cv_lk_lock+:} false
; then :
12796 $as_echo_n "(cached) " >&6
12799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12803 #include <sys/locking.h>
12809 return _locking (fd, _LK_LOCK, 0);
12814 if ac_fn_cxx_try_compile
"$LINENO"; then :
12819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12822 $as_echo "$ac_cv_lk_lock" >&6; }
12823 if test $ac_cv_lk_lock = yes; then
12825 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12829 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12830 CFLAGS
="$saved_CFLAGS"
12831 CXXFLAGS
="$saved_CXXFLAGS"
12833 # mkdir takes a single argument on some systems.
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12835 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12836 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12837 $as_echo_n "(cached) " >&6
12839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12842 #include <sys/types.h>
12843 #ifdef HAVE_SYS_STAT_H
12844 # include <sys/stat.h>
12846 #ifdef HAVE_UNISTD_H
12847 # include <unistd.h>
12849 #ifdef HAVE_DIRECT_H
12850 # include <direct.h>
12860 if ac_fn_cxx_try_compile
"$LINENO"; then :
12861 gcc_cv_mkdir_takes_one_arg
=no
12863 gcc_cv_mkdir_takes_one_arg
=yes
12865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12868 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12869 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12871 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12882 # With Setjmp/Longjmp based exception handling.
12883 # Check whether --enable-sjlj-exceptions was given.
12884 if test "${enable_sjlj_exceptions+set}" = set; then :
12885 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
12889 force_sjlj_exceptions
=yes
12893 force_sjlj_exceptions
=no
12898 if test $force_sjlj_exceptions = yes; then
12899 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12901 cat >>confdefs.h
<<_ACEOF
12902 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12907 # Windows32 UTF-8 manifest support for running the driver and compiler
12908 # executables with the UTF-8 active code page on mingw hosts.
12909 # Non-mingw hosts ignore this option.
12910 # The shell variables this sets are picked up from the mingw branches
12911 # of config.host so they have to be set before it gets sourced.
12912 # Check whether --enable-win32-utf8-manifest was given.
12913 if test "${enable_win32_utf8_manifest+set}" = set; then :
12914 enableval
=$enable_win32_utf8_manifest;
12918 if test "x$enable_win32_utf8_manifest" != xno
; then
12919 host_xmake_mingw
=i386
/x-mingw32-utf8
12920 host_extra_gcc_objs_mingw
=utf8rc-mingw32.o
12921 host_extra_objs_mingw
=utf8-mingw32.o
12924 # --------------------------------------------------------
12925 # Build, host, and target specific configuration fragments
12926 # --------------------------------------------------------
12928 # Collect build-machine-specific information.
12929 .
${srcdir}/config.build ||
exit 1
12931 # Collect host-machine-specific information.
12932 .
${srcdir}/config.
host ||
exit 1
12936 # Collect target-machine-specific information.
12937 .
${srcdir}/config.gcc ||
exit 1
12939 extra_objs
="${host_extra_objs} ${extra_objs}"
12940 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12942 # Default the target-machine variables that were not explicitly set.
12943 if test x
"$tm_file" = x
12944 then tm_file
=$cpu_type/$cpu_type.h
; fi
12946 if test x
"$extra_headers" = x
12947 then extra_headers
=; fi
12949 if test x
$md_file = x
12950 then md_file
=$cpu_type/$cpu_type.md
; fi
12952 if test x
$out_file = x
12953 then out_file
=$cpu_type/$cpu_type.cc
; fi
12955 if test x
"$tmake_file" = x
12956 then tmake_file
=$cpu_type/t-
$cpu_type
12959 # Support --enable-initfini-array.
12960 if test x
$enable_initfini_array != xno
; then
12961 tm_file
="${tm_file} initfini-array.h"
12964 if test x
"$dwarf2" = xyes
12965 then tm_file
="$tm_file tm-dwarf2.h"
12968 # Say what files are being used for the output code and MD file.
12969 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12970 echo "Using \`$srcdir/config/$md_file' as machine description file."
12972 # If any of the xm_file variables contain nonexistent files, warn
12973 # about them and drop them.
12976 for x
in $build_xm_file; do
12977 if test -f $srcdir/config
/$x
12979 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12980 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12983 build_xm_file
="$bx"
12986 for x
in $host_xm_file; do
12987 if test -f $srcdir/config
/$x
12989 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12990 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12996 for x
in $xm_file; do
12997 if test -f $srcdir/config
/$x
12999 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13000 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13006 for f
in $tm_file; do
13009 if test $count = ax
; then
13010 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13012 echo "Using the following target machine macro files:"
13013 for f
in $tm_file; do
13014 echo " $srcdir/config/$f"
13018 if test x
$use_long_long_for_widest_fast_int = xyes
; then
13020 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
13024 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
13026 cat >>confdefs.h
<<_ACEOF
13027 #define HAVE_GNU_LD $gnu_ld_bool
13031 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13033 cat >>confdefs.h
<<_ACEOF
13034 #define HAVE_GNU_AS $gnu_as_bool
13039 for f
in $host_xm_file; do
13042 if test $count = a
; then
13044 elif test $count = ax
; then
13045 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13047 echo "Using the following host machine macro files:"
13048 for f
in $host_xm_file; do
13049 echo " $srcdir/config/$f"
13052 echo "Using ${out_host_hook_obj} for host machine hooks."
13054 if test "$host_xm_file" != "$build_xm_file"; then
13056 for f
in $build_xm_file; do
13059 if test $count = a
; then
13061 elif test $count = ax
; then
13062 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13064 echo "Using the following build machine macro files:"
13065 for f
in $build_xm_file; do
13066 echo " $srcdir/config/$f"
13071 if test -n "$configured_native_system_header_dir"; then
13072 native_system_header_dir
=$configured_native_system_header_dir
13074 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
13078 powerpc
*-*-darwin*)
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13080 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13081 if ${gcc_cv_mcontext_underscores+:} false
; then :
13082 $as_echo_n "(cached) " >&6
13084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13087 #include <sys/cdefs.h>
13088 #include <sys/signal.h>
13089 #include <ucontext.h>
13090 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13093 if ac_fn_cxx_try_compile
"$LINENO"; then :
13094 gcc_cv_mcontext_underscores
=no
13096 gcc_cv_mcontext_underscores
=yes
13098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13101 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13102 if test $gcc_cv_mcontext_underscores = yes; then
13104 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13114 # Check if a valid thread package
13115 case ${enable_threads} in
13118 target_thread_file
='single'
13122 target_thread_file
='single'
13124 aix | dce | lynx | mipssde | posix | rtems | \
13125 single | tpf | vxworks | win32 | mcf
)
13126 target_thread_file
=${enable_threads}
13129 echo "${enable_threads} is an unknown thread package" 1>&2
13134 if test x
${thread_file} = x
; then
13135 # No thread file set by target-specific clauses in config.gcc,
13136 # so use file chosen by default logic above
13137 thread_file
=${target_thread_file}
13145 if test x
$enable___cxa_atexit = xyes || \
13146 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13147 if test x
$host = x
$target; then
13149 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13150 # keyed to flag_use_cxa_atexit
13158 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13159 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13162 echo "__cxa_atexit can't be enabled on this target"
13168 # We can't check for __cxa_atexit when building a cross, so assume
13172 if test x
$use_cxa_atexit = xyes
; then
13174 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13179 # Look for a file containing extra machine modes.
13180 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13181 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13184 cat >>confdefs.h
<<_ACEOF
13185 #define EXTRA_MODES_FILE "config/$extra_modes"
13190 # Convert extra_options into a form suitable for Makefile use.
13193 for f
in $extra_options; do
13194 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13195 all_opt_files
="$all_opt_files $srcdir/config/$f"
13199 # auto-host.h is the file containing items generated by autoconf and is
13200 # the first file included by config.h.
13201 # If host=build, it is correct to have bconfig include auto-host.h
13202 # as well. If host!=build, we are in error and need to do more
13203 # work to find out the build config parameters.
13204 if test x
$host = x
$build
13206 build_auto
=auto-host.h
13207 HAVE_AUTO_BUILD
='# '
13209 # We create a subdir, then run autoconf in the subdir.
13210 # To prevent recursion we set host and build for the new
13211 # invocation of configure to the build for this invocation
13218 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13219 *) realsrcdir
=..
/${srcdir};;
13221 # Clearing GMPINC is necessary to prevent host headers being
13222 # used by the build compiler. Defining GENERATOR_FILE stops
13223 # system.h from including gmp.h.
13224 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13225 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13226 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13227 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13228 ${realsrcdir}/configure \
13229 --enable-languages=${enable_languages-all} \
13230 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13231 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13232 --target=$target_alias --host=$build_alias \
13233 --build=$build_alias ||
exit # retaining $tempdir
13235 # We just finished tests for the build machine, so rename
13236 # the file auto-build.h in the gcc directory.
13237 mv auto-host.h ..
/auto-build.h
13240 build_auto
=auto-build.h
13246 tm_file
="${tm_file} defaults.h"
13247 tm_p_file
="${tm_p_file} tm-preds.h"
13248 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13249 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13250 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13251 # put this back in temporarily.
13252 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13258 # Compile in configure arguments.
13259 if test -f configargs.h
; then
13260 # Being re-configured.
13261 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13262 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13263 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13264 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13267 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13270 # Double all backslashes and backslash all quotes to turn
13271 # gcc_config_arguments into a C string.
13272 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13273 $gcc_config_arguments
13275 gcc_config_arguments_str
=`cat conftest.out`
13278 cat > configargs.h
<<EOF
13279 /* Generated automatically. */
13280 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13281 static const char thread_model[] = "$thread_file";
13283 static const struct {
13284 const char *name, *value;
13285 } configure_default_options[] = $configure_default_options;
13288 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13289 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13290 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13291 if test -f $srcdir/REVISION
; then
13292 gcc_REVISION
=`cat $srcdir/REVISION`
13296 cat > plugin-version.h
<<EOF
13297 #include "configargs.h"
13299 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13300 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13301 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13302 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13304 static char basever[] = "$gcc_BASEVER";
13305 static char datestamp[] = "$gcc_DATESTAMP";
13306 static char devphase[] = "$gcc_DEVPHASE";
13307 static char revision[] = "$gcc_REVISION";
13309 /* FIXME plugins: We should make the version information more precise.
13310 One way to do is to add a checksum. */
13312 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13313 devphase, revision,
13314 configuration_arguments};
13317 # Determine what GCC version number to use in filesystem paths.
13319 get_gcc_base_ver
="cat"
13321 # Check whether --with-gcc-major-version-only was given.
13322 if test "${with_gcc_major_version_only+set}" = set; then :
13323 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13324 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13332 # Internationalization
13333 # Find a good install program. We prefer a C program (faster),
13334 # so one script is as good as another. But avoid the broken or
13335 # incompatible versions:
13336 # SysV /etc/install, /usr/sbin/install
13337 # SunOS /usr/etc/install
13338 # IRIX /sbin/install
13340 # AmigaOS /C/install, which installs bootblocks on floppy discs
13341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13344 # OS/2's system install, which has a completely different semantic
13345 # ./install, which can be erroneously created by make from ./install.sh.
13346 # Reject install programs that cannot install multiple files.
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13348 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13349 if test -z "$INSTALL"; then
13350 if ${ac_cv_path_install+:} false
; then :
13351 $as_echo_n "(cached) " >&6
13353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13354 for as_dir
in $PATH
13357 test -z "$as_dir" && as_dir
=.
13358 # Account for people who put trailing slashes in PATH elements.
13359 case $as_dir/ in #((
13360 .
/ | .
// |
/[cC
]/* | \
13361 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
13362 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
13365 # OSF1 and SCO ODT 3.0 have their own names for install.
13366 # Don't use installbsd from OSF since it installs stuff as root
13368 for ac_prog
in ginstall scoinst
install; do
13369 for ac_exec_ext
in '' $ac_executable_extensions; do
13370 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
13371 if test $ac_prog = install &&
13372 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13373 # AIX install. It has an incompatible calling convention.
13375 elif test $ac_prog = install &&
13376 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13377 # program-specific install script used by HP pwplus--don't use.
13380 rm -rf conftest.one conftest.two conftest.dir
13381 echo one
> conftest.one
13382 echo two
> conftest.two
13384 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
13385 test -s conftest.one
&& test -s conftest.two
&&
13386 test -s conftest.dir
/conftest.one
&&
13387 test -s conftest.dir
/conftest.two
13389 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
13402 rm -rf conftest.one conftest.two conftest.dir
13405 if test "${ac_cv_path_install+set}" = set; then
13406 INSTALL
=$ac_cv_path_install
13408 # As a last resort, use the slow shell script. Don't cache a
13409 # value for INSTALL within a source directory, because that will
13410 # break other packages using the cache if that directory is
13411 # removed, or if the value is a relative name.
13412 INSTALL
=$ac_install_sh
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13416 $as_echo "$INSTALL" >&6; }
13418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13419 # It thinks the first close brace ends the variable substitution.
13420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
13422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
13424 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
13428 if test -n "$ac_aux_dir"; then
13429 case "$ac_aux_dir" in
13430 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
13431 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13434 if test -z "$MKINSTALLDIRS"; then
13435 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13441 $as_echo_n "checking whether NLS is requested... " >&6; }
13442 # Check whether --enable-nls was given.
13443 if test "${enable_nls+set}" = set; then :
13444 enableval
=$enable_nls; USE_NLS
=$enableval
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13450 $as_echo "$USE_NLS" >&6; }
13457 # Prepare PATH_SEPARATOR.
13458 # The user is always right.
13459 if test "${PATH_SEPARATOR+set}" != set; then
13460 echo "#! /bin/sh" >conf$$.sh
13461 echo "exit 0" >>conf$$.sh
13463 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13471 # Find out how to test for executable files. Don't use a zero-byte file,
13472 # as systems may use methods other than mode bits to determine executability.
13473 cat >conf$$.
file <<_ASEOF
13477 chmod +x conf$$.
file
13478 if test -x conf$$.
file >/dev
/null
2>&1; then
13479 ac_executable_p
="test -x"
13481 ac_executable_p
="test -f"
13485 # Extract the first word of "msgfmt", so it can be a program name with args.
13486 set dummy msgfmt
; ac_word
=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_path_MSGFMT+:} false
; then :
13490 $as_echo_n "(cached) " >&6
13494 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
13497 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13498 for ac_dir
in $PATH; do
13500 test -z "$ac_dir" && ac_dir
=.
13501 for ac_exec_ext
in '' $ac_executable_extensions; do
13502 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13503 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
13504 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13505 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
13512 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
13516 MSGFMT
="$ac_cv_path_MSGFMT"
13517 if test "$MSGFMT" != ":"; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13519 $as_echo "$MSGFMT" >&6; }
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522 $as_echo "no" >&6; }
13525 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13526 set dummy gmsgfmt
; ac_word
=$2
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528 $as_echo_n "checking for $ac_word... " >&6; }
13529 if ${ac_cv_path_GMSGFMT+:} false
; then :
13530 $as_echo_n "(cached) " >&6
13534 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13538 for as_dir
in $PATH
13541 test -z "$as_dir" && as_dir
=.
13542 for ac_exec_ext
in '' $ac_executable_extensions; do
13543 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13544 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
13545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13552 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
13556 GMSGFMT
=$ac_cv_path_GMSGFMT
13557 if test -n "$GMSGFMT"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13559 $as_echo "$GMSGFMT" >&6; }
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13568 # Prepare PATH_SEPARATOR.
13569 # The user is always right.
13570 if test "${PATH_SEPARATOR+set}" != set; then
13571 echo "#! /bin/sh" >conf$$.sh
13572 echo "exit 0" >>conf$$.sh
13574 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13582 # Find out how to test for executable files. Don't use a zero-byte file,
13583 # as systems may use methods other than mode bits to determine executability.
13584 cat >conf$$.
file <<_ASEOF
13588 chmod +x conf$$.
file
13589 if test -x conf$$.
file >/dev
/null
2>&1; then
13590 ac_executable_p
="test -x"
13592 ac_executable_p
="test -f"
13596 # Extract the first word of "xgettext", so it can be a program name with args.
13597 set dummy xgettext
; ac_word
=$2
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13599 $as_echo_n "checking for $ac_word... " >&6; }
13600 if ${ac_cv_path_XGETTEXT+:} false
; then :
13601 $as_echo_n "(cached) " >&6
13603 case "$XGETTEXT" in
13605 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
13608 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13609 for ac_dir
in $PATH; do
13611 test -z "$ac_dir" && ac_dir
=.
13612 for ac_exec_ext
in '' $ac_executable_extensions; do
13613 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13614 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
13615 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13616 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
13623 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
13627 XGETTEXT
="$ac_cv_path_XGETTEXT"
13628 if test "$XGETTEXT" != ":"; then
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13630 $as_echo "$XGETTEXT" >&6; }
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633 $as_echo "no" >&6; }
13639 # Prepare PATH_SEPARATOR.
13640 # The user is always right.
13641 if test "${PATH_SEPARATOR+set}" != set; then
13642 echo "#! /bin/sh" >conf$$.sh
13643 echo "exit 0" >>conf$$.sh
13645 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13653 # Find out how to test for executable files. Don't use a zero-byte file,
13654 # as systems may use methods other than mode bits to determine executability.
13655 cat >conf$$.
file <<_ASEOF
13659 chmod +x conf$$.
file
13660 if test -x conf$$.
file >/dev
/null
2>&1; then
13661 ac_executable_p
="test -x"
13663 ac_executable_p
="test -f"
13667 # Extract the first word of "msgmerge", so it can be a program name with args.
13668 set dummy msgmerge
; ac_word
=$2
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13670 $as_echo_n "checking for $ac_word... " >&6; }
13671 if ${ac_cv_path_MSGMERGE+:} false
; then :
13672 $as_echo_n "(cached) " >&6
13674 case "$MSGMERGE" in
13676 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
13679 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13680 for ac_dir
in $PATH; do
13682 test -z "$ac_dir" && ac_dir
=.
13683 for ac_exec_ext
in '' $ac_executable_extensions; do
13684 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13685 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
13686 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
13693 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
13697 MSGMERGE
="$ac_cv_path_MSGMERGE"
13698 if test "$MSGMERGE" != ":"; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13700 $as_echo "$MSGMERGE" >&6; }
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 $as_echo "no" >&6; }
13707 if test "$GMSGFMT" != ":"; then
13708 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
13709 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13712 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13714 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13719 if test "$XGETTEXT" != ":"; then
13720 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
13721 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13725 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13731 ac_config_commands
="$ac_config_commands default-1"
13737 if test -f ..
/gettext
/uninstalled-config.sh
; then
13738 relative_builddir
='$(top_builddir)/../gettext'
13739 . ..
/gettext
/uninstalled-config.sh
13741 # The sister gettext directory doesn't exist and won't collect information on
13742 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13767 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13768 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
13769 $as_echo_n "(cached) " >&6
13771 gt_save_LIBS
="$LIBS"
13772 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
13773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13775 #include <CoreFoundation/CFPreferences.h>
13779 CFPreferencesCopyAppValue(NULL, NULL)
13784 if ac_fn_cxx_try_link
"$LINENO"; then :
13785 gt_cv_func_CFPreferencesCopyAppValue
=yes
13787 gt_cv_func_CFPreferencesCopyAppValue
=no
13789 rm -f core conftest.err conftest.
$ac_objext \
13790 conftest
$ac_exeext conftest.
$ac_ext
13791 LIBS
="$gt_save_LIBS"
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13794 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13795 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13797 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13801 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13802 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false
; then :
13803 $as_echo_n "(cached) " >&6
13805 gt_save_LIBS
="$LIBS"
13806 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
13807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 #include <CoreFoundation/CFLocale.h>
13813 CFLocaleCopyPreferredLanguages();
13818 if ac_fn_cxx_try_link
"$LINENO"; then :
13819 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
13821 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
13823 rm -f core conftest.err conftest.
$ac_objext \
13824 conftest
$ac_exeext conftest.
$ac_ext
13825 LIBS
="$gt_save_LIBS"
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13828 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13829 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13831 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13835 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13836 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13837 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13849 case " $gt_needs " in
13850 *" need-formatstring-macros "*) gt_api_version
=3 ;;
13851 *" need-ngettext "*) gt_api_version
=2 ;;
13852 *) gt_api_version
=1 ;;
13854 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
13855 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
13857 if test "$USE_NLS" = "yes"; then
13858 gt_use_preinstalled_gnugettext
=no
13861 if test $gt_api_version -ge 3; then
13862 gt_revision_test_code
='
13863 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13864 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13866 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13869 gt_revision_test_code
=
13871 if test $gt_api_version -ge 2; then
13872 gt_expression_test_code
=' + * ngettext ("", "", 0)'
13874 gt_expression_test_code
=
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13878 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13879 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
13880 $as_echo_n "(cached) " >&6
13882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13885 #include <libintl.h>
13886 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13887 extern int _nl_msg_cat_cntr;
13888 extern int *_nl_domain_bindings;
13889 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13891 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13893 $gt_revision_test_code
13899 bindtextdomain ("", "");
13900 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13906 if ac_fn_cxx_try_link
"$LINENO"; then :
13907 eval "$gt_func_gnugettext_libc=yes"
13909 eval "$gt_func_gnugettext_libc=no"
13911 rm -f core conftest.err conftest.
$ac_objext \
13912 conftest
$ac_exeext conftest.
$ac_ext
13914 eval ac_res
=\$
$gt_func_gnugettext_libc
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13916 $as_echo "$ac_res" >&6; }
13918 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13924 am_save_CPPFLAGS
="$CPPFLAGS"
13926 for element
in $INCICONV; do
13928 for x
in $CPPFLAGS; do
13930 acl_save_prefix
="$prefix"
13931 prefix
="$acl_final_prefix"
13932 acl_save_exec_prefix
="$exec_prefix"
13933 exec_prefix
="$acl_final_exec_prefix"
13935 exec_prefix
="$acl_save_exec_prefix"
13936 prefix
="$acl_save_prefix"
13938 if test "X$x" = "X$element"; then
13943 if test -z "$haveit"; then
13944 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13950 $as_echo_n "checking for iconv... " >&6; }
13951 if ${am_cv_func_iconv+:} false
; then :
13952 $as_echo_n "(cached) " >&6
13955 am_cv_func_iconv
="no, consider installing GNU libiconv"
13957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13960 #include <stdlib.h>
13966 iconv_t cd = iconv_open("","");
13967 iconv(cd,NULL,NULL,NULL,NULL);
13973 if ac_fn_cxx_try_link
"$LINENO"; then :
13974 am_cv_func_iconv
=yes
13976 rm -f core conftest.err conftest.
$ac_objext \
13977 conftest
$ac_exeext conftest.
$ac_ext
13978 if test "$am_cv_func_iconv" != yes; then
13979 am_save_LIBS
="$LIBS"
13980 LIBS
="$LIBS $LIBICONV"
13981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13984 #include <stdlib.h>
13990 iconv_t cd = iconv_open("","");
13991 iconv(cd,NULL,NULL,NULL,NULL);
13997 if ac_fn_cxx_try_link
"$LINENO"; then :
13998 am_cv_lib_iconv
=yes
13999 am_cv_func_iconv
=yes
14001 rm -f core conftest.err conftest.
$ac_objext \
14002 conftest
$ac_exeext conftest.
$ac_ext
14003 LIBS
="$am_save_LIBS"
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14008 $as_echo "$am_cv_func_iconv" >&6; }
14009 if test "$am_cv_func_iconv" = yes; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14011 $as_echo_n "checking for working iconv... " >&6; }
14012 if ${am_cv_func_iconv_works+:} false
; then :
14013 $as_echo_n "(cached) " >&6
14016 am_save_LIBS
="$LIBS"
14017 if test $am_cv_lib_iconv = yes; then
14018 LIBS
="$LIBS $LIBICONV"
14020 am_cv_func_iconv_works
=no
14021 for ac_iconv_const
in '' 'const'; do
14022 if test "$cross_compiling" = yes; then :
14024 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
14025 *) am_cv_func_iconv_works
="guessing yes" ;;
14028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14032 #include <string.h>
14034 #ifndef ICONV_CONST
14035 # define ICONV_CONST $ac_iconv_const
14042 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14043 successful returns. This is even documented in
14044 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14046 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14047 if (cd_utf8_to_88591 != (iconv_t)(-1))
14049 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14051 ICONV_CONST char *inptr = input;
14052 size_t inbytesleft = strlen (input);
14053 char *outptr = buf;
14054 size_t outbytesleft = sizeof (buf);
14055 size_t res = iconv (cd_utf8_to_88591,
14056 &inptr, &inbytesleft,
14057 &outptr, &outbytesleft);
14060 iconv_close (cd_utf8_to_88591);
14063 /* Test against Solaris 10 bug: Failures are not distinguishable from
14064 successful returns. */
14066 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14067 if (cd_ascii_to_88591 != (iconv_t)(-1))
14069 static ICONV_CONST char input[] = "\263";
14071 ICONV_CONST char *inptr = input;
14072 size_t inbytesleft = strlen (input);
14073 char *outptr = buf;
14074 size_t outbytesleft = sizeof (buf);
14075 size_t res = iconv (cd_ascii_to_88591,
14076 &inptr, &inbytesleft,
14077 &outptr, &outbytesleft);
14080 iconv_close (cd_ascii_to_88591);
14083 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14085 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14086 if (cd_88591_to_utf8 != (iconv_t)(-1))
14088 static ICONV_CONST char input[] = "\304";
14089 static char buf[2] = { (char)0xDE, (char)0xAD };
14090 ICONV_CONST char *inptr = input;
14091 size_t inbytesleft = 1;
14092 char *outptr = buf;
14093 size_t outbytesleft = 1;
14094 size_t res = iconv (cd_88591_to_utf8,
14095 &inptr, &inbytesleft,
14096 &outptr, &outbytesleft);
14097 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14099 iconv_close (cd_88591_to_utf8);
14102 #if 0 /* This bug could be worked around by the caller. */
14103 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14105 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14106 if (cd_88591_to_utf8 != (iconv_t)(-1))
14108 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14110 ICONV_CONST char *inptr = input;
14111 size_t inbytesleft = strlen (input);
14112 char *outptr = buf;
14113 size_t outbytesleft = sizeof (buf);
14114 size_t res = iconv (cd_88591_to_utf8,
14115 &inptr, &inbytesleft,
14116 &outptr, &outbytesleft);
14119 iconv_close (cd_88591_to_utf8);
14123 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14126 /* Try standardized names. */
14127 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14128 /* Try IRIX, OSF/1 names. */
14129 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14130 /* Try AIX names. */
14131 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14132 /* Try HP-UX names. */
14133 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14134 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14135 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14137 if (cd1 != (iconv_t)(-1))
14139 if (cd2 != (iconv_t)(-1))
14141 if (cd3 != (iconv_t)(-1))
14143 if (cd4 != (iconv_t)(-1))
14152 if ac_fn_cxx_try_run
"$LINENO"; then :
14153 am_cv_func_iconv_works
=yes
14155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14156 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14159 test "$am_cv_func_iconv_works" = no ||
break
14161 LIBS
="$am_save_LIBS"
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14165 $as_echo "$am_cv_func_iconv_works" >&6; }
14166 case "$am_cv_func_iconv_works" in
14167 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
14168 *) am_func_iconv
=yes ;;
14171 am_func_iconv
=no am_cv_lib_iconv
=no
14173 if test "$am_func_iconv" = yes; then
14175 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14178 if test "$am_cv_lib_iconv" = yes; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14180 $as_echo_n "checking how to link with libiconv... " >&6; }
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14182 $as_echo "$LIBICONV" >&6; }
14184 CPPFLAGS
="$am_save_CPPFLAGS"
14196 acl_save_prefix
="$prefix"
14197 prefix
="$acl_final_prefix"
14198 acl_save_exec_prefix
="$exec_prefix"
14199 exec_prefix
="$acl_final_exec_prefix"
14201 eval additional_includedir
=\"$includedir\"
14202 eval additional_libdir
=\"$libdir\"
14204 exec_prefix
="$acl_save_exec_prefix"
14205 prefix
="$acl_save_prefix"
14208 # Check whether --with-libintl-prefix was given.
14209 if test "${with_libintl_prefix+set}" = set; then :
14210 withval
=$with_libintl_prefix;
14211 if test "X$withval" = "Xno"; then
14214 if test "X$withval" = "X"; then
14216 acl_save_prefix
="$prefix"
14217 prefix
="$acl_final_prefix"
14218 acl_save_exec_prefix
="$exec_prefix"
14219 exec_prefix
="$acl_final_exec_prefix"
14221 eval additional_includedir
=\"$includedir\"
14222 eval additional_libdir
=\"$libdir\"
14224 exec_prefix
="$acl_save_exec_prefix"
14225 prefix
="$acl_save_prefix"
14228 additional_includedir
="$withval/include"
14229 additional_libdir
="$withval/lib"
14236 # Check whether --with-libintl-type was given.
14237 if test "${with_libintl_type+set}" = set; then :
14238 withval
=$with_libintl_type; with_libintl_type
=$withval
14240 with_libintl_type
=auto
14243 lib_type
=`eval echo \$with_libintl_type`
14250 names_already_handled
=
14251 names_next_round
='intl '
14252 while test -n "$names_next_round"; do
14253 names_this_round
="$names_next_round"
14255 for name
in $names_this_round; do
14257 for n
in $names_already_handled; do
14258 if test "$n" = "$name"; then
14259 already_handled
=yes
14263 if test -z "$already_handled"; then
14264 names_already_handled
="$names_already_handled $name"
14265 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14266 eval value
=\"\
$HAVE_LIB$uppername\"
14267 if test -n "$value"; then
14268 if test "$value" = yes; then
14269 eval value
=\"\
$LIB$uppername\"
14270 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
14271 eval value
=\"\
$LTLIB$uppername\"
14272 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
14281 if test $use_additional = yes; then
14282 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14283 found_dir
="$additional_libdir"
14284 found_so
="$additional_libdir/lib$name.$shlibext"
14285 if test -f "$additional_libdir/lib$name.la"; then
14286 found_la
="$additional_libdir/lib$name.la"
14288 elif test x
$lib_type != xshared
; then
14289 if test -f "$additional_libdir/lib$name.$libext"; then
14290 found_dir
="$additional_libdir"
14291 found_a
="$additional_libdir/lib$name.$libext"
14292 if test -f "$additional_libdir/lib$name.la"; then
14293 found_la
="$additional_libdir/lib$name.la"
14298 if test "X$found_dir" = "X"; then
14299 for x
in $LDFLAGS $LTLIBINTL; do
14301 acl_save_prefix
="$prefix"
14302 prefix
="$acl_final_prefix"
14303 acl_save_exec_prefix
="$exec_prefix"
14304 exec_prefix
="$acl_final_exec_prefix"
14306 exec_prefix
="$acl_save_exec_prefix"
14307 prefix
="$acl_save_prefix"
14311 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14312 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14314 found_so
="$dir/lib$name.$shlibext"
14315 if test -f "$dir/lib$name.la"; then
14316 found_la
="$dir/lib$name.la"
14318 elif test x
$lib_type != xshared
; then
14319 if test -f "$dir/lib$name.$libext"; then
14321 found_a
="$dir/lib$name.$libext"
14322 if test -f "$dir/lib$name.la"; then
14323 found_la
="$dir/lib$name.la"
14329 if test "X$found_dir" != "X"; then
14334 if test "X$found_dir" != "X"; then
14335 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14336 if test "X$found_so" != "X"; then
14337 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14338 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14341 for x
in $ltrpathdirs; do
14342 if test "X$x" = "X$found_dir"; then
14347 if test -z "$haveit"; then
14348 ltrpathdirs
="$ltrpathdirs $found_dir"
14350 if test "$hardcode_direct" = yes; then
14351 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14353 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14354 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14356 for x
in $rpathdirs; do
14357 if test "X$x" = "X$found_dir"; then
14362 if test -z "$haveit"; then
14363 rpathdirs
="$rpathdirs $found_dir"
14367 for x
in $LDFLAGS $LIBINTL; do
14369 acl_save_prefix
="$prefix"
14370 prefix
="$acl_final_prefix"
14371 acl_save_exec_prefix
="$exec_prefix"
14372 exec_prefix
="$acl_final_exec_prefix"
14374 exec_prefix
="$acl_save_exec_prefix"
14375 prefix
="$acl_save_prefix"
14377 if test "X$x" = "X-L$found_dir"; then
14382 if test -z "$haveit"; then
14383 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14385 if test "$hardcode_minus_L" != no
; then
14386 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14388 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14394 if test "X$found_a" != "X"; then
14395 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
14397 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14400 additional_includedir
=
14401 case "$found_dir" in
14403 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14404 additional_includedir
="$basedir/include"
14407 if test "X$additional_includedir" != "X"; then
14408 if test "X$additional_includedir" != "X/usr/include"; then
14410 if test "X$additional_includedir" = "X/usr/local/include"; then
14411 if test -n "$GCC"; then
14413 linux
*) haveit
=yes;;
14417 if test -z "$haveit"; then
14418 for x
in $CPPFLAGS $INCINTL; do
14420 acl_save_prefix
="$prefix"
14421 prefix
="$acl_final_prefix"
14422 acl_save_exec_prefix
="$exec_prefix"
14423 exec_prefix
="$acl_final_exec_prefix"
14425 exec_prefix
="$acl_save_exec_prefix"
14426 prefix
="$acl_save_prefix"
14428 if test "X$x" = "X-I$additional_includedir"; then
14433 if test -z "$haveit"; then
14434 if test -d "$additional_includedir"; then
14435 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14441 if test -n "$found_la"; then
14442 save_libdir
="$libdir"
14443 case "$found_la" in
14444 */* |
*\\*) .
"$found_la" ;;
14445 *) .
"./$found_la" ;;
14447 libdir
="$save_libdir"
14448 for dep
in $dependency_libs; do
14451 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14452 if test "X$additional_libdir" != "X/usr/lib"; then
14454 if test "X$additional_libdir" = "X/usr/local/lib"; then
14455 if test -n "$GCC"; then
14457 linux
*) haveit
=yes;;
14461 if test -z "$haveit"; then
14463 for x
in $LDFLAGS $LIBINTL; do
14465 acl_save_prefix
="$prefix"
14466 prefix
="$acl_final_prefix"
14467 acl_save_exec_prefix
="$exec_prefix"
14468 exec_prefix
="$acl_final_exec_prefix"
14470 exec_prefix
="$acl_save_exec_prefix"
14471 prefix
="$acl_save_prefix"
14473 if test "X$x" = "X-L$additional_libdir"; then
14478 if test -z "$haveit"; then
14479 if test -d "$additional_libdir"; then
14480 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14484 for x
in $LDFLAGS $LTLIBINTL; do
14486 acl_save_prefix
="$prefix"
14487 prefix
="$acl_final_prefix"
14488 acl_save_exec_prefix
="$exec_prefix"
14489 exec_prefix
="$acl_final_exec_prefix"
14491 exec_prefix
="$acl_save_exec_prefix"
14492 prefix
="$acl_save_prefix"
14494 if test "X$x" = "X-L$additional_libdir"; then
14499 if test -z "$haveit"; then
14500 if test -d "$additional_libdir"; then
14501 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14508 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14509 if test "$enable_rpath" != no
; then
14511 for x
in $rpathdirs; do
14512 if test "X$x" = "X$dir"; then
14517 if test -z "$haveit"; then
14518 rpathdirs
="$rpathdirs $dir"
14521 for x
in $ltrpathdirs; do
14522 if test "X$x" = "X$dir"; then
14527 if test -z "$haveit"; then
14528 ltrpathdirs
="$ltrpathdirs $dir"
14533 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14536 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14539 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
14540 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14546 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14547 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14548 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14550 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14551 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14558 if test "X$rpathdirs" != "X"; then
14559 if test -n "$hardcode_libdir_separator"; then
14561 for found_dir
in $rpathdirs; do
14562 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14564 acl_save_libdir
="$libdir"
14566 eval flag
=\"$hardcode_libdir_flag_spec\"
14567 libdir
="$acl_save_libdir"
14568 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14570 for found_dir
in $rpathdirs; do
14571 acl_save_libdir
="$libdir"
14572 libdir
="$found_dir"
14573 eval flag
=\"$hardcode_libdir_flag_spec\"
14574 libdir
="$acl_save_libdir"
14575 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14579 if test "X$ltrpathdirs" != "X"; then
14580 for found_dir
in $ltrpathdirs; do
14581 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14586 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14587 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
14588 $as_echo_n "(cached) " >&6
14590 gt_save_CPPFLAGS
="$CPPFLAGS"
14591 CPPFLAGS
="$CPPFLAGS $INCINTL"
14592 gt_save_LIBS
="$LIBS"
14593 LIBS
="$LIBS $LIBINTL"
14594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14595 /* end confdefs.h. */
14597 #include <libintl.h>
14598 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14599 extern int _nl_msg_cat_cntr;
14604 const char *_nl_expand_alias (const char *);
14605 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14607 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14609 $gt_revision_test_code
14615 bindtextdomain ("", "");
14616 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14622 if ac_fn_cxx_try_link
"$LINENO"; then :
14623 eval "$gt_func_gnugettext_libintl=yes"
14625 eval "$gt_func_gnugettext_libintl=no"
14627 rm -f core conftest.err conftest.
$ac_objext \
14628 conftest
$ac_exeext conftest.
$ac_ext
14629 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14630 LIBS
="$LIBS $LIBICONV"
14631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14632 /* end confdefs.h. */
14634 #include <libintl.h>
14635 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14636 extern int _nl_msg_cat_cntr;
14641 const char *_nl_expand_alias (const char *);
14642 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14644 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14646 $gt_revision_test_code
14652 bindtextdomain ("", "");
14653 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14659 if ac_fn_cxx_try_link
"$LINENO"; then :
14660 LIBINTL
="$LIBINTL $LIBICONV"
14661 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
14662 eval "$gt_func_gnugettext_libintl=yes"
14665 rm -f core conftest.err conftest.
$ac_objext \
14666 conftest
$ac_exeext conftest.
$ac_ext
14668 CPPFLAGS
="$gt_save_CPPFLAGS"
14669 LIBS
="$gt_save_LIBS"
14671 eval ac_res
=\$
$gt_func_gnugettext_libintl
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14673 $as_echo "$ac_res" >&6; }
14676 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14677 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14678 && test "$PACKAGE" != gettext-runtime \
14679 && test "$PACKAGE" != gettext-tools
; }; then
14680 gt_use_preinstalled_gnugettext
=yes
14689 if test -n "$INTL_MACOSX_LIBS"; then
14690 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14691 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14692 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
14693 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
14697 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14698 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14700 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14708 $as_echo_n "checking whether to use NLS... " >&6; }
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14710 $as_echo "$USE_NLS" >&6; }
14711 if test "$USE_NLS" = "yes"; then
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14713 $as_echo_n "checking where the gettext function comes from... " >&6; }
14714 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14715 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14716 gt_source
="external libintl"
14721 gt_source
="included intl directory"
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14724 $as_echo "$gt_source" >&6; }
14727 if test "$USE_NLS" = "yes"; then
14729 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14730 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14732 $as_echo_n "checking how to link with libintl... " >&6; }
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14734 $as_echo "$LIBINTL" >&6; }
14736 for element
in $INCINTL; do
14738 for x
in $CPPFLAGS; do
14740 acl_save_prefix
="$prefix"
14741 prefix
="$acl_final_prefix"
14742 acl_save_exec_prefix
="$exec_prefix"
14743 exec_prefix
="$acl_final_exec_prefix"
14745 exec_prefix
="$acl_save_exec_prefix"
14746 prefix
="$acl_save_prefix"
14748 if test "X$x" = "X$element"; then
14753 if test -z "$haveit"; then
14754 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14761 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14764 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14773 INTLLIBS
="$LIBINTL"
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14793 $as_echo_n "checking whether NLS is requested... " >&6; }
14794 if test x
"$USE_NLS" != xyes
; then
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14796 $as_echo "no" >&6; }
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14799 $as_echo "yes" >&6; }
14801 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14805 $as_echo_n "checking for catalogs to be installed... " >&6; }
14806 # Look for .po and .gmo files in the source directory.
14809 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
14810 # If there aren't any .gmo files the shell will give us the
14811 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14813 case "$cat" in *\
**)
14816 # The quadruple backslash is collapsed to a double backslash
14817 # by the backticks, then collapsed again by the double quotes,
14818 # leaving us with one backslash in the sed expression (right
14819 # before the dot that mustn't act as a wildcard).
14820 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14821 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
14822 # The user is allowed to set LINGUAS to a list of languages to
14823 # install catalogs for. If it's empty that means "all of them."
14824 if test "x$LINGUAS" = x
; then
14825 CATALOGS
="$CATALOGS $cat"
14826 XLINGUAS
="$XLINGUAS $lang"
14828 case "$LINGUAS" in *$lang*)
14829 CATALOGS
="$CATALOGS $cat"
14830 XLINGUAS
="$XLINGUAS $lang"
14835 LINGUAS
="$XLINGUAS"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14837 $as_echo "$LINGUAS" >&6; }
14850 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14851 # -liconv on the link line twice.
14852 case "$LIBINTL" in *$LIBICONV*)
14856 # Check whether --enable-secureplt was given.
14857 if test "${enable_secureplt+set}" = set; then :
14858 enableval
=$enable_secureplt;
14862 # Check whether --enable-mingw-wildcard was given.
14863 if test "${enable_mingw_wildcard+set}" = set; then :
14864 enableval
=$enable_mingw_wildcard;
14866 enable_mingw_wildcard
=platform
14869 if test x
"$enable_mingw_wildcard" != xplatform
; then :
14871 cat >>confdefs.h
<<_ACEOF
14872 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
14877 # Check whether --enable-large-address-aware was given.
14878 if test "${enable_large_address_aware+set}" = set; then :
14879 enableval
=$enable_large_address_aware;
14882 if test x
"$enable_large_address_aware" = xyes
; then :
14884 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
14888 # Check whether --enable-leading-mingw64-underscores was given.
14889 if test "${enable_leading_mingw64_underscores+set}" = set; then :
14890 enableval
=$enable_leading_mingw64_underscores;
14893 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
14895 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
14899 # Check whether --enable-cld was given.
14900 if test "${enable_cld+set}" = set; then :
14901 enableval
=$enable_cld;
14907 # Check whether --enable-frame-pointer was given.
14908 if test "${enable_frame_pointer+set}" = set; then :
14909 enableval
=$enable_frame_pointer;
14913 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
14914 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
14915 enable_frame_pointer
=no
14918 enable_frame_pointer
=yes
14926 i
[34567]86-*-* | x86_64-
*-*)
14927 if test "x$enable_cld" = xyes
; then
14928 tm_defines
="${tm_defines} USE_IX86_CLD=1"
14930 if test "x$enable_frame_pointer" = xyes
; then
14931 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
14936 # Windows32 Registry support for specifying GCC installation paths.
14937 # Check whether --enable-win32-registry was given.
14938 if test "${enable_win32_registry+set}" = set; then :
14939 enableval
=$enable_win32_registry;
14944 win32 | pe | cygwin
* | mingw32
*)
14945 if test "x$enable_win32_registry" != xno
; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
14947 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
14948 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
14949 $as_echo_n "(cached) " >&6
14951 ac_func_search_save_LIBS
=$LIBS
14952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14955 /* Override any GCC internal prototype to avoid an error.
14956 Use char because int might match the return type of a GCC
14957 builtin and then its argument prototype would still apply. */
14961 char RegOpenKeyExA ();
14965 return RegOpenKeyExA ();
14970 for ac_lib
in '' advapi32
; do
14971 if test -z "$ac_lib"; then
14972 ac_res
="none required"
14975 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14977 if ac_fn_cxx_try_link
"$LINENO"; then :
14978 ac_cv_search_RegOpenKeyExA
=$ac_res
14980 rm -f core conftest.err conftest.
$ac_objext \
14982 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
14986 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
14989 ac_cv_search_RegOpenKeyExA
=no
14991 rm conftest.
$ac_ext
14992 LIBS
=$ac_func_search_save_LIBS
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
14995 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
14996 ac_res
=$ac_cv_search_RegOpenKeyExA
14997 if test "$ac_res" != no
; then :
14998 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15001 enable_win32_registry
=no
15006 if test "x$enable_win32_registry" != xno
; then
15008 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
15011 if test "x$enable_win32_registry" != xyes \
15012 && test "x$enable_win32_registry" != x
; then
15014 cat >>confdefs.h
<<_ACEOF
15015 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
15023 # Get an absolute path to the GCC top-level source directory
15024 holddir
=`${PWDCMD-pwd}`
15026 topdir
=`${PWDCMD-pwd}`
15029 # Conditionalize the makefile for this host machine.
15031 for f
in ${host_xmake_file}
15033 if test -f ${srcdir}/config
/$f
15035 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
15039 # Conditionalize the makefile for this target machine.
15041 for f
in ${tmake_file}
15043 if test -f ${srcdir}/config
/$f
15045 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
15048 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
15050 out_object_file
=`basename $out_file .cc`.o
15051 common_out_object_file
=`basename $common_out_file .cc`.o
15053 tm_file_list
="options.h"
15054 tm_include_list
="options.h insn-constants.h"
15055 for f
in $tm_file; do
15058 f
=`echo $f | sed 's/^..//'`
15059 tm_file_list
="${tm_file_list} $f"
15060 tm_include_list
="${tm_include_list} $f"
15063 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
15064 tm_include_list
="${tm_include_list} $f"
15067 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
15068 tm_include_list
="${tm_include_list} config/$f"
15075 for f
in $tm_p_file; do
15078 tm_p_file_list
="${tm_p_file_list} $f"
15079 tm_p_include_list
="${tm_p_include_list} $f"
15082 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
15083 tm_p_include_list
="${tm_p_include_list} config/$f"
15089 for f
in $tm_d_file; do
15092 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
15093 tm_d_include_list
="${tm_d_include_list} config/$f"
15099 tm_rust_include_list
=
15100 for f
in $tm_rust_file; do
15103 tm_rust_file_list
="${tm_rust_file_list} \$(srcdir)/config/$f"
15104 tm_rust_include_list
="${tm_rust_include_list} config/$f"
15111 for f
in $xm_file; do
15114 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
15115 xm_include_list
="${xm_include_list} $f"
15118 xm_file_list
="${xm_file_list} $f"
15119 xm_include_list
="${xm_include_list} $f"
15122 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
15123 xm_include_list
="${xm_include_list} config/$f"
15129 host_xm_include_list
=
15130 for f
in $host_xm_file; do
15133 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
15134 host_xm_include_list
="${host_xm_include_list} $f"
15137 host_xm_file_list
="${host_xm_file_list} $f"
15138 host_xm_include_list
="${host_xm_include_list} $f"
15141 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
15142 host_xm_include_list
="${host_xm_include_list} config/$f"
15147 build_xm_file_list
=
15148 for f
in $build_xm_file; do
15151 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
15152 build_xm_include_list
="${build_xm_include_list} $f"
15154 auto-build.h | auto-host.h
)
15155 build_xm_file_list
="${build_xm_file_list} $f"
15156 build_xm_include_list
="${build_xm_include_list} $f"
15159 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
15160 build_xm_include_list
="${build_xm_include_list} config/$f"
15165 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15166 # cross-compiler which does not use the native headers and libraries.
15167 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15170 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
15171 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
15173 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
15174 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
15175 if test "x$with_build_sysroot" != x
; then
15176 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15178 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
15181 if test x
$host != x
$target
15183 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
15185 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
15186 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
15187 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
15190 if test "x$with_build_sysroot" != "x"; then
15191 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
15192 elif test "x$with_sysroot" = x
; then
15193 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
15194 elif test "x$with_sysroot" = xyes
; then
15195 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15197 target_header_dir
="${with_sysroot}${native_system_header_dir}"
15200 target_header_dir
=${native_system_header_dir}
15203 # If this is a cross-compiler that does not
15204 # have its own set of headers then define
15207 # If this is using newlib, without having the headers available now,
15208 # then define inhibit_libc in LIBGCC2_CFLAGS.
15209 # This prevents libgcc2 from containing any code which requires libc
15211 : ${inhibit_libc=false}
15212 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
15213 test x
$with_newlib = xyes
; } &&
15214 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
15219 # When building gcc with a cross-compiler, we need to adjust things so
15220 # that the generator programs are still built with the native compiler.
15221 # Also, we cannot run fixincludes.
15223 # These are the normal (build=host) settings:
15224 CC_FOR_BUILD
='$(CC)'
15225 CXX_FOR_BUILD
='$(CXX)'
15226 BUILD_CFLAGS
='$(ALL_CFLAGS)'
15227 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
15228 BUILD_LDFLAGS
='$(LDFLAGS)'
15229 STMP_FIXINC
=stmp-fixinc
15231 # And these apply if build != host, or we are generating coverage data
15232 if test x
$build != x
$host ||
test "x$coverage_flags" != x
15234 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15235 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15236 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
15240 if test x
$enable_fixincludes = xno
;
15245 # Expand extra_headers to include complete path.
15246 # This substitutes for lots of t-* files.
15247 extra_headers_list
=
15248 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15249 for file in ${extra_headers} ; do
15250 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15253 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15254 if test x
"$use_gcc_tgmath" = xyes
15255 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15258 # Define collect2 in Makefile.
15259 case $host_can_use_collect2 in
15261 *) collect2
='collect2$(exeext)' ;;
15265 # Add a definition of USE_COLLECT2 if system wants one.
15266 case $use_collect2 in
15267 no
) use_collect2
= ;;
15270 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
15271 xm_defines
="${xm_defines} USE_COLLECT2"
15272 case $host_can_use_collect2 in
15274 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
15281 cat >>confdefs.h
<<_ACEOF
15282 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15286 # ---------------------------
15287 # Assembler & linker features
15288 # ---------------------------
15290 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15291 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15292 # However when ld-new is first executed from the build tree, libtool will
15293 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15294 # to the build tree. While doing this we need to use the previous-stage
15295 # linker, or we have an infinite loop. The presence of a shell script as
15296 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15297 # the gcc/collect-ld script. So we need to know how libtool works, or
15298 # exec-tool will fail.
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15304 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15309 macro_version
='2.2.7a'
15310 macro_revision
='1.3134'
15324 ltmain
="$ac_aux_dir/ltmain.sh"
15326 # Backslashify metacharacters that are still active within
15327 # double-quoted strings.
15328 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
15330 # Same as above, but do not quote variable references.
15331 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
15333 # Sed substitution to delay expansion of an escaped shell variable in a
15334 # double_quote_subst'ed string.
15335 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
15337 # Sed substitution to delay expansion of an escaped single quote.
15338 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
15340 # Sed substitution to avoid accidental globbing in evaled expressions
15341 no_glob_subst
='s/\*/\\\*/g'
15343 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15344 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15345 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15348 $as_echo_n "checking how to print strings... " >&6; }
15349 # Test print first, because it will be a builtin if present.
15350 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15351 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15353 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15356 # Use this function as a fallback that always works.
15357 func_fallback_echo ()
15359 eval 'cat <<_LTECHO_EOF
15363 ECHO='func_fallback_echo
'
15366 # func_echo_all arg...
15367 # Invoke $ECHO with all args, space-separated.
15374 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15375 $as_echo "printf" >&6; } ;;
15376 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15377 $as_echo "print -r" >&6; } ;;
15378 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15379 $as_echo "cat" >&6; } ;;
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15396 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15397 if ${ac_cv_path_SED+:} false; then :
15398 $as_echo_n "(cached) " >&6
15400 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15401 for ac_i in 1 2 3 4 5 6 7; do
15402 ac_script="$ac_script$as_nl$ac_script"
15404 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15405 { ac_script=; unset ac_script;}
15406 if test -z "$SED"; then
15407 ac_path_SED_found=false
15408 # Loop through the user's path and
test for each of PROGNAME-LIST
15409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15410 for as_dir
in $PATH
15413 test -z "$as_dir" && as_dir
=.
15414 for ac_prog
in sed gsed
; do
15415 for ac_exec_ext
in '' $ac_executable_extensions; do
15416 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
15417 as_fn_executable_p
"$ac_path_SED" ||
continue
15418 # Check for GNU ac_path_SED and select it if it is found.
15419 # Check for GNU $ac_path_SED
15420 case `"$ac_path_SED" --version 2>&1` in
15422 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
15425 $as_echo_n 0123456789 >"conftest.in"
15428 cat "conftest.in" "conftest.in" >"conftest.tmp"
15429 mv "conftest.tmp" "conftest.in"
15430 cp "conftest.in" "conftest.nl"
15431 $as_echo '' >> "conftest.nl"
15432 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
15433 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
15434 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
15435 if test $ac_count -gt ${ac_path_SED_max-0}; then
15436 # Best one so far, save it but keep looking for a better one
15437 ac_cv_path_SED
="$ac_path_SED"
15438 ac_path_SED_max
=$ac_count
15440 # 10*(2^10) chars as input seems more than enough
15441 test $ac_count -gt 10 && break
15443 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
15446 $ac_path_SED_found && break 3
15451 if test -z "$ac_cv_path_SED"; then
15452 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
15455 ac_cv_path_SED
=$SED
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15460 $as_echo "$ac_cv_path_SED" >&6; }
15461 SED
="$ac_cv_path_SED"
15464 test -z "$SED" && SED
=sed
15465 Xsed
="$SED -e 1s/^X//"
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15478 $as_echo_n "checking for fgrep... " >&6; }
15479 if ${ac_cv_path_FGREP+:} false
; then :
15480 $as_echo_n "(cached) " >&6
15482 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
15483 then ac_cv_path_FGREP
="$GREP -F"
15485 if test -z "$FGREP"; then
15486 ac_path_FGREP_found
=false
15487 # Loop through the user's path and test for each of PROGNAME-LIST
15488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15489 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
15492 test -z "$as_dir" && as_dir
=.
15493 for ac_prog
in fgrep
; do
15494 for ac_exec_ext
in '' $ac_executable_extensions; do
15495 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
15496 as_fn_executable_p
"$ac_path_FGREP" ||
continue
15497 # Check for GNU ac_path_FGREP and select it if it is found.
15498 # Check for GNU $ac_path_FGREP
15499 case `"$ac_path_FGREP" --version 2>&1` in
15501 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
15504 $as_echo_n 0123456789 >"conftest.in"
15507 cat "conftest.in" "conftest.in" >"conftest.tmp"
15508 mv "conftest.tmp" "conftest.in"
15509 cp "conftest.in" "conftest.nl"
15510 $as_echo 'FGREP' >> "conftest.nl"
15511 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
15512 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
15513 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
15514 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15515 # Best one so far, save it but keep looking for a better one
15516 ac_cv_path_FGREP
="$ac_path_FGREP"
15517 ac_path_FGREP_max
=$ac_count
15519 # 10*(2^10) chars as input seems more than enough
15520 test $ac_count -gt 10 && break
15522 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
15525 $ac_path_FGREP_found && break 3
15530 if test -z "$ac_cv_path_FGREP"; then
15531 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15534 ac_cv_path_FGREP
=$FGREP
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15540 $as_echo "$ac_cv_path_FGREP" >&6; }
15541 FGREP
="$ac_cv_path_FGREP"
15544 test -z "$GREP" && GREP
=grep
15564 # Check whether --with-gnu-ld was given.
15565 if test "${with_gnu_ld+set}" = set; then :
15566 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
15572 if test "$GCC" = yes; then
15573 # Check if gcc -print-prog-name=ld gives a path.
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15575 $as_echo_n "checking for ld used by $CC... " >&6; }
15578 # gcc leaves a trailing carriage return which upsets mingw
15579 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15581 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15584 # Accept absolute paths.
15586 re_direlt
='/[^/][^/]*/\.\./'
15587 # Canonicalize the pathname of ld
15588 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15589 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
15590 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15592 test -z "$LD" && LD
="$ac_prog"
15595 # If it fails, then pretend we aren't using GCC.
15599 # If it is relative, then search for the first ld in PATH.
15600 with_gnu_ld
=unknown
15603 elif test "$with_gnu_ld" = yes; then
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15605 $as_echo_n "checking for GNU ld... " >&6; }
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15608 $as_echo_n "checking for non-GNU ld... " >&6; }
15610 if ${lt_cv_path_LD+:} false
; then :
15611 $as_echo_n "(cached) " >&6
15613 if test -z "$LD"; then
15614 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15615 for ac_dir
in $PATH; do
15617 test -z "$ac_dir" && ac_dir
=.
15618 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15619 lt_cv_path_LD
="$ac_dir/$ac_prog"
15620 # Check to see if the program is GNU ld. I'd rather use --version,
15621 # but apparently some variants of GNU ld only accept -v.
15622 # Break only if it was the GNU/non-GNU ld that we prefer.
15623 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15624 *GNU
* |
*'with BFD'*)
15625 test "$with_gnu_ld" != no
&& break
15628 test "$with_gnu_ld" != yes && break
15635 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
15639 LD
="$lt_cv_path_LD"
15640 if test -n "$LD"; then
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15642 $as_echo "$LD" >&6; }
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15645 $as_echo "no" >&6; }
15647 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15649 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15650 if ${lt_cv_prog_gnu_ld+:} false
; then :
15651 $as_echo_n "(cached) " >&6
15653 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15654 case `$LD -v 2>&1 </dev/null` in
15655 *GNU
* |
*'with BFD'*)
15656 lt_cv_prog_gnu_ld
=yes
15659 lt_cv_prog_gnu_ld
=no
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15664 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15665 with_gnu_ld
=$lt_cv_prog_gnu_ld
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15676 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15677 if ${lt_cv_path_NM+:} false
; then :
15678 $as_echo_n "(cached) " >&6
15680 if test -n "$NM"; then
15681 # Let the user override the nm to test.
15682 lt_nm_to_check
="$NM"
15684 lt_nm_to_check
="${ac_tool_prefix}nm"
15685 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15686 lt_nm_to_check
="$lt_nm_to_check nm"
15689 for lt_tmp_nm
in "$lt_nm_to_check"; do
15690 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15691 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
15693 test -z "$ac_dir" && ac_dir
=.
15694 # Strip out any user-provided options from the nm to test twice,
15695 # the first time to test to see if nm (rather than its options) has
15696 # an explicit path, the second time to yield a file which can be
15698 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15699 case "$tmp_nm_path" in
15700 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
15701 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
15703 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15704 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
15705 # Check to see if the nm accepts a BSD-compat flag.
15706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15707 # nm: unknown option "B" ignored
15708 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15709 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
15713 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15715 lt_cv_path_NM
="$tmp_nm -p"
15719 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15720 continue # so that we can try to find one that supports BSD flags
15729 : ${lt_cv_path_NM=no}
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15732 $as_echo "$lt_cv_path_NM" >&6; }
15733 if test "$lt_cv_path_NM" != "no"; then
15734 NM
="$lt_cv_path_NM"
15736 # Didn't find any BSD compatible name lister, look for dumpbin.
15737 if test -n "$DUMPBIN"; then :
15738 # Let the user override the test.
15740 if test -n "$ac_tool_prefix"; then
15741 for ac_prog
in dumpbin
"link -dump"
15743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15744 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15746 $as_echo_n "checking for $ac_word... " >&6; }
15747 if ${ac_cv_prog_DUMPBIN+:} false
; then :
15748 $as_echo_n "(cached) " >&6
15750 if test -n "$DUMPBIN"; then
15751 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
15753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15754 for as_dir
in $PATH
15757 test -z "$as_dir" && as_dir
=.
15758 for ac_exec_ext
in '' $ac_executable_extensions; do
15759 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15760 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
15761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15770 DUMPBIN
=$ac_cv_prog_DUMPBIN
15771 if test -n "$DUMPBIN"; then
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15773 $as_echo "$DUMPBIN" >&6; }
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15776 $as_echo "no" >&6; }
15780 test -n "$DUMPBIN" && break
15783 if test -z "$DUMPBIN"; then
15784 ac_ct_DUMPBIN
=$DUMPBIN
15785 for ac_prog
in dumpbin
"link -dump"
15787 # Extract the first word of "$ac_prog", so it can be a program name with args.
15788 set dummy
$ac_prog; ac_word
=$2
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15790 $as_echo_n "checking for $ac_word... " >&6; }
15791 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
15792 $as_echo_n "(cached) " >&6
15794 if test -n "$ac_ct_DUMPBIN"; then
15795 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
15797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15798 for as_dir
in $PATH
15801 test -z "$as_dir" && as_dir
=.
15802 for ac_exec_ext
in '' $ac_executable_extensions; do
15803 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15804 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
15805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15814 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
15815 if test -n "$ac_ct_DUMPBIN"; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15817 $as_echo "$ac_ct_DUMPBIN" >&6; }
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15820 $as_echo "no" >&6; }
15824 test -n "$ac_ct_DUMPBIN" && break
15827 if test "x$ac_ct_DUMPBIN" = x
; then
15830 case $cross_compiling:$ac_tool_warned in
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15834 ac_tool_warned
=yes ;;
15836 DUMPBIN
=$ac_ct_DUMPBIN
15840 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15842 DUMPBIN
="$DUMPBIN -symbols"
15850 if test "$DUMPBIN" != ":"; then
15854 test -z "$NM" && NM
=nm
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15862 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15863 if ${lt_cv_nm_interface+:} false
; then :
15864 $as_echo_n "(cached) " >&6
15866 lt_cv_nm_interface
="BSD nm"
15867 echo "int some_variable = 0;" > conftest.
$ac_ext
15868 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15869 (eval "$ac_compile" 2>conftest.err
)
15870 cat conftest.err
>&5
15871 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15872 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
15873 cat conftest.err
>&5
15874 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15875 cat conftest.out
>&5
15876 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
15877 lt_cv_nm_interface
="MS dumpbin"
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15882 $as_echo "$lt_cv_nm_interface" >&6; }
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15885 $as_echo_n "checking whether ln -s works... " >&6; }
15887 if test "$LN_S" = "ln -s"; then
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15889 $as_echo "yes" >&6; }
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15892 $as_echo "no, using $LN_S" >&6; }
15895 # find the maximum length of command line arguments
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15897 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15898 if ${lt_cv_sys_max_cmd_len+:} false
; then :
15899 $as_echo_n "(cached) " >&6
15906 # On DJGPP, this test can blow up pretty badly due to problems in libc
15907 # (any single argument exceeding 2000 bytes causes a buffer overrun
15908 # during glob expansion). Even if it were fixed, the result of this
15909 # check would be larger than it should be.
15910 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
15914 # Under GNU Hurd, this test is not required because there is
15915 # no limit to the length of command line arguments.
15916 # Libtool will interpret -1 as no limit whatsoever
15917 lt_cv_sys_max_cmd_len
=-1;
15920 cygwin
* | mingw
* | cegcc
*)
15921 # On Win9x/ME, this test blows up -- it succeeds, but takes
15922 # about 5 minutes as the teststring grows exponentially.
15923 # Worse, since 9x/ME are not pre-emptively multitasking,
15924 # you end up with a "frozen" computer, even though with patience
15925 # the test eventually succeeds (with a max line length of 256k).
15926 # Instead, let's just punt: use the minimum linelength reported by
15927 # all of the supported platforms: 8192 (on NT/2K/XP).
15928 lt_cv_sys_max_cmd_len
=8192;
15932 # On MiNT this can take a long time and run out of memory.
15933 lt_cv_sys_max_cmd_len
=8192;
15937 # On AmigaOS with pdksh, this test takes hours, literally.
15938 # So we just punt and use a minimum line length of 8192.
15939 lt_cv_sys_max_cmd_len
=8192;
15942 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
15943 # This has been around since 386BSD, at least. Likely further.
15944 if test -x /sbin
/sysctl
; then
15945 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
15946 elif test -x /usr
/sbin
/sysctl
; then
15947 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
15949 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
15951 # And add a safety zone
15952 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
15953 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
15957 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15958 lt_cv_sys_max_cmd_len
=196608
15962 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15963 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15964 # nice to cause kernel panics so lets avoid the loop below.
15965 # First set a reasonable default.
15966 lt_cv_sys_max_cmd_len
=16384
15968 if test -x /sbin
/sysconfig
; then
15969 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15970 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
15975 lt_cv_sys_max_cmd_len
=102400
15977 sysv5
* | sco5v6
* | sysv4.2uw2
*)
15978 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15979 if test -n "$kargmax"; then
15980 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
15982 lt_cv_sys_max_cmd_len
=32768
15986 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
15987 if test -n "$lt_cv_sys_max_cmd_len"; then
15988 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
15989 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
15991 # Make teststring a little bigger before we do anything with it.
15992 # a 1K string should be a reasonable start.
15993 for i
in 1 2 3 4 5 6 7 8 ; do
15994 teststring
=$teststring$teststring
15996 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
15997 # If test is not a shell built-in, we'll probably end up computing a
15998 # maximum length that is only half of the actual maximum length, but
16000 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16001 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
16002 test $i != 17 # 1/2 MB should be enough
16005 teststring
=$teststring$teststring
16007 # Only check the string length outside the loop.
16008 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
16010 # Add a significant safety factor because C++ compilers can tack on
16011 # massive amounts of additional arguments before passing them to the
16012 # linker. It appears as though 1/2 is a usable value.
16013 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
16020 if test -n $lt_cv_sys_max_cmd_len ; then
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16022 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16025 $as_echo "none" >&6; }
16027 max_cmd_len
=$lt_cv_sys_max_cmd_len
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16039 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16040 # Try some XSI features
16042 ( _lt_dummy
="a/b/c"
16043 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
16045 && eval 'test $(( 1 + 1 )) -eq 2 \
16046 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
16049 $as_echo "$xsi_shell" >&6; }
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
16053 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
16055 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
16057 && lt_shell_append=yes
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
16059 $as_echo "$lt_shell_append" >&6; }
16062 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16072 # test EBCDIC or ASCII
16073 case `echo X|tr X '\101'` in
16074 A) # ASCII based system
16075 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16076 lt_SP2NL='tr \040 \012'
16077 lt_NL2SP='tr \015\012 \040\040'
16079 *) # EBCDIC based system
16080 lt_SP2NL='tr \100 \n'
16081 lt_NL2SP='tr \r\n \100\100'
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
16094 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
16095 if ${lt_cv_ld_reload_flag+:} false; then :
16096 $as_echo_n "(cached
) " >&6
16098 lt_cv_ld_reload_flag='-r'
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
16101 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16102 reload_flag=$lt_cv_ld_reload_flag
16103 case $reload_flag in
16105 *) reload_flag=" $reload_flag" ;;
16107 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16110 if test "$GCC" = yes; then
16111 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16113 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16126 if test -n "$ac_tool_prefix"; then
16127 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
16128 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16130 $as_echo_n "checking
for $ac_word...
" >&6; }
16131 if ${ac_cv_prog_OBJDUMP+:} false; then :
16132 $as_echo_n "(cached
) " >&6
16134 if test -n "$OBJDUMP"; then
16135 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16138 for as_dir in $PATH
16141 test -z "$as_dir" && as_dir=.
16142 for ac_exec_ext in '' $ac_executable_extensions; do
16143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16144 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
16145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16154 OBJDUMP=$ac_cv_prog_OBJDUMP
16155 if test -n "$OBJDUMP"; then
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
16157 $as_echo "$OBJDUMP" >&6; }
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16160 $as_echo "no
" >&6; }
16165 if test -z "$ac_cv_prog_OBJDUMP"; then
16166 ac_ct_OBJDUMP=$OBJDUMP
16167 # Extract the first word of "objdump
", so it can be a program name with args.
16168 set dummy objdump; ac_word=$2
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16170 $as_echo_n "checking
for $ac_word...
" >&6; }
16171 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16172 $as_echo_n "(cached
) " >&6
16174 if test -n "$ac_ct_OBJDUMP"; then
16175 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16178 for as_dir in $PATH
16181 test -z "$as_dir" && as_dir=.
16182 for ac_exec_ext in '' $ac_executable_extensions; do
16183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16184 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
16185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16194 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16195 if test -n "$ac_ct_OBJDUMP"; then
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
16197 $as_echo "$ac_ct_OBJDUMP" >&6; }
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16200 $as_echo "no
" >&6; }
16203 if test "x
$ac_ct_OBJDUMP" = x; then
16206 case $cross_compiling:$ac_tool_warned in
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16209 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16210 ac_tool_warned=yes ;;
16212 OBJDUMP=$ac_ct_OBJDUMP
16215 OBJDUMP="$ac_cv_prog_OBJDUMP"
16218 test -z "$OBJDUMP" && OBJDUMP=objdump
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
16229 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
16230 if ${lt_cv_deplibs_check_method+:} false; then :
16231 $as_echo_n "(cached
) " >&6
16233 lt_cv_file_magic_cmd='$MAGIC_CMD'
16234 lt_cv_file_magic_test_file=
16235 lt_cv_deplibs_check_method='unknown'
16236 # Need to set the preceding variable on all platforms that support
16237 # interlibrary dependencies.
16238 # 'none' -- dependencies not supported.
16239 # `unknown' -- same as none, but documents that we really don't know.
16240 # 'pass_all' -- all dependencies passed with no checks.
16241 # 'test_compile' -- check by making test program.
16242 # 'file_magic [[regex]]' -- check by looking for files in library path
16243 # which responds to the $file_magic_cmd with a given extended regex.
16244 # If you have `file' or equivalent on your system and you're not sure
16245 # whether `pass_all' will *always* work, you probably want this one.
16249 lt_cv_deplibs_check_method=pass_all
16253 lt_cv_deplibs_check_method=pass_all
16257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16258 lt_cv_file_magic_cmd='/usr/bin/file -L'
16259 lt_cv_file_magic_test_file=/shlib/libc.so
16263 # func_win32_libid is a shell function defined in ltmain.sh
16264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16265 lt_cv_file_magic_cmd='func_win32_libid'
16269 # Base MSYS/MinGW do not provide the 'file' command needed by
16270 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16271 # unless we find 'file', for example because we are cross-compiling.
16272 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16273 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
16274 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16275 lt_cv_file_magic_cmd='func_win32_libid'
16277 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16278 lt_cv_file_magic_cmd='$OBJDUMP -f'
16283 # use the weaker test based on 'objdump'. See mingw*.
16284 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16285 lt_cv_file_magic_cmd='$OBJDUMP -f'
16288 darwin* | rhapsody*)
16289 lt_cv_deplibs_check_method=pass_all
16292 freebsd* | dragonfly*)
16293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16296 # Not sure whether the presence of OpenBSD here was a mistake.
16297 # Let's accept both of them until this is cleared up.
16298 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16299 lt_cv_file_magic_cmd=/usr/bin/file
16300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16304 lt_cv_deplibs_check_method=pass_all
16309 lt_cv_deplibs_check_method=pass_all
16313 lt_cv_deplibs_check_method=pass_all
16316 hpux10.20* | hpux11*)
16317 lt_cv_file_magic_cmd=/usr/bin/file
16320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16321 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16324 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]'
16325 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16329 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16335 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16339 irix5* | irix6* | nonstopux*)
16341 *-32|*"-32 ") libmagic=32-bit;;
16342 *-n32|*"-n32 ") libmagic=N32;;
16343 *-64|*"-64 ") libmagic=64-bit;;
16344 *) libmagic=never-match;;
16346 lt_cv_deplibs_check_method=pass_all
16349 # This must be Linux ELF.
16350 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16351 lt_cv_deplibs_check_method=pass_all
16355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16364 lt_cv_file_magic_cmd=/usr/bin/file
16365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16369 lt_cv_deplibs_check_method=pass_all
16373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
16374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16380 osf3* | osf4* | osf5*)
16381 lt_cv_deplibs_check_method=pass_all
16385 lt_cv_deplibs_check_method=pass_all
16389 lt_cv_deplibs_check_method=pass_all
16392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16393 lt_cv_deplibs_check_method=pass_all
16397 case $host_vendor in
16399 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]'
16400 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16403 lt_cv_deplibs_check_method=pass_all
16406 lt_cv_file_magic_cmd='/bin/file'
16407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16410 lt_cv_file_magic_cmd='/bin/file'
16411 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
16412 lt_cv_file_magic_test_file=/lib/libc.so
16415 lt_cv_deplibs_check_method=pass_all
16418 lt_cv_deplibs_check_method=pass_all
16424 lt_cv_deplibs_check_method=pass_all
16427 # Assume VxWorks cross toolchains are built on Linux, possibly
16428 # as canadian for Windows hosts.
16429 lt_cv_deplibs_check_method=pass_all
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
16435 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16436 file_magic_cmd=$lt_cv_file_magic_cmd
16437 deplibs_check_method=$lt_cv_deplibs_check_method
16438 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16452 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
16453 for plugin in $plugin_names; do
16454 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16455 if test x$plugin_so = x$plugin; then
16456 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16458 if test x$plugin_so != x$plugin; then
16459 plugin_option="--plugin $plugin_so"
16464 if test -n "$ac_tool_prefix"; then
16465 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16466 set dummy ${ac_tool_prefix}ar; ac_word=$2
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16468 $as_echo_n "checking
for $ac_word...
" >&6; }
16469 if ${ac_cv_prog_AR+:} false; then :
16470 $as_echo_n "(cached
) " >&6
16472 if test -n "$AR"; then
16473 ac_cv_prog_AR="$AR" # Let the user override the test.
16475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16476 for as_dir in $PATH
16479 test -z "$as_dir" && as_dir=.
16480 for ac_exec_ext in '' $ac_executable_extensions; do
16481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16482 ac_cv_prog_AR="${ac_tool_prefix}ar"
16483 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16493 if test -n "$AR"; then
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
16495 $as_echo "$AR" >&6; }
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16498 $as_echo "no
" >&6; }
16503 if test -z "$ac_cv_prog_AR"; then
16505 # Extract the first word of "ar", so it can be a program name with args.
16506 set dummy ar; ac_word=$2
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16508 $as_echo_n "checking
for $ac_word...
" >&6; }
16509 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16510 $as_echo_n "(cached
) " >&6
16512 if test -n "$ac_ct_AR"; then
16513 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16516 for as_dir in $PATH
16519 test -z "$as_dir" && as_dir=.
16520 for ac_exec_ext in '' $ac_executable_extensions; do
16521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16522 ac_cv_prog_ac_ct_AR="ar"
16523 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16532 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16533 if test -n "$ac_ct_AR"; then
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
16535 $as_echo "$ac_ct_AR" >&6; }
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16538 $as_echo "no
" >&6; }
16541 if test "x
$ac_ct_AR" = x; then
16544 case $cross_compiling:$ac_tool_warned in
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16547 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16548 ac_tool_warned=yes ;;
16553 AR="$ac_cv_prog_AR"
16556 test -z "$AR" && AR=ar
16557 if test -n "$plugin_option"; then
16558 if $AR --help 2>&1 | grep -q "\
--plugin"; then
16560 $AR $plugin_option rc conftest.a conftest.c
16561 if test "$?
" != 0; then
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
16563 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
16565 AR="$AR $plugin_option"
16570 test -z "$AR_FLAGS" && AR_FLAGS=cru
16582 if test -n "$ac_tool_prefix"; then
16583 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
16584 set dummy ${ac_tool_prefix}strip; ac_word=$2
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16586 $as_echo_n "checking
for $ac_word...
" >&6; }
16587 if ${ac_cv_prog_STRIP+:} false; then :
16588 $as_echo_n "(cached
) " >&6
16590 if test -n "$STRIP"; then
16591 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594 for as_dir in $PATH
16597 test -z "$as_dir" && as_dir=.
16598 for ac_exec_ext in '' $ac_executable_extensions; do
16599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16600 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
16601 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16610 STRIP=$ac_cv_prog_STRIP
16611 if test -n "$STRIP"; then
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
16613 $as_echo "$STRIP" >&6; }
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16616 $as_echo "no
" >&6; }
16621 if test -z "$ac_cv_prog_STRIP"; then
16623 # Extract the first word of "strip
", so it can be a program name with args.
16624 set dummy strip; ac_word=$2
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16626 $as_echo_n "checking
for $ac_word...
" >&6; }
16627 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16628 $as_echo_n "(cached
) " >&6
16630 if test -n "$ac_ct_STRIP"; then
16631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $PATH
16637 test -z "$as_dir" && as_dir=.
16638 for ac_exec_ext in '' $ac_executable_extensions; do
16639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16640 ac_cv_prog_ac_ct_STRIP="strip
"
16641 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16651 if test -n "$ac_ct_STRIP"; then
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
16653 $as_echo "$ac_ct_STRIP" >&6; }
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16656 $as_echo "no
" >&6; }
16659 if test "x
$ac_ct_STRIP" = x; then
16662 case $cross_compiling:$ac_tool_warned in
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16665 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16666 ac_tool_warned=yes ;;
16671 STRIP="$ac_cv_prog_STRIP"
16674 test -z "$STRIP" && STRIP=:
16681 if test -n "$ac_tool_prefix"; then
16682 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
16683 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16685 $as_echo_n "checking
for $ac_word...
" >&6; }
16686 if ${ac_cv_prog_RANLIB+:} false; then :
16687 $as_echo_n "(cached
) " >&6
16689 if test -n "$RANLIB"; then
16690 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16693 for as_dir in $PATH
16696 test -z "$as_dir" && as_dir=.
16697 for ac_exec_ext in '' $ac_executable_extensions; do
16698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16699 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
16700 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16709 RANLIB=$ac_cv_prog_RANLIB
16710 if test -n "$RANLIB"; then
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
16712 $as_echo "$RANLIB" >&6; }
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16715 $as_echo "no
" >&6; }
16720 if test -z "$ac_cv_prog_RANLIB"; then
16721 ac_ct_RANLIB=$RANLIB
16722 # Extract the first word of "ranlib
", so it can be a program name with args.
16723 set dummy ranlib; ac_word=$2
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16725 $as_echo_n "checking
for $ac_word...
" >&6; }
16726 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16727 $as_echo_n "(cached
) " >&6
16729 if test -n "$ac_ct_RANLIB"; then
16730 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16733 for as_dir in $PATH
16736 test -z "$as_dir" && as_dir=.
16737 for ac_exec_ext in '' $ac_executable_extensions; do
16738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16739 ac_cv_prog_ac_ct_RANLIB="ranlib
"
16740 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16749 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16750 if test -n "$ac_ct_RANLIB"; then
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
16752 $as_echo "$ac_ct_RANLIB" >&6; }
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16755 $as_echo "no
" >&6; }
16758 if test "x
$ac_ct_RANLIB" = x; then
16761 case $cross_compiling:$ac_tool_warned in
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16764 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16765 ac_tool_warned=yes ;;
16767 RANLIB=$ac_ct_RANLIB
16770 RANLIB="$ac_cv_prog_RANLIB"
16773 test -z "$RANLIB" && RANLIB=:
16774 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16775 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
16776 RANLIB="$RANLIB $plugin_option"
16785 # Determine commands to create old-style static archives.
16786 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16787 old_postinstall_cmds='chmod 644 $oldlib'
16788 old_postuninstall_cmds=
16790 if test -n "$RANLIB"; then
16793 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
16796 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
16799 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
16804 lock_old_archive_extraction=yes ;;
16806 lock_old_archive_extraction=no ;;
16847 # If no C compiler was specified, use CC.
16850 # If no C compiler flags were specified, use CFLAGS.
16851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16853 # Allow CC to be a program name with arguments.
16857 # Check for command to grab the raw symbol name followed by C symbol from nm.
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
16859 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
16860 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16861 $as_echo_n "(cached
) " >&6
16864 # These are sane defaults that work on at least a few old systems.
16865 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16867 # Character class describing NM global symbol codes.
16868 symcode='[BCDEGRST]'
16870 # Regexp to match symbols that can be accessed directly from C.
16871 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16873 # Define system-specific variables.
16878 cygwin* | mingw* | pw32* | cegcc*)
16879 symcode='[ABCDGISTW]'
16882 if test "$host_cpu" = ia64; then
16883 symcode='[ABCDEGRST]'
16886 irix* | nonstopux*)
16887 symcode='[BCDEGRST]'
16890 symcode='[BCDEGQRST]'
16901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
16909 # If we're using GNU nm, then use its standard symbol codes.
16910 case `$NM -V 2>&1` in
16911 *GNU* | *'with BFD'*)
16912 symcode='[ABCDGIRSTW]' ;;
16915 # Transform an extracted symbol line into a proper C declaration.
16916 # Some systems (esp. on ia64) link data and code symbols differently,
16917 # so use this general approach.
16918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16920 # Transform an extracted symbol line into symbol name and symbol address
16921 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16922 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
16924 # Handle CRLF in mingw tool chain
16928 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16932 # Try without a prefix underscore, then with it.
16933 for ac_symprfx in "" "_
"; do
16935 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16936 symxfrm="\\1 $ac_symprfx\\2 \\2"
16938 # Write the raw and C identifiers.
16939 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
16940 # Fake it for dumpbin and say T for any non-static function
16941 # and D for any global variable.
16942 # Also find C++ and __fastcall symbols from MSVC++,
16943 # which start with @ or ?.
16944 lt_cv_sys_global_symbol_pipe="$AWK '"\
16945 " {last_section=section; section=\$ 3};"\
16946 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16947 " \$ 0!~/External *\|/{next};"\
16948 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16949 " {if(hide[section]) next};"\
16950 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
16951 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
16952 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
16953 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
16954 " ' prfx
=^
$ac_symprfx"
16956 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16959 # Check to see that the pipe works correctly.
16963 cat > conftest.$ac_ext <<_LT_EOF
16968 void nm_test_func(void);
16969 void nm_test_func(void){}
16973 int main(){nm_test_var='a';nm_test_func();return(0);}
16976 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16977 (eval $ac_compile) 2>&5
16979 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
16980 test $ac_status = 0; }; then
16981 # Now try to grab the symbols.
16983 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
16984 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16986 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
16987 test $ac_status = 0; } && test -s "$nlist"; then
16988 # Try sorting and uniquifying the output.
16989 if sort "$nlist" | uniq > "$nlist"T; then
16990 mv -f "$nlist"T "$nlist"
16995 # Make sure that we snagged all the symbols we need.
16996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16997 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16998 cat <<_LT_EOF > conftest.$ac_ext
17004 # Now generate the symbol file.
17005 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17007 cat <<_LT_EOF >> conftest.$ac_ext
17009 /* The mapping between symbol names and symbols. */
17014 lt__PROGRAM__LTX_preloaded_symbols[] =
17016 { "@PROGRAM@
", (void *) 0 },
17018 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17019 cat <<\_LT_EOF >> conftest.$ac_ext
17023 /* This works around a problem in FreeBSD linker */
17024 #ifdef FREEBSD_WORKAROUND
17025 static const void *lt_preloaded_setup() {
17026 return lt__PROGRAM__LTX_preloaded_symbols;
17034 # Now try linking the two files.
17035 mv conftest.$ac_objext conftstm.$ac_objext
17036 lt_save_LIBS="$LIBS"
17037 lt_save_CFLAGS="$CFLAGS"
17038 LIBS="conftstm.
$ac_objext"
17039 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17040 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17041 (eval $ac_link) 2>&5
17043 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17044 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
17047 LIBS="$lt_save_LIBS"
17048 CFLAGS="$lt_save_CFLAGS"
17050 echo "cannot
find nm_test_func
in $nlist" >&5
17053 echo "cannot
find nm_test_var
in $nlist" >&5
17056 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
17059 echo "$progname: failed program was
:" >&5
17060 cat conftest.$ac_ext >&5
17062 rm -rf conftest* conftst*
17064 # Do not use the global_symbol_pipe unless it works.
17065 if test "$pipe_works" = yes; then
17068 lt_cv_sys_global_symbol_pipe=
17074 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17075 lt_cv_sys_global_symbol_to_cdecl=
17077 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
17079 $as_echo "failed
" >&6; }
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
17082 $as_echo "ok
" >&6; }
17106 # Check whether --enable-libtool-lock was given.
17107 if test "${enable_libtool_lock+set}" = set; then :
17108 enableval=$enable_libtool_lock;
17111 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
17113 # Some flags need to be propagated to the compiler or linker for good
17117 # Find out which ABI we are using.
17118 echo 'int i;' > conftest.$ac_ext
17119 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17120 (eval $ac_compile) 2>&5
17122 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17123 test $ac_status = 0; }; then
17124 case `/usr/bin/file conftest.$ac_objext` in
17126 HPUX_IA64_MODE="32"
17129 HPUX_IA64_MODE="64"
17136 # Find out which ABI we are using.
17137 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
17138 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17139 (eval $ac_compile) 2>&5
17141 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17142 test $ac_status = 0; }; then
17143 if test "$lt_cv_prog_gnu_ld" = yes; then
17144 case `/usr/bin/file conftest.$ac_objext` in
17146 LD="${LD-ld} -melf32bsmip"
17149 LD="${LD-ld} -melf32bmipn32"
17152 LD="${LD-ld} -melf64bmip"
17156 case `/usr/bin/file conftest.$ac_objext` in
17172 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17173 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17174 # Find out which ABI we are using.
17175 echo 'int i;' > conftest.$ac_ext
17176 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17177 (eval $ac_compile) 2>&5
17179 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17180 test $ac_status = 0; }; then
17181 case `/usr/bin/file conftest.o` in
17184 x86_64-*kfreebsd*-gnu)
17185 LD="${LD-ld} -m elf_i386_fbsd
"
17188 case `/usr/bin/file conftest.o` in
17190 LD="${LD-ld} -m elf32_x86_64
"
17193 LD="${LD-ld} -m elf_i386
"
17197 powerpc64le-*linux*)
17198 LD="${LD-ld} -m elf32lppclinux
"
17201 LD="${LD-ld} -m elf32ppclinux
"
17204 LD="${LD-ld} -m elf_s390
"
17207 LD="${LD-ld} -m elf32_sparc
"
17213 x86_64-*kfreebsd*-gnu)
17214 LD="${LD-ld} -m elf_x86_64_fbsd
"
17217 LD="${LD-ld} -m elf_x86_64
"
17220 LD="${LD-ld} -m elf64lppc
"
17223 LD="${LD-ld} -m elf64ppc
"
17225 s390*-*linux*|s390*-*tpf*)
17226 LD="${LD-ld} -m elf64_s390
"
17229 LD="${LD-ld} -m elf64_sparc
"
17239 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17240 SAVE_CFLAGS="$CFLAGS"
17241 CFLAGS="$CFLAGS -belf"
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
17243 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
17244 if ${lt_cv_cc_needs_belf+:} false; then :
17245 $as_echo_n "(cached
) " >&6
17248 ac_cpp='$CPP $CPPFLAGS'
17249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17264 if ac_fn_c_try_link "$LINENO"; then :
17265 lt_cv_cc_needs_belf=yes
17267 lt_cv_cc_needs_belf=no
17269 rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17272 ac_cpp='$CPP $CPPFLAGS'
17273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
17279 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17280 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17281 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17282 CFLAGS="$SAVE_CFLAGS"
17286 # Find out which ABI we are using.
17287 echo 'int i;' > conftest.$ac_ext
17288 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17289 (eval $ac_compile) 2>&5
17291 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17292 test $ac_status = 0; }; then
17293 case `/usr/bin/file conftest.o` in
17295 case $lt_cv_prog_gnu_ld in
17296 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
17298 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17310 need_locks="$enable_libtool_lock"
17314 rhapsody* | darwin*)
17315 if test -n "$ac_tool_prefix"; then
17316 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
17317 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17319 $as_echo_n "checking
for $ac_word...
" >&6; }
17320 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17321 $as_echo_n "(cached
) " >&6
17323 if test -n "$DSYMUTIL"; then
17324 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17327 for as_dir in $PATH
17330 test -z "$as_dir" && as_dir=.
17331 for ac_exec_ext in '' $ac_executable_extensions; do
17332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17333 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
17334 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17343 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17344 if test -n "$DSYMUTIL"; then
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
17346 $as_echo "$DSYMUTIL" >&6; }
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17349 $as_echo "no
" >&6; }
17354 if test -z "$ac_cv_prog_DSYMUTIL"; then
17355 ac_ct_DSYMUTIL=$DSYMUTIL
17356 # Extract the first word of "dsymutil
", so it can be a program name with args.
17357 set dummy dsymutil; ac_word=$2
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17359 $as_echo_n "checking
for $ac_word...
" >&6; }
17360 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17361 $as_echo_n "(cached
) " >&6
17363 if test -n "$ac_ct_DSYMUTIL"; then
17364 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17367 for as_dir in $PATH
17370 test -z "$as_dir" && as_dir=.
17371 for ac_exec_ext in '' $ac_executable_extensions; do
17372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17373 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
17374 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17383 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17384 if test -n "$ac_ct_DSYMUTIL"; then
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
17386 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17389 $as_echo "no
" >&6; }
17392 if test "x
$ac_ct_DSYMUTIL" = x; then
17395 case $cross_compiling:$ac_tool_warned in
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17398 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17399 ac_tool_warned=yes ;;
17401 DSYMUTIL=$ac_ct_DSYMUTIL
17404 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17407 if test -n "$ac_tool_prefix"; then
17408 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
17409 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17411 $as_echo_n "checking
for $ac_word...
" >&6; }
17412 if ${ac_cv_prog_NMEDIT+:} false; then :
17413 $as_echo_n "(cached
) " >&6
17415 if test -n "$NMEDIT"; then
17416 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17419 for as_dir in $PATH
17422 test -z "$as_dir" && as_dir=.
17423 for ac_exec_ext in '' $ac_executable_extensions; do
17424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17425 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
17426 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17435 NMEDIT=$ac_cv_prog_NMEDIT
17436 if test -n "$NMEDIT"; then
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
17438 $as_echo "$NMEDIT" >&6; }
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17441 $as_echo "no
" >&6; }
17446 if test -z "$ac_cv_prog_NMEDIT"; then
17447 ac_ct_NMEDIT=$NMEDIT
17448 # Extract the first word of "nmedit
", so it can be a program name with args.
17449 set dummy nmedit; ac_word=$2
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17451 $as_echo_n "checking
for $ac_word...
" >&6; }
17452 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17453 $as_echo_n "(cached
) " >&6
17455 if test -n "$ac_ct_NMEDIT"; then
17456 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17459 for as_dir in $PATH
17462 test -z "$as_dir" && as_dir=.
17463 for ac_exec_ext in '' $ac_executable_extensions; do
17464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17465 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
17466 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17475 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17476 if test -n "$ac_ct_NMEDIT"; then
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
17478 $as_echo "$ac_ct_NMEDIT" >&6; }
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17481 $as_echo "no
" >&6; }
17484 if test "x
$ac_ct_NMEDIT" = x; then
17487 case $cross_compiling:$ac_tool_warned in
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17490 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17491 ac_tool_warned=yes ;;
17493 NMEDIT=$ac_ct_NMEDIT
17496 NMEDIT="$ac_cv_prog_NMEDIT"
17499 if test -n "$ac_tool_prefix"; then
17500 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
17501 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17503 $as_echo_n "checking
for $ac_word...
" >&6; }
17504 if ${ac_cv_prog_LIPO+:} false; then :
17505 $as_echo_n "(cached
) " >&6
17507 if test -n "$LIPO"; then
17508 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17511 for as_dir in $PATH
17514 test -z "$as_dir" && as_dir=.
17515 for ac_exec_ext in '' $ac_executable_extensions; do
17516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17517 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
17518 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17527 LIPO=$ac_cv_prog_LIPO
17528 if test -n "$LIPO"; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
17530 $as_echo "$LIPO" >&6; }
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17533 $as_echo "no
" >&6; }
17538 if test -z "$ac_cv_prog_LIPO"; then
17540 # Extract the first word of "lipo
", so it can be a program name with args.
17541 set dummy lipo; ac_word=$2
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17543 $as_echo_n "checking
for $ac_word...
" >&6; }
17544 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17545 $as_echo_n "(cached
) " >&6
17547 if test -n "$ac_ct_LIPO"; then
17548 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17551 for as_dir in $PATH
17554 test -z "$as_dir" && as_dir=.
17555 for ac_exec_ext in '' $ac_executable_extensions; do
17556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17557 ac_cv_prog_ac_ct_LIPO="lipo
"
17558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17567 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17568 if test -n "$ac_ct_LIPO"; then
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
17570 $as_echo "$ac_ct_LIPO" >&6; }
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17573 $as_echo "no
" >&6; }
17576 if test "x
$ac_ct_LIPO" = x; then
17579 case $cross_compiling:$ac_tool_warned in
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17582 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17583 ac_tool_warned=yes ;;
17588 LIPO="$ac_cv_prog_LIPO"
17591 if test -n "$ac_tool_prefix"; then
17592 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
17593 set dummy ${ac_tool_prefix}otool; ac_word=$2
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17595 $as_echo_n "checking
for $ac_word...
" >&6; }
17596 if ${ac_cv_prog_OTOOL+:} false; then :
17597 $as_echo_n "(cached
) " >&6
17599 if test -n "$OTOOL"; then
17600 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17603 for as_dir in $PATH
17606 test -z "$as_dir" && as_dir=.
17607 for ac_exec_ext in '' $ac_executable_extensions; do
17608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17609 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
17610 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17619 OTOOL=$ac_cv_prog_OTOOL
17620 if test -n "$OTOOL"; then
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
17622 $as_echo "$OTOOL" >&6; }
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17625 $as_echo "no
" >&6; }
17630 if test -z "$ac_cv_prog_OTOOL"; then
17632 # Extract the first word of "otool
", so it can be a program name with args.
17633 set dummy otool; ac_word=$2
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17635 $as_echo_n "checking
for $ac_word...
" >&6; }
17636 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17637 $as_echo_n "(cached
) " >&6
17639 if test -n "$ac_ct_OTOOL"; then
17640 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17643 for as_dir in $PATH
17646 test -z "$as_dir" && as_dir=.
17647 for ac_exec_ext in '' $ac_executable_extensions; do
17648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17649 ac_cv_prog_ac_ct_OTOOL="otool
"
17650 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17659 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17660 if test -n "$ac_ct_OTOOL"; then
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
17662 $as_echo "$ac_ct_OTOOL" >&6; }
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17665 $as_echo "no
" >&6; }
17668 if test "x
$ac_ct_OTOOL" = x; then
17671 case $cross_compiling:$ac_tool_warned in
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17674 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17675 ac_tool_warned=yes ;;
17680 OTOOL="$ac_cv_prog_OTOOL"
17683 if test -n "$ac_tool_prefix"; then
17684 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
17685 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17687 $as_echo_n "checking
for $ac_word...
" >&6; }
17688 if ${ac_cv_prog_OTOOL64+:} false; then :
17689 $as_echo_n "(cached
) " >&6
17691 if test -n "$OTOOL64"; then
17692 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17695 for as_dir in $PATH
17698 test -z "$as_dir" && as_dir=.
17699 for ac_exec_ext in '' $ac_executable_extensions; do
17700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17701 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
17702 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17711 OTOOL64=$ac_cv_prog_OTOOL64
17712 if test -n "$OTOOL64"; then
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
17714 $as_echo "$OTOOL64" >&6; }
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17717 $as_echo "no
" >&6; }
17722 if test -z "$ac_cv_prog_OTOOL64"; then
17723 ac_ct_OTOOL64=$OTOOL64
17724 # Extract the first word of "otool64
", so it can be a program name with args.
17725 set dummy otool64; ac_word=$2
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17727 $as_echo_n "checking
for $ac_word...
" >&6; }
17728 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17729 $as_echo_n "(cached
) " >&6
17731 if test -n "$ac_ct_OTOOL64"; then
17732 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17735 for as_dir in $PATH
17738 test -z "$as_dir" && as_dir=.
17739 for ac_exec_ext in '' $ac_executable_extensions; do
17740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17741 ac_cv_prog_ac_ct_OTOOL64="otool64
"
17742 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17751 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17752 if test -n "$ac_ct_OTOOL64"; then
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
17754 $as_echo "$ac_ct_OTOOL64" >&6; }
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17757 $as_echo "no
" >&6; }
17760 if test "x
$ac_ct_OTOOL64" = x; then
17763 case $cross_compiling:$ac_tool_warned in
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17766 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17767 ac_tool_warned=yes ;;
17769 OTOOL64=$ac_ct_OTOOL64
17772 OTOOL64="$ac_cv_prog_OTOOL64"
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
17802 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
17803 if ${lt_cv_apple_cc_single_mod+:} false; then :
17804 $as_echo_n "(cached
) " >&6
17806 lt_cv_apple_cc_single_mod=no
17807 if test -z "${LT_MULTI_MODULE}"; then
17808 # By default we will add the -single_module flag. You can override
17809 # by either setting the environment variable LT_MULTI_MODULE
17810 # non-empty at configure time, or by adding -multi_module to the
17812 rm -rf libconftest.dylib*
17813 echo "int foo
(void
){return 1;}" > conftest.c
17814 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17815 -dynamiclib -Wl,-single_module conftest.c
" >&5
17816 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17817 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17819 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17820 lt_cv_apple_cc_single_mod=yes
17822 cat conftest.err >&5
17824 rm -rf libconftest.dylib*
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
17829 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
17831 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
17832 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17833 $as_echo_n "(cached
) " >&6
17835 lt_cv_ld_exported_symbols_list=no
17836 save_LDFLAGS=$LDFLAGS
17837 echo "_main
" > conftest.sym
17838 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17850 if ac_fn_c_try_link "$LINENO"; then :
17851 lt_cv_ld_exported_symbols_list=yes
17853 lt_cv_ld_exported_symbols_list=no
17855 rm -f core conftest.err conftest.$ac_objext \
17856 conftest$ac_exeext conftest.$ac_ext
17857 LDFLAGS="$save_LDFLAGS"
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
17861 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
17863 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
17864 if ${lt_cv_ld_force_load+:} false; then :
17865 $as_echo_n "(cached
) " >&6
17867 lt_cv_ld_force_load=no
17868 cat > conftest.c << _LT_EOF
17869 int forced_loaded() { return 2;}
17871 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
17872 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17873 echo "$AR cru libconftest.a conftest.o
" >&5
17874 $AR cru libconftest.a conftest.o 2>&5
17875 cat > conftest.c << _LT_EOF
17876 int main() { return 0;}
17878 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
17879 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17881 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17882 lt_cv_ld_force_load=yes
17884 cat conftest.err >&5
17886 rm -f conftest.err libconftest.a conftest conftest.c
17887 rm -rf conftest.dSYM
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
17891 $as_echo "$lt_cv_ld_force_load" >&6; }
17892 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
17893 # build without first building modern cctools / linker.
17894 case $host_cpu-$host_os in
17895 *-rhapsody* | *-darwin1.[012])
17896 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17898 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17900 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
17901 # deployment target is forced to an earlier version.
17902 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
17903 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
17906 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17913 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17914 _lt_dar_single_mod='$single_module'
17916 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17917 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17919 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
17921 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
17922 _lt_dsymutil='~$DSYMUTIL $lib || :'
17930 for ac_header in dlfcn.h
17932 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
17933 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
17934 cat >>confdefs.h <<_ACEOF
17935 #define HAVE_DLFCN_H 1
17952 enable_win32_dll=no
17955 # Check whether --enable-shared was given.
17956 if test "${enable_shared+set}" = set; then :
17957 enableval=$enable_shared; p=${PACKAGE-default}
17959 yes) enable_shared=yes ;;
17960 no) enable_shared=no ;;
17963 # Look at the argument we got. We use all the common list separators.
17964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17965 for pkg in $enableval; do
17967 if test "X
$pkg" = "X
$p"; then
17986 # Check whether --enable-static was given.
17987 if test "${enable_static+set}" = set; then :
17988 enableval=$enable_static; p=${PACKAGE-default}
17990 yes) enable_static=yes ;;
17991 no) enable_static=no ;;
17994 # Look at the argument we got. We use all the common list separators.
17995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17996 for pkg in $enableval; do
17998 if test "X
$pkg" = "X
$p"; then
18018 # Check whether --with-pic was given.
18019 if test "${with_pic+set}" = set; then :
18020 withval=$with_pic; pic_mode="$withval"
18026 test -z "$pic_mode" && pic_mode=default
18034 # Check whether --enable-fast-install was given.
18035 if test "${enable_fast_install+set}" = set; then :
18036 enableval=$enable_fast_install; p=${PACKAGE-default}
18038 yes) enable_fast_install=yes ;;
18039 no) enable_fast_install=no ;;
18041 enable_fast_install=no
18042 # Look at the argument we got. We use all the common list separators.
18043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18044 for pkg in $enableval; do
18046 if test "X
$pkg" = "X
$p"; then
18047 enable_fast_install=yes
18054 enable_fast_install=yes
18067 # This can be used to rebuild libtool when needed
18068 LIBTOOL_DEPS="$ltmain"
18070 # Always use our own libtool.
18071 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18098 test -z "$LN_S" && LN_S="ln -s"
18113 if test -n "${ZSH_VERSION+set}" ; then
18114 setopt NO_GLOB_SUBST
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
18118 $as_echo_n "checking
for objdir...
" >&6; }
18119 if ${lt_cv_objdir+:} false; then :
18120 $as_echo_n "(cached
) " >&6
18122 rm -f .libs 2>/dev/null
18123 mkdir .libs 2>/dev/null
18124 if test -d .libs; then
18127 # MS-DOS does not allow filenames that begin with a dot.
18130 rmdir .libs 2>/dev/null
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
18133 $as_echo "$lt_cv_objdir" >&6; }
18134 objdir=$lt_cv_objdir
18140 cat >>confdefs.h <<_ACEOF
18141 #define LT_OBJDIR "$lt_cv_objdir/"
18149 # AIX sometimes has problems with the GCC collect2 program. For some
18150 # reason, if we set the COLLECT_NAMES environment variable, the problems
18151 # vanish in a puff of smoke.
18152 if test "X
${COLLECT_NAMES+set}" != Xset; then
18154 export COLLECT_NAMES
18159 # Global variables:
18161 can_build_shared=yes
18163 # All known linkers require a `.a' archive for static linking (except MSVC,
18164 # which needs '.lib').
18167 with_gnu_ld="$lt_cv_prog_gnu_ld"
18170 old_CFLAGS="$CFLAGS"
18172 # Set sane defaults for various variables
18173 test -z "$CC" && CC=cc
18174 test -z "$LTCC" && LTCC=$CC
18175 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18176 test -z "$LD" && LD=ld
18177 test -z "$ac_objext" && ac_objext=o
18179 for cc_temp in $compiler""; do
18181 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18182 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18187 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
18190 # Only perform the check for file, if the check method requires it
18191 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18192 case $deplibs_check_method in
18194 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
18196 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
18197 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18198 $as_echo_n "(cached
) " >&6
18202 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18205 lt_save_MAGIC_CMD="$MAGIC_CMD"
18206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18207 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
18208 for ac_dir in $ac_dummy; do
18210 test -z "$ac_dir" && ac_dir=.
18211 if test -f $ac_dir/${ac_tool_prefix}file; then
18212 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18213 if test -n "$file_magic_test_file"; then
18214 case $deplibs_check_method in
18216 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
18217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18218 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18219 $EGREP "$file_magic_regex" > /dev/null; then
18224 *** Warning: the command libtool uses to detect shared libraries,
18225 *** $file_magic_cmd, produces output that libtool cannot recognize.
18226 *** The result is that libtool may fail to recognize shared libraries
18227 *** as such. This will affect the creation of libtool libraries that
18228 *** depend on shared libraries, but programs linked with such libtool
18229 *** libraries will work regardless of this problem. Nevertheless, you
18230 *** may want to report the problem to your system manager and/or to
18231 *** bug-libtool@gnu.org
18241 MAGIC_CMD="$lt_save_MAGIC_CMD"
18246 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18247 if test -n "$MAGIC_CMD"; then
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
18249 $as_echo "$MAGIC_CMD" >&6; }
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18252 $as_echo "no
" >&6; }
18259 if test -z "$lt_cv_path_MAGIC_CMD"; then
18260 if test -n "$ac_tool_prefix"; then
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
18262 $as_echo_n "checking
for file...
" >&6; }
18263 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18264 $as_echo_n "(cached
) " >&6
18268 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18271 lt_save_MAGIC_CMD="$MAGIC_CMD"
18272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18273 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
18274 for ac_dir in $ac_dummy; do
18276 test -z "$ac_dir" && ac_dir=.
18277 if test -f $ac_dir/file; then
18278 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18279 if test -n "$file_magic_test_file"; then
18280 case $deplibs_check_method in
18282 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
18283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18284 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18285 $EGREP "$file_magic_regex" > /dev/null; then
18290 *** Warning: the command libtool uses to detect shared libraries,
18291 *** $file_magic_cmd, produces output that libtool cannot recognize.
18292 *** The result is that libtool may fail to recognize shared libraries
18293 *** as such. This will affect the creation of libtool libraries that
18294 *** depend on shared libraries, but programs linked with such libtool
18295 *** libraries will work regardless of this problem. Nevertheless, you
18296 *** may want to report the problem to your system manager and/or to
18297 *** bug-libtool@gnu.org
18307 MAGIC_CMD="$lt_save_MAGIC_CMD"
18312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18313 if test -n "$MAGIC_CMD"; then
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
18315 $as_echo "$MAGIC_CMD" >&6; }
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18318 $as_echo "no
" >&6; }
18331 # Use C for the default configuration in the libtool script
18335 ac_cpp='$CPP $CPPFLAGS'
18336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18341 # Source file extension for C test sources.
18344 # Object file extension for compiled C test sources.
18348 # Code to be used in simple compile tests
18349 lt_simple_compile_test_code="int some_variable
= 0;"
18351 # Code to be used in simple link tests
18352 lt_simple_link_test_code='int main(){return(0);}'
18360 # If no C compiler was specified, use CC.
18363 # If no C compiler flags were specified, use CFLAGS.
18364 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18366 # Allow CC to be a program name with arguments.
18369 # Save the default compiler, since it gets overwritten when the other
18370 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18371 compiler_DEFAULT=$CC
18373 # save warnings/boilerplate of simple test code
18374 ac_outfile=conftest.$ac_objext
18375 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18377 _lt_compiler_boilerplate=`cat conftest.err`
18380 ac_outfile=conftest.$ac_objext
18381 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18383 _lt_linker_boilerplate=`cat conftest.err`
18388 ## There is no encapsulation within the following macros, do not change
18389 ## the running order or otherwise move them around unless you know exactly
18390 ## what you are doing...
18391 if test -n "$compiler"; then
18393 lt_prog_compiler_no_builtin_flag=
18395 if test "$GCC" = yes; then
18396 case $cc_basename in
18398 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18400 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
18404 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
18405 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18406 $as_echo_n "(cached
) " >&6
18408 lt_cv_prog_compiler_rtti_exceptions=no
18409 ac_outfile=conftest.$ac_objext
18410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18411 lt_compiler_flag="-fno-rtti -fno-exceptions"
18412 # Insert the option either (1) after the last *FLAGS variable, or
18413 # (2) before a word containing "conftest.
", or (3) at the end.
18414 # Note that $ac_compile itself does not contain backslashes and begins
18415 # with a dollar sign (not a hyphen), so the echo should work correctly.
18416 # The option is referenced via a variable to avoid confusing sed.
18417 lt_compile=`echo "$ac_compile" | $SED \
18418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18420 -e 's:$: $lt_compiler_flag:'`
18421 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18422 (eval "$lt_compile" 2>conftest.err)
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18426 if (exit $ac_status) && test -s "$ac_outfile"; then
18427 # The compiler can only warn and ignore the option if not recognized
18428 # So say no if there are warnings other than the usual output.
18429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18431 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18432 lt_cv_prog_compiler_rtti_exceptions=yes
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
18439 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18441 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18442 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18454 lt_prog_compiler_wl=
18455 lt_prog_compiler_pic=
18456 lt_prog_compiler_static=
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
18459 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
18461 if test "$GCC" = yes; then
18462 lt_prog_compiler_wl='-Wl,'
18463 lt_prog_compiler_static='-static'
18467 # All AIX code is PIC.
18468 if test "$host_cpu" = ia64; then
18469 # AIX 5 now supports IA64 processor
18470 lt_prog_compiler_static='-Bstatic'
18472 lt_prog_compiler_pic='-fPIC'
18478 # see comment about AmigaOS4 .so support
18479 lt_prog_compiler_pic='-fPIC'
18482 # FIXME: we need at least 68020 code to build shared libraries, but
18483 # adding the `-m68020' flag to GCC prevents building anything better,
18485 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18490 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18491 # PIC is the default for these OSes.
18494 mingw* | cygwin* | pw32* | os2* | cegcc*)
18495 # This hack is so that the source file can tell whether it is being
18496 # built for inclusion in a dll (and should export symbols for example).
18497 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18498 # (--disable-auto-import) libraries
18499 lt_prog_compiler_pic='-DDLL_EXPORT'
18502 darwin* | rhapsody*)
18503 # PIC is the default on this platform
18504 # Common symbols not allowed in MH_DYLIB files
18505 lt_prog_compiler_pic='-fno-common'
18509 # PIC is the default for Haiku.
18510 # The "-static" flag exists, but is broken.
18511 lt_prog_compiler_static=
18515 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18516 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18517 # sets the default TLS model and affects inlining.
18523 lt_prog_compiler_pic='-fPIC'
18529 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18530 # Instead, we relocate shared libraries at runtime.
18534 # Just because we use GCC doesn't mean we suddenly get shared libraries
18535 # on systems that don't support them.
18536 lt_prog_compiler_can_build_shared=no
18541 # QNX uses GNU C++, but need to define -shared option too, otherwise
18542 # it will coredump.
18543 lt_prog_compiler_pic='-fPIC -shared'
18547 if test -d /usr/nec; then
18548 lt_prog_compiler_pic=-Kconform_pic
18553 lt_prog_compiler_pic='-fPIC'
18557 case $cc_basename in
18558 nvcc*) # Cuda Compiler Driver 2.2
18559 lt_prog_compiler_wl='-Xlinker '
18560 lt_prog_compiler_pic='-Xcompiler -fPIC'
18564 # PORTME Check for flag to pass linker flags through the system compiler.
18567 lt_prog_compiler_wl='-Wl,'
18568 if test "$host_cpu" = ia64; then
18569 # AIX 5 now supports IA64 processor
18570 lt_prog_compiler_static='-Bstatic'
18572 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18576 mingw* | cygwin* | pw32* | os2* | cegcc*)
18577 # This hack is so that the source file can tell whether it is being
18578 # built for inclusion in a dll (and should export symbols for example).
18579 lt_prog_compiler_pic='-DDLL_EXPORT'
18582 hpux9* | hpux10* | hpux11*)
18583 lt_prog_compiler_wl='-Wl,'
18584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18585 # not for PA HP-UX.
18591 lt_prog_compiler_pic='+Z'
18594 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18595 lt_prog_compiler_static='${wl}-a ${wl}archive'
18598 irix5* | irix6* | nonstopux*)
18599 lt_prog_compiler_wl='-Wl,'
18600 # PIC (with -KPIC) is the default.
18601 lt_prog_compiler_static='-non_shared'
18604 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18605 case $cc_basename in
18606 # old Intel for x86_64 which still supported -KPIC.
18608 lt_prog_compiler_wl='-Wl,'
18609 lt_prog_compiler_pic='-KPIC'
18610 lt_prog_compiler_static='-static'
18612 # icc used to be incompatible with GCC.
18613 # ICC 10 doesn't accept -KPIC any more.
18615 lt_prog_compiler_wl='-Wl,'
18616 lt_prog_compiler_pic='-fPIC'
18617 lt_prog_compiler_static='-static'
18619 # Lahey Fortran 8.1.
18621 lt_prog_compiler_wl='-Wl,'
18622 lt_prog_compiler_pic='--shared'
18623 lt_prog_compiler_static='--static'
18625 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18626 # Portland Group compilers (*not* the Pentium gcc compiler,
18627 # which looks to be a dead project)
18628 lt_prog_compiler_wl='-Wl,'
18629 lt_prog_compiler_pic='-fpic'
18630 lt_prog_compiler_static='-Bstatic'
18633 lt_prog_compiler_wl='-Wl,'
18634 # All Alpha code is PIC.
18635 lt_prog_compiler_static='-non_shared'
18637 xl* | bgxl* | bgf* | mpixl*)
18638 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18639 lt_prog_compiler_wl='-Wl,'
18640 lt_prog_compiler_pic='-qpic'
18641 lt_prog_compiler_static='-qstaticlink'
18644 case `$CC -V 2>&1 | sed 5q` in
18645 *Sun\ F* | *Sun*Fortran*)
18646 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18647 lt_prog_compiler_pic='-KPIC'
18648 lt_prog_compiler_static='-Bstatic'
18649 lt_prog_compiler_wl=''
18653 lt_prog_compiler_pic='-KPIC'
18654 lt_prog_compiler_static='-Bstatic'
18655 lt_prog_compiler_wl='-Wl,'
18663 lt_prog_compiler_pic='-KPIC'
18664 lt_prog_compiler_static='-Bstatic'
18668 # QNX uses GNU C++, but need to define -shared option too, otherwise
18669 # it will coredump.
18670 lt_prog_compiler_pic='-fPIC -shared'
18673 osf3* | osf4* | osf5*)
18674 lt_prog_compiler_wl='-Wl,'
18675 # All OSF/1 code is PIC.
18676 lt_prog_compiler_static='-non_shared'
18680 lt_prog_compiler_static='-non_shared'
18684 lt_prog_compiler_pic='-KPIC'
18685 lt_prog_compiler_static='-Bstatic'
18686 case $cc_basename in
18687 f77* | f90* | f95*)
18688 lt_prog_compiler_wl='-Qoption ld ';;
18690 lt_prog_compiler_wl='-Wl,';;
18695 lt_prog_compiler_wl='-Qoption ld '
18696 lt_prog_compiler_pic='-PIC'
18697 lt_prog_compiler_static='-Bstatic'
18700 sysv4 | sysv4.2uw2* | sysv4.3*)
18701 lt_prog_compiler_wl='-Wl,'
18702 lt_prog_compiler_pic='-KPIC'
18703 lt_prog_compiler_static='-Bstatic'
18707 if test -d /usr/nec ;then
18708 lt_prog_compiler_pic='-Kconform_pic'
18709 lt_prog_compiler_static='-Bstatic'
18713 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18714 lt_prog_compiler_wl='-Wl,'
18715 lt_prog_compiler_pic='-KPIC'
18716 lt_prog_compiler_static='-Bstatic'
18720 lt_prog_compiler_wl='-Wl,'
18721 lt_prog_compiler_can_build_shared=no
18725 lt_prog_compiler_pic='-pic'
18726 lt_prog_compiler_static='-Bstatic'
18730 lt_prog_compiler_can_build_shared=no
18736 # For platforms which do not support PIC, -DPIC is meaningless:
18738 lt_prog_compiler_pic=
18741 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
18745 $as_echo "$lt_prog_compiler_pic" >&6; }
18753 # Check to make sure the PIC flag actually works.
18755 if test -n "$lt_prog_compiler_pic"; then
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
18757 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
18758 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18759 $as_echo_n "(cached
) " >&6
18761 lt_cv_prog_compiler_pic_works=no
18762 ac_outfile=conftest.$ac_objext
18763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18765 # Insert the option either (1) after the last *FLAGS variable, or
18766 # (2) before a word containing "conftest.
", or (3) at the end.
18767 # Note that $ac_compile itself does not contain backslashes and begins
18768 # with a dollar sign (not a hyphen), so the echo should work correctly.
18769 # The option is referenced via a variable to avoid confusing sed.
18770 lt_compile=`echo "$ac_compile" | $SED \
18771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18773 -e 's:$: $lt_compiler_flag:'`
18774 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18775 (eval "$lt_compile" 2>conftest.err)
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18779 if (exit $ac_status) && test -s "$ac_outfile"; then
18780 # The compiler can only warn and ignore the option if not recognized
18781 # So say no if there are warnings other than the usual output.
18782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18785 lt_cv_prog_compiler_pic_works=yes
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
18792 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18794 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18795 case $lt_prog_compiler_pic in
18797 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18800 lt_prog_compiler_pic=
18801 lt_prog_compiler_can_build_shared=no
18812 # Check to make sure the static flag actually works.
18814 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
18816 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
18817 if ${lt_cv_prog_compiler_static_works+:} false; then :
18818 $as_echo_n "(cached
) " >&6
18820 lt_cv_prog_compiler_static_works=no
18821 save_LDFLAGS="$LDFLAGS"
18822 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18823 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18824 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18825 # The linker can only warn and ignore the option if not recognized
18826 # So say no if there are warnings
18827 if test -s conftest.err; then
18828 # Append any errors to the config.log.
18829 cat conftest.err 1>&5
18830 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18832 if diff conftest.exp conftest.er2 >/dev/null; then
18833 lt_cv_prog_compiler_static_works=yes
18836 lt_cv_prog_compiler_static_works=yes
18840 LDFLAGS="$save_LDFLAGS"
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
18844 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18846 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18849 lt_prog_compiler_static=
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
18859 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
18860 if ${lt_cv_prog_compiler_c_o+:} false; then :
18861 $as_echo_n "(cached
) " >&6
18863 lt_cv_prog_compiler_c_o=no
18864 $RM -r conftest 2>/dev/null
18868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18870 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
18871 # Insert the option either (1) after the last *FLAGS variable, or
18872 # (2) before a word containing "conftest.
", or (3) at the end.
18873 # Note that $ac_compile itself does not contain backslashes and begins
18874 # with a dollar sign (not a hyphen), so the echo should work correctly.
18875 lt_compile=`echo "$ac_compile" | $SED \
18876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18878 -e 's:$: $lt_compiler_flag:'`
18879 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18880 (eval "$lt_compile" 2>out/conftest.err)
18882 cat out/conftest.err >&5
18883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18886 # The compiler can only warn and ignore the option if not recognized
18887 # So say no if there are warnings
18888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18891 lt_cv_prog_compiler_c_o=yes
18896 # SGI C++ compiler will create directory out/ii_files/ for
18897 # template instantiation
18898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18899 $RM out/* && rmdir out
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
18906 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
18914 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
18915 if ${lt_cv_prog_compiler_c_o+:} false; then :
18916 $as_echo_n "(cached
) " >&6
18918 lt_cv_prog_compiler_c_o=no
18919 $RM -r conftest 2>/dev/null
18923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18925 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
18926 # Insert the option either (1) after the last *FLAGS variable, or
18927 # (2) before a word containing "conftest.
", or (3) at the end.
18928 # Note that $ac_compile itself does not contain backslashes and begins
18929 # with a dollar sign (not a hyphen), so the echo should work correctly.
18930 lt_compile=`echo "$ac_compile" | $SED \
18931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18933 -e 's:$: $lt_compiler_flag:'`
18934 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18935 (eval "$lt_compile" 2>out/conftest.err)
18937 cat out/conftest.err >&5
18938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18939 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18941 # The compiler can only warn and ignore the option if not recognized
18942 # So say no if there are warnings
18943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18944 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18945 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18946 lt_cv_prog_compiler_c_o=yes
18951 # SGI C++ compiler will create directory out/ii_files/ for
18952 # template instantiation
18953 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18954 $RM out/* && rmdir out
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
18961 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18966 hard_links="nottested
"
18967 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
18968 # do not overwrite the value of need_locks provided by the user
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
18970 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
18973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18975 ln conftest.a conftest.b 2>&5 || hard_links=no
18976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
18978 $as_echo "$hard_links" >&6; }
18979 if test "$hard_links" = no; then
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
18981 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
18994 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
18997 allow_undefined_flag=
18998 always_export_symbols=no
19000 archive_expsym_cmds=
19001 compiler_needs_object=no
19002 enable_shared_with_static_runtimes=no
19003 export_dynamic_flag_spec=
19004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19005 hardcode_automatic=no
19007 hardcode_direct_absolute=no
19008 hardcode_libdir_flag_spec=
19009 hardcode_libdir_flag_spec_ld=
19010 hardcode_libdir_separator=
19011 hardcode_minus_L=no
19012 hardcode_shlibpath_var=unsupported
19014 link_all_deplibs=unknown
19016 module_expsym_cmds=
19017 old_archive_from_new_cmds=
19018 old_archive_from_expsyms_cmds=
19019 thread_safe_flag_spec=
19020 whole_archive_flag_spec=
19021 # include_expsyms should be a list of space-separated symbols to be *always*
19022 # included in the symbol list
19024 # exclude_expsyms can be an extended regexp of symbols to exclude
19025 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19026 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19027 # as well as any symbol that contains `d'.
19028 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19029 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19030 # platforms (ab)use it in PIC code, but their linkers get confused if
19031 # the symbol is explicitly referenced. Since portable code cannot
19032 # rely on this symbol name, it's probably fine to never include it in
19033 # preloaded symbol tables.
19034 # Exclude shared library initialization/finalization symbols.
19035 extract_expsyms_cmds=
19038 cygwin* | mingw* | pw32* | cegcc*)
19039 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19040 # When not using gcc, we currently assume that we are using
19041 # Microsoft Visual C++.
19042 if test "$GCC" != yes; then
19047 # we just hope/assume this is gcc and not c89 (= MSVC++)
19057 # On some targets, GNU ld is compatible enough with the native linker
19058 # that we're better off using the native interface for both.
19059 lt_use_gnu_ld_interface=no
19060 if test "$with_gnu_ld" = yes; then
19063 # The AIX port of GNU ld has always aspired to compatibility
19064 # with the native linker. However, as the warning in the GNU ld
19065 # block says, versions before 2.19.5* couldn't really create working
19066 # shared libraries, regardless of the interface used.
19067 case `$LD -v 2>&1` in
19068 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19069 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19070 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19072 lt_use_gnu_ld_interface=yes
19077 lt_use_gnu_ld_interface=yes
19082 if test "$lt_use_gnu_ld_interface" = yes; then
19083 # If archive_cmds runs LD, not CC, wlarc should be empty
19086 # Set some defaults for GNU ld with shared library support. These
19087 # are reset later if shared libraries are not supported. Putting them
19088 # here allows them to be overridden if necessary.
19089 runpath_var=LD_RUN_PATH
19090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19091 export_dynamic_flag_spec='${wl}--export-dynamic'
19092 # ancient GNU ld didn't support --whole-archive et. al.
19093 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19094 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19096 whole_archive_flag_spec=
19098 supports_anon_versioning=no
19099 case `$LD -v 2>&1` in
19100 *GNU\ gold*) supports_anon_versioning=yes ;;
19101 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19102 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19103 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19104 *\ 2.11.*) ;; # other 2.11 versions
19105 *) supports_anon_versioning=yes ;;
19108 # See if GNU ld supports shared libraries.
19111 # On AIX/PPC, the GNU linker is very broken
19112 if test "$host_cpu" != ia64; then
19116 *** Warning: the GNU linker, at least up to release 2.19, is reported
19117 *** to be unable to reliably create shared libraries on AIX.
19118 *** Therefore, libtool is disabling shared libraries support. If you
19119 *** really care for shared libraries, you may want to install binutils
19120 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19121 *** You will then need to restart the configuration process.
19130 # see comment about AmigaOS4 .so support
19131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19132 archive_expsym_cmds=''
19135 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)'
19136 hardcode_libdir_flag_spec
='-L$libdir'
19137 hardcode_minus_L
=yes
19143 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19144 allow_undefined_flag
=unsupported
19145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19146 # support --undefined. This deserves some investigation. FIXME
19147 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19153 cygwin
* | mingw
* | pw32
* | cegcc
*)
19154 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19155 # as there is no search path for DLLs.
19156 hardcode_libdir_flag_spec
='-L$libdir'
19157 export_dynamic_flag_spec
='${wl}--export-all-symbols'
19158 allow_undefined_flag
=unsupported
19159 always_export_symbols
=no
19160 enable_shared_with_static_runtimes
=yes
19161 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19163 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19164 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19165 # If the export-symbols file already is a .def file (1st line
19166 # is EXPORTS), use it as is; otherwise, prepend...
19167 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19168 cp $export_symbols $output_objdir/$soname.def;
19170 echo EXPORTS > $output_objdir/$soname.def;
19171 cat $export_symbols >> $output_objdir/$soname.def;
19173 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19180 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19181 link_all_deplibs
=yes
19186 hardcode_shlibpath_var
=no
19187 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
19188 export_dynamic_flag_spec
='${wl}-E'
19189 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19190 # Instead, shared libraries are loaded at an image base (0x10000000 by
19191 # default) and relocated if they conflict, which is a slow very memory
19192 # consuming and fragmenting process. To avoid this, we pick a random,
19193 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19194 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19195 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19196 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'
19199 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
19201 if test "$host_os" = linux-dietlibc
; then
19202 case $cc_basename in
19203 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
19206 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
19207 && test "$tmp_diet" = no
19209 tmp_addflag
=' $pic_flag'
19210 tmp_sharedflag
='-shared'
19211 case $cc_basename,$host_cpu in
19212 pgcc
*) # Portland Group C compiler
19213 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'
19214 tmp_addflag
=' $pic_flag'
19216 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
19217 # Portland Group f77 and f90 compilers
19218 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'
19219 tmp_addflag
=' $pic_flag -Mnomain' ;;
19220 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
19221 tmp_addflag
=' -i_dynamic' ;;
19222 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
19223 tmp_addflag
=' -i_dynamic -nofor_main' ;;
19224 ifc
* | ifort
*) # Intel Fortran compiler
19225 tmp_addflag
=' -nofor_main' ;;
19226 lf95
*) # Lahey Fortran 8.1
19227 whole_archive_flag_spec
=
19228 tmp_sharedflag
='--shared' ;;
19229 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19230 tmp_sharedflag
='-qmkshrobj'
19232 nvcc
*) # Cuda Compiler Driver 2.2
19233 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'
19234 compiler_needs_object
=yes
19237 case `$CC -V 2>&1 | sed 5q` in
19238 *Sun\ C
*) # Sun C 5.9
19239 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'
19240 compiler_needs_object
=yes
19241 tmp_sharedflag
='-G' ;;
19242 *Sun\ F
*) # Sun Fortran 8.3
19243 tmp_sharedflag
='-G' ;;
19245 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19247 if test "x$supports_anon_versioning" = xyes
; then
19248 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
19249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19250 echo "local: *; };" >> $output_objdir/$libname.ver~
19251 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19254 case $cc_basename in
19255 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
19256 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19257 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
19258 hardcode_libdir_flag_spec
=
19259 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
19260 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19261 if test "x$supports_anon_versioning" = xyes
; then
19262 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
19263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19264 echo "local: *; };" >> $output_objdir/$libname.ver~
19265 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19275 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19276 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19279 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19280 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19285 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
19289 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19290 *** create shared libraries on Solaris systems. Therefore, libtool
19291 *** is disabling shared libraries support. We urge you to upgrade GNU
19292 *** binutils to release 2.9.1 or newer. Another option is to modify
19293 *** your PATH or compiler configuration so that the native linker is
19294 *** used, and then restart.
19297 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19298 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19299 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19305 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
19306 case `$LD -v 2>&1` in
19307 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
19311 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19312 *** reliably create shared libraries on SCO systems. Therefore, libtool
19313 *** is disabling shared libraries support. We urge you to upgrade GNU
19314 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19315 *** your PATH or compiler configuration so that the native linker is
19316 *** used, and then restart.
19321 # For security reasons, it is highly recommended that you always
19322 # use absolute paths for naming shared libraries, and exclude the
19323 # DT_RUNPATH tag from executables and libraries. But doing so
19324 # requires that you compile everything twice, which is a pain.
19325 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19326 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19327 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19328 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19337 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19339 hardcode_direct
=yes
19340 hardcode_shlibpath_var
=no
19344 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19345 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19353 if test "$ld_shlibs" = no
; then
19355 hardcode_libdir_flag_spec
=
19356 export_dynamic_flag_spec
=
19357 whole_archive_flag_spec
=
19360 # PORTME fill in a description of your system's linker (not GNU ld)
19363 allow_undefined_flag
=unsupported
19364 always_export_symbols
=yes
19365 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'
19366 # Note: this linker hardcodes the directories in LIBPATH if there
19367 # are no directories specified by -L.
19368 hardcode_minus_L
=yes
19369 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19370 # Neither direct hardcoding nor static linking is supported with a
19372 hardcode_direct
=unsupported
19377 if test "$host_cpu" = ia64
; then
19378 # On IA64, the linker does run time linking by default, so we don't
19379 # have to do anything special.
19380 aix_use_runtimelinking
=no
19381 exp_sym_flag
='-Bexport'
19384 # If we're using GNU nm, then we don't want the "-C" option.
19385 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19386 # Also, AIX nm treats weak defined symbols like other global
19387 # defined symbols, whereas GNU nm marks them as "W".
19388 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19389 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19391 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19393 aix_use_runtimelinking
=no
19395 # Test if we are trying to use run time linking or normal
19396 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19397 # need to do runtime linking.
19398 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19399 for ld_flag
in $LDFLAGS; do
19400 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
19401 aix_use_runtimelinking
=yes
19408 exp_sym_flag
='-bexport'
19409 no_entry_flag
='-bnoentry'
19412 # When large executables or shared objects are built, AIX ld can
19413 # have problems creating the table of contents. If linking a library
19414 # or program results in "error TOC overflow" add -mminimal-toc to
19415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19419 hardcode_direct
=yes
19420 hardcode_direct_absolute
=yes
19421 hardcode_libdir_separator
=':'
19422 link_all_deplibs
=yes
19423 file_list_spec
='${wl}-f,'
19425 if test "$GCC" = yes; then
19426 case $host_os in aix4.
[012]|aix4.
[012].
*)
19427 # We only want to do this on AIX 4.2 and lower, the check
19428 # below for broken collect2 doesn't work under 4.3+
19429 collect2name
=`${CC} -print-prog-name=collect2`
19430 if test -f "$collect2name" &&
19431 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19433 # We have reworked collect2
19436 # We have old collect2
19437 hardcode_direct
=unsupported
19438 # It fails to find uninstalled libraries when the uninstalled
19439 # path is not listed in the libpath. Setting hardcode_minus_L
19440 # to unsupported forces relinking
19441 hardcode_minus_L
=yes
19442 hardcode_libdir_flag_spec
='-L$libdir'
19443 hardcode_libdir_separator
=
19447 shared_flag
='-shared'
19448 if test "$aix_use_runtimelinking" = yes; then
19449 shared_flag
="$shared_flag "'${wl}-G'
19453 if test "$host_cpu" = ia64
; then
19454 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19455 # chokes on -Wl,-G. The following line is correct:
19458 if test "$aix_use_runtimelinking" = yes; then
19459 shared_flag
='${wl}-G'
19461 shared_flag
='${wl}-bM:SRE'
19466 export_dynamic_flag_spec
='${wl}-bexpall'
19467 # It seems that -bexpall does not export symbols beginning with
19468 # underscore (_), so it is better to generate a list of symbols to export.
19469 always_export_symbols
=yes
19470 if test "$aix_use_runtimelinking" = yes; then
19471 # Warning - without using the other runtime loading flags (-brtl),
19472 # -berok will link without error, but may produce a broken library.
19473 allow_undefined_flag
='-berok'
19474 # Determine the default libpath from the value encoded in an
19475 # empty executable.
19476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19477 /* end confdefs.h. */
19487 if ac_fn_c_try_link
"$LINENO"; then :
19489 lt_aix_libpath_sed
='
19490 /Import File Strings/,/^$/ {
19496 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19497 # Check for a 64-bit object if we didn't find anything.
19498 if test -z "$aix_libpath"; then
19499 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19502 rm -f core conftest.err conftest.
$ac_objext \
19503 conftest
$ac_exeext conftest.
$ac_ext
19504 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19506 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
19507 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19509 if test "$host_cpu" = ia64
; then
19510 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
19511 allow_undefined_flag
="-z nodefs"
19512 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"
19514 # Determine the default libpath from the value encoded in an
19515 # empty executable.
19516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19527 if ac_fn_c_try_link
"$LINENO"; then :
19529 lt_aix_libpath_sed
='
19530 /Import File Strings/,/^$/ {
19536 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19537 # Check for a 64-bit object if we didn't find anything.
19538 if test -z "$aix_libpath"; then
19539 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19542 rm -f core conftest.err conftest.
$ac_objext \
19543 conftest
$ac_exeext conftest.
$ac_ext
19544 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19546 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
19547 # Warning - without using the other run time loading flags,
19548 # -berok will link without error, but may produce a broken library.
19549 no_undefined_flag
=' ${wl}-bernotok'
19550 allow_undefined_flag
=' ${wl}-berok'
19551 if test "$with_gnu_ld" = yes; then
19552 # We only use this code for GNU lds that support --whole-archive.
19553 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19555 # Exported symbols can be pulled into shared objects from archives
19556 whole_archive_flag_spec
='$convenience'
19558 archive_cmds_need_lc
=yes
19559 # This is similar to how AIX traditionally builds its shared libraries.
19560 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19568 # see comment about AmigaOS4 .so support
19569 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19570 archive_expsym_cmds
=''
19573 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)'
19574 hardcode_libdir_flag_spec
='-L$libdir'
19575 hardcode_minus_L
=yes
19581 export_dynamic_flag_spec
=-rdynamic
19584 cygwin
* | mingw
* | pw32
* | cegcc
*)
19585 # When not using gcc, we currently assume that we are using
19586 # Microsoft Visual C++.
19587 # hardcode_libdir_flag_spec is actually meaningless, as there is
19588 # no search path for DLLs.
19589 hardcode_libdir_flag_spec
=' '
19590 allow_undefined_flag
=unsupported
19591 # Tell ltmain to make .lib files, not .a files.
19593 # Tell ltmain to make .dll files, not .so files.
19595 # FIXME: Setting linknames here is a bad hack.
19596 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19597 # The linker will automatically build a .lib file if we build a DLL.
19598 old_archive_from_new_cmds
='true'
19599 # FIXME: Should let the user specify the lib program.
19600 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
19601 fix_srcfile_path
='`cygpath -w "$srcfile"`'
19602 enable_shared_with_static_runtimes
=yes
19605 darwin
* | rhapsody
*)
19609 # Publish an arg to allow the user to select that Darwin host (and target)
19610 # libraries should be given install-names like @rpath/libfoo.dylib. This
19611 # requires that the user of the library then adds an 'rpath' to the DSO that
19613 # NOTE: there are defaults below, for systems that support rpaths. The person
19614 # configuring can override the defaults for any system version that supports
19615 # them - they are, however, forced off for system versions without support.
19616 # Check whether --enable-darwin-at-rpath was given.
19617 if test "${enable_darwin_at_rpath+set}" = set; then :
19618 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19619 # This is not supported before macOS 10.5 / Darwin9.
19620 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19621 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19623 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19624 enable_darwin_at_rpath
=no
19629 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19630 # As above, before 10.5 / Darwin9 this does not work.
19631 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
19632 enable_darwin_at_rpath
=no
19635 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19636 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19637 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19638 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19640 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19641 enable_darwin_at_rpath
=yes
19643 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19644 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19651 archive_cmds_need_lc
=no
19653 hardcode_automatic
=yes
19654 hardcode_shlibpath_var
=unsupported
19655 if test "$lt_cv_ld_force_load" = "yes"; then
19656 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\"`'
19658 whole_archive_flag_spec
=''
19660 link_all_deplibs
=yes
19661 allow_undefined_flag
="$_lt_dar_allow_undefined"
19662 case $cc_basename in
19663 ifort
*) _lt_dar_can_shared
=yes ;;
19664 *) _lt_dar_can_shared
=$GCC ;;
19666 if test "$_lt_dar_can_shared" = "yes"; then
19667 output_verbose_link_cmd
=func_echo_all
19668 _lt_install_name
='\$rpath/\$soname'
19669 if test "x$enable_darwin_at_rpath" = "xyes"; then
19670 _lt_install_name
='@rpath/\$soname'
19672 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19673 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19674 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
19675 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}"
19684 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19685 hardcode_libdir_flag_spec
='-L$libdir'
19686 hardcode_shlibpath_var
=no
19689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19690 # support. Future versions do this automatically, but an explicit c++rt0.o
19691 # does not break anything, and helps significantly (at the cost of a little
19694 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19695 hardcode_libdir_flag_spec
='-R$libdir'
19696 hardcode_direct
=yes
19697 hardcode_shlibpath_var
=no
19700 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19702 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19703 hardcode_direct
=yes
19704 hardcode_minus_L
=yes
19705 hardcode_shlibpath_var
=no
19708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19709 freebsd
* | dragonfly
*)
19710 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19711 hardcode_libdir_flag_spec
='-R$libdir'
19712 hardcode_direct
=yes
19713 hardcode_shlibpath_var
=no
19717 if test "$GCC" = yes; then
19718 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19720 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19722 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19723 hardcode_libdir_separator
=:
19724 hardcode_direct
=yes
19726 # hardcode_minus_L: Not really in the search PATH,
19727 # but as the default location of the library.
19728 hardcode_minus_L
=yes
19729 export_dynamic_flag_spec
='${wl}-E'
19733 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
19734 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19736 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19738 if test "$with_gnu_ld" = no
; then
19739 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19740 hardcode_libdir_flag_spec_ld
='+b $libdir'
19741 hardcode_libdir_separator
=:
19742 hardcode_direct
=yes
19743 hardcode_direct_absolute
=yes
19744 export_dynamic_flag_spec
='${wl}-E'
19745 # hardcode_minus_L: Not really in the search PATH,
19746 # but as the default location of the library.
19747 hardcode_minus_L
=yes
19752 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
19755 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19758 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19761 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19767 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19770 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19774 # Older versions of the 11.00 compiler do not understand -b yet
19775 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19777 $as_echo_n "checking if $CC understands -b... " >&6; }
19778 if ${lt_cv_prog_compiler__b+:} false
; then :
19779 $as_echo_n "(cached) " >&6
19781 lt_cv_prog_compiler__b
=no
19782 save_LDFLAGS
="$LDFLAGS"
19783 LDFLAGS
="$LDFLAGS -b"
19784 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19785 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19786 # The linker can only warn and ignore the option if not recognized
19787 # So say no if there are warnings
19788 if test -s conftest.err
; then
19789 # Append any errors to the config.log.
19790 cat conftest.err
1>&5
19791 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19792 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19793 if diff conftest.exp conftest.er2
>/dev
/null
; then
19794 lt_cv_prog_compiler__b
=yes
19797 lt_cv_prog_compiler__b
=yes
19801 LDFLAGS
="$save_LDFLAGS"
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19805 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19807 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
19808 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19810 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19816 if test "$with_gnu_ld" = no
; then
19817 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19818 hardcode_libdir_separator
=:
19823 hardcode_shlibpath_var
=no
19826 hardcode_direct
=yes
19827 hardcode_direct_absolute
=yes
19828 export_dynamic_flag_spec
='${wl}-E'
19830 # hardcode_minus_L: Not really in the search PATH,
19831 # but as the default location of the library.
19832 hardcode_minus_L
=yes
19838 irix5
* | irix6
* | nonstopux
*)
19839 if test "$GCC" = yes; then
19840 archive_cmds
='$CC -shared $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'
19841 # Try to use the -exported_symbol ld option, if it does not
19842 # work, assume that -exports_file does not work either and
19843 # implicitly export all symbols.
19844 save_LDFLAGS
="$LDFLAGS"
19845 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19847 /* end confdefs.h. */
19850 if ac_fn_c_try_link
"$LINENO"; then :
19851 archive_expsym_cmds
='$CC -shared $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'
19854 rm -f core conftest.err conftest.
$ac_objext \
19855 conftest
$ac_exeext conftest.
$ac_ext
19856 LDFLAGS
="$save_LDFLAGS"
19858 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'
19859 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'
19861 archive_cmds_need_lc
='no'
19862 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19863 hardcode_libdir_separator
=:
19865 link_all_deplibs
=yes
19869 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19870 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19872 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19874 hardcode_libdir_flag_spec
='-R$libdir'
19875 hardcode_direct
=yes
19876 hardcode_shlibpath_var
=no
19880 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19881 hardcode_direct
=yes
19882 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19883 hardcode_libdir_separator
=:
19884 hardcode_shlibpath_var
=no
19891 if test -f /usr
/libexec
/ld.so
; then
19892 hardcode_direct
=yes
19893 hardcode_shlibpath_var
=no
19894 hardcode_direct_absolute
=yes
19895 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19896 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19897 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19898 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
19899 export_dynamic_flag_spec
='${wl}-E'
19902 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
19903 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19904 hardcode_libdir_flag_spec
='-R$libdir'
19907 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19908 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
19918 hardcode_libdir_flag_spec
='-L$libdir'
19919 hardcode_minus_L
=yes
19920 allow_undefined_flag
=unsupported
19921 archive_cmds
='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19922 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19926 if test "$GCC" = yes; then
19927 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
19928 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'
19930 allow_undefined_flag
=' -expect_unresolved \*'
19931 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'
19933 archive_cmds_need_lc
='no'
19934 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19935 hardcode_libdir_separator
=:
19938 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
19939 if test "$GCC" = yes; then
19940 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
19941 archive_cmds
='$CC -shared${allow_undefined_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'
19942 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19944 allow_undefined_flag
=' -expect_unresolved \*'
19945 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'
19946 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~
19947 $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'
19949 # Both c and cxx compiler support -rpath directly
19950 hardcode_libdir_flag_spec
='-rpath $libdir'
19952 archive_cmds_need_lc
='no'
19953 hardcode_libdir_separator
=:
19957 no_undefined_flag
=' -z defs'
19958 if test "$GCC" = yes; then
19960 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19961 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19962 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19964 case `$CC -V 2>&1` in
19967 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19968 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19973 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19974 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19975 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19979 hardcode_libdir_flag_spec
='-R$libdir'
19980 hardcode_shlibpath_var
=no
19982 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19984 # The compiler driver will combine and reorder linker options,
19985 # but understands `-z linker_flag'. GCC discards it without `$wl',
19986 # but is careful enough not to reorder.
19987 # Supported since Solaris 2.6 (maybe 2.5.1?)
19988 if test "$GCC" = yes; then
19989 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19991 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
19995 link_all_deplibs
=yes
19999 if test "x$host_vendor" = xsequent
; then
20000 # Use $CC to link under sequent, because it throws in some extra .o
20001 # files that make .init and .fini sections work.
20002 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20004 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20006 hardcode_libdir_flag_spec
='-L$libdir'
20007 hardcode_direct
=yes
20008 hardcode_minus_L
=yes
20009 hardcode_shlibpath_var
=no
20013 case $host_vendor in
20015 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20016 hardcode_direct
=yes # is this really true???
20019 ## LD is ld it makes a PLAMLIB
20020 ## CC just makes a GrossModule.
20021 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20022 reload_cmds
='$CC -r -o $output$reload_objs'
20026 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20027 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
20030 runpath_var
='LD_RUN_PATH'
20031 hardcode_shlibpath_var
=no
20035 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20036 hardcode_shlibpath_var
=no
20037 export_dynamic_flag_spec
='-Bexport'
20041 if test -d /usr
/nec
; then
20042 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20043 hardcode_shlibpath_var
=no
20044 runpath_var
=LD_RUN_PATH
20045 hardcode_runpath_var
=yes
20050 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20051 no_undefined_flag
='${wl}-z,text'
20052 archive_cmds_need_lc
=no
20053 hardcode_shlibpath_var
=no
20054 runpath_var
='LD_RUN_PATH'
20056 if test "$GCC" = yes; then
20057 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20058 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20060 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20061 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20065 sysv5
* | sco3.2v5
* | sco5v6
*)
20066 # Note: We can NOT use -z defs as we might desire, because we do not
20067 # link with -lc, and that would cause any symbols used from libc to
20068 # always be unresolved, which means just about no library would
20069 # ever link correctly. If we're not using GNU ld we use -z text
20070 # though, which does catch some bad symbols but isn't as heavy-handed
20072 no_undefined_flag
='${wl}-z,text'
20073 allow_undefined_flag
='${wl}-z,nodefs'
20074 archive_cmds_need_lc
=no
20075 hardcode_shlibpath_var
=no
20076 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
20077 hardcode_libdir_separator
=':'
20078 link_all_deplibs
=yes
20079 export_dynamic_flag_spec
='${wl}-Bexport'
20080 runpath_var
='LD_RUN_PATH'
20082 if test "$GCC" = yes; then
20083 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20084 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20086 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20087 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20092 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20093 hardcode_libdir_flag_spec
='-L$libdir'
20094 hardcode_shlibpath_var
=no
20102 if test x
$host_vendor = xsni
; then
20104 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
20105 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20112 $as_echo "$ld_shlibs" >&6; }
20113 test "$ld_shlibs" = no
&& can_build_shared
=no
20115 with_gnu_ld
=$with_gnu_ld
20132 # Do we need to explicitly link libc?
20134 case "x$archive_cmds_need_lc" in
20136 # Assume -lc should be added
20137 archive_cmds_need_lc
=yes
20139 if test "$enable_shared" = yes && test "$GCC" = yes; then
20140 case $archive_cmds in
20142 # FIXME: we may have to deal with multi-command sequences.
20145 # Test whether the compiler implicitly links with -lc since on some
20146 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20147 # to ld, don't add -lc before -lgcc.
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20149 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20150 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
20151 $as_echo_n "(cached) " >&6
20154 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20157 (eval $ac_compile) 2>&5
20159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20160 test $ac_status = 0; } 2>conftest.err
; then
20163 libobjs
=conftest.
$ac_objext
20165 wl
=$lt_prog_compiler_wl
20166 pic_flag
=$lt_prog_compiler_pic
20172 lt_save_allow_undefined_flag
=$allow_undefined_flag
20173 allow_undefined_flag
=
20174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20175 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20178 test $ac_status = 0; }
20180 lt_cv_archive_cmds_need_lc
=no
20182 lt_cv_archive_cmds_need_lc
=yes
20184 allow_undefined_flag
=$lt_save_allow_undefined_flag
20186 cat conftest.err
1>&5
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20192 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20193 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20357 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20359 if test "$GCC" = yes; then
20361 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
20362 *) lt_awk_arg
="/^libraries:/" ;;
20365 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
20366 *) lt_sed_strip_eq
="s,=/,/,g" ;;
20368 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20369 case $lt_search_path_spec in
20371 # if the path contains ";" then we assume it to be the separator
20372 # otherwise default to the standard path separator (i.e. ":") - it is
20373 # assumed that no part of a normal pathname contains ";" but that should
20374 # okay in the real world where ";" in dirpaths is itself problematic.
20375 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20378 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20381 # Ok, now we have the path, separated by spaces, we can step through it
20382 # and add multilib dir if necessary.
20383 lt_tmp_lt_search_path_spec
=
20384 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20385 for lt_sys_path
in $lt_search_path_spec; do
20386 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20387 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20389 test -d "$lt_sys_path" && \
20390 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
20393 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20394 BEGIN {RS=" "; FS="/|\n";} {
20397 for (lt_i = NF; lt_i > 0; lt_i--) {
20398 if ($lt_i != "" && $lt_i != ".") {
20399 if ($lt_i == "..") {
20402 if (lt_count == 0) {
20403 lt_foo="/" $lt_i lt_foo;
20410 if (lt_foo != "") { lt_freq[lt_foo]++; }
20411 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20413 # AWK program above erroneously prepends '/' to C:/dos/paths
20416 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
20417 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20419 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20421 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20423 library_names_spec
=
20424 libname_spec
='lib$name'
20428 postuninstall_cmds
=
20432 shlibpath_overrides_runpath
=unknown
20434 dynamic_linker
="$host_os ld.so"
20435 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20436 need_lib_prefix
=unknown
20437 hardcode_into_libs
=no
20439 # when you set need_version to no, make sure it does not cause -set_version
20440 # flags to be left without arguments
20441 need_version
=unknown
20446 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20447 shlibpath_var
=LIBPATH
20449 # AIX 3 has no versioning support, so we append a major version to the name.
20450 soname_spec
='${libname}${release}${shared_ext}$major'
20457 hardcode_into_libs
=yes
20458 if test "$host_cpu" = ia64
; then
20459 # AIX 5 supports IA64
20460 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20461 shlibpath_var
=LD_LIBRARY_PATH
20463 # With GCC up to 2.95.x, collect2 would create an import file
20464 # for dependence libraries. The import file would start with
20465 # the line `#! .'. This would cause the generated library to
20466 # depend on `.', always an invalid library. This was fixed in
20467 # development snapshots of GCC prior to 3.0.
20469 aix4 | aix4.
[01] | aix4.
[01].
*)
20470 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20472 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20475 can_build_shared
=no
20479 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20480 # soname into executable. Probably we can add versioning support to
20481 # collect2, so additional links can be useful in future.
20482 if test "$aix_use_runtimelinking" = yes; then
20483 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20484 # instead of lib<name>.a to let people know that these are not
20485 # typical AIX shared libraries.
20486 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20488 # We preserve .a as extension for shared libraries through AIX4.2
20489 # and later when we are not doing run time linking.
20490 library_names_spec
='${libname}${release}.a $libname.a'
20491 soname_spec
='${libname}${release}${shared_ext}$major'
20493 shlibpath_var
=LIBPATH
20500 # Since July 2007 AmigaOS4 officially supports .so libraries.
20501 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505 library_names_spec
='$libname.ixlibrary $libname.a'
20506 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20507 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
20513 library_names_spec
='${libname}${shared_ext}'
20514 dynamic_linker
="$host_os ld.so"
20515 shlibpath_var
=LIBRARY_PATH
20521 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20522 soname_spec
='${libname}${release}${shared_ext}$major'
20523 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20524 shlibpath_var
=LD_LIBRARY_PATH
20525 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20526 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20527 # the default ld.so.conf also contains /usr/contrib/lib and
20528 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20529 # libtool to hard-code these into programs
20532 cygwin
* | mingw
* | pw32
* | cegcc
*)
20533 version_type
=windows
20538 case $GCC,$host_os in
20539 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20540 library_names_spec
='$libname.dll.a'
20541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20542 postinstall_cmds
='base_file=`basename \${file}`~
20543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20544 dldir=$destdir/`dirname \$dlpath`~
20545 test -d \$dldir || mkdir -p \$dldir~
20546 $install_prog $dir/$dlname \$dldir/$dlname~
20547 chmod a+x \$dldir/$dlname~
20548 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20549 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20551 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20552 dlpath=$dir/\$dldll~
20554 shlibpath_overrides_runpath
=yes
20558 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20559 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20561 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
20564 # MinGW DLLs use traditional 'lib' prefix
20565 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20568 # pw32 DLLs use 'pw' prefix rather than 'lib'
20569 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20575 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20578 dynamic_linker
='Win32 ld.exe'
20579 # FIXME: first we should search . and the directory the executable is in
20583 darwin
* | rhapsody
*)
20584 dynamic_linker
="$host_os dyld"
20585 version_type
=darwin
20588 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20589 soname_spec
='${libname}${release}${major}$shared_ext'
20590 shlibpath_overrides_runpath
=yes
20591 shlibpath_var
=DYLD_LIBRARY_PATH
20592 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20594 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
20595 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20602 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20603 soname_spec
='${libname}${release}${shared_ext}$major'
20604 shlibpath_var
=LD_LIBRARY_PATH
20607 freebsd
* | dragonfly
*)
20608 # DragonFly does not have aout. When/if they implement a new
20609 # versioning mechanism, adjust this.
20610 if test -x /usr
/bin
/objformat
; then
20611 objformat
=`/usr/bin/objformat`
20614 freebsd
[23].
*) objformat
=aout
;;
20615 *) objformat
=elf
;;
20618 version_type
=freebsd-
$objformat
20619 case $version_type in
20621 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20626 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20630 shlibpath_var
=LD_LIBRARY_PATH
20633 shlibpath_overrides_runpath
=yes
20635 freebsd3.
[01]* | freebsdelf3.
[01]*)
20636 shlibpath_overrides_runpath
=yes
20637 hardcode_into_libs
=yes
20639 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20640 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20641 shlibpath_overrides_runpath
=no
20642 hardcode_into_libs
=yes
20644 *) # from 4.6 on, and DragonFly
20645 shlibpath_overrides_runpath
=yes
20646 hardcode_into_libs
=yes
20655 dynamic_linker
="$host_os runtime_loader"
20656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20657 soname_spec
='${libname}${release}${shared_ext}$major'
20658 shlibpath_var
=LIBRARY_PATH
20659 shlibpath_overrides_runpath
=yes
20660 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20661 hardcode_into_libs
=yes
20664 hpux9
* | hpux10
* | hpux11
*)
20665 # Give a soname corresponding to the major version so that dld.sl refuses to
20666 # link against other versions.
20673 hardcode_into_libs
=yes
20674 dynamic_linker
="$host_os dld.so"
20675 shlibpath_var
=LD_LIBRARY_PATH
20676 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20678 soname_spec
='${libname}${release}${shared_ext}$major'
20679 if test "X$HPUX_IA64_MODE" = X32
; then
20680 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20682 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20684 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20688 hardcode_into_libs
=yes
20689 dynamic_linker
="$host_os dld.sl"
20690 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20691 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 soname_spec
='${libname}${release}${shared_ext}$major'
20694 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20695 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20699 dynamic_linker
="$host_os dld.sl"
20700 shlibpath_var
=SHLIB_PATH
20701 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20702 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20703 soname_spec
='${libname}${release}${shared_ext}$major'
20706 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20707 postinstall_cmds
='chmod 555 $lib'
20708 # or fails outright, so override atomically:
20709 install_override_mode
=555
20716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20717 soname_spec
='${libname}${release}${shared_ext}$major'
20718 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20719 shlibpath_var
=LD_LIBRARY_PATH
20720 shlibpath_overrides_runpath
=no
20721 hardcode_into_libs
=yes
20724 irix5
* | irix6
* | nonstopux
*)
20726 nonstopux
*) version_type
=nonstopux
;;
20728 if test "$lt_cv_prog_gnu_ld" = yes; then
20736 soname_spec
='${libname}${release}${shared_ext}$major'
20737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20739 irix5
* | nonstopux
*)
20740 libsuff
= shlibsuff
=
20743 case $LD in # libtool.m4 will add one of these switches to LD
20744 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20745 libsuff
= shlibsuff
= libmagic
=32-bit;;
20746 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20747 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20748 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20749 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20750 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20754 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20755 shlibpath_overrides_runpath
=no
20756 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20757 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20758 hardcode_into_libs
=yes
20761 # No shared lib support for Linux oldld, aout, or coff.
20762 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20766 # This must be Linux ELF.
20768 # uclinux* changes (here and below) have been submitted to the libtool
20769 # project, but have not yet been accepted: they are GCC-local changes
20770 # for the time being. (See
20771 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20772 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
20776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20777 soname_spec
='${libname}${release}${shared_ext}$major'
20778 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20779 shlibpath_var
=LD_LIBRARY_PATH
20780 shlibpath_overrides_runpath
=no
20782 # Some binutils ld are patched to set DT_RUNPATH
20783 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
20784 $as_echo_n "(cached) " >&6
20786 lt_cv_shlibpath_overrides_runpath
=no
20787 save_LDFLAGS
=$LDFLAGS
20788 save_libdir
=$libdir
20789 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20790 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h. */
20802 if ac_fn_c_try_link
"$LINENO"; then :
20803 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20804 lt_cv_shlibpath_overrides_runpath
=yes
20807 rm -f core conftest.err conftest.
$ac_objext \
20808 conftest
$ac_exeext conftest.
$ac_ext
20809 LDFLAGS
=$save_LDFLAGS
20810 libdir
=$save_libdir
20814 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20816 # This implies no fast_install, which is unacceptable.
20817 # Some rework will be needed to allow for fast_install
20818 # before this can be enabled.
20819 hardcode_into_libs
=yes
20821 # Append ld.so.conf contents to the search path
20822 if test -f /etc
/ld.so.conf
; then
20823 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' ' '`
20824 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20827 # We used to test for /lib/ld.so.1 and disable shared libraries on
20828 # powerpc, because MkLinux only supported shared libraries with the
20829 # GNU dynamic linker. Since this was broken with cross compilers,
20830 # most powerpc-linux boxes support dynamic linking these days and
20831 # people can always --disable-shared, the test was removed, and we
20832 # assume the GNU/Linux dynamic linker is in use.
20833 dynamic_linker
='GNU/Linux ld.so'
20840 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20842 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20843 dynamic_linker
='NetBSD (a.out) ld.so'
20845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20846 soname_spec
='${libname}${release}${shared_ext}$major'
20847 dynamic_linker
='NetBSD ld.elf_so'
20849 shlibpath_var
=LD_LIBRARY_PATH
20850 shlibpath_overrides_runpath
=yes
20851 hardcode_into_libs
=yes
20856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20857 shlibpath_var
=LD_LIBRARY_PATH
20858 shlibpath_overrides_runpath
=yes
20865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20866 soname_spec
='${libname}${release}${shared_ext}$major'
20867 shlibpath_var
=LD_LIBRARY_PATH
20868 shlibpath_overrides_runpath
=no
20869 hardcode_into_libs
=yes
20870 dynamic_linker
='ldqnx.so'
20875 sys_lib_dlsearch_path_spec
="/usr/lib"
20877 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20879 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20880 *) need_version
=no
;;
20882 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20883 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20884 shlibpath_var
=LD_LIBRARY_PATH
20885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20887 openbsd2.
[89] | openbsd2.
[89].
*)
20888 shlibpath_overrides_runpath
=no
20891 shlibpath_overrides_runpath
=yes
20895 shlibpath_overrides_runpath
=yes
20900 libname_spec
='$name'
20903 library_names_spec
='$libname${shared_ext} $libname.a'
20904 dynamic_linker
='OS/2 ld.exe'
20905 shlibpath_var
=LIBPATH
20908 osf3
* | osf4
* | osf5
*)
20912 soname_spec
='${libname}${release}${shared_ext}$major'
20913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20914 shlibpath_var
=LD_LIBRARY_PATH
20915 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20916 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20928 soname_spec
='${libname}${release}${shared_ext}$major'
20929 shlibpath_var
=LD_LIBRARY_PATH
20930 shlibpath_overrides_runpath
=yes
20931 hardcode_into_libs
=yes
20932 # ldd complains unless libraries are executable
20933 postinstall_cmds
='chmod +x $lib'
20938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20939 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20940 shlibpath_var
=LD_LIBRARY_PATH
20941 shlibpath_overrides_runpath
=yes
20942 if test "$with_gnu_ld" = yes; then
20950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20951 soname_spec
='${libname}${release}${shared_ext}$major'
20952 shlibpath_var
=LD_LIBRARY_PATH
20953 case $host_vendor in
20955 shlibpath_overrides_runpath
=no
20957 runpath_var
=LD_RUN_PATH
20965 shlibpath_overrides_runpath
=no
20966 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20972 if test -d /usr
/nec
;then
20974 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20975 soname_spec
='$libname${shared_ext}.$major'
20976 shlibpath_var
=LD_LIBRARY_PATH
20980 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20981 version_type
=freebsd-elf
20984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20985 soname_spec
='${libname}${release}${shared_ext}$major'
20986 shlibpath_var
=LD_LIBRARY_PATH
20987 shlibpath_overrides_runpath
=yes
20988 hardcode_into_libs
=yes
20989 if test "$with_gnu_ld" = yes; then
20990 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20992 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20995 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20999 sys_lib_dlsearch_path_spec
='/usr/lib'
21003 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21008 shlibpath_var
=LD_LIBRARY_PATH
21009 shlibpath_overrides_runpath
=no
21010 hardcode_into_libs
=yes
21015 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21016 soname_spec
='${libname}${release}${shared_ext}$major'
21017 shlibpath_var
=LD_LIBRARY_PATH
21020 # Shared libraries for VwWorks, >= 7 only at this stage
21021 # and (fpic) still incompatible with "large" code models
21022 # in a few configurations. Only for RTP mode in any case,
21023 # and upon explicit request at configure time.
21026 case ${with_multisubdir}-${enable_shared} in
21033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21034 soname_spec
='${libname}${release}${shared_ext}$major'
21035 dynamic_linker
="$host_os module_loader"
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21044 $as_echo "$dynamic_linker" >&6; }
21045 test "$dynamic_linker" = no
&& can_build_shared
=no
21047 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21048 if test "$GCC" = yes; then
21049 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21052 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21053 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21055 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21056 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21151 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21153 if test -n "$hardcode_libdir_flag_spec" ||
21154 test -n "$runpath_var" ||
21155 test "X$hardcode_automatic" = "Xyes" ; then
21157 # We can hardcode non-existent directories.
21158 if test "$hardcode_direct" != no
&&
21159 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21160 # have to relink, otherwise we might link with an installed library
21161 # when we should be linking with a yet-to-be-installed one
21162 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21163 test "$hardcode_minus_L" != no
; then
21164 # Linking always hardcodes the temporary library directory.
21165 hardcode_action
=relink
21167 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21168 hardcode_action
=immediate
21171 # We cannot hardcode anything, or else we can only hardcode existing
21173 hardcode_action
=unsupported
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21176 $as_echo "$hardcode_action" >&6; }
21178 if test "$hardcode_action" = relink ||
21179 test "$inherit_rpath" = yes; then
21180 # Fast installation is not supported
21181 enable_fast_install
=no
21182 elif test "$shlibpath_overrides_runpath" = yes ||
21183 test "$enable_shared" = no
; then
21184 # Fast installation is not necessary
21185 enable_fast_install
=needless
21193 if test "x$enable_dlopen" != xyes
; then
21194 enable_dlopen
=unknown
21195 enable_dlopen_self
=unknown
21196 enable_dlopen_self_static
=unknown
21203 lt_cv_dlopen
="load_add_on"
21205 lt_cv_dlopen_self
=yes
21208 mingw
* | pw32
* | cegcc
*)
21209 lt_cv_dlopen
="LoadLibrary"
21214 lt_cv_dlopen
="dlopen"
21219 # if libdl is installed we need to link against it
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21221 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21222 if ${ac_cv_lib_dl_dlopen+:} false
; then :
21223 $as_echo_n "(cached) " >&6
21225 ac_check_lib_save_LIBS
=$LIBS
21227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21228 /* end confdefs.h. */
21230 /* Override any GCC internal prototype to avoid an error.
21231 Use char because int might match the return type of a GCC
21232 builtin and then its argument prototype would still apply. */
21245 if ac_fn_c_try_link
"$LINENO"; then :
21246 ac_cv_lib_dl_dlopen
=yes
21248 ac_cv_lib_dl_dlopen
=no
21250 rm -f core conftest.err conftest.
$ac_objext \
21251 conftest
$ac_exeext conftest.
$ac_ext
21252 LIBS
=$ac_check_lib_save_LIBS
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21255 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21256 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
21257 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
21260 lt_cv_dlopen
="dyld"
21262 lt_cv_dlopen_self
=yes
21269 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
21270 if test "x$ac_cv_func_shl_load" = xyes
; then :
21271 lt_cv_dlopen
="shl_load"
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21274 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21275 if ${ac_cv_lib_dld_shl_load+:} false
; then :
21276 $as_echo_n "(cached) " >&6
21278 ac_check_lib_save_LIBS
=$LIBS
21280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21281 /* end confdefs.h. */
21283 /* Override any GCC internal prototype to avoid an error.
21284 Use char because int might match the return type of a GCC
21285 builtin and then its argument prototype would still apply. */
21293 return shl_load ();
21298 if ac_fn_c_try_link
"$LINENO"; then :
21299 ac_cv_lib_dld_shl_load
=yes
21301 ac_cv_lib_dld_shl_load
=no
21303 rm -f core conftest.err conftest.
$ac_objext \
21304 conftest
$ac_exeext conftest.
$ac_ext
21305 LIBS
=$ac_check_lib_save_LIBS
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21308 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21309 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
21310 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
21312 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
21313 if test "x$ac_cv_func_dlopen" = xyes
; then :
21314 lt_cv_dlopen
="dlopen"
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21317 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21318 if ${ac_cv_lib_dl_dlopen+:} false
; then :
21319 $as_echo_n "(cached) " >&6
21321 ac_check_lib_save_LIBS
=$LIBS
21323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h. */
21326 /* Override any GCC internal prototype to avoid an error.
21327 Use char because int might match the return type of a GCC
21328 builtin and then its argument prototype would still apply. */
21341 if ac_fn_c_try_link
"$LINENO"; then :
21342 ac_cv_lib_dl_dlopen
=yes
21344 ac_cv_lib_dl_dlopen
=no
21346 rm -f core conftest.err conftest.
$ac_objext \
21347 conftest
$ac_exeext conftest.
$ac_ext
21348 LIBS
=$ac_check_lib_save_LIBS
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21351 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21352 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
21353 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21356 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21357 if ${ac_cv_lib_svld_dlopen+:} false
; then :
21358 $as_echo_n "(cached) " >&6
21360 ac_check_lib_save_LIBS
=$LIBS
21361 LIBS
="-lsvld $LIBS"
21362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21363 /* end confdefs.h. */
21365 /* Override any GCC internal prototype to avoid an error.
21366 Use char because int might match the return type of a GCC
21367 builtin and then its argument prototype would still apply. */
21380 if ac_fn_c_try_link
"$LINENO"; then :
21381 ac_cv_lib_svld_dlopen
=yes
21383 ac_cv_lib_svld_dlopen
=no
21385 rm -f core conftest.err conftest.
$ac_objext \
21386 conftest
$ac_exeext conftest.
$ac_ext
21387 LIBS
=$ac_check_lib_save_LIBS
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21390 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21391 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
21392 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21395 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21396 if ${ac_cv_lib_dld_dld_link+:} false
; then :
21397 $as_echo_n "(cached) " >&6
21399 ac_check_lib_save_LIBS
=$LIBS
21401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21402 /* end confdefs.h. */
21404 /* Override any GCC internal prototype to avoid an error.
21405 Use char because int might match the return type of a GCC
21406 builtin and then its argument prototype would still apply. */
21414 return dld_link ();
21419 if ac_fn_c_try_link
"$LINENO"; then :
21420 ac_cv_lib_dld_dld_link
=yes
21422 ac_cv_lib_dld_dld_link
=no
21424 rm -f core conftest.err conftest.
$ac_objext \
21425 conftest
$ac_exeext conftest.
$ac_ext
21426 LIBS
=$ac_check_lib_save_LIBS
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21429 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21430 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
21431 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
21452 if test "x$lt_cv_dlopen" != xno
; then
21458 case $lt_cv_dlopen in
21460 save_CPPFLAGS
="$CPPFLAGS"
21461 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
21463 save_LDFLAGS
="$LDFLAGS"
21464 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
21467 LIBS
="$lt_cv_dlopen_libs $LIBS"
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21470 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21471 if ${lt_cv_dlopen_self+:} false
; then :
21472 $as_echo_n "(cached) " >&6
21474 if test "$cross_compiling" = yes; then :
21475 lt_cv_dlopen_self
=cross
21477 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
21478 lt_status
=$lt_dlunknown
21479 cat > conftest.
$ac_ext <<_LT_EOF
21480 #line 21480 "configure"
21481 #include "confdefs.h"
21490 # define LT_DLGLOBAL RTLD_GLOBAL
21493 # define LT_DLGLOBAL DL_GLOBAL
21495 # define LT_DLGLOBAL 0
21499 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21500 find out it does not work in some platform. */
21501 #ifndef LT_DLLAZY_OR_NOW
21503 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21506 # define LT_DLLAZY_OR_NOW DL_LAZY
21509 # define LT_DLLAZY_OR_NOW RTLD_NOW
21512 # define LT_DLLAZY_OR_NOW DL_NOW
21514 # define LT_DLLAZY_OR_NOW 0
21521 /* When -fvisbility=hidden is used, assume the code has been annotated
21522 correspondingly for the symbols needed. */
21523 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21524 void fnord () __attribute__((visibility("default")));
21527 void fnord () { int i=42; }
21530 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21531 int status = $lt_dlunknown;
21535 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21538 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21539 else puts (dlerror ());
21541 /* dlclose (self); */
21549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21550 (eval $ac_link) 2>&5
21552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21553 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
21554 (.
/conftest
; exit; ) >&5 2>/dev
/null
21556 case x
$lt_status in
21557 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
21558 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
21559 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
21562 # compilation failed
21563 lt_cv_dlopen_self
=no
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21571 $as_echo "$lt_cv_dlopen_self" >&6; }
21573 if test "x$lt_cv_dlopen_self" = xyes
; then
21574 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21576 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21577 if ${lt_cv_dlopen_self_static+:} false
; then :
21578 $as_echo_n "(cached) " >&6
21580 if test "$cross_compiling" = yes; then :
21581 lt_cv_dlopen_self_static
=cross
21583 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
21584 lt_status
=$lt_dlunknown
21585 cat > conftest.
$ac_ext <<_LT_EOF
21586 #line 21586 "configure"
21587 #include "confdefs.h"
21596 # define LT_DLGLOBAL RTLD_GLOBAL
21599 # define LT_DLGLOBAL DL_GLOBAL
21601 # define LT_DLGLOBAL 0
21605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21606 find out it does not work in some platform. */
21607 #ifndef LT_DLLAZY_OR_NOW
21609 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21612 # define LT_DLLAZY_OR_NOW DL_LAZY
21615 # define LT_DLLAZY_OR_NOW RTLD_NOW
21618 # define LT_DLLAZY_OR_NOW DL_NOW
21620 # define LT_DLLAZY_OR_NOW 0
21627 /* When -fvisbility=hidden is used, assume the code has been annotated
21628 correspondingly for the symbols needed. */
21629 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21630 void fnord () __attribute__((visibility("default")));
21633 void fnord () { int i=42; }
21636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21637 int status = $lt_dlunknown;
21641 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21644 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21645 else puts (dlerror ());
21647 /* dlclose (self); */
21655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21656 (eval $ac_link) 2>&5
21658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21659 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
21660 (.
/conftest
; exit; ) >&5 2>/dev
/null
21662 case x
$lt_status in
21663 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
21664 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
21665 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
21668 # compilation failed
21669 lt_cv_dlopen_self_static
=no
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21677 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21680 CPPFLAGS
="$save_CPPFLAGS"
21681 LDFLAGS
="$save_LDFLAGS"
21686 case $lt_cv_dlopen_self in
21687 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
21688 *) enable_dlopen_self
=unknown
;;
21691 case $lt_cv_dlopen_self_static in
21692 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
21693 *) enable_dlopen_self_static
=unknown
;;
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21716 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21717 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
21718 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
21719 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21721 $as_echo "yes" >&6; }
21723 # FIXME - insert some real tests, host_os isn't really good enough
21726 if test -n "$STRIP" ; then
21727 striplib
="$STRIP -x"
21728 old_striplib
="$STRIP -S"
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21730 $as_echo "yes" >&6; }
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21733 $as_echo "no" >&6; }
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21738 $as_echo "no" >&6; }
21754 # Report which library types will actually be built
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21756 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21758 $as_echo "$can_build_shared" >&6; }
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21761 $as_echo_n "checking whether to build shared libraries... " >&6; }
21762 test "$can_build_shared" = "no" && enable_shared
=no
21764 # On AIX, shared libraries and static libraries use the same namespace, and
21765 # are all built from PIC.
21768 test "$enable_shared" = yes && enable_static
=no
21769 if test -n "$RANLIB"; then
21770 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21771 postinstall_cmds
='$RANLIB $lib'
21776 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21777 test "$enable_shared" = yes && enable_static
=no
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21782 $as_echo "$enable_shared" >&6; }
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21785 $as_echo_n "checking whether to build static libraries... " >&6; }
21786 # Make sure either enable_shared or enable_static is yes.
21787 test "$enable_shared" = yes || enable_static
=yes
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21789 $as_echo "$enable_static" >&6; }
21796 ac_cpp
='$CXXCPP $CPPFLAGS'
21797 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21798 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21799 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21803 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21804 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21805 (test "X$CXX" != "Xg++"))) ; then
21807 ac_cpp
='$CXXCPP $CPPFLAGS'
21808 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21812 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21813 if test -z "$CXXCPP"; then
21814 if ${ac_cv_prog_CXXCPP+:} false
; then :
21815 $as_echo_n "(cached) " >&6
21817 # Double quotes because CXXCPP needs to be expanded
21818 for CXXCPP
in "$CXX -E" "/lib/cpp"
21820 ac_preproc_ok
=false
21821 for ac_cxx_preproc_warn_flag
in '' yes
21823 # Use a header file that comes with gcc, so configuring glibc
21824 # with a fresh cross-compiler works.
21825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21826 # <limits.h> exists even on freestanding compilers.
21827 # On the NeXT, cc -E runs the code through the compiler's parser,
21828 # not just through cpp. "Syntax error" is here to catch this case.
21829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h. */
21832 # include <limits.h>
21834 # include <assert.h>
21838 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21841 # Broken: fails on valid input.
21844 rm -f conftest.err conftest.i conftest.
$ac_ext
21846 # OK, works on sane cases. Now check whether nonexistent headers
21847 # can be detected and how.
21848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21849 /* end confdefs.h. */
21850 #include <ac_nonexistent.h>
21852 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21853 # Broken: success on invalid input.
21856 # Passes both tests.
21860 rm -f conftest.err conftest.i conftest.
$ac_ext
21863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21864 rm -f conftest.i conftest.err conftest.
$ac_ext
21865 if $ac_preproc_ok; then :
21870 ac_cv_prog_CXXCPP
=$CXXCPP
21873 CXXCPP
=$ac_cv_prog_CXXCPP
21875 ac_cv_prog_CXXCPP
=$CXXCPP
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21878 $as_echo "$CXXCPP" >&6; }
21879 ac_preproc_ok
=false
21880 for ac_cxx_preproc_warn_flag
in '' yes
21882 # Use a header file that comes with gcc, so configuring glibc
21883 # with a fresh cross-compiler works.
21884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21885 # <limits.h> exists even on freestanding compilers.
21886 # On the NeXT, cc -E runs the code through the compiler's parser,
21887 # not just through cpp. "Syntax error" is here to catch this case.
21888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h. */
21891 # include <limits.h>
21893 # include <assert.h>
21897 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21900 # Broken: fails on valid input.
21903 rm -f conftest.err conftest.i conftest.
$ac_ext
21905 # OK, works on sane cases. Now check whether nonexistent headers
21906 # can be detected and how.
21907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21909 #include <ac_nonexistent.h>
21911 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21912 # Broken: success on invalid input.
21915 # Passes both tests.
21919 rm -f conftest.err conftest.i conftest.
$ac_ext
21922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21923 rm -f conftest.i conftest.err conftest.
$ac_ext
21924 if $ac_preproc_ok; then :
21927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21929 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
21930 See \`config.log' for more details" "$LINENO" 5; }
21934 ac_cpp
='$CXXCPP $CPPFLAGS'
21935 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21936 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21937 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21940 _lt_caught_CXX_error
=yes
21944 ac_cpp
='$CXXCPP $CPPFLAGS'
21945 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21949 archive_cmds_need_lc_CXX
=no
21950 allow_undefined_flag_CXX
=
21951 always_export_symbols_CXX
=no
21952 archive_expsym_cmds_CXX
=
21953 compiler_needs_object_CXX
=no
21954 export_dynamic_flag_spec_CXX
=
21955 hardcode_direct_CXX
=no
21956 hardcode_direct_absolute_CXX
=no
21957 hardcode_libdir_flag_spec_CXX
=
21958 hardcode_libdir_flag_spec_ld_CXX
=
21959 hardcode_libdir_separator_CXX
=
21960 hardcode_minus_L_CXX
=no
21961 hardcode_shlibpath_var_CXX
=unsupported
21962 hardcode_automatic_CXX
=no
21963 inherit_rpath_CXX
=no
21965 module_expsym_cmds_CXX
=
21966 link_all_deplibs_CXX
=unknown
21967 old_archive_cmds_CXX
=$old_archive_cmds
21968 reload_flag_CXX
=$reload_flag
21969 reload_cmds_CXX
=$reload_cmds
21970 no_undefined_flag_CXX
=
21971 whole_archive_flag_spec_CXX
=
21972 enable_shared_with_static_runtimes_CXX
=no
21974 # Source file extension for C++ test sources.
21977 # Object file extension for compiled C++ test sources.
21981 # No sense in running all these tests if we already determined that
21982 # the CXX compiler isn't working. Some variables (like enable_shared)
21983 # are currently assumed to apply to all compilers on this platform,
21984 # and will be corrupted by setting them based on a non-working compiler.
21985 if test "$_lt_caught_CXX_error" != yes; then
21986 # Code to be used in simple compile tests
21987 lt_simple_compile_test_code
="int some_variable = 0;"
21989 # Code to be used in simple link tests
21990 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
21992 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21999 # If no C compiler was specified, use CC.
22002 # If no C compiler flags were specified, use CFLAGS.
22003 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
22005 # Allow CC to be a program name with arguments.
22009 # save warnings/boilerplate of simple test code
22010 ac_outfile
=conftest.
$ac_objext
22011 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
22012 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
22013 _lt_compiler_boilerplate
=`cat conftest.err`
22016 ac_outfile
=conftest.
$ac_objext
22017 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
22018 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
22019 _lt_linker_boilerplate
=`cat conftest.err`
22023 # Allow CC to be a program name with arguments.
22028 lt_save_with_gnu_ld
=$with_gnu_ld
22029 lt_save_path_LD
=$lt_cv_path_LD
22030 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22031 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
22033 $as_unset lt_cv_prog_gnu_ld
22035 if test -n "${lt_cv_path_LDCXX+set}"; then
22036 lt_cv_path_LD
=$lt_cv_path_LDCXX
22038 $as_unset lt_cv_path_LD
22040 test -z "${LDCXX+set}" || LD
=$LDCXX
22044 for cc_temp
in $compiler""; do
22046 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
22047 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
22052 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22055 if test -n "$compiler"; then
22056 # We don't want -fno-exception when compiling C++ code, so set the
22057 # no_builtin_flag separately
22058 if test "$GXX" = yes; then
22059 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
22061 lt_prog_compiler_no_builtin_flag_CXX
=
22064 if test "$GXX" = yes; then
22065 # Set up default GNU C++ configuration
22069 # Check whether --with-gnu-ld was given.
22070 if test "${with_gnu_ld+set}" = set; then :
22071 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
22077 if test "$GCC" = yes; then
22078 # Check if gcc -print-prog-name=ld gives a path.
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22080 $as_echo_n "checking for ld used by $CC... " >&6; }
22083 # gcc leaves a trailing carriage return which upsets mingw
22084 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22086 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
22089 # Accept absolute paths.
22091 re_direlt
='/[^/][^/]*/\.\./'
22092 # Canonicalize the pathname of ld
22093 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22094 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
22095 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22097 test -z "$LD" && LD
="$ac_prog"
22100 # If it fails, then pretend we aren't using GCC.
22104 # If it is relative, then search for the first ld in PATH.
22105 with_gnu_ld
=unknown
22108 elif test "$with_gnu_ld" = yes; then
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22110 $as_echo_n "checking for GNU ld... " >&6; }
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22113 $as_echo_n "checking for non-GNU ld... " >&6; }
22115 if ${lt_cv_path_LD+:} false
; then :
22116 $as_echo_n "(cached) " >&6
22118 if test -z "$LD"; then
22119 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
22120 for ac_dir
in $PATH; do
22122 test -z "$ac_dir" && ac_dir
=.
22123 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
22124 lt_cv_path_LD
="$ac_dir/$ac_prog"
22125 # Check to see if the program is GNU ld. I'd rather use --version,
22126 # but apparently some variants of GNU ld only accept -v.
22127 # Break only if it was the GNU/non-GNU ld that we prefer.
22128 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22129 *GNU
* |
*'with BFD'*)
22130 test "$with_gnu_ld" != no
&& break
22133 test "$with_gnu_ld" != yes && break
22140 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
22144 LD
="$lt_cv_path_LD"
22145 if test -n "$LD"; then
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22147 $as_echo "$LD" >&6; }
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22150 $as_echo "no" >&6; }
22152 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22154 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22155 if ${lt_cv_prog_gnu_ld+:} false
; then :
22156 $as_echo_n "(cached) " >&6
22158 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22159 case `$LD -v 2>&1 </dev/null` in
22160 *GNU
* |
*'with BFD'*)
22161 lt_cv_prog_gnu_ld
=yes
22164 lt_cv_prog_gnu_ld
=no
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22169 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22170 with_gnu_ld
=$lt_cv_prog_gnu_ld
22178 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22179 # archiving commands below assume that GNU ld is being used.
22180 if test "$with_gnu_ld" = yes; then
22181 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22182 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'
22184 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22185 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22187 # If archive_cmds runs LD, not CC, wlarc should be empty
22188 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22189 # investigate it a little bit more. (MM)
22192 # ancient GNU ld didn't support --whole-archive et. al.
22193 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22194 $GREP 'no-whole-archive' > /dev
/null
; then
22195 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22197 whole_archive_flag_spec_CXX
=
22203 # A generic and very simple default shared library creation
22204 # command for GNU C++ for the case where it uses the native
22205 # linker, instead of GNU ld. If possible, this setting should
22206 # overridden to take advantage of the native linker features on
22207 # the platform it is being used on.
22208 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22211 # Commands to make compiler produce verbose output that lists
22212 # what "hidden" libraries, object files and flags are used when
22213 # linking a shared library.
22214 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22222 # PORTME: fill in a description of your system's C++ link characteristics
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22224 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22228 # FIXME: insert proper C++ library support
22232 if test "$host_cpu" = ia64
; then
22233 # On IA64, the linker does run time linking by default, so we don't
22234 # have to do anything special.
22235 aix_use_runtimelinking
=no
22236 exp_sym_flag
='-Bexport'
22239 aix_use_runtimelinking
=no
22241 # Test if we are trying to use run time linking or normal
22242 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22243 # need to do runtime linking.
22244 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
22245 for ld_flag
in $LDFLAGS; do
22248 aix_use_runtimelinking
=yes
22256 exp_sym_flag
='-bexport'
22257 no_entry_flag
='-bnoentry'
22260 # When large executables or shared objects are built, AIX ld can
22261 # have problems creating the table of contents. If linking a library
22262 # or program results in "error TOC overflow" add -mminimal-toc to
22263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22266 archive_cmds_CXX
=''
22267 hardcode_direct_CXX
=yes
22268 hardcode_direct_absolute_CXX
=yes
22269 hardcode_libdir_separator_CXX
=':'
22270 link_all_deplibs_CXX
=yes
22271 file_list_spec_CXX
='${wl}-f,'
22273 if test "$GXX" = yes; then
22274 case $host_os in aix4.
[012]|aix4.
[012].
*)
22275 # We only want to do this on AIX 4.2 and lower, the check
22276 # below for broken collect2 doesn't work under 4.3+
22277 collect2name
=`${CC} -print-prog-name=collect2`
22278 if test -f "$collect2name" &&
22279 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
22281 # We have reworked collect2
22284 # We have old collect2
22285 hardcode_direct_CXX
=unsupported
22286 # It fails to find uninstalled libraries when the uninstalled
22287 # path is not listed in the libpath. Setting hardcode_minus_L
22288 # to unsupported forces relinking
22289 hardcode_minus_L_CXX
=yes
22290 hardcode_libdir_flag_spec_CXX
='-L$libdir'
22291 hardcode_libdir_separator_CXX
=
22294 shared_flag
='-shared'
22295 if test "$aix_use_runtimelinking" = yes; then
22296 shared_flag
="$shared_flag "'${wl}-G'
22300 if test "$host_cpu" = ia64
; then
22301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22302 # chokes on -Wl,-G. The following line is correct:
22305 if test "$aix_use_runtimelinking" = yes; then
22306 shared_flag
='${wl}-G'
22308 shared_flag
='${wl}-bM:SRE'
22313 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
22314 # It seems that -bexpall does not export symbols beginning with
22315 # underscore (_), so it is better to generate a list of symbols to
22317 always_export_symbols_CXX
=yes
22318 if test "$aix_use_runtimelinking" = yes; then
22319 # Warning - without using the other runtime loading flags (-brtl),
22320 # -berok will link without error, but may produce a broken library.
22321 allow_undefined_flag_CXX
='-berok'
22322 # Determine the default libpath from the value encoded in an empty
22324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h. */
22335 if ac_fn_cxx_try_link
"$LINENO"; then :
22337 lt_aix_libpath_sed
='
22338 /Import File Strings/,/^$/ {
22344 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22345 # Check for a 64-bit object if we didn't find anything.
22346 if test -z "$aix_libpath"; then
22347 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22350 rm -f core conftest.err conftest.
$ac_objext \
22351 conftest
$ac_exeext conftest.
$ac_ext
22352 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22354 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
22356 archive_expsym_cmds_CXX
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22358 if test "$host_cpu" = ia64
; then
22359 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
22360 allow_undefined_flag_CXX
="-z nodefs"
22361 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"
22363 # Determine the default libpath from the value encoded in an
22364 # empty executable.
22365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22366 /* end confdefs.h. */
22376 if ac_fn_cxx_try_link
"$LINENO"; then :
22378 lt_aix_libpath_sed
='
22379 /Import File Strings/,/^$/ {
22385 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22386 # Check for a 64-bit object if we didn't find anything.
22387 if test -z "$aix_libpath"; then
22388 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22391 rm -f core conftest.err conftest.
$ac_objext \
22392 conftest
$ac_exeext conftest.
$ac_ext
22393 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22395 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
22396 # Warning - without using the other run time loading flags,
22397 # -berok will link without error, but may produce a broken library.
22398 no_undefined_flag_CXX
=' ${wl}-bernotok'
22399 allow_undefined_flag_CXX
=' ${wl}-berok'
22400 if test "$with_gnu_ld" = yes; then
22401 # We only use this code for GNU lds that support --whole-archive.
22402 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22404 # Exported symbols can be pulled into shared objects from archives
22405 whole_archive_flag_spec_CXX
='$convenience'
22407 archive_cmds_need_lc_CXX
=yes
22408 # This is similar to how AIX traditionally builds its shared
22410 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22416 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
22417 allow_undefined_flag_CXX
=unsupported
22418 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22419 # support --undefined. This deserves some investigation. FIXME
22420 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22427 case $cc_basename in
22429 # FIXME: insert proper C++ library support
22435 cygwin
* | mingw
* | pw32
* | cegcc
*)
22436 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22437 # as there is no search path for DLLs.
22438 hardcode_libdir_flag_spec_CXX
='-L$libdir'
22439 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
22440 allow_undefined_flag_CXX
=unsupported
22441 always_export_symbols_CXX
=no
22442 enable_shared_with_static_runtimes_CXX
=yes
22444 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
22445 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'
22446 # If the export-symbols file already is a .def file (1st line
22447 # is EXPORTS), use it as is; otherwise, prepend...
22448 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22449 cp $export_symbols $output_objdir/$soname.def;
22451 echo EXPORTS > $output_objdir/$soname.def;
22452 cat $export_symbols >> $output_objdir/$soname.def;
22454 $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'
22459 darwin
* | rhapsody
*)
22463 # Publish an arg to allow the user to select that Darwin host (and target)
22464 # libraries should be given install-names like @rpath/libfoo.dylib. This
22465 # requires that the user of the library then adds an 'rpath' to the DSO that
22467 # NOTE: there are defaults below, for systems that support rpaths. The person
22468 # configuring can override the defaults for any system version that supports
22469 # them - they are, however, forced off for system versions without support.
22470 # Check whether --enable-darwin-at-rpath was given.
22471 if test "${enable_darwin_at_rpath+set}" = set; then :
22472 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22473 # This is not supported before macOS 10.5 / Darwin9.
22474 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22475 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22477 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22478 enable_darwin_at_rpath
=no
22483 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22484 # As above, before 10.5 / Darwin9 this does not work.
22485 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
22486 enable_darwin_at_rpath
=no
22489 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22490 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22491 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22492 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22494 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22495 enable_darwin_at_rpath
=yes
22497 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22498 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22505 archive_cmds_need_lc_CXX
=no
22506 hardcode_direct_CXX
=no
22507 hardcode_automatic_CXX
=yes
22508 hardcode_shlibpath_var_CXX
=unsupported
22509 if test "$lt_cv_ld_force_load" = "yes"; then
22510 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\"`'
22512 whole_archive_flag_spec_CXX
=''
22514 link_all_deplibs_CXX
=yes
22515 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
22516 case $cc_basename in
22517 ifort
*) _lt_dar_can_shared
=yes ;;
22518 *) _lt_dar_can_shared
=$GCC ;;
22520 if test "$_lt_dar_can_shared" = "yes"; then
22521 output_verbose_link_cmd
=func_echo_all
22522 _lt_install_name
='\$rpath/\$soname'
22523 if test "x$enable_darwin_at_rpath" = "xyes"; then
22524 _lt_install_name
='@rpath/\$soname'
22526 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22527 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22528 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
22529 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}"
22530 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22531 _lt_install_name
='\$rpath/\$soname'
22532 if test "x$enable_darwin_at_rpath" = "xyes"; then
22533 _lt_install_name
='@rpath/\$soname'
22535 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
22536 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}"
22546 case $cc_basename in
22548 # FIXME: insert proper C++ library support
22552 # Green Hills C++ Compiler
22553 # FIXME: insert proper C++ library support
22557 # FIXME: insert proper C++ library support
22564 # C++ shared libraries reported to be fairly broken before
22570 archive_cmds_need_lc_CXX
=no
22573 freebsd
* | dragonfly
*)
22574 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22583 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22584 link_all_deplibs_CXX
=yes
22588 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
22589 hardcode_libdir_separator_CXX
=:
22590 export_dynamic_flag_spec_CXX
='${wl}-E'
22591 hardcode_direct_CXX
=yes
22592 hardcode_minus_L_CXX
=yes # Not in the search PATH,
22593 # but as the default
22594 # location of the library.
22596 case $cc_basename in
22598 # FIXME: insert proper C++ library support
22602 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22603 # Commands to make compiler produce verbose output that lists
22604 # what "hidden" libraries, object files and flags are used when
22605 # linking a shared library.
22607 # There doesn't appear to be a way to prevent this compiler from
22608 # explicitly linking system object files so we need to strip them
22609 # from the output so that they don't get included in the library
22611 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"'
22614 if test "$GXX" = yes; then
22615 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22617 # FIXME: insert proper C++ library support
22625 if test $with_gnu_ld = no
; then
22626 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
22627 hardcode_libdir_separator_CXX
=:
22633 export_dynamic_flag_spec_CXX
='${wl}-E'
22639 hardcode_direct_CXX
=no
22640 hardcode_shlibpath_var_CXX
=no
22643 hardcode_direct_CXX
=yes
22644 hardcode_direct_absolute_CXX
=yes
22645 hardcode_minus_L_CXX
=yes # Not in the search PATH,
22646 # but as the default
22647 # location of the library.
22651 case $cc_basename in
22653 # FIXME: insert proper C++ library support
22659 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22662 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22665 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22668 # Commands to make compiler produce verbose output that lists
22669 # what "hidden" libraries, object files and flags are used when
22670 # linking a shared library.
22672 # There doesn't appear to be a way to prevent this compiler from
22673 # explicitly linking system object files so we need to strip them
22674 # from the output so that they don't get included in the library
22676 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"'
22679 if test "$GXX" = yes; then
22680 if test $with_gnu_ld = no
; then
22683 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22686 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22689 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22694 # FIXME: insert proper C++ library support
22702 hardcode_direct_CXX
=no
22703 hardcode_shlibpath_var_CXX
=no
22704 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22705 export_dynamic_flag_spec_CXX
='${wl}-E'
22706 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22707 # Instead, shared libraries are loaded at an image base (0x10000000 by
22708 # default) and relocated if they conflict, which is a slow very memory
22709 # consuming and fragmenting process. To avoid this, we pick a random,
22710 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22711 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22712 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'
22713 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'
22716 case $cc_basename in
22719 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'
22721 # Archives containing C++ object files must be created using
22722 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22723 # necessary to make sure instantiated templates are included
22725 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
22728 if test "$GXX" = yes; then
22729 if test "$with_gnu_ld" = no
; then
22730 archive_cmds_CXX
='$CC -shared -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'
22732 archive_cmds_CXX
='$CC -shared -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'
22735 link_all_deplibs_CXX
=yes
22738 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22739 hardcode_libdir_separator_CXX
=:
22740 inherit_rpath_CXX
=yes
22743 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
22744 case $cc_basename in
22746 # Kuck and Associates, Inc. (KAI) C++ Compiler
22748 # KCC will only create a shared library if the output file
22749 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22750 # to its proper name (with version) after linking.
22751 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'
22752 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'
22753 # Commands to make compiler produce verbose output that lists
22754 # what "hidden" libraries, object files and flags are used when
22755 # linking a shared library.
22757 # There doesn't appear to be a way to prevent this compiler from
22758 # explicitly linking system object files so we need to strip them
22759 # from the output so that they don't get included in the library
22761 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"'
22763 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22764 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22766 # Archives containing C++ object files must be created using
22767 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22768 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
22773 # version 8.0 and above of icpc choke on multiply defined symbols
22774 # if we add $predep_objects and $postdep_objects, however 7.1 and
22775 # earlier do not add the objects themselves.
22776 case `$CC -V 2>&1` in
22778 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22779 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'
22781 *) # Version 8.0 or newer
22784 ia64
*) tmp_idyn
=' -i_dynamic';;
22786 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22787 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'
22790 archive_cmds_need_lc_CXX
=no
22791 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22792 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22793 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22796 # Portland Group C++ compiler
22798 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
22799 prelink_cmds_CXX
='tpldir=Template.dir~
22801 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22802 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22803 old_archive_cmds_CXX
='tpldir=Template.dir~
22805 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22806 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22808 archive_cmds_CXX
='tpldir=Template.dir~
22810 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22811 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22812 archive_expsym_cmds_CXX
='tpldir=Template.dir~
22814 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22815 $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'
22817 *) # Version 6 and above use weak symbols
22818 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22819 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'
22823 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
22824 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22825 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'
22829 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22830 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'
22832 runpath_var
=LD_RUN_PATH
22833 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
22834 hardcode_libdir_separator_CXX
=:
22836 # Commands to make compiler produce verbose output that lists
22837 # what "hidden" libraries, object files and flags are used when
22838 # linking a shared library.
22840 # There doesn't appear to be a way to prevent this compiler from
22841 # explicitly linking system object files so we need to strip them
22842 # from the output so that they don't get included in the library
22844 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'
22846 xl
* | mpixl
* | bgxl
*)
22847 # IBM XL 8.0 on PPC, with GNU ld
22848 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22849 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22850 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22851 if test "x$supports_anon_versioning" = xyes
; then
22852 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
22853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22854 echo "local: *; };" >> $output_objdir/$libname.ver~
22855 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22859 case `$CC -V 2>&1 | sed 5q` in
22862 no_undefined_flag_CXX
=' -zdefs'
22863 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22864 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'
22865 hardcode_libdir_flag_spec_CXX
='-R$libdir'
22866 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'
22867 compiler_needs_object_CXX
=yes
22869 # Not sure whether something based on
22870 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22872 output_verbose_link_cmd
='func_echo_all'
22874 # Archives containing C++ object files must be created using
22875 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22876 # necessary to make sure instantiated templates are included
22878 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
22886 # FIXME: insert proper C++ library support
22891 # FIXME: insert proper C++ library support
22896 case $cc_basename in
22898 # FIXME: insert proper C++ library support
22902 # FIXME: insert proper C++ library support
22909 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22910 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22912 hardcode_libdir_flag_spec_CXX
='-R$libdir'
22913 hardcode_direct_CXX
=yes
22914 hardcode_shlibpath_var_CXX
=no
22916 # Workaround some broken pre-1.5 toolchains
22917 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22925 # C++ shared libraries are fairly broken
22930 if test -f /usr
/libexec
/ld.so
; then
22931 hardcode_direct_CXX
=yes
22932 hardcode_shlibpath_var_CXX
=no
22933 hardcode_direct_absolute_CXX
=yes
22934 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22935 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22937 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
22938 export_dynamic_flag_spec_CXX
='${wl}-E'
22939 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22941 output_verbose_link_cmd
=func_echo_all
22947 osf3
* | osf4
* | osf5
*)
22948 case $cc_basename in
22950 # Kuck and Associates, Inc. (KAI) C++ Compiler
22952 # KCC will only create a shared library if the output file
22953 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22954 # to its proper name (with version) after linking.
22955 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'
22957 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22958 hardcode_libdir_separator_CXX
=:
22960 # Archives containing C++ object files must be created using
22961 # the KAI C++ compiler.
22963 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
22964 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
22968 # Rational C++ 2.4.1
22969 # FIXME: insert proper C++ library support
22975 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
22976 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'
22977 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22980 allow_undefined_flag_CXX
=' -expect_unresolved \*'
22981 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'
22982 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22983 echo "-hidden">> $lib.exp~
22984 $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~
22986 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
22990 hardcode_libdir_separator_CXX
=:
22992 # Commands to make compiler produce verbose output that lists
22993 # what "hidden" libraries, object files and flags are used when
22994 # linking a shared library.
22996 # There doesn't appear to be a way to prevent this compiler from
22997 # explicitly linking system object files so we need to strip them
22998 # from the output so that they don't get included in the library
23000 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"'
23003 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
23004 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
23007 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'
23010 archive_cmds_CXX
='$CC -shared -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'
23014 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
23015 hardcode_libdir_separator_CXX
=:
23017 # Commands to make compiler produce verbose output that lists
23018 # what "hidden" libraries, object files and flags are used when
23019 # linking a shared library.
23020 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23023 # FIXME: insert proper C++ library support
23031 # FIXME: insert proper C++ library support
23036 case $cc_basename in
23039 # FIXME: insert proper C++ library support
23044 # FIXME: insert proper C++ library support
23048 # FIXME: insert proper C++ library support
23055 case $cc_basename in
23057 # Sun C++ 4.2, 5.x and Centerline C++
23058 archive_cmds_need_lc_CXX
=yes
23059 no_undefined_flag_CXX
=' -zdefs'
23060 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23061 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23062 $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'
23064 hardcode_libdir_flag_spec_CXX
='-R$libdir'
23065 hardcode_shlibpath_var_CXX
=no
23067 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
23069 # The compiler driver will combine and reorder linker options,
23070 # but understands `-z linker_flag'.
23071 # Supported since Solaris 2.6 (maybe 2.5.1?)
23072 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
23075 link_all_deplibs_CXX
=yes
23077 output_verbose_link_cmd
='func_echo_all'
23079 # Archives containing C++ object files must be created using
23080 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23081 # necessary to make sure instantiated templates are included
23083 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
23086 # Green Hills C++ Compiler
23087 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23089 # The C++ compiler must be used to create the archive.
23090 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23093 # GNU C++ compiler with Solaris linker
23094 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
23095 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
23096 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
23097 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23098 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23099 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23101 # Commands to make compiler produce verbose output that lists
23102 # what "hidden" libraries, object files and flags are used when
23103 # linking a shared library.
23104 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23106 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23108 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23109 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23110 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23112 # Commands to make compiler produce verbose output that lists
23113 # what "hidden" libraries, object files and flags are used when
23114 # linking a shared library.
23115 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23118 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
23120 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
23122 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23130 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
23131 no_undefined_flag_CXX
='${wl}-z,text'
23132 archive_cmds_need_lc_CXX
=no
23133 hardcode_shlibpath_var_CXX
=no
23134 runpath_var
='LD_RUN_PATH'
23136 case $cc_basename in
23138 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23139 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23142 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23143 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23148 sysv5
* | sco3.2v5
* | sco5v6
*)
23149 # Note: We can NOT use -z defs as we might desire, because we do not
23150 # link with -lc, and that would cause any symbols used from libc to
23151 # always be unresolved, which means just about no library would
23152 # ever link correctly. If we're not using GNU ld we use -z text
23153 # though, which does catch some bad symbols but isn't as heavy-handed
23155 no_undefined_flag_CXX
='${wl}-z,text'
23156 allow_undefined_flag_CXX
='${wl}-z,nodefs'
23157 archive_cmds_need_lc_CXX
=no
23158 hardcode_shlibpath_var_CXX
=no
23159 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
23160 hardcode_libdir_separator_CXX
=':'
23161 link_all_deplibs_CXX
=yes
23162 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
23163 runpath_var
='LD_RUN_PATH'
23165 case $cc_basename in
23167 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23168 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23169 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
23170 '"$old_archive_cmds_CXX"
23171 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
23172 '"$reload_cmds_CXX"
23175 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23176 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23182 case $cc_basename in
23184 # NonStop-UX NCC 3.20
23185 # FIXME: insert proper C++ library support
23189 # FIXME: insert proper C++ library support
23196 # For VxWorks ports, we assume the use of a GNU linker with
23197 # standard elf conventions.
23202 # FIXME: insert proper C++ library support
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23208 $as_echo "$ld_shlibs_CXX" >&6; }
23209 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
23215 ## There is no encapsulation within the following macros, do not change
23216 ## the running order or otherwise move them around unless you know exactly
23217 ## what you are doing...
23218 # Dependencies to place before and after the object being linked:
23219 predep_objects_CXX
=
23220 postdep_objects_CXX
=
23223 compiler_lib_search_path_CXX
=
23225 cat > conftest.
$ac_ext <<_LT_EOF
23229 Foo (void) { a = 0; }
23235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23236 (eval $ac_compile) 2>&5
23238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23239 test $ac_status = 0; }; then
23240 # Parse the compiler output and extract the necessary
23241 # objects, libraries and library flags.
23243 # Sentinel used to keep track of whether or not we are before
23244 # the conftest object file.
23245 pre_test_object_deps_done
=no
23247 for p
in `eval "$output_verbose_link_cmd"`; do
23251 # Some compilers place space between "-{L,R}" and the path.
23252 # Remove the space.
23253 if test $p = "-L" ||
23254 test $p = "-R"; then
23261 if test "$pre_test_object_deps_done" = no
; then
23264 # Internal compiler library paths should come after those
23265 # provided the user. The postdeps already come after the
23266 # user supplied libs so there is no need to process them.
23267 if test -z "$compiler_lib_search_path_CXX"; then
23268 compiler_lib_search_path_CXX
="${prev}${p}"
23270 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
23273 # The "-l" case would never come before the object being
23274 # linked, so don't bother handling this case.
23277 if test -z "$postdeps_CXX"; then
23278 postdeps_CXX
="${prev}${p}"
23280 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
23286 # This assumes that the test object file only shows up
23287 # once in the compiler output.
23288 if test "$p" = "conftest.$objext"; then
23289 pre_test_object_deps_done
=yes
23293 if test "$pre_test_object_deps_done" = no
; then
23294 if test -z "$predep_objects_CXX"; then
23295 predep_objects_CXX
="$p"
23297 predep_objects_CXX
="$predep_objects_CXX $p"
23300 if test -z "$postdep_objects_CXX"; then
23301 postdep_objects_CXX
="$p"
23303 postdep_objects_CXX
="$postdep_objects_CXX $p"
23308 *) ;; # Ignore the rest.
23316 echo "libtool.m4: error: problem compiling CXX test program"
23319 $RM -f confest.
$objext
23321 # PORTME: override above test on systems where it is broken
23324 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23325 # hack all around it, let's just trust "g++" to DTRT.
23326 predep_objects_CXX
=
23327 postdep_objects_CXX
=
23332 case `$CC -V 2>&1 | sed 5q` in
23336 # The more standards-conforming stlport4 library is
23337 # incompatible with the Cstd library. Avoid specifying
23338 # it if it's in CXXFLAGS. Ignore libCrun as
23339 # -library=stlport4 depends on it.
23340 case " $CXX $CXXFLAGS " in
23341 *" -library=stlport4 "*)
23342 solaris_use_stlport4
=yes
23346 if test "$solaris_use_stlport4" != yes; then
23347 postdeps_CXX
='-library=Cstd -library=Crun'
23354 case $cc_basename in
23356 # The more standards-conforming stlport4 library is
23357 # incompatible with the Cstd library. Avoid specifying
23358 # it if it's in CXXFLAGS. Ignore libCrun as
23359 # -library=stlport4 depends on it.
23360 case " $CXX $CXXFLAGS " in
23361 *" -library=stlport4 "*)
23362 solaris_use_stlport4
=yes
23366 # Adding this requires a known-good setup of shared libraries for
23367 # Sun compiler versions before 5.6, else PIC objects from an old
23368 # archive will be linked into the output, leading to subtle bugs.
23369 if test "$solaris_use_stlport4" != yes; then
23370 postdeps_CXX
='-library=Cstd -library=Crun'
23378 case " $postdeps_CXX " in
23379 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
23381 compiler_lib_search_dirs_CXX
=
23382 if test -n "${compiler_lib_search_path_CXX}"; then
23383 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23416 lt_prog_compiler_wl_CXX
=
23417 lt_prog_compiler_pic_CXX
=
23418 lt_prog_compiler_static_CXX
=
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23421 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23423 # C++ specific cases for pic, static, wl, etc.
23424 if test "$GXX" = yes; then
23425 lt_prog_compiler_wl_CXX
='-Wl,'
23426 lt_prog_compiler_static_CXX
='-static'
23430 # All AIX code is PIC.
23431 if test "$host_cpu" = ia64
; then
23432 # AIX 5 now supports IA64 processor
23433 lt_prog_compiler_static_CXX
='-Bstatic'
23435 lt_prog_compiler_pic_CXX
='-fPIC'
23441 # see comment about AmigaOS4 .so support
23442 lt_prog_compiler_pic_CXX
='-fPIC'
23445 # FIXME: we need at least 68020 code to build shared libraries, but
23446 # adding the `-m68020' flag to GCC prevents building anything better,
23448 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
23453 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
23454 # PIC is the default for these OSes.
23456 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
23457 # This hack is so that the source file can tell whether it is being
23458 # built for inclusion in a dll (and should export symbols for example).
23459 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23460 # (--disable-auto-import) libraries
23461 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
23463 darwin
* | rhapsody
*)
23464 # PIC is the default on this platform
23465 # Common symbols not allowed in MH_DYLIB files
23466 lt_prog_compiler_pic_CXX
='-fno-common'
23469 # DJGPP does not support shared libraries at all
23470 lt_prog_compiler_pic_CXX
=
23473 # PIC is the default for Haiku.
23474 # The "-static" flag exists, but is broken.
23475 lt_prog_compiler_static_CXX
=
23478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23479 # Instead, we relocate shared libraries at runtime.
23482 if test -d /usr
/nec
; then
23483 lt_prog_compiler_pic_CXX
=-Kconform_pic
23487 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23488 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23489 # sets the default TLS model and affects inlining.
23494 lt_prog_compiler_pic_CXX
='-fPIC'
23499 # QNX uses GNU C++, but need to define -shared option too, otherwise
23500 # it will coredump.
23501 lt_prog_compiler_pic_CXX
='-fPIC -shared'
23504 lt_prog_compiler_pic_CXX
='-fPIC'
23510 # All AIX code is PIC.
23511 if test "$host_cpu" = ia64
; then
23512 # AIX 5 now supports IA64 processor
23513 lt_prog_compiler_static_CXX
='-Bstatic'
23515 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
23519 case $cc_basename in
23521 # Green Hills C++ Compiler
23522 # _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"
23527 case $cc_basename in
23529 lt_prog_compiler_pic_CXX
='-KPIC'
23532 # Green Hills C++ Compiler
23533 lt_prog_compiler_pic_CXX
='-pic'
23539 freebsd
* | dragonfly
*)
23540 # FreeBSD uses GNU C++
23542 hpux9
* | hpux10
* | hpux11
*)
23543 case $cc_basename in
23545 lt_prog_compiler_wl_CXX
='-Wl,'
23546 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
23547 if test "$host_cpu" != ia64
; then
23548 lt_prog_compiler_pic_CXX
='+Z'
23552 lt_prog_compiler_wl_CXX
='-Wl,'
23553 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
23559 lt_prog_compiler_pic_CXX
='+Z'
23568 # This is c89, which is MS Visual C++ (no shared libs)
23569 # Anyone wants to do a port?
23571 irix5
* | irix6
* | nonstopux
*)
23572 case $cc_basename in
23574 lt_prog_compiler_wl_CXX
='-Wl,'
23575 lt_prog_compiler_static_CXX
='-non_shared'
23576 # CC pic flag -KPIC is the default.
23582 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
23583 case $cc_basename in
23586 lt_prog_compiler_wl_CXX
='--backend -Wl,'
23587 lt_prog_compiler_pic_CXX
='-fPIC'
23590 # old Intel C++ for x86_64 which still supported -KPIC.
23591 lt_prog_compiler_wl_CXX
='-Wl,'
23592 lt_prog_compiler_pic_CXX
='-KPIC'
23593 lt_prog_compiler_static_CXX
='-static'
23596 # Intel C++, used to be incompatible with GCC.
23597 # ICC 10 doesn't accept -KPIC any more.
23598 lt_prog_compiler_wl_CXX
='-Wl,'
23599 lt_prog_compiler_pic_CXX
='-fPIC'
23600 lt_prog_compiler_static_CXX
='-static'
23603 # Portland Group C++ compiler
23604 lt_prog_compiler_wl_CXX
='-Wl,'
23605 lt_prog_compiler_pic_CXX
='-fpic'
23606 lt_prog_compiler_static_CXX
='-Bstatic'
23610 # Make sure the PIC flag is empty. It appears that all Alpha
23611 # Linux and Compaq Tru64 Unix objects are PIC.
23612 lt_prog_compiler_pic_CXX
=
23613 lt_prog_compiler_static_CXX
='-non_shared'
23615 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
23616 # IBM XL 8.0, 9.0 on PPC and BlueGene
23617 lt_prog_compiler_wl_CXX
='-Wl,'
23618 lt_prog_compiler_pic_CXX
='-qpic'
23619 lt_prog_compiler_static_CXX
='-qstaticlink'
23622 case `$CC -V 2>&1 | sed 5q` in
23625 lt_prog_compiler_pic_CXX
='-KPIC'
23626 lt_prog_compiler_static_CXX
='-Bstatic'
23627 lt_prog_compiler_wl_CXX
='-Qoption ld '
23638 case $cc_basename in
23640 lt_prog_compiler_pic_CXX
='-W c,exportall'
23649 # QNX uses GNU C++, but need to define -shared option too, otherwise
23650 # it will coredump.
23651 lt_prog_compiler_pic_CXX
='-fPIC -shared'
23653 osf3
* | osf4
* | osf5
*)
23654 case $cc_basename in
23656 lt_prog_compiler_wl_CXX
='--backend -Wl,'
23659 # Rational C++ 2.4.1
23660 lt_prog_compiler_pic_CXX
='-pic'
23663 # Digital/Compaq C++
23664 lt_prog_compiler_wl_CXX
='-Wl,'
23665 # Make sure the PIC flag is empty. It appears that all Alpha
23666 # Linux and Compaq Tru64 Unix objects are PIC.
23667 lt_prog_compiler_pic_CXX
=
23668 lt_prog_compiler_static_CXX
='-non_shared'
23677 case $cc_basename in
23679 # Sun C++ 4.2, 5.x and Centerline C++
23680 lt_prog_compiler_pic_CXX
='-KPIC'
23681 lt_prog_compiler_static_CXX
='-Bstatic'
23682 lt_prog_compiler_wl_CXX
='-Qoption ld '
23685 # Green Hills C++ Compiler
23686 lt_prog_compiler_pic_CXX
='-PIC'
23693 case $cc_basename in
23696 lt_prog_compiler_pic_CXX
='-pic'
23697 lt_prog_compiler_static_CXX
='-Bstatic'
23701 lt_prog_compiler_pic_CXX
='-pic'
23707 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
23708 case $cc_basename in
23710 lt_prog_compiler_wl_CXX
='-Wl,'
23711 lt_prog_compiler_pic_CXX
='-KPIC'
23712 lt_prog_compiler_static_CXX
='-Bstatic'
23717 case $cc_basename in
23719 # NonStop-UX NCC 3.20
23720 lt_prog_compiler_pic_CXX
='-KPIC'
23729 lt_prog_compiler_can_build_shared_CXX
=no
23735 # For platforms which do not support PIC, -DPIC is meaningless:
23737 lt_prog_compiler_pic_CXX
=
23740 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23744 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23749 # Check to make sure the PIC flag actually works.
23751 if test -n "$lt_prog_compiler_pic_CXX"; then
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23753 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23754 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
23755 $as_echo_n "(cached) " >&6
23757 lt_cv_prog_compiler_pic_works_CXX
=no
23758 ac_outfile
=conftest.
$ac_objext
23759 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23760 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
23761 # Insert the option either (1) after the last *FLAGS variable, or
23762 # (2) before a word containing "conftest.", or (3) at the end.
23763 # Note that $ac_compile itself does not contain backslashes and begins
23764 # with a dollar sign (not a hyphen), so the echo should work correctly.
23765 # The option is referenced via a variable to avoid confusing sed.
23766 lt_compile
=`echo "$ac_compile" | $SED \
23767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23769 -e 's:$: $lt_compiler_flag:'`
23770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23771 (eval "$lt_compile" 2>conftest.err
)
23773 cat conftest.err
>&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 if (exit $ac_status) && test -s "$ac_outfile"; then
23776 # The compiler can only warn and ignore the option if not recognized
23777 # So say no if there are warnings other than the usual output.
23778 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
23779 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23780 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
23781 lt_cv_prog_compiler_pic_works_CXX
=yes
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23788 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23790 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
23791 case $lt_prog_compiler_pic_CXX in
23793 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
23796 lt_prog_compiler_pic_CXX
=
23797 lt_prog_compiler_can_build_shared_CXX
=no
23805 # Check to make sure the static flag actually works.
23807 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23809 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23810 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
23811 $as_echo_n "(cached) " >&6
23813 lt_cv_prog_compiler_static_works_CXX
=no
23814 save_LDFLAGS
="$LDFLAGS"
23815 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
23816 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
23817 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
23818 # The linker can only warn and ignore the option if not recognized
23819 # So say no if there are warnings
23820 if test -s conftest.err
; then
23821 # Append any errors to the config.log.
23822 cat conftest.err
1>&5
23823 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
23824 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23825 if diff conftest.exp conftest.er2
>/dev
/null
; then
23826 lt_cv_prog_compiler_static_works_CXX
=yes
23829 lt_cv_prog_compiler_static_works_CXX
=yes
23833 LDFLAGS
="$save_LDFLAGS"
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23837 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23839 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
23842 lt_prog_compiler_static_CXX
=
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23850 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
23851 $as_echo_n "(cached) " >&6
23853 lt_cv_prog_compiler_c_o_CXX
=no
23854 $RM -r conftest
2>/dev
/null
23858 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23860 lt_compiler_flag
="-o out/conftest2.$ac_objext"
23861 # Insert the option either (1) after the last *FLAGS variable, or
23862 # (2) before a word containing "conftest.", or (3) at the end.
23863 # Note that $ac_compile itself does not contain backslashes and begins
23864 # with a dollar sign (not a hyphen), so the echo should work correctly.
23865 lt_compile
=`echo "$ac_compile" | $SED \
23866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23868 -e 's:$: $lt_compiler_flag:'`
23869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23870 (eval "$lt_compile" 2>out
/conftest.err
)
23872 cat out
/conftest.err
>&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
23876 # The compiler can only warn and ignore the option if not recognized
23877 # So say no if there are warnings
23878 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
23879 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
23880 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
23881 lt_cv_prog_compiler_c_o_CXX
=yes
23886 # SGI C++ compiler will create directory out/ii_files/ for
23887 # template instantiation
23888 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
23889 $RM out
/* && rmdir out
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23896 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23902 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
23903 $as_echo_n "(cached) " >&6
23905 lt_cv_prog_compiler_c_o_CXX
=no
23906 $RM -r conftest
2>/dev
/null
23910 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23912 lt_compiler_flag
="-o out/conftest2.$ac_objext"
23913 # Insert the option either (1) after the last *FLAGS variable, or
23914 # (2) before a word containing "conftest.", or (3) at the end.
23915 # Note that $ac_compile itself does not contain backslashes and begins
23916 # with a dollar sign (not a hyphen), so the echo should work correctly.
23917 lt_compile
=`echo "$ac_compile" | $SED \
23918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23920 -e 's:$: $lt_compiler_flag:'`
23921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23922 (eval "$lt_compile" 2>out
/conftest.err
)
23924 cat out
/conftest.err
>&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
23928 # The compiler can only warn and ignore the option if not recognized
23929 # So say no if there are warnings
23930 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
23931 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
23932 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
23933 lt_cv_prog_compiler_c_o_CXX
=yes
23938 # SGI C++ compiler will create directory out/ii_files/ for
23939 # template instantiation
23940 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
23941 $RM out
/* && rmdir out
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23948 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23953 hard_links
="nottested"
23954 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
23955 # do not overwrite the value of need_locks provided by the user
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23957 $as_echo_n "checking if we can lock with hard links... " >&6; }
23960 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23962 ln conftest.a conftest.b
2>&5 || hard_links
=no
23963 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
23965 $as_echo "$hard_links" >&6; }
23966 if test "$hard_links" = no
; then
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23968 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23978 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23980 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23983 # If we're using GNU nm, then we don't want the "-C" option.
23984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23985 # Also, AIX nm treats weak defined symbols like other global defined
23986 # symbols, whereas GNU nm marks them as "W".
23987 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
23988 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
23990 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
23994 export_symbols_cmds_CXX
="$ltdll_cmds"
23996 cygwin
* | mingw
* | cegcc
*)
23997 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
24000 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24003 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
24006 $as_echo "$ld_shlibs_CXX" >&6; }
24007 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
24009 with_gnu_ld_CXX
=$with_gnu_ld
24017 # Do we need to explicitly link libc?
24019 case "x$archive_cmds_need_lc_CXX" in
24021 # Assume -lc should be added
24022 archive_cmds_need_lc_CXX
=yes
24024 if test "$enable_shared" = yes && test "$GCC" = yes; then
24025 case $archive_cmds_CXX in
24027 # FIXME: we may have to deal with multi-command sequences.
24030 # Test whether the compiler implicitly links with -lc since on some
24031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24032 # to ld, don't add -lc before -lgcc.
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24034 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24035 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
24036 $as_echo_n "(cached) " >&6
24039 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
24041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24042 (eval $ac_compile) 2>&5
24044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24045 test $ac_status = 0; } 2>conftest.err
; then
24048 libobjs
=conftest.
$ac_objext
24050 wl
=$lt_prog_compiler_wl_CXX
24051 pic_flag
=$lt_prog_compiler_pic_CXX
24057 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
24058 allow_undefined_flag_CXX
=
24059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24060 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
24062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24063 test $ac_status = 0; }
24065 lt_cv_archive_cmds_need_lc_CXX
=no
24067 lt_cv_archive_cmds_need_lc_CXX
=yes
24069 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
24071 cat conftest.err
1>&5
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24077 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24078 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24149 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24151 library_names_spec
=
24152 libname_spec
='lib$name'
24156 postuninstall_cmds
=
24160 shlibpath_overrides_runpath
=unknown
24162 dynamic_linker
="$host_os ld.so"
24163 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
24164 need_lib_prefix
=unknown
24165 hardcode_into_libs
=no
24167 # when you set need_version to no, make sure it does not cause -set_version
24168 # flags to be left without arguments
24169 need_version
=unknown
24174 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
24175 shlibpath_var
=LIBPATH
24177 # AIX 3 has no versioning support, so we append a major version to the name.
24178 soname_spec
='${libname}${release}${shared_ext}$major'
24185 hardcode_into_libs
=yes
24186 if test "$host_cpu" = ia64
; then
24187 # AIX 5 supports IA64
24188 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24189 shlibpath_var
=LD_LIBRARY_PATH
24191 # With GCC up to 2.95.x, collect2 would create an import file
24192 # for dependence libraries. The import file would start with
24193 # the line `#! .'. This would cause the generated library to
24194 # depend on `.', always an invalid library. This was fixed in
24195 # development snapshots of GCC prior to 3.0.
24197 aix4 | aix4.
[01] | aix4.
[01].
*)
24198 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24200 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
24203 can_build_shared
=no
24207 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24208 # soname into executable. Probably we can add versioning support to
24209 # collect2, so additional links can be useful in future.
24210 if test "$aix_use_runtimelinking" = yes; then
24211 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24212 # instead of lib<name>.a to let people know that these are not
24213 # typical AIX shared libraries.
24214 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24216 # We preserve .a as extension for shared libraries through AIX4.2
24217 # and later when we are not doing run time linking.
24218 library_names_spec
='${libname}${release}.a $libname.a'
24219 soname_spec
='${libname}${release}${shared_ext}$major'
24221 shlibpath_var
=LIBPATH
24228 # Since July 2007 AmigaOS4 officially supports .so libraries.
24229 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24233 library_names_spec
='$libname.ixlibrary $libname.a'
24234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24235 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
24241 library_names_spec
='${libname}${shared_ext}'
24242 dynamic_linker
="$host_os ld.so"
24243 shlibpath_var
=LIBRARY_PATH
24249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24250 soname_spec
='${libname}${release}${shared_ext}$major'
24251 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
24252 shlibpath_var
=LD_LIBRARY_PATH
24253 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24254 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
24255 # the default ld.so.conf also contains /usr/contrib/lib and
24256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24257 # libtool to hard-code these into programs
24260 cygwin
* | mingw
* | pw32
* | cegcc
*)
24261 version_type
=windows
24266 case $GCC,$host_os in
24267 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
24268 library_names_spec
='$libname.dll.a'
24269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24270 postinstall_cmds
='base_file=`basename \${file}`~
24271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24272 dldir=$destdir/`dirname \$dlpath`~
24273 test -d \$dldir || mkdir -p \$dldir~
24274 $install_prog $dir/$dlname \$dldir/$dlname~
24275 chmod a+x \$dldir/$dlname~
24276 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24277 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24279 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24280 dlpath=$dir/\$dldll~
24282 shlibpath_overrides_runpath
=yes
24286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24287 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24291 # MinGW DLLs use traditional 'lib' prefix
24292 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24295 # pw32 DLLs use 'pw' prefix rather than 'lib'
24296 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24302 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24305 dynamic_linker
='Win32 ld.exe'
24306 # FIXME: first we should search . and the directory the executable is in
24310 darwin
* | rhapsody
*)
24311 dynamic_linker
="$host_os dyld"
24312 version_type
=darwin
24315 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24316 soname_spec
='${libname}${release}${major}$shared_ext'
24317 shlibpath_overrides_runpath
=yes
24318 shlibpath_var
=DYLD_LIBRARY_PATH
24319 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
24321 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
24328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24329 soname_spec
='${libname}${release}${shared_ext}$major'
24330 shlibpath_var
=LD_LIBRARY_PATH
24333 freebsd
* | dragonfly
*)
24334 # DragonFly does not have aout. When/if they implement a new
24335 # versioning mechanism, adjust this.
24336 if test -x /usr
/bin
/objformat
; then
24337 objformat
=`/usr/bin/objformat`
24340 freebsd
[23].
*) objformat
=aout
;;
24341 *) objformat
=elf
;;
24344 version_type
=freebsd-
$objformat
24345 case $version_type in
24347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24352 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24356 shlibpath_var
=LD_LIBRARY_PATH
24359 shlibpath_overrides_runpath
=yes
24361 freebsd3.
[01]* | freebsdelf3.
[01]*)
24362 shlibpath_overrides_runpath
=yes
24363 hardcode_into_libs
=yes
24365 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
24366 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
24367 shlibpath_overrides_runpath
=no
24368 hardcode_into_libs
=yes
24370 *) # from 4.6 on, and DragonFly
24371 shlibpath_overrides_runpath
=yes
24372 hardcode_into_libs
=yes
24381 dynamic_linker
="$host_os runtime_loader"
24382 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24383 soname_spec
='${libname}${release}${shared_ext}$major'
24384 shlibpath_var
=LIBRARY_PATH
24385 shlibpath_overrides_runpath
=yes
24386 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24387 hardcode_into_libs
=yes
24390 hpux9
* | hpux10
* | hpux11
*)
24391 # Give a soname corresponding to the major version so that dld.sl refuses to
24392 # link against other versions.
24399 hardcode_into_libs
=yes
24400 dynamic_linker
="$host_os dld.so"
24401 shlibpath_var
=LD_LIBRARY_PATH
24402 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24403 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24404 soname_spec
='${libname}${release}${shared_ext}$major'
24405 if test "X$HPUX_IA64_MODE" = X32
; then
24406 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24408 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
24410 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24414 hardcode_into_libs
=yes
24415 dynamic_linker
="$host_os dld.sl"
24416 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
24417 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24418 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24419 soname_spec
='${libname}${release}${shared_ext}$major'
24420 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24421 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24425 dynamic_linker
="$host_os dld.sl"
24426 shlibpath_var
=SHLIB_PATH
24427 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
24428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24429 soname_spec
='${libname}${release}${shared_ext}$major'
24432 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24433 postinstall_cmds
='chmod 555 $lib'
24434 # or fails outright, so override atomically:
24435 install_override_mode
=555
24442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24443 soname_spec
='${libname}${release}${shared_ext}$major'
24444 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
24445 shlibpath_var
=LD_LIBRARY_PATH
24446 shlibpath_overrides_runpath
=no
24447 hardcode_into_libs
=yes
24450 irix5
* | irix6
* | nonstopux
*)
24452 nonstopux
*) version_type
=nonstopux
;;
24454 if test "$lt_cv_prog_gnu_ld" = yes; then
24462 soname_spec
='${libname}${release}${shared_ext}$major'
24463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24465 irix5
* | nonstopux
*)
24466 libsuff
= shlibsuff
=
24469 case $LD in # libtool.m4 will add one of these switches to LD
24470 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
24471 libsuff
= shlibsuff
= libmagic
=32-bit;;
24472 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
24473 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
24474 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
24475 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
24476 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
24480 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
24481 shlibpath_overrides_runpath
=no
24482 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24483 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
24484 hardcode_into_libs
=yes
24487 # No shared lib support for Linux oldld, aout, or coff.
24488 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
24492 # This must be Linux ELF.
24494 # uclinux* changes (here and below) have been submitted to the libtool
24495 # project, but have not yet been accepted: they are GCC-local changes
24496 # for the time being. (See
24497 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24498 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
24502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24503 soname_spec
='${libname}${release}${shared_ext}$major'
24504 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24505 shlibpath_var
=LD_LIBRARY_PATH
24506 shlibpath_overrides_runpath
=no
24508 # Some binutils ld are patched to set DT_RUNPATH
24509 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
24510 $as_echo_n "(cached) " >&6
24512 lt_cv_shlibpath_overrides_runpath
=no
24513 save_LDFLAGS
=$LDFLAGS
24514 save_libdir
=$libdir
24515 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24516 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24518 /* end confdefs.h. */
24528 if ac_fn_cxx_try_link
"$LINENO"; then :
24529 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
24530 lt_cv_shlibpath_overrides_runpath
=yes
24533 rm -f core conftest.err conftest.
$ac_objext \
24534 conftest
$ac_exeext conftest.
$ac_ext
24535 LDFLAGS
=$save_LDFLAGS
24536 libdir
=$save_libdir
24540 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
24542 # This implies no fast_install, which is unacceptable.
24543 # Some rework will be needed to allow for fast_install
24544 # before this can be enabled.
24545 hardcode_into_libs
=yes
24547 # Append ld.so.conf contents to the search path
24548 if test -f /etc
/ld.so.conf
; then
24549 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' ' '`
24550 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
24553 # We used to test for /lib/ld.so.1 and disable shared libraries on
24554 # powerpc, because MkLinux only supported shared libraries with the
24555 # GNU dynamic linker. Since this was broken with cross compilers,
24556 # most powerpc-linux boxes support dynamic linking these days and
24557 # people can always --disable-shared, the test was removed, and we
24558 # assume the GNU/Linux dynamic linker is in use.
24559 dynamic_linker
='GNU/Linux ld.so'
24566 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
24567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24568 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24569 dynamic_linker
='NetBSD (a.out) ld.so'
24571 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24572 soname_spec
='${libname}${release}${shared_ext}$major'
24573 dynamic_linker
='NetBSD ld.elf_so'
24575 shlibpath_var
=LD_LIBRARY_PATH
24576 shlibpath_overrides_runpath
=yes
24577 hardcode_into_libs
=yes
24582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24583 shlibpath_var
=LD_LIBRARY_PATH
24584 shlibpath_overrides_runpath
=yes
24591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24592 soname_spec
='${libname}${release}${shared_ext}$major'
24593 shlibpath_var
=LD_LIBRARY_PATH
24594 shlibpath_overrides_runpath
=no
24595 hardcode_into_libs
=yes
24596 dynamic_linker
='ldqnx.so'
24601 sys_lib_dlsearch_path_spec
="/usr/lib"
24603 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24605 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
24606 *) need_version
=no
;;
24608 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24609 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24610 shlibpath_var
=LD_LIBRARY_PATH
24611 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24613 openbsd2.
[89] | openbsd2.
[89].
*)
24614 shlibpath_overrides_runpath
=no
24617 shlibpath_overrides_runpath
=yes
24621 shlibpath_overrides_runpath
=yes
24626 libname_spec
='$name'
24629 library_names_spec
='$libname${shared_ext} $libname.a'
24630 dynamic_linker
='OS/2 ld.exe'
24631 shlibpath_var
=LIBPATH
24634 osf3
* | osf4
* | osf5
*)
24638 soname_spec
='${libname}${release}${shared_ext}$major'
24639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24640 shlibpath_var
=LD_LIBRARY_PATH
24641 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24642 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
24653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24654 soname_spec
='${libname}${release}${shared_ext}$major'
24655 shlibpath_var
=LD_LIBRARY_PATH
24656 shlibpath_overrides_runpath
=yes
24657 hardcode_into_libs
=yes
24658 # ldd complains unless libraries are executable
24659 postinstall_cmds
='chmod +x $lib'
24664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24665 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24666 shlibpath_var
=LD_LIBRARY_PATH
24667 shlibpath_overrides_runpath
=yes
24668 if test "$with_gnu_ld" = yes; then
24676 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24677 soname_spec
='${libname}${release}${shared_ext}$major'
24678 shlibpath_var
=LD_LIBRARY_PATH
24679 case $host_vendor in
24681 shlibpath_overrides_runpath
=no
24683 runpath_var
=LD_RUN_PATH
24691 shlibpath_overrides_runpath
=no
24692 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
24698 if test -d /usr
/nec
;then
24700 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24701 soname_spec
='$libname${shared_ext}.$major'
24702 shlibpath_var
=LD_LIBRARY_PATH
24706 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
24707 version_type
=freebsd-elf
24710 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24711 soname_spec
='${libname}${release}${shared_ext}$major'
24712 shlibpath_var
=LD_LIBRARY_PATH
24713 shlibpath_overrides_runpath
=yes
24714 hardcode_into_libs
=yes
24715 if test "$with_gnu_ld" = yes; then
24716 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24718 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
24721 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
24725 sys_lib_dlsearch_path_spec
='/usr/lib'
24729 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24733 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24734 shlibpath_var
=LD_LIBRARY_PATH
24735 shlibpath_overrides_runpath
=no
24736 hardcode_into_libs
=yes
24741 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24742 soname_spec
='${libname}${release}${shared_ext}$major'
24743 shlibpath_var
=LD_LIBRARY_PATH
24746 # Shared libraries for VwWorks, >= 7 only at this stage
24747 # and (fpic) still incompatible with "large" code models
24748 # in a few configurations. Only for RTP mode in any case,
24749 # and upon explicit request at configure time.
24752 case ${with_multisubdir}-${enable_shared} in
24759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24760 soname_spec
='${libname}${release}${shared_ext}$major'
24761 dynamic_linker
="$host_os module_loader"
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24770 $as_echo "$dynamic_linker" >&6; }
24771 test "$dynamic_linker" = no
&& can_build_shared
=no
24773 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
24774 if test "$GCC" = yes; then
24775 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24778 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24779 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
24781 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24782 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24823 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24824 hardcode_action_CXX
=
24825 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24826 test -n "$runpath_var_CXX" ||
24827 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24829 # We can hardcode non-existent directories.
24830 if test "$hardcode_direct_CXX" != no
&&
24831 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24832 # have to relink, otherwise we might link with an installed library
24833 # when we should be linking with a yet-to-be-installed one
24834 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24835 test "$hardcode_minus_L_CXX" != no
; then
24836 # Linking always hardcodes the temporary library directory.
24837 hardcode_action_CXX
=relink
24839 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24840 hardcode_action_CXX
=immediate
24843 # We cannot hardcode anything, or else we can only hardcode existing
24845 hardcode_action_CXX
=unsupported
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24848 $as_echo "$hardcode_action_CXX" >&6; }
24850 if test "$hardcode_action_CXX" = relink ||
24851 test "$inherit_rpath_CXX" = yes; then
24852 # Fast installation is not supported
24853 enable_fast_install
=no
24854 elif test "$shlibpath_overrides_runpath" = yes ||
24855 test "$enable_shared" = no
; then
24856 # Fast installation is not necessary
24857 enable_fast_install
=needless
24866 fi # test -n "$compiler"
24872 with_gnu_ld
=$lt_save_with_gnu_ld
24873 lt_cv_path_LDCXX
=$lt_cv_path_LD
24874 lt_cv_path_LD
=$lt_save_path_LD
24875 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
24876 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
24877 fi # test "$_lt_caught_CXX_error" != yes
24880 ac_cpp
='$CXXCPP $CPPFLAGS'
24881 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24882 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24883 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24900 # Only expand once:
24906 if test x
$enable_darwin_at_rpath = xyes
; then
24907 ENABLE_DARWIN_AT_RPATH_TRUE
=
24908 ENABLE_DARWIN_AT_RPATH_FALSE
='#'
24910 ENABLE_DARWIN_AT_RPATH_TRUE
='#'
24911 ENABLE_DARWIN_AT_RPATH_FALSE
=
24914 DARWIN_DO_EXTRA_RPATH
=0
24916 # Check whether --with-darwin-extra-rpath was given.
24917 if test "${with_darwin_extra_rpath+set}" = set; then :
24918 withval
=$with_darwin_extra_rpath; if test x
"$withval" != x
; then
24919 DARWIN_ADD_RPATH
="$withval"
24920 DARWIN_DO_EXTRA_RPATH
=1
24925 cat >>confdefs.h
<<_ACEOF
24926 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
24930 cat >>confdefs.h
<<_ACEOF
24931 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
24935 # Identify the assembler which will work hand-in-glove with the newly
24936 # built GCC, so that we can examine its features. This is the assembler
24937 # which will be driven by the driver program.
24939 # If build != host, and we aren't building gas in-tree, we identify a
24940 # build->target assembler and hope that it will have the same features
24941 # as the host->target assembler we'll be using.
24942 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
24944 if ${gcc_cv_as+:} false
; then :
24948 if test -x "$DEFAULT_ASSEMBLER"; then
24949 gcc_cv_as
="$DEFAULT_ASSEMBLER"
24950 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
24951 && test -f ..
/gas
/Makefile \
24952 && test x
$build = x
$host; then
24953 gcc_cv_as
=..
/gas
/as-new
$build_exeext
24954 elif test -x as
$build_exeext; then
24955 # Build using assembler in the current directory.
24956 gcc_cv_as
=.
/as
$build_exeext
24957 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
24958 gcc_cv_as
="$AS_FOR_TARGET"
24960 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
24961 set dummy
$AS_FOR_TARGET; ac_word
=$2
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24963 $as_echo_n "checking for $ac_word... " >&6; }
24964 if ${ac_cv_path_gcc_cv_as+:} false
; then :
24965 $as_echo_n "(cached) " >&6
24969 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
24972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24973 for as_dir
in $PATH
24976 test -z "$as_dir" && as_dir
=.
24977 for ac_exec_ext
in '' $ac_executable_extensions; do
24978 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24979 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
24980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24990 gcc_cv_as
=$ac_cv_path_gcc_cv_as
24991 if test -n "$gcc_cv_as"; then
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
24993 $as_echo "$gcc_cv_as" >&6; }
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24996 $as_echo "no" >&6; }
25003 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
25005 case "$ORIGINAL_AS_FOR_TARGET" in
25006 .
/as | .
/as
$build_exeext) ;;
25007 *) ac_config_files
="$ac_config_files as:exec-tool.in"
25012 # Check whether --enable-ld was given.
25013 if test "${enable_ld+set}" = set; then :
25014 enableval
=$enable_ld; case "${enableval}" in
25022 install_gold_as_default
=no
25023 # Check whether --enable-gold was given.
25024 if test "${enable_gold+set}" = set; then :
25025 enableval
=$enable_gold; case "${enableval}" in
25027 install_gold_as_default
=yes
25030 if test x
${default_ld} != x
; then
25031 install_gold_as_default
=yes
25037 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
25043 # Identify the linker which will work hand-in-glove with the newly
25044 # built GCC, so that we can examine its features. This is the linker
25045 # which will be driven by the driver program.
25047 # If build != host, and we aren't building gas in-tree, we identify a
25048 # build->target linker and hope that it will have the same features
25049 # as the host->target linker we'll be using.
25050 gcc_cv_gld_major_version
=
25051 gcc_cv_gld_minor_version
=
25052 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
25053 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
25054 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
25056 if ${gcc_cv_ld+:} false
; then :
25060 if test -x "$DEFAULT_LINKER"; then
25061 gcc_cv_ld
="$DEFAULT_LINKER"
25062 elif test $install_gold_as_default = yes \
25063 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
25064 && test -f ..
/gold
/Makefile \
25065 && test x
$build = x
$host; then
25066 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
25067 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
25068 && test -f ..
/ld
/Makefile \
25069 && test x
$build = x
$host; then
25070 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
25071 elif test -x collect-ld
$build_exeext; then
25072 # Build using linker in the current directory.
25073 gcc_cv_ld
=.
/collect-ld
$build_exeext
25074 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
25075 gcc_cv_ld
="$LD_FOR_TARGET"
25077 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25078 set dummy
$LD_FOR_TARGET; ac_word
=$2
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25080 $as_echo_n "checking for $ac_word... " >&6; }
25081 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
25082 $as_echo_n "(cached) " >&6
25086 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
25089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25090 for as_dir
in $PATH
25093 test -z "$as_dir" && as_dir
=.
25094 for ac_exec_ext
in '' $ac_executable_extensions; do
25095 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25096 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
25097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25107 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
25108 if test -n "$gcc_cv_ld"; then
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25110 $as_echo "$gcc_cv_ld" >&6; }
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25113 $as_echo "no" >&6; }
25120 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
25121 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25122 # if the PLUGIN_LD is set ld-new, just have it as ld
25123 # as that is the installed named.
25124 if test x
$PLUGIN_LD_SUFFIX = xld-new \
25125 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
25126 PLUGIN_LD_SUFFIX
=ld
25129 # Check whether --with-plugin-ld was given.
25130 if test "${with_plugin_ld+set}" = set; then :
25131 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
25132 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
25133 PLUGIN_LD_SUFFIX
="$withval"
25139 cat >>confdefs.h
<<_ACEOF
25140 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25144 # Check to see if we are using gold instead of ld
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25146 $as_echo_n "checking whether we are using gold... " >&6; }
25148 if test x
$gcc_cv_ld != x
; then
25149 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
25150 |
grep "GNU gold" > /dev
/null
; then
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25155 $as_echo "$ld_is_gold" >&6; }
25157 # Check to see if we are using mold instead of ld
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25159 $as_echo_n "checking whether we are using mold... " >&6; }
25161 if test x
$gcc_cv_ld != x
; then
25162 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
25163 |
grep "mold" > /dev
/null
; then
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25168 $as_echo "$ld_is_mold" >&6; }
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25172 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25173 # Check to see if default ld is not gold, but gold is
25174 # available and has support for split stack. If gcc was configured
25175 # with gold then no checking is done.
25177 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
25179 # For platforms other than powerpc64*, enable as appropriate.
25181 gold_non_default
=no
25182 ld_gold
=`which ${gcc_cv_ld}.gold`
25183 # Make sure this gold has minimal split stack support
25184 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
25185 ld_vers
=`$ld_gold --version | sed 1q`
25186 gold_vers
=`echo $ld_vers | sed -n \
25187 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25189 # check that the gold version contains the complete split stack support
25190 # on powerpc64 big and little endian
25192 case "$gold_vers" in
25193 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
25195 *) gold_non_default
=no
25201 if test $gold_non_default = yes; then
25203 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25208 $as_echo "$gold_non_default" >&6; }
25210 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
25212 case "$ORIGINAL_LD_FOR_TARGET" in
25213 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
25214 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25219 $as_echo_n "checking what linker to use... " >&6; }
25220 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
25221 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
25222 # Single tree build which includes ld. We want to prefer it
25223 # over whatever linker top-level may have detected, since
25224 # we'll use what we're building after installation anyway.
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25226 $as_echo "newly built ld" >&6; }
25228 in_tree_ld_is_elf
=no
25229 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
25230 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
25231 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
25232 in_tree_ld_is_elf
=yes
25233 elif test "$ld_is_gold" = yes; then
25234 in_tree_ld_is_elf
=yes
25236 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.ac
$gcc_cv_ld_gld_srcdir/Makefile.
in
25238 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25239 if test x
$gcc_cv_gld_version != x
; then
25243 case $gcc_cv_gld_version in
25245 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
25247 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25248 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25249 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
25250 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25253 $as_echo "$gcc_cv_ld" >&6; }
25255 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25256 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
25257 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
25263 # Figure out what nm we will be using.
25264 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25265 if ${gcc_cv_nm+:} false
; then :
25269 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25270 && test -f ..
/binutils
/Makefile \
25271 && test x
$build = x
$host; then
25272 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
25273 elif test -x nm
$build_exeext; then
25274 gcc_cv_nm
=.
/nm
$build_exeext
25275 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
25276 gcc_cv_nm
="$NM_FOR_TARGET"
25278 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25279 set dummy
$NM_FOR_TARGET; ac_word
=$2
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25281 $as_echo_n "checking for $ac_word... " >&6; }
25282 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
25283 $as_echo_n "(cached) " >&6
25287 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
25290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25291 for as_dir
in $PATH
25294 test -z "$as_dir" && as_dir
=.
25295 for ac_exec_ext
in '' $ac_executable_extensions; do
25296 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25297 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
25298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25308 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
25309 if test -n "$gcc_cv_nm"; then
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25311 $as_echo "$gcc_cv_nm" >&6; }
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25314 $as_echo "no" >&6; }
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25322 $as_echo_n "checking what nm to use... " >&6; }
25323 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
25324 # Single tree build which includes binutils.
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25326 $as_echo "newly built nm" >&6; }
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25330 $as_echo "$gcc_cv_nm" >&6; }
25334 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
25336 case "$ORIGINAL_NM_FOR_TARGET" in
25337 .
/nm | .
/nm
$build_exeext) ;;
25338 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
25343 # Figure out what objdump we will be using.
25344 if ${gcc_cv_objdump+:} false
; then :
25348 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25349 && test -f ..
/binutils
/Makefile \
25350 && test x
$build = x
$host; then
25351 # Single tree build which includes binutils.
25352 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
25353 elif test -x objdump
$build_exeext; then
25354 gcc_cv_objdump
=.
/objdump
$build_exeext
25355 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
25356 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
25358 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25359 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25361 $as_echo_n "checking for $ac_word... " >&6; }
25362 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
25363 $as_echo_n "(cached) " >&6
25365 case $gcc_cv_objdump in
25367 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
25370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25371 for as_dir
in $PATH
25374 test -z "$as_dir" && as_dir
=.
25375 for ac_exec_ext
in '' $ac_executable_extensions; do
25376 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25377 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
25378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25388 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
25389 if test -n "$gcc_cv_objdump"; then
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25391 $as_echo "$gcc_cv_objdump" >&6; }
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25394 $as_echo "no" >&6; }
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25402 $as_echo_n "checking what objdump to use... " >&6; }
25403 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
25404 # Single tree build which includes binutils.
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25406 $as_echo "newly built objdump" >&6; }
25407 elif test x
$gcc_cv_objdump = x
; then
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25409 $as_echo "not found" >&6; }
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25412 $as_echo "$gcc_cv_objdump" >&6; }
25415 # Figure out what readelf we will be using.
25416 if ${gcc_cv_readelf+:} false
; then :
25420 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25421 && test -f ..
/binutils
/Makefile \
25422 && test x
$build = x
$host; then
25423 # Single tree build which includes binutils.
25424 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
25425 elif test -x readelf
$build_exeext; then
25426 gcc_cv_readelf
=.
/readelf
$build_exeext
25427 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
25428 gcc_cv_readelf
="$READELF_FOR_TARGET"
25430 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25431 set dummy
$READELF_FOR_TARGET; ac_word
=$2
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25433 $as_echo_n "checking for $ac_word... " >&6; }
25434 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
25435 $as_echo_n "(cached) " >&6
25437 case $gcc_cv_readelf in
25439 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
25442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25443 for as_dir
in $PATH
25446 test -z "$as_dir" && as_dir
=.
25447 for ac_exec_ext
in '' $ac_executable_extensions; do
25448 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25449 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
25450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25460 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
25461 if test -n "$gcc_cv_readelf"; then
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25463 $as_echo "$gcc_cv_readelf" >&6; }
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25466 $as_echo "no" >&6; }
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25474 $as_echo_n "checking what readelf to use... " >&6; }
25475 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
25476 # Single tree build which includes binutils.
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25478 $as_echo "newly built readelf" >&6; }
25479 elif test x
$gcc_cv_readelf = x
; then
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25481 $as_echo "not found" >&6; }
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25484 $as_echo "$gcc_cv_readelf" >&6; }
25487 # Figure out what otool we will be using.
25488 if ${gcc_cv_otool+:} false
; then :
25492 if test -x otool
$build_exeext; then
25493 gcc_cv_otool
=.
/otool
$build_exeext
25494 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
25495 gcc_cv_otool
="$OTOOL_FOR_TARGET"
25497 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25498 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25500 $as_echo_n "checking for $ac_word... " >&6; }
25501 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
25502 $as_echo_n "(cached) " >&6
25504 case $gcc_cv_otool in
25506 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
25509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25510 for as_dir
in $PATH
25513 test -z "$as_dir" && as_dir
=.
25514 for ac_exec_ext
in '' $ac_executable_extensions; do
25515 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25516 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
25517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25527 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
25528 if test -n "$gcc_cv_otool"; then
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25530 $as_echo "$gcc_cv_otool" >&6; }
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25533 $as_echo "no" >&6; }
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25541 $as_echo_n "checking what otool to use... " >&6; }
25542 if test x
$gcc_cv_otool = x
; then
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25544 $as_echo "not found" >&6; }
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25547 $as_echo "$gcc_cv_otool" >&6; }
25550 # Figure out the dsymutil we will use.
25551 if ${gcc_cv_dsymutil+:} false
; then :
25555 if test -x "$DEFAULT_DSYMUTIL"; then
25556 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
25557 elif test -x dsymutil
$build_exeext; then
25558 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
25559 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
25560 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
25561 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
25562 gcc_cv_dsymutil
=$DSYMUTIL
25564 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25565 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25567 $as_echo_n "checking for $ac_word... " >&6; }
25568 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
25569 $as_echo_n "(cached) " >&6
25571 case $gcc_cv_dsymutil in
25573 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
25576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25577 for as_dir
in $PATH
25580 test -z "$as_dir" && as_dir
=.
25581 for ac_exec_ext
in '' $ac_executable_extensions; do
25582 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25583 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
25584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25594 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
25595 if test -n "$gcc_cv_dsymutil"; then
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25597 $as_echo "$gcc_cv_dsymutil" >&6; }
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25600 $as_echo "no" >&6; }
25607 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
25609 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25610 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
25611 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
25615 # Figure out what assembler alignment features are present.
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25617 $as_echo_n "checking assembler flags... " >&6; }
25618 if ${gcc_cv_as_flags+:} false
; then :
25619 $as_echo_n "(cached) " >&6
25622 i
[34567]86-*-linux*)
25623 gcc_cv_as_flags
=--32
25625 x86_64-
*-linux-gnux32)
25626 gcc_cv_as_flags
=--x32
25629 gcc_cv_as_flags
=--64
25631 powerpc
*-*-darwin*)
25632 gcc_cv_as_flags
="-arch ppc"
25635 gcc_cv_as_flags
=" "
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25640 $as_echo "$gcc_cv_as_flags" >&6; }
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25643 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25644 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
25645 $as_echo_n "(cached) " >&6
25647 gcc_cv_as_balign_and_p2align
=no
25648 if test x
$gcc_cv_as != x
; then
25649 $as_echo '.balign 4
25650 .p2align 2' > conftest.s
25651 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25653 (eval $ac_try) 2>&5
25655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }; }
25658 gcc_cv_as_balign_and_p2align
=yes
25660 echo "configure: failed program was" >&5
25663 rm -f conftest.o conftest.s
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25667 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25668 if test $gcc_cv_as_balign_and_p2align = yes; then
25670 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25676 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25677 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
25678 $as_echo_n "(cached) " >&6
25680 gcc_cv_as_max_skip_p2align
=no
25681 if test x
$gcc_cv_as != x
; then
25682 $as_echo '.p2align 4,,7' > conftest.s
25683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25685 (eval $ac_try) 2>&5
25687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25688 test $ac_status = 0; }; }
25690 gcc_cv_as_max_skip_p2align
=yes
25692 echo "configure: failed program was" >&5
25695 rm -f conftest.o conftest.s
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25699 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25700 if test $gcc_cv_as_max_skip_p2align = yes; then
25702 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25708 $as_echo_n "checking assembler for .literal16... " >&6; }
25709 if ${gcc_cv_as_literal16+:} false
; then :
25710 $as_echo_n "(cached) " >&6
25712 gcc_cv_as_literal16
=no
25713 if test x
$gcc_cv_as != x
; then
25714 $as_echo '.literal16' > conftest.s
25715 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25717 (eval $ac_try) 2>&5
25719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25720 test $ac_status = 0; }; }
25722 gcc_cv_as_literal16
=yes
25724 echo "configure: failed program was" >&5
25727 rm -f conftest.o conftest.s
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25731 $as_echo "$gcc_cv_as_literal16" >&6; }
25732 if test $gcc_cv_as_literal16 = yes; then
25734 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25740 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25741 if ${gcc_cv_as_subsection_m1+:} false
; then :
25742 $as_echo_n "(cached) " >&6
25744 gcc_cv_as_subsection_m1
=no
25745 if test x
$gcc_cv_as != x
; then
25746 $as_echo 'conftest_label1: .word 0
25748 conftest_label2: .word 0
25749 .previous' > conftest.s
25750 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25752 (eval $ac_try) 2>&5
25754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25755 test $ac_status = 0; }; }
25757 if test x
$gcc_cv_nm != x
; then
25758 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
25759 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
25760 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
25762 else gcc_cv_as_subsection_m1
=yes
25764 rm -f conftest.nm1 conftest.nm2
25767 echo "configure: failed program was" >&5
25770 rm -f conftest.o conftest.s
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25774 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25775 if test $gcc_cv_as_subsection_m1 = yes; then
25777 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25783 $as_echo_n "checking assembler for .weak... " >&6; }
25784 if ${gcc_cv_as_weak+:} false
; then :
25785 $as_echo_n "(cached) " >&6
25788 if test x
$gcc_cv_as != x
; then
25789 $as_echo ' .weak foobar' > conftest.s
25790 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25792 (eval $ac_try) 2>&5
25794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25795 test $ac_status = 0; }; }
25799 echo "configure: failed program was" >&5
25802 rm -f conftest.o conftest.s
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25806 $as_echo "$gcc_cv_as_weak" >&6; }
25807 if test $gcc_cv_as_weak = yes; then
25809 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25815 $as_echo_n "checking assembler for .weakref... " >&6; }
25816 if ${gcc_cv_as_weakref+:} false
; then :
25817 $as_echo_n "(cached) " >&6
25819 gcc_cv_as_weakref
=no
25820 if test x
$gcc_cv_as != x
; then
25821 $as_echo ' .weakref foobar, barfnot' > conftest.s
25822 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25824 (eval $ac_try) 2>&5
25826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25827 test $ac_status = 0; }; }
25829 gcc_cv_as_weakref
=yes
25831 echo "configure: failed program was" >&5
25834 rm -f conftest.o conftest.s
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25838 $as_echo "$gcc_cv_as_weakref" >&6; }
25839 if test $gcc_cv_as_weakref = yes; then
25841 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25847 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25848 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
25849 $as_echo_n "(cached) " >&6
25851 gcc_cv_as_nsubspa_comdat
=no
25852 if test x
$gcc_cv_as != x
; then
25853 $as_echo ' .SPACE $TEXT$
25854 .NSUBSPA $CODE$,COMDAT' > conftest.s
25855 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25857 (eval $ac_try) 2>&5
25859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25860 test $ac_status = 0; }; }
25862 gcc_cv_as_nsubspa_comdat
=yes
25864 echo "configure: failed program was" >&5
25867 rm -f conftest.o conftest.s
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
25871 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
25872 if test $gcc_cv_as_nsubspa_comdat = yes; then
25874 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
25879 # .hidden needs to be supported in both the assembler and the linker,
25880 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25881 # This is irritatingly difficult to feature test for; we have to check the
25882 # date string after the version number. If we've got an in-tree
25883 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25885 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25886 case "${target}" in
25888 conftest_s
=' .globl foobar,hidden'
25891 conftest_s
=' .hidden foobar
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
25896 $as_echo_n "checking assembler for .hidden... " >&6; }
25897 if ${gcc_cv_as_hidden+:} false
; then :
25898 $as_echo_n "(cached) " >&6
25900 gcc_cv_as_hidden
=no
25901 if test x
$gcc_cv_as != x
; then
25902 $as_echo "$conftest_s" > conftest.s
25903 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25905 (eval $ac_try) 2>&5
25907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25908 test $ac_status = 0; }; }
25910 gcc_cv_as_hidden
=yes
25912 echo "configure: failed program was" >&5
25915 rm -f conftest.o conftest.s
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
25919 $as_echo "$gcc_cv_as_hidden" >&6; }
25922 case "${target}" in
25924 # Darwin as has some visibility support, though with a different syntax.
25925 gcc_cv_as_hidden
=yes
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .base64" >&5
25930 $as_echo_n "checking assembler for .base64... " >&6; }
25931 if ${gcc_cv_as_base64+:} false
; then :
25932 $as_echo_n "(cached) " >&6
25934 gcc_cv_as_base64
=no
25935 if test x
$gcc_cv_as != x
; then
25936 $as_echo ' .section .rodata
25937 .base64 "Tm9uIHB1ZG9yIGVzdCBuaWwgc2NpcmUsIHB1ZG9yIG5pbCBkaXNjZXJlIHZlbGxlLgo="' > conftest.s
25938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25945 gcc_cv_as_base64
=yes
25947 echo "configure: failed program was" >&5
25950 rm -f conftest.o conftest.s
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_base64" >&5
25954 $as_echo "$gcc_cv_as_base64" >&6; }
25955 if test $gcc_cv_as_base64 = yes; then
25957 $as_echo "#define HAVE_GAS_BASE64 1" >>confdefs.h
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .cv_ucomp" >&5
25963 $as_echo_n "checking assembler for .cv_ucomp... " >&6; }
25964 if ${gcc_cv_as_cv_ucomp+:} false
; then :
25965 $as_echo_n "(cached) " >&6
25967 gcc_cv_as_cv_ucomp
=no
25968 if test x
$gcc_cv_as != x
; then
25969 $as_echo '.cv_ucomp 0' > conftest.s
25970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25972 (eval $ac_try) 2>&5
25974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25975 test $ac_status = 0; }; }
25977 gcc_cv_as_cv_ucomp
=yes
25979 echo "configure: failed program was" >&5
25982 rm -f conftest.o conftest.s
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cv_ucomp" >&5
25986 $as_echo "$gcc_cv_as_cv_ucomp" >&6; }
25987 if test $gcc_cv_as_cv_ucomp = yes; then
25989 $as_echo "#define HAVE_GAS_CV_UCOMP 1" >>confdefs.h
25994 # gnu_indirect_function type is an extension proposed at
25995 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
25996 # selection of function implementation
25997 # Check whether --enable-gnu-indirect-function was given.
25998 if test "${enable_gnu_indirect_function+set}" = set; then :
25999 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
26001 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
26002 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26005 enable_gnu_indirect_function
="$default_gnu_indirect_function"
26009 case "${target}" in
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
26012 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
26013 cat > conftest.s
<<EOF
26015 .type foo_resolver, @function
26018 .size foo_resolver, .-foo_resolver
26021 .type foo, %gnu_indirect_function
26022 .set foo, foo_resolver
26025 .type bar, @function
26031 if test x
$gcc_cv_as != x \
26032 && test x
$gcc_cv_ld != x \
26033 && test x
$gcc_cv_readelf != x \
26034 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
26035 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
26036 && $gcc_cv_readelf --relocs --wide conftest \
26037 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
26038 enable_gnu_indirect_function
=yes
26040 rm -f conftest conftest.o conftest.s
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
26042 $as_echo "$enable_gnu_indirect_function" >&6; }
26046 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
26048 cat >>confdefs.h
<<_ACEOF
26049 #define HAVE_GNU_INDIRECT_FUNCTION $gif
26054 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
26055 if test $in_tree_ld != yes ; then
26056 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26057 if test x
"$ld_is_gold" = xyes
; then
26058 # GNU gold --version looks like this:
26060 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
26062 # We extract the binutils version which is more familiar and specific
26063 # than the gold version.
26064 ld_vers
=`echo $ld_ver | sed -n \
26065 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26067 # GNU ld --version looks like this:
26069 # GNU ld (GNU Binutils) 2.21.51.20110225
26070 ld_vers
=`echo $ld_ver | sed -n \
26071 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26073 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
26074 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26075 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26076 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
26078 case "${target}" in
26080 # Solaris 2 ld -V output looks like this for a regular version:
26082 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
26084 # but test versions add stuff at the end:
26086 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
26088 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
26089 # numbers can be used in ld.so.1 feature checks even if a different
26090 # linker is configured.
26091 ld_ver
=`$gcc_cv_ld -V 2>&1`
26092 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
26093 ld_vers
=`echo $ld_ver | sed -n \
26094 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
26095 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26096 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
26104 $as_echo_n "checking linker for .hidden support... " >&6; }
26105 if ${gcc_cv_ld_hidden+:} false
; then :
26106 $as_echo_n "(cached) " >&6
26108 if test $in_tree_ld = yes ; then
26109 gcc_cv_ld_hidden
=no
26110 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
26111 && test $in_tree_ld_is_elf = yes; then
26112 gcc_cv_ld_hidden
=yes
26115 gcc_cv_ld_hidden
=yes
26116 if test x
"$ld_is_gold" = xyes
; then
26118 elif test x
"$ld_is_mold" = xyes
; then
26120 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26121 if test 0"$ld_date" -lt 20020404; then
26122 if test -n "$ld_date"; then
26123 # If there was date string, but was earlier than 2002-04-04, fail
26124 gcc_cv_ld_hidden
=no
26125 elif test -z "$ld_vers"; then
26126 # If there was no date string nor ld version number, something is wrong
26127 gcc_cv_ld_hidden
=no
26129 test -z "$ld_vers_patch" && ld_vers_patch
=0
26130 if test "$ld_vers_major" -lt 2; then
26131 gcc_cv_ld_hidden
=no
26132 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26133 gcc_cv_ld_hidden
="no"
26134 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26135 gcc_cv_ld_hidden
=no
26140 case "${target}" in
26142 gcc_cv_ld_hidden
=yes
26145 # Darwin ld has some visibility support.
26146 gcc_cv_ld_hidden
=yes
26148 hppa64
*-*-hpux* | ia64
*-*-hpux*)
26149 gcc_cv_ld_hidden
=yes
26152 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26153 # .symbolic was only added in Solaris 9 12/02.
26154 gcc_cv_ld_hidden
=yes
26157 gcc_cv_ld_hidden
=no
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26164 $as_echo "$gcc_cv_ld_hidden" >&6; }
26165 libgcc_visibility
=no
26168 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26169 libgcc_visibility
=yes
26171 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26176 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26177 gcc_cv_ld_ro_rw_mix
=unknown
26178 if test $in_tree_ld = yes ; then
26179 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
26180 && test $in_tree_ld_is_elf = yes; then
26181 gcc_cv_ld_ro_rw_mix
=read-write
26183 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26184 echo '.section myfoosect, "a"' > conftest1.s
26185 echo '.section myfoosect, "aw"' > conftest2.s
26186 echo '.byte 1' >> conftest2.s
26187 echo '.section myfoosect, "a"' > conftest3.s
26188 echo '.byte 0' >> conftest3.s
26189 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26190 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26191 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1; then
26192 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26193 conftest2.o conftest3.o
> /dev
/null
2>&1 \
26194 ||
$gcc_cv_ld -r -o conftest1.so conftest1.o \
26195 conftest2.o conftest3.o
> /dev
/null
2>&1; then
26196 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
26197 | sed -e '/myfoosect/!d' -e N`
26198 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
26199 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
26200 gcc_cv_ld_ro_rw_mix
=read-only
26202 gcc_cv_ld_ro_rw_mix
=read-write
26207 rm -f conftest.
* conftest
[123].
*
26209 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
26211 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26215 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26217 # Check whether --enable-initfini-array was given.
26218 if test "${enable_initfini_array+set}" = set; then :
26219 enableval
=$enable_initfini_array;
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26223 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26224 if ${gcc_cv_initfini_array+:} false
; then :
26225 $as_echo_n "(cached) " >&6
26227 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26228 case "${target}" in
26230 if test "$cross_compiling" = yes; then :
26231 gcc_cv_initfini_array
=no
26233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26234 /* end confdefs.h. */
26237 #error Not an ELF OS
26239 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26240 if it can be used. */
26242 int main (void) { return x; }
26243 int foo (void) { x = 0; }
26244 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26247 if ac_fn_cxx_try_run
"$LINENO"; then :
26248 gcc_cv_initfini_array
=yes
26250 gcc_cv_initfini_array
=no
26252 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26253 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26257 gcc_cv_initfini_array
=no
26258 if test $in_tree_ld = yes ; then
26259 if test "$gcc_cv_gld_major_version" -eq 2 \
26260 -a "$gcc_cv_gld_minor_version" -ge 22 \
26261 -o "$gcc_cv_gld_major_version" -gt 2 \
26262 && test $in_tree_ld_is_elf = yes; then
26263 gcc_cv_initfini_array
=yes
26265 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26266 case $target:$gas in
26269 sh_type
='%progbits'
26271 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
26273 sh_type
='@progbits'
26275 sparc
*-*-solaris2*:no
)
26277 sh_type
='#progbits'
26281 case "$target:$gnu_ld" in
26283 cat > conftest.s
<<EOF
26284 .section .dtors,$sh_flags,$sh_type
26286 .byte 'A', 'A', 'A', 'A'
26287 .section .ctors,$sh_flags,$sh_type
26289 .byte 'B', 'B', 'B', 'B'
26290 .section .fini_array.65530,$sh_flags,$sh_type
26292 .byte 'C', 'C', 'C', 'C'
26293 .section .init_array.65530,$sh_flags,$sh_type
26295 .byte 'D', 'D', 'D', 'D'
26296 .section .dtors.64528,$sh_flags,$sh_type
26298 .byte 'E', 'E', 'E', 'E'
26299 .section .ctors.64528,$sh_flags,$sh_type
26301 .byte 'F', 'F', 'F', 'F'
26302 .section .fini_array.01005,$sh_flags,$sh_type
26304 .byte 'G', 'G', 'G', 'G'
26305 .section .init_array.01005,$sh_flags,$sh_type
26307 .byte 'H', 'H', 'H', 'H'
26312 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
26313 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
26314 && $gcc_cv_objdump -s -j .init_array conftest \
26315 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
26316 && $gcc_cv_objdump -s -j .fini_array conftest \
26317 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
26318 gcc_cv_initfini_array
=yes
26322 # When Solaris ld added constructor priority support, it was
26323 # decided to only handle .init_array.N/.fini_array.N since
26324 # there was no need for backwards compatibility with
26325 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26326 # sections with correct execution order resp. to
26327 # .init_array/.fini_array, while gld merges them into
26328 # .init_array/.fini_array.
26329 cat > conftest.s
<<EOF
26330 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26332 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26333 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26335 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26336 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26338 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26339 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26341 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26346 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
26347 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
26348 && $gcc_cv_objdump -s -j .init_array conftest \
26349 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
26350 && $gcc_cv_objdump -s -j .fini_array conftest \
26351 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
26352 gcc_cv_initfini_array
=yes
26356 rm -f conftest conftest.
*
26358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26359 /* end confdefs.h. */
26362 # error Not an ELF OS
26364 #include <stdlib.h>
26365 #if defined __GLIBC_PREREQ
26366 # if __GLIBC_PREREQ (2, 4)
26368 # error GLIBC 2.4 required
26371 # if defined __sun__ && defined __svr4__
26372 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26374 # error The C library not known to support .init_array/.fini_array
26379 if ac_fn_cxx_try_cpp
"$LINENO"; then :
26382 gcc_cv_initfini_array
=no
26384 rm -f conftest.err conftest.i conftest.
$ac_ext;;
26387 case "${target}" in
26388 aarch64
*-linux-gnu*)
26389 # AArch64 postdates glibc support for .init_array/.fini_array,
26390 # so we don't need the preprocessor test above.
26391 gcc_cv_initfini_array
=yes
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26396 $as_echo_n "checking cross compile... guessing... " >&6; }
26397 gcc_cv_initfini_array
=no
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26403 $as_echo "$gcc_cv_initfini_array" >&6; }
26404 enable_initfini_array
=$gcc_cv_initfini_array
26409 cat >>confdefs.h
<<_ACEOF
26410 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26415 # Some assemblers (GNU as for LoongArch) generates relocations for
26416 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26417 # probing leb128 support then.
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26421 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26422 if ${gcc_cv_as_mno_relax+:} false
; then :
26423 $as_echo_n "(cached) " >&6
26425 gcc_cv_as_mno_relax
=no
26426 if test x
$gcc_cv_as != x
; then
26427 $as_echo '.text' > conftest.s
26428 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26430 (eval $ac_try) 2>&5
26432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26433 test $ac_status = 0; }; }
26435 gcc_cv_as_mno_relax
=yes
26437 echo "configure: failed program was" >&5
26440 rm -f conftest.o conftest.s
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26444 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26445 if test $gcc_cv_as_mno_relax = yes; then
26446 check_leb128_asflags
=-mno-relax
26451 check_leb128_asflags
=
26455 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26456 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26457 # these directives, even when they appear to accept them.
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26459 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26460 if ${gcc_cv_as_leb128+:} false
; then :
26461 $as_echo_n "(cached) " >&6
26463 gcc_cv_as_leb128
=no
26464 if test x
$gcc_cv_as != x
; then
26471 .uleb128 0x8000000000000000
26473 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26475 (eval $ac_try) 2>&5
26477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26478 test $ac_status = 0; }; }
26481 if test "x$gcc_cv_objdump" != x
; then
26482 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
26483 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
26484 gcc_cv_as_leb128
=yes
26486 elif test "x$gcc_cv_otool" != x
; then
26487 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
26488 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
26489 gcc_cv_as_leb128
=yes
26492 # play safe, assume the assembler is broken.
26497 echo "configure: failed program was" >&5
26500 rm -f conftest.o conftest.s
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26504 $as_echo "$gcc_cv_as_leb128" >&6; }
26505 if test $gcc_cv_as_leb128 = yes; then
26507 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26510 if test $gcc_cv_as_leb128 != yes; then
26512 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26516 # Determine if an .eh_frame section is read-only.
26517 gcc_fn_eh_frame_ro
() {
26518 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
26519 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
26520 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
26523 # Check if we have assembler support for unwind directives.
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26525 $as_echo_n "checking assembler for cfi directives... " >&6; }
26526 if ${gcc_cv_as_cfi_directive+:} false
; then :
26527 $as_echo_n "(cached) " >&6
26529 gcc_cv_as_cfi_directive
=no
26530 if test x
$gcc_cv_as != x
; then
26536 .cfi_escape 1, 2, 3, 4, 5
26537 .cfi_endproc' > conftest.s
26538 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26540 (eval $ac_try) 2>&5
26542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26543 test $ac_status = 0; }; }
26547 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26548 # read-only and read-write sections, we need to make sure that the
26549 # assembler used emits read-write .eh_frame sections.
26550 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
26551 gcc_cv_as_cfi_directive
=yes
26552 elif test "x$gcc_cv_objdump" = x
; then
26553 # No objdump, err on the side of caution.
26554 gcc_cv_as_cfi_directive
=no
26556 if test x
$gas = xyes
; then
26564 sparc
*-*-solaris2.
*)
26565 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26566 if gcc_fn_eh_frame_ro
$as_32_opt \
26567 || gcc_fn_eh_frame_ro
$as_64_opt; then
26568 gcc_cv_as_cfi_directive
=no
26570 gcc_cv_as_cfi_directive
=yes
26573 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
26574 # On Solaris/x86, make sure that GCC and assembler agree on using
26575 # read-only .eh_frame sections for 64-bit.
26576 if gcc_fn_eh_frame_ro
$as_32_opt; then
26577 gcc_cv_as_cfi_directive
=no
26578 elif gcc_fn_eh_frame_ro
$as_64_opt; then
26579 gcc_cv_as_cfi_directive
=yes
26581 gcc_cv_as_cfi_directive
=no
26588 gcc_cv_as_cfi_directive
=yes
26592 echo "configure: failed program was" >&5
26595 rm -f conftest.o conftest.s
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26599 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26602 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26604 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26605 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
26606 $as_echo_n "(cached) " >&6
26608 gcc_cv_as_cfi_advance_working
=no
26609 if test x
$gcc_cv_as != x
; then
26612 .cfi_adjust_cfa_offset 64
26614 .cfi_adjust_cfa_offset 128
26615 .cfi_endproc' > conftest.s
26616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26618 (eval $ac_try) 2>&5
26620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26621 test $ac_status = 0; }; }
26624 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
26625 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
26626 gcc_cv_as_cfi_advance_working
=yes
26630 echo "configure: failed program was" >&5
26633 rm -f conftest.o conftest.s
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26637 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26641 # no objdump, err on the side of caution
26642 gcc_cv_as_cfi_advance_working
=no
26646 cat >>confdefs.h
<<_ACEOF
26647 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26648 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26654 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26655 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
26656 $as_echo_n "(cached) " >&6
26658 gcc_cv_as_cfi_personality_directive
=no
26659 if test x
$gcc_cv_as != x
; then
26662 .cfi_personality 0, symbol
26663 .cfi_endproc' > conftest.s
26664 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26666 (eval $ac_try) 2>&5
26668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26669 test $ac_status = 0; }; }
26671 gcc_cv_as_cfi_personality_directive
=yes
26673 echo "configure: failed program was" >&5
26676 rm -f conftest.o conftest.s
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26680 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26684 cat >>confdefs.h
<<_ACEOF
26685 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26690 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26691 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
26692 $as_echo_n "(cached) " >&6
26694 gcc_cv_as_cfi_sections_directive
=no
26695 if test x
$gcc_cv_as != x
; then
26697 .cfi_sections .debug_frame, .eh_frame
26699 .cfi_endproc' > conftest.s
26700 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26702 (eval $ac_try) 2>&5
26704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26705 test $ac_status = 0; }; }
26708 win32 | pe | cygwin
* | mingw32
*)
26709 # Need to check that we generated the correct relocation for the
26710 # .debug_frame section. This was fixed for binutils 2.21.
26711 gcc_cv_as_cfi_sections_directive
=no
26712 if test "x$gcc_cv_objdump" != x
; then
26713 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
26714 grep -i secrel
> /dev
/null
; then
26715 gcc_cv_as_cfi_sections_directive
=yes
26720 gcc_cv_as_cfi_sections_directive
=yes
26724 echo "configure: failed program was" >&5
26727 rm -f conftest.o conftest.s
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26731 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26736 cat >>confdefs.h
<<_ACEOF
26737 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26741 # GAS versions up to and including 2.11.0 may mis-optimize
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26744 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26745 if ${gcc_cv_as_eh_frame+:} false
; then :
26746 $as_echo_n "(cached) " >&6
26748 gcc_cv_as_eh_frame
=no
26749 if test x
$gcc_cv_as != x
; then
26756 .section .eh_frame,"aw",@progbits
26758 .4byte .LECIE1-.LSCIE1
26772 .4byte .LEFDE1-.LASFDE1
26774 .4byte .LASFDE1-__FRAME_BEGIN__
26781 .LEFDE1:' > conftest.s
26782 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26784 (eval $ac_try) 2>&5
26786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26787 test $ac_status = 0; }; }
26789 cat > conftest.lit
<<EOF
26790 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26791 0010 01000000 12000000 18000000 00000000 ................
26792 0020 08000000 04080000 0044 .........D
26794 cat > conftest.big
<<EOF
26795 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26796 0010 00000001 00000012 00000018 00000000 ................
26797 0020 00000008 04000000 0844 .........D
26799 # If the assembler didn't choke, and we can objdump,
26800 # and we got the correct data, then succeed.
26801 # The text in the here-document typically retains its unix-style line
26802 # endings, while the output of objdump will use host line endings.
26803 # Therefore, use diff -b for the comparisons.
26804 if test x
$gcc_cv_objdump != x \
26805 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
26806 |
tail -3 > conftest.got \
26807 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
26808 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
26810 gcc_cv_as_eh_frame
=yes
26811 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26813 (eval $ac_try) 2>&5
26815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26816 test $ac_status = 0; }; }; then
26817 gcc_cv_as_eh_frame
=buggy
26819 # Uh oh, what do we do now?
26820 gcc_cv_as_eh_frame
=no
26823 echo "configure: failed program was" >&5
26826 rm -f conftest.o conftest.s
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26830 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26834 if test $gcc_cv_as_eh_frame = buggy
; then
26836 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26840 # Test if the assembler supports the section flag 'e' or #exclude for
26841 # specifying an excluded section.
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26843 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26844 if ${gcc_cv_as_section_exclude_e+:} false
; then :
26845 $as_echo_n "(cached) " >&6
26847 gcc_cv_as_section_exclude_e
=no
26848 if test x
$gcc_cv_as != x
; then
26849 $as_echo '.section foo1,"e"
26850 .byte 0,0,0,0' > conftest.s
26851 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26853 (eval $ac_try) 2>&5
26855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26856 test $ac_status = 0; }; }
26858 gcc_cv_as_section_exclude_e
=yes
26860 echo "configure: failed program was" >&5
26863 rm -f conftest.o conftest.s
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26867 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26870 if test $gcc_cv_as_section_exclude_e = no
; then
26871 case "${target}" in
26872 # Solaris as uses #exclude instead.
26874 case "${target}" in
26875 sparc
*-*-solaris2*)
26876 conftest_s
='.section "foo1", #exclude'
26878 i?
86-*-solaris2* | x86_64-
*-solaris2*)
26879 conftest_s
='.section foo1, #exclude'
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26885 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26886 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
26887 $as_echo_n "(cached) " >&6
26889 gcc_cv_as_section_exclude_hash
=no
26890 if test x
$gcc_cv_as != x
; then
26891 $as_echo "$conftest_s
26892 .byte 0,0,0,0" > conftest.s
26893 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26895 (eval $ac_try) 2>&5
26897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26898 test $ac_status = 0; }; }
26900 gcc_cv_as_section_exclude_hash
=yes
26902 echo "configure: failed program was" >&5
26905 rm -f conftest.o conftest.s
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26909 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26914 cat >>confdefs.h
<<_ACEOF
26915 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
26919 # Test if the assembler supports the section flag 'R' for specifying
26920 # section with SHF_GNU_RETAIN.
26921 case "${target}" in
26922 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26923 # assembler supports the section flag 'R', it doesn't mean that
26924 # Solairs ld supports it.
26926 gcc_cv_as_shf_gnu_retain
=no
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
26930 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
26931 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
26932 $as_echo_n "(cached) " >&6
26934 gcc_cv_as_shf_gnu_retain
=no
26935 if test x
$gcc_cv_as != x
; then
26936 $as_echo '.section .foo,"awR",%progbits
26937 .byte 0' > conftest.s
26938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26940 (eval $ac_try) 2>&5
26942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26943 test $ac_status = 0; }; }
26945 gcc_cv_as_shf_gnu_retain
=yes
26947 echo "configure: failed program was" >&5
26950 rm -f conftest.o conftest.s
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
26954 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
26960 cat >>confdefs.h
<<_ACEOF
26961 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
26965 # Test if the assembler supports the section flag 'o' for specifying
26966 # section with link-order.
26967 case "${target}" in
26968 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26969 # assembler supports the section flag 'o', it doesn't mean that
26970 # Solairs ld supports it.
26972 gcc_cv_as_section_link_order
=no
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
26976 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
26977 if ${gcc_cv_as_section_link_order+:} false
; then :
26978 $as_echo_n "(cached) " >&6
26980 gcc_cv_as_section_link_order
=no
26981 if test x
$gcc_cv_as != x
; then
26982 $as_echo '.section .foo,"a"
26984 .section __patchable_function_entries,"awo",%progbits,.foo
26985 .byte 0' > conftest.s
26986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26988 (eval $ac_try) 2>&5
26990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26991 test $ac_status = 0; }; }
26993 gcc_cv_as_section_link_order
=yes
26995 echo "configure: failed program was" >&5
26998 rm -f conftest.o conftest.s
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
27002 $as_echo "$gcc_cv_as_section_link_order" >&6; }
27008 cat >>confdefs.h
<<_ACEOF
27009 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27014 $as_echo_n "checking assembler for section merging support... " >&6; }
27015 if ${gcc_cv_as_shf_merge+:} false
; then :
27016 $as_echo_n "(cached) " >&6
27018 gcc_cv_as_shf_merge
=no
27019 if test x
$gcc_cv_as != x
; then
27020 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
27021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27023 (eval $ac_try) 2>&5
27025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27026 test $ac_status = 0; }; }
27028 gcc_cv_as_shf_merge
=yes
27030 echo "configure: failed program was" >&5
27033 rm -f conftest.o conftest.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27037 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27040 if test $gcc_cv_as_shf_merge = no
; then
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support (%progbits)" >&5
27042 $as_echo_n "checking assembler for section merging support (%progbits)... " >&6; }
27043 if ${gcc_cv_as_shf_merge_percent+:} false
; then :
27044 $as_echo_n "(cached) " >&6
27046 gcc_cv_as_shf_merge_percent
=no
27047 if test x
$gcc_cv_as != x
; then
27048 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
27049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27051 (eval $ac_try) 2>&5
27053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27054 test $ac_status = 0; }; }
27056 gcc_cv_as_shf_merge_percent
=yes
27058 echo "configure: failed program was" >&5
27061 rm -f conftest.o conftest.s
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge_percent" >&5
27065 $as_echo "$gcc_cv_as_shf_merge_percent" >&6; }
27070 cat >>confdefs.h
<<_ACEOF
27071 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes \
27072 || test $gcc_cv_as_shf_merge_percent = yes; then echo 1; else echo 0; fi`
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
27077 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
27078 if ${gcc_cv_as_comdat_group+:} false
; then :
27079 $as_echo_n "(cached) " >&6
27081 gcc_cv_as_comdat_group
=no
27082 if test x
$gcc_cv_as != x
; then
27083 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
27084 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27086 (eval $ac_try) 2>&5
27088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27089 test $ac_status = 0; }; }
27091 gcc_cv_as_comdat_group
=yes
27093 echo "configure: failed program was" >&5
27096 rm -f conftest.o conftest.s
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
27100 $as_echo "$gcc_cv_as_comdat_group" >&6; }
27103 if test $gcc_cv_as_comdat_group = yes; then
27104 gcc_cv_as_comdat_group_percent
=no
27105 gcc_cv_as_comdat_group_group
=no
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
27108 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
27109 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
27110 $as_echo_n "(cached) " >&6
27112 gcc_cv_as_comdat_group_percent
=no
27113 if test x
$gcc_cv_as != x
; then
27114 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
27115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27117 (eval $ac_try) 2>&5
27119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27120 test $ac_status = 0; }; }
27122 gcc_cv_as_comdat_group_percent
=yes
27124 echo "configure: failed program was" >&5
27127 rm -f conftest.o conftest.s
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
27131 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27134 if test $gcc_cv_as_comdat_group_percent = yes; then
27135 gcc_cv_as_comdat_group_group
=no
27137 case "${target}" in
27138 # Sun as uses a completely different syntax.
27140 case "${target}" in
27141 sparc
*-*-solaris2*)
27143 .group foo,".text%foo",#comdat
27144 .section ".text%foo", #alloc,#execinstr,#progbits
27149 i?
86-*-solaris2* | x86_64-
*-solaris2*)
27151 .group foo,.text%foo,#comdat
27152 .section .text%foo, "ax", @progbits
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27159 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27160 if ${gcc_cv_as_comdat_group_group+:} false
; then :
27161 $as_echo_n "(cached) " >&6
27163 gcc_cv_as_comdat_group_group
=no
27164 if test x
$gcc_cv_as != x
; then
27165 $as_echo "$conftest_s" > conftest.s
27166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27168 (eval $ac_try) 2>&5
27170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27171 test $ac_status = 0; }; }
27173 gcc_cv_as_comdat_group_group
=yes
27175 echo "configure: failed program was" >&5
27178 rm -f conftest.o conftest.s
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27182 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27187 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27188 gcc_cv_as_comdat_group_group
=no
27192 if test x
"$ld_is_gold" = xyes
; then
27194 elif test x
"$ld_is_mold" = xyes
; then
27196 elif test $in_tree_ld = yes ; then
27198 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
27199 && test $in_tree_ld_is_elf = yes; then
27202 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27204 if test 0"$ld_date" -lt 20050308; then
27205 if test -n "$ld_date"; then
27206 # If there was date string, but was earlier than 2005-03-08, fail
27208 elif test "$ld_vers_major" -lt 2; then
27210 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27215 case "${target}" in
27216 *-*-solaris2.1
[1-9]*)
27218 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27219 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27222 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27223 # least ld version 1.2267.
27224 if test "$ld_vers_major" -gt 1; then
27226 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
27228 elif test "$ld_vers_minor" -ge 2267; then
27233 # Assume linkers other than GNU ld don't support COMDAT group.
27238 # Allow overriding the automatic COMDAT group tests above.
27239 # Check whether --enable-comdat was given.
27240 if test "${enable_comdat+set}" = set; then :
27241 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
27244 if test $comdat_group = no
; then
27245 gcc_cv_as_comdat_group
=no
27246 gcc_cv_as_comdat_group_percent
=no
27247 gcc_cv_as_comdat_group_group
=no
27250 cat >>confdefs.h
<<_ACEOF
27251 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27252 || test $gcc_cv_as_comdat_group_percent = yes \
27253 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27258 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27259 if ${gcc_cv_as_is_stmt+:} false
; then :
27260 $as_echo_n "(cached) " >&6
27262 gcc_cv_as_is_stmt
=no
27263 if test x
$gcc_cv_as != x
; then
27266 .loc 1 1 0 is_stmt 1' > conftest.s
27267 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27269 (eval $ac_try) 2>&5
27271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27272 test $ac_status = 0; }; }
27274 gcc_cv_as_is_stmt
=yes
27276 echo "configure: failed program was" >&5
27279 rm -f conftest.o conftest.s
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27283 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27284 if test $gcc_cv_as_is_stmt = yes; then
27286 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27292 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27293 if ${gcc_cv_as_discriminator+:} false
; then :
27294 $as_echo_n "(cached) " >&6
27296 gcc_cv_as_discriminator
=no
27297 if test x
$gcc_cv_as != x
; then
27300 .loc 1 1 0 discriminator 1' > conftest.s
27301 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27303 (eval $ac_try) 2>&5
27305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27306 test $ac_status = 0; }; }
27308 gcc_cv_as_discriminator
=yes
27310 echo "configure: failed program was" >&5
27313 rm -f conftest.o conftest.s
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27317 $as_echo "$gcc_cv_as_discriminator" >&6; }
27318 if test $gcc_cv_as_discriminator = yes; then
27320 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27325 # Catch the newlib flag of the same name so we can gate GCC features on it.
27326 # Check whether --enable-newlib-nano-formatted-io was given.
27327 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27328 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
27332 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27338 # Thread-local storage - the check is heavily parameterized.
27344 .section ".tdata","awT",@progbits
27347 ldq $27,__tls_get_addr($29) !literal!1
27348 lda $16,foo($29) !tlsgd!1
27349 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27350 ldq $27,__tls_get_addr($29) !literal!2
27351 lda $16,foo($29) !tlsldm!2
27352 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27353 ldq $1,foo($29) !gotdtprel
27354 ldah $2,foo($29) !dtprelhi
27355 lda $3,foo($2) !dtprello
27356 lda $4,foo($29) !dtprel
27357 ldq $1,foo($29) !gottprel
27358 ldah $2,foo($29) !tprelhi
27359 lda $3,foo($2) !tprello
27360 lda $4,foo($29) !tprel'
27361 tls_as_opt
=--fatal-warnings
27365 add_s r0,r0, @foo@tpoff'
27367 cris-
*-*|crisv32-
*-*)
27369 .section ".tdata","awT",@progbits
27374 tls_as_opt
=--fatal-warnings
27378 .section ".tdata","awT",@progbits
27381 call #gettlsoff(x)'
27388 .section ".tdata","awT",@progbits
27392 addil LT%foo-$tls_gdidx$,gp
27393 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27396 addil LT%foo-$tls_ldidx$,gp
27398 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27399 addil LR%foo-$tls_dtpoff$,%ret0
27400 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27402 addil LT%foo-$tls_ieoff$,gp
27403 ldw RT%foo-$tls_ieoff$(%r1),%t2
27406 addil LR%foo-$tls_leoff$,%t1
27407 ldo RR%foo-$tls_leoff$(%r1),%t2'
27408 tls_as_opt
=--fatal-warnings
27412 .section ".tdata","awT",%progbits
27415 .word foo(gottpoff)
27421 i
[34567]86-*-* | x86_64-
*-*)
27423 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
27430 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
27432 .section .tdata,"awt",@progbits'
27435 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27439 .section ".tdata","awT",@progbits'
27441 tls_as_opt
="--fatal-warnings"
27445 if test x
$on_solaris = xyes
; then
27447 yes) tls_as_opt
="$tls_as_opt --32" ;;
27450 conftest_s
="$conftest_s
27454 leal foo@tlsgd(,%ebx,1), %eax
27455 leal foo@tlsldm(%ebx), %eax
27456 leal foo@dtpoff(%eax), %edx
27457 movl foo@gottpoff(%ebx), %eax
27458 subl foo@gottpoff(%ebx), %eax
27459 addl foo@gotntpoff(%ebx), %eax
27460 movl foo@indntpoff, %eax
27461 movl \$foo@tpoff, %eax
27462 subl \$foo@tpoff, %eax
27463 leal foo@ntpoff(%ecx), %eax"
27466 if test x
$on_solaris = xyes
; then
27468 yes) tls_as_opt
="$tls_as_opt --64" ;;
27469 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
27472 conftest_s
="$conftest_s
27476 leaq foo@tlsgd(%rip), %rdi
27477 leaq foo@tlsld(%rip), %rdi
27478 leaq foo@dtpoff(%rax), %rdx
27479 movq foo@gottpoff(%rip), %rax
27480 movq \$foo@tpoff, %rax"
27486 .section ".tdata","awT",@progbits
27489 addl r16 = @ltoff(@dtpmod(foo#)), gp
27490 addl r17 = @ltoff(@dtprel(foo#)), gp
27491 addl r18 = @ltoff(@tprel(foo#)), gp
27492 addl r19 = @dtprel(foo#), gp
27493 adds r21 = @dtprel(foo#), r13
27494 movl r23 = @dtprel(foo#)
27495 addl r20 = @tprel(foo#), gp
27496 adds r22 = @tprel(foo#), r13
27497 movl r24 = @tprel(foo#)'
27498 tls_as_opt
=--fatal-warnings
27502 .section .tdata,"awT",@progbits
27509 tls_as_opt
='--fatal-warnings'
27513 .section .tdata,"awT",@progbits
27517 addik r5,r20,x@TLSGD
27518 addik r5,r20,x@TLSLDM'
27519 tls_as_opt
='--fatal-warnings'
27523 .section .tdata,"awT",@progbits
27527 addiu $4, $28, %tlsgd(x)
27528 addiu $4, $28, %tlsldm(x)
27529 lui $4, %dtprel_hi(x)
27530 addiu $4, $4, %dtprel_lo(x)
27531 lw $4, %gottprel(x)($28)
27532 lui $4, %tprel_hi(x)
27533 addiu $4, $4, %tprel_lo(x)'
27534 tls_as_opt
='-32 --fatal-warnings'
27538 .section .tdata,"awT",@progbits
27543 move.l x@TLSGD(%a5),%a0
27544 move.l x@TLSLDM(%a5),%a0
27545 move.l x@TLSLDO(%a5),%a0
27546 move.l x@TLSIE(%a5),%a0
27547 move.l x@TLSLE(%a5),%a0'
27548 tls_as_opt
='--fatal-warnings'
27552 .section ".tdata","awT",%progbits
27556 add x0, x0, #:tlsgd_lo12:x
27559 tls_as_opt
='--fatal-warnings'
27563 .section ".tdata","awT",@progbits
27566 l.movhi r3, tpoffha(foo)
27568 l.lwz r4, tpofflo(foo)(r3)'
27569 tls_as_opt
=--fatal-warnings
27573 .extern __get_tpointer
27589 .section ".tdata","awT",@progbits
27597 addi 3,2,ld0@got@tlsgd
27603 addi 3,2,x1@got@tlsld
27609 addis 9,3,x2@dtprel@ha
27610 addi 9,9,x2@dtprel@l
27613 ld 9,x3@got@dtprel(2)
27617 tls_as_opt
="-a64 --fatal-warnings"
27621 .section ".tdata","awT",@progbits
27629 addi 3,31,ld0@got@tlsgd
27631 addi 3,31,x1@got@tlsld
27634 addis 9,3,x2@dtprel@ha
27635 addi 9,9,x2@dtprel@l
27636 lwz 9,x3@got@tprel(31)
27639 addis 9,2,x2@tprel@ha
27640 addi 9,9,x2@tprel@l'
27641 tls_as_opt
="-a32 --fatal-warnings"
27645 .section .tdata,"awT",@progbits
27649 call __tls_get_addr'
27650 tls_as_opt
='--fatal-warnings'
27654 .section ".tdata","awT",@progbits
27661 .long foo@GOTNTPOFF
27662 .long foo@INDNTPOFF
27663 l %r1,foo@GOTNTPOFF(%r12)
27664 l %r1,0(%r1):tls_load:foo
27665 bas %r14,0(%r1,%r13):tls_gdcall:foo
27666 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27667 tls_as_opt
="-m31 --fatal-warnings"
27671 .section ".tdata","awT",@progbits
27678 .quad foo@GOTNTPOFF
27679 lg %r1,foo@GOTNTPOFF(%r12)
27680 larl %r1,foo@INDNTPOFF
27681 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27682 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27683 tls_as_opt
="-m64 -Aesame --fatal-warnings"
27685 sh-
*-* | sh
[123456789lbe
]*-*-*)
27687 .section ".tdata","awT",@progbits
27695 tls_as_opt
=--fatal-warnings
27699 sparc
*-sun-solaris2.
*)
27706 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
27708 .section ".tdata",#alloc,#write,#tls'
27711 .section ".tdata","awT",@progbits'
27712 tls_as_opt
="-32 --fatal-warnings"
27714 conftest_s
="$conftest_s
27717 sethi %tgd_hi22(foo), %o0
27718 add %o0, %tgd_lo10(foo), %o1
27719 add %l7, %o1, %o0, %tgd_add(foo)
27720 call __tls_get_addr, %tgd_call(foo)
27721 sethi %tldm_hi22(foo), %l1
27722 add %l1, %tldm_lo10(foo), %l2
27723 add %l7, %l2, %o0, %tldm_add(foo)
27724 call __tls_get_addr, %tldm_call(foo)
27725 sethi %tldo_hix22(foo), %l3
27726 xor %l3, %tldo_lox10(foo), %l4
27727 add %o0, %l4, %l5, %tldo_add(foo)
27728 sethi %tie_hi22(foo), %o3
27729 add %o3, %tie_lo10(foo), %o3
27730 ld [%l7 + %o3], %o2, %tie_ld(foo)
27731 add %g7, %o2, %o4, %tie_add(foo)
27732 sethi %tle_hix22(foo), %l1
27733 xor %l1, %tle_lox10(foo), %o5
27734 ld [%g7 + %o5], %o1"
27738 .section ".tdata","awT",@progbits
27741 movi a8, foo@TLSFUNC
27742 movi a10, foo@TLSARG
27743 callx8.tls a8, foo@TLSCALL'
27747 if test "x$enable_tls" = xno
; then
27748 : # TLS explicitly disabled.
27749 elif test "x$enable_tls" = xyes
; then
27750 set_have_as_tls
=yes # TLS explicitly enabled.
27751 elif test -z "$conftest_s"; then
27752 : # If we don't have a check, assume no support.
27754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27755 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27756 if ${gcc_cv_as_tls+:} false
; then :
27757 $as_echo_n "(cached) " >&6
27760 if test x
$gcc_cv_as != x
; then
27761 $as_echo "$conftest_s" > conftest.s
27762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27764 (eval $ac_try) 2>&5
27766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27767 test $ac_status = 0; }; }
27771 echo "configure: failed program was" >&5
27774 rm -f conftest.o conftest.s
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27778 $as_echo "$gcc_cv_as_tls" >&6; }
27779 if test $gcc_cv_as_tls = yes; then
27780 set_have_as_tls
=yes
27784 if test $set_have_as_tls = yes ; then
27786 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27790 # Target-specific assembler checks.
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27793 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27794 gcc_cv_ld_static_dynamic
=no
27795 gcc_cv_ld_static_option
='-Bstatic'
27796 gcc_cv_ld_dynamic_option
='-Bdynamic'
27797 if test $in_tree_ld = yes ; then
27798 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
27799 gcc_cv_ld_static_dynamic
=yes
27801 elif test x
$gcc_cv_ld != x
; then
27802 # Check if linker supports -Bstatic/-Bdynamic option
27803 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
27804 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
27805 gcc_cv_ld_static_dynamic
=yes
27808 # AIX ld uses -b flags
27809 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
27810 gcc_cv_ld_static_dynamic
=yes
27811 gcc_cv_ld_static_option
="-bstatic"
27812 gcc_cv_ld_dynamic_option
="-bdynamic"
27814 # HP-UX ld uses -a flags to select between shared and archive.
27816 if test x
"$gnu_ld" = xno
; then
27817 gcc_cv_ld_static_dynamic
=yes
27818 gcc_cv_ld_static_option
="-aarchive_shared"
27819 gcc_cv_ld_dynamic_option
="-adefault"
27822 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27824 gcc_cv_ld_static_dynamic
=yes
27829 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
27831 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27834 cat >>confdefs.h
<<_ACEOF
27835 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27839 cat >>confdefs.h
<<_ACEOF
27840 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27845 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27848 $as_echo_n "checking linker --version-script option... " >&6; }
27849 gcc_cv_ld_version_script
=no
27850 ld_version_script_option
=''
27851 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
27852 gcc_cv_ld_version_script
=yes
27853 ld_version_script_option
='--version-script'
27854 elif test x
$gcc_cv_ld != x
; then
27856 # Solaris 2 ld always supports -M. It also supports a subset of
27857 # --version-script since Solaris 11.4, but requires
27858 # -z gnu-version-script-compat to activate.
27860 gcc_cv_ld_version_script
=yes
27861 ld_version_script_option
='-M'
27865 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
27867 $as_echo "$gcc_cv_ld_version_script" >&6; }
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
27871 $as_echo_n "checking linker soname option... " >&6; }
27872 gcc_cv_ld_soname
=no
27873 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
27874 gcc_cv_ld_soname
=yes
27875 ld_soname_option
='-soname'
27876 elif test x
$gcc_cv_ld != x
; then
27879 gcc_cv_ld_soname
=yes
27880 ld_soname_option
='-install_name'
27882 # Solaris 2 ld always supports -h. It also supports --soname for GNU
27883 # ld compatiblity since some Solaris 10 update.
27885 gcc_cv_ld_soname
=yes
27886 ld_soname_option
='-h'
27890 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
27892 $as_echo "$gcc_cv_ld_soname" >&6; }
27895 if test x
"$demangler_in_ld" = xyes
; then
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
27897 $as_echo_n "checking linker --demangle support... " >&6; }
27898 gcc_cv_ld_demangle
=no
27899 if test $in_tree_ld = yes; then
27900 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
27901 gcc_cv_ld_demangle
=yes
27903 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
27904 # Check if the GNU linker supports --demangle option
27905 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
27906 gcc_cv_ld_demangle
=yes
27909 if test x
"$gcc_cv_ld_demangle" = xyes
; then
27911 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
27915 $as_echo "$gcc_cv_ld_demangle" >&6; }
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
27919 $as_echo_n "checking linker plugin support... " >&6; }
27920 gcc_cv_lto_plugin
=0
27921 if test -f liblto_plugin.la
; then
27922 save_ld_ver
="$ld_ver"
27923 save_ld_vers_major
="$ld_vers_major"
27924 save_ld_vers_minor
="$ld_vers_minor"
27925 save_ld_is_gold
="$ld_is_gold"
27929 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
27931 # FIXME: ld_is_gold?
27932 ld_vers_major
="$gcc_cv_gld_major_version"
27933 ld_vers_minor
="$gcc_cv_gld_minor_version"
27935 # Determine plugin linker version.
27936 # FIXME: Partial duplicate from above, generalize.
27937 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
27938 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27939 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
27941 ld_vers
=`echo $ld_ver | sed -n \
27942 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
27944 ld_vers
=`echo $ld_ver | sed -n \
27945 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
27947 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
27948 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
27952 # Determine plugin support.
27953 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27954 # Require GNU ld or gold 2.21+ for plugin support by default.
27955 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
27956 gcc_cv_lto_plugin
=2
27957 elif test "$ld_is_mold" = yes; then
27958 gcc_cv_lto_plugin
=2
27959 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
27960 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
27961 gcc_cv_lto_plugin
=1
27965 ld_ver
="$save_ld_ver"
27966 ld_vers_major
="$save_ld_vers_major"
27967 ld_vers_minor
="$save_ld_vers_minor"
27968 ld_is_gold
="$save_ld_is_gold"
27971 cat >>confdefs.h
<<_ACEOF
27972 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
27976 $as_echo "$gcc_cv_lto_plugin" >&6; }
27978 # Target OS-specific assembler checks.
27980 case "$target_os" in
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
27983 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
27984 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
27985 $as_echo_n "(cached) " >&6
27987 gcc_cv_as_mmacosx_version_min
=no
27988 if test x
$gcc_cv_as != x
; then
27989 $as_echo '.text' > conftest.s
27990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
27991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27992 (eval $ac_try) 2>&5
27994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27995 test $ac_status = 0; }; }
27997 gcc_cv_as_mmacosx_version_min
=yes
27999 echo "configure: failed program was" >&5
28002 rm -f conftest.o conftest.s
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
28006 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
28007 if test $gcc_cv_as_mmacosx_version_min = yes; then
28009 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
28013 if test x
$gcc_cv_as_mmacosx_version_min = "xyes"; then
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
28015 $as_echo_n "checking assembler for .build_version... " >&6; }
28016 if ${gcc_cv_as_darwin_build_version+:} false
; then :
28017 $as_echo_n "(cached) " >&6
28019 gcc_cv_as_darwin_build_version
=no
28020 if test x
$gcc_cv_as != x
; then
28021 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
28022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
28023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28024 (eval $ac_try) 2>&5
28026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28027 test $ac_status = 0; }; }
28029 gcc_cv_as_darwin_build_version
=yes
28031 echo "configure: failed program was" >&5
28034 rm -f conftest.o conftest.s
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
28038 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
28039 if test $gcc_cv_as_darwin_build_version = yes; then
28041 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
28049 # Target CPU-specific assembler checks.
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
28054 $as_echo_n "checking assembler for -mabi option... " >&6; }
28055 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
28056 $as_echo_n "(cached) " >&6
28058 gcc_cv_as_aarch64_mabi
=no
28059 if test x
$gcc_cv_as != x
; then
28060 $as_echo '.text' > conftest.s
28061 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
28062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28063 (eval $ac_try) 2>&5
28065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28066 test $ac_status = 0; }; }
28068 gcc_cv_as_aarch64_mabi
=yes
28070 echo "configure: failed program was" >&5
28073 rm -f conftest.o conftest.s
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
28077 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
28080 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
28082 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
28085 if test x
$with_abi = xilp32
; then
28086 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
28087 Upgrade the Assembler." "$LINENO" 5
28089 if test x
"$with_multilib_list" = xdefault
; then
28090 TM_MULTILIB_CONFIG
=lp64
28092 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
28093 for aarch64_multilib
in ${aarch64_multilibs}; do
28094 case ${aarch64_multilib} in
28096 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
28097 Upgrade the Assembler." "$LINENO" 5
28105 # Check if we have binutils support for relocations types needed by -fpic
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
28107 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
28108 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
28109 $as_echo_n "(cached) " >&6
28111 gcc_cv_as_aarch64_picreloc
=no
28112 if test x
$gcc_cv_as != x
; then
28115 ldr x0, [x2, #:gotpage_lo15:globalsym]
28117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28119 (eval $ac_try) 2>&5
28121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28122 test $ac_status = 0; }; }
28124 gcc_cv_as_aarch64_picreloc
=yes
28126 echo "configure: failed program was" >&5
28129 rm -f conftest.o conftest.s
28132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
28133 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28134 if test $gcc_cv_as_aarch64_picreloc = yes; then
28136 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28140 # Enable Branch Target Identification Mechanism and Return Address
28141 # Signing by default.
28142 # Check whether --enable-standard-branch-protection was given.
28143 if test "${enable_standard_branch_protection+set}" = set; then :
28144 enableval
=$enable_standard_branch_protection;
28147 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1 TARGET_ENABLE_GCS=1"
28152 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
28153 Valid choices are 'yes' and 'no'." "$LINENO" 5
28159 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28160 # Check whether --enable-fix-cortex-a53-835769 was given.
28161 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28162 enableval
=$enable_fix_cortex_a53_835769;
28165 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28170 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28171 Valid choices are 'yes' and 'no'." "$LINENO" 5
28178 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28179 # Check whether --enable-fix-cortex-a53-843419 was given.
28180 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28181 enableval
=$enable_fix_cortex_a53_843419;
28184 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28189 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28190 Valid choices are 'yes' and 'no'." "$LINENO" 5
28199 # All TARGET_ABI_OSF targets.
28200 alpha
*-*-linux* | alpha
*-*-*bsd
*)
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28202 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28203 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
28204 $as_echo_n "(cached) " >&6
28206 gcc_cv_as_alpha_explicit_relocs
=no
28207 if test x
$gcc_cv_as != x
; then
28208 $as_echo ' .set nomacro
28210 extbl $3, $2, $3 !lituse_bytoff!1
28211 ldq $2, a($29) !literal!1
28212 ldq $4, b($29) !literal!2
28213 ldq_u $3, 0($2) !lituse_base!1
28214 ldq $27, f($29) !literal!5
28215 jsr $26, ($27), f !lituse_jsr!5
28216 ldah $29, 0($26) !gpdisp!3
28217 lda $0, c($29) !gprel
28218 ldah $1, d($29) !gprelhigh
28219 lda $1, d($1) !gprellow
28220 lda $29, 0($29) !gpdisp!3' > conftest.s
28221 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28223 (eval $ac_try) 2>&5
28225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28226 test $ac_status = 0; }; }
28228 gcc_cv_as_alpha_explicit_relocs
=yes
28230 echo "configure: failed program was" >&5
28233 rm -f conftest.o conftest.s
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28237 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28238 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28240 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28245 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28246 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
28247 $as_echo_n "(cached) " >&6
28249 gcc_cv_as_alpha_jsrdirect_relocs
=no
28250 if test x
$gcc_cv_as != x
; then
28251 $as_echo ' .set nomacro
28253 ldq $27, a($29) !literal!1
28254 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28255 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28257 (eval $ac_try) 2>&5
28259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28260 test $ac_status = 0; }; }
28262 gcc_cv_as_alpha_jsrdirect_relocs
=yes
28264 echo "configure: failed program was" >&5
28267 rm -f conftest.o conftest.s
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28271 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28272 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28274 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28282 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28283 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
28284 $as_echo_n "(cached) " >&6
28286 gcc_cv_as_avr_mlink_relax
=no
28287 if test x
$gcc_cv_as != x
; then
28288 $as_echo '.text' > conftest.s
28289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28291 (eval $ac_try) 2>&5
28293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28294 test $ac_status = 0; }; }
28296 gcc_cv_as_avr_mlink_relax
=yes
28298 echo "configure: failed program was" >&5
28301 rm -f conftest.o conftest.s
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28305 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28306 if test $gcc_cv_as_avr_mlink_relax = yes; then
28308 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28314 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28315 if ${gcc_cv_as_avr_mrmw+:} false
; then :
28316 $as_echo_n "(cached) " >&6
28318 gcc_cv_as_avr_mrmw
=no
28319 if test x
$gcc_cv_as != x
; then
28320 $as_echo '.text' > conftest.s
28321 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28323 (eval $ac_try) 2>&5
28325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28326 test $ac_status = 0; }; }
28328 gcc_cv_as_avr_mrmw
=yes
28330 echo "configure: failed program was" >&5
28333 rm -f conftest.o conftest.s
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28337 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28338 if test $gcc_cv_as_avr_mrmw = yes; then
28340 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28346 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28347 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
28348 $as_echo_n "(cached) " >&6
28350 gcc_cv_as_avr_mgccisr
=no
28351 if test x
$gcc_cv_as != x
; then
28357 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28359 (eval $ac_try) 2>&5
28361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28362 test $ac_status = 0; }; }
28364 gcc_cv_as_avr_mgccisr
=yes
28366 echo "configure: failed program was" >&5
28369 rm -f conftest.o conftest.s
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28373 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28374 if test $gcc_cv_as_avr_mgccisr = yes; then
28376 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28381 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28382 # Check how default linker description file implements .rodata for
28383 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28384 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28386 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28387 cat > conftest.s
<<EOF
28388 .section .rodata,"a",@progbits
28390 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28395 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28397 (eval $ac_try) 2>&5
28399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28400 test $ac_status = 0; }; }
28401 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28403 (eval $ac_try) 2>&5
28405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28406 test $ac_status = 0; }; }
28407 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
28408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28409 (eval $ac_try) 2>&5
28411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28412 test $ac_status = 0; }; }
28413 if test -s conftest.nm
28415 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28417 $as_echo "yes" >&6; }
28419 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28423 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28424 echo "$as_me: nm output was" >&5
28425 cat conftest.nm
>&5
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
28427 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28431 $as_echo "test failed" >&6; }
28432 echo "$as_me: failed program was" >&5
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28435 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28437 rm -f conftest.s conftest.o conftest.elf conftest.nm
28439 # Check for emulation avrxmega2_flmap.
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega2_flmap support (PR31124)" >&5
28441 $as_echo_n "checking binutils for avrxmega2_flmap support (PR31124)... " >&6; }
28442 cat > conftest.s
<<EOF
28443 .section .text,"ax",@progbits
28444 ldi r16, __flmap_value_with_lock
28446 { ac_try
='$gcc_cv_as -mmcu=avrxmega2 conftest.s -o conftest.o'
28447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28448 (eval $ac_try) 2>&5
28450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28451 test $ac_status = 0; }; }
28452 { ac_try
='$gcc_cv_ld -mavrxmega2_flmap conftest.o -o conftest.elf'
28453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28454 (eval $ac_try) 2>&5
28456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28457 test $ac_status = 0; }; }
28458 if test -s conftest.elf
28460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28461 $as_echo "yes" >&6; }
28463 $as_echo "#define HAVE_LD_AVR_AVRXMEGA2_FLMAP 1" >>confdefs.h
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28467 $as_echo "no" >&6; }
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28469 $as_echo "$as_me: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28471 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28473 rm -f conftest.o conftest.elf
28475 # Check for emulation avrxmega4_flmap.
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega4_flmap support (PR31124)" >&5
28477 $as_echo_n "checking binutils for avrxmega4_flmap support (PR31124)... " >&6; }
28478 { ac_try
='$gcc_cv_as -mmcu=avrxmega4 conftest.s -o conftest.o'
28479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28480 (eval $ac_try) 2>&5
28482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28483 test $ac_status = 0; }; }
28484 { ac_try
='$gcc_cv_ld -mavrxmega4_flmap conftest.o -o conftest.elf'
28485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28486 (eval $ac_try) 2>&5
28488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28489 test $ac_status = 0; }; }
28490 if test -s conftest.elf
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28493 $as_echo "yes" >&6; }
28495 $as_echo "#define HAVE_LD_AVR_AVRXMEGA4_FLMAP 1" >>confdefs.h
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28499 $as_echo "no" >&6; }
28500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28501 $as_echo "$as_me: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28503 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28505 rm -f conftest.s conftest.o conftest.elf
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28510 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28511 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
28512 $as_echo_n "(cached) " >&6
28514 gcc_cv_as_cris_no_mul_bug
=no
28515 if test x
$gcc_cv_as != x
; then
28516 $as_echo '.text' > conftest.s
28517 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28519 (eval $ac_try) 2>&5
28521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28522 test $ac_status = 0; }; }
28524 gcc_cv_as_cris_no_mul_bug
=yes
28526 echo "configure: failed program was" >&5
28529 rm -f conftest.o conftest.s
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28533 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28534 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28536 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28544 $as_echo_n "checking assembler for -relax option... " >&6; }
28545 if ${gcc_cv_as_sparc_relax+:} false
; then :
28546 $as_echo_n "(cached) " >&6
28548 gcc_cv_as_sparc_relax
=no
28549 if test x
$gcc_cv_as != x
; then
28550 $as_echo '.text' > conftest.s
28551 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28553 (eval $ac_try) 2>&5
28555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28556 test $ac_status = 0; }; }
28558 gcc_cv_as_sparc_relax
=yes
28560 echo "configure: failed program was" >&5
28563 rm -f conftest.o conftest.s
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28567 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28568 if test $gcc_cv_as_sparc_relax = yes; then
28570 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28576 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28577 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
28578 $as_echo_n "(cached) " >&6
28580 gcc_cv_as_sparc_gotdata_op
=no
28581 if test x
$gcc_cv_as != x
; then
28587 sethi %gdop_hix22(foo), %g1
28588 xor %g1, %gdop_lox10(foo), %g1
28589 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28590 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28592 (eval $ac_try) 2>&5
28594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28595 test $ac_status = 0; }; }
28597 if test x
$gcc_cv_ld != x \
28598 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
28599 if test x
$gcc_cv_objdump != x
; then
28600 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
28601 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
28602 gcc_cv_as_sparc_gotdata_op
=no
28604 gcc_cv_as_sparc_gotdata_op
=yes
28610 echo "configure: failed program was" >&5
28613 rm -f conftest.o conftest.s
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28617 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28618 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28620 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28626 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28627 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
28628 $as_echo_n "(cached) " >&6
28630 gcc_cv_as_sparc_ua_pcrel
=no
28631 if test x
$gcc_cv_as != x
; then
28638 .uaword %r_disp32(foo)' > conftest.s
28639 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28641 (eval $ac_try) 2>&5
28643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28644 test $ac_status = 0; }; }
28646 if test x
$gcc_cv_ld != x \
28647 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
28648 gcc_cv_as_sparc_ua_pcrel
=yes
28652 echo "configure: failed program was" >&5
28655 rm -f conftest.o conftest.s
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28659 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28660 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28662 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28666 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28667 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
28668 $as_echo_n "(cached) " >&6
28670 gcc_cv_as_sparc_ua_pcrel_hidden
=no
28671 if test x
$gcc_cv_as != x
; then
28675 .uaword %r_disp32(foo)
28676 .byte 0x32, 0x33, 0x34
28680 .skip 4' > conftest.s
28681 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28683 (eval $ac_try) 2>&5
28685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28686 test $ac_status = 0; }; }
28688 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
28689 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
28690 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
28691 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
28692 if $gcc_cv_objdump -R conftest
2> /dev
/null \
28693 |
grep 'DISP32' > /dev
/null
2>&1; then
28696 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
28701 echo "configure: failed program was" >&5
28704 rm -f conftest.o conftest.s
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28708 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28709 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28711 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28717 # unaligned pcrel relocs
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28720 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28721 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
28722 $as_echo_n "(cached) " >&6
28724 gcc_cv_as_sparc_offsetable_lo10
=no
28725 if test x
$gcc_cv_as != x
; then
28727 or %g1, %lo(ab) + 12, %g1
28728 or %g1, %lo(ab + 12), %g1' > conftest.s
28729 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28731 (eval $ac_try) 2>&5
28733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28734 test $ac_status = 0; }; }
28736 if test x
$gcc_cv_objdump != x \
28737 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
28738 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
28739 gcc_cv_as_sparc_offsetable_lo10
=yes
28742 echo "configure: failed program was" >&5
28745 rm -f conftest.o conftest.s
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28749 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28750 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28752 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28758 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28759 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
28760 $as_echo_n "(cached) " >&6
28762 gcc_cv_as_sparc_fmaf
=no
28763 if test x
$gcc_cv_as != x
; then
28765 .register %g2, #scratch
28766 .register %g3, #scratch
28768 fmaddd %f0, %f2, %f4, %f6
28769 addxccc %g1, %g2, %g3
28770 fsrl32 %f2, %f4, %f8
28771 fnaddd %f10, %f12, %f14' > conftest.s
28772 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28774 (eval $ac_try) 2>&5
28776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28777 test $ac_status = 0; }; }
28779 gcc_cv_as_sparc_fmaf
=yes
28781 echo "configure: failed program was" >&5
28784 rm -f conftest.o conftest.s
28787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28788 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28789 if test $gcc_cv_as_sparc_fmaf = yes; then
28791 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28797 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28798 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
28799 $as_echo_n "(cached) " >&6
28801 gcc_cv_as_sparc_sparc4
=no
28802 if test x
$gcc_cv_as != x
; then
28804 .register %g2, #scratch
28805 .register %g3, #scratch
28808 1: cwbneg %g2, %g3, 1f
28811 aes_kexpand0 %f4, %f6, %f8
28812 des_round %f38, %f40, %f42, %f44
28813 camellia_f %f54, %f56, %f58, %f60
28814 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28817 (eval $ac_try) 2>&5
28819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28820 test $ac_status = 0; }; }
28822 gcc_cv_as_sparc_sparc4
=yes
28824 echo "configure: failed program was" >&5
28827 rm -f conftest.o conftest.s
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28831 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28832 if test $gcc_cv_as_sparc_sparc4 = yes; then
28834 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28840 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28841 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
28842 $as_echo_n "(cached) " >&6
28844 gcc_cv_as_sparc_sparc5
=no
28845 if test x
$gcc_cv_as != x
; then
28847 .register %g2, #scratch
28848 .register %g3, #scratch
28850 subxc %g1, %g2, %g3
28851 fpadd8 %f0, %f2, %f4' > conftest.s
28852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28854 (eval $ac_try) 2>&5
28856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28857 test $ac_status = 0; }; }
28859 gcc_cv_as_sparc_sparc5
=yes
28861 echo "configure: failed program was" >&5
28864 rm -f conftest.o conftest.s
28867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28868 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28869 if test $gcc_cv_as_sparc_sparc5 = yes; then
28871 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28877 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28878 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
28879 $as_echo_n "(cached) " >&6
28881 gcc_cv_as_sparc_sparc6
=no
28882 if test x
$gcc_cv_as != x
; then
28884 .register %g2, #scratch
28885 .register %g3, #scratch
28888 fpsll64x %f0, %f2, %f4' > conftest.s
28889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28891 (eval $ac_try) 2>&5
28893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28894 test $ac_status = 0; }; }
28896 gcc_cv_as_sparc_sparc6
=yes
28898 echo "configure: failed program was" >&5
28901 rm -f conftest.o conftest.s
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28905 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28906 if test $gcc_cv_as_sparc_sparc6 = yes; then
28908 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28914 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28915 if ${gcc_cv_as_sparc_leon+:} false
; then :
28916 $as_echo_n "(cached) " >&6
28918 gcc_cv_as_sparc_leon
=no
28919 if test x
$gcc_cv_as != x
; then
28921 .register %g2, #scratch
28922 .register %g3, #scratch
28926 casa [%g2] 0xb, %g3, %g1' > conftest.s
28927 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
28928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28929 (eval $ac_try) 2>&5
28931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28932 test $ac_status = 0; }; }
28934 gcc_cv_as_sparc_leon
=yes
28936 echo "configure: failed program was" >&5
28939 rm -f conftest.o conftest.s
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
28943 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
28944 if test $gcc_cv_as_sparc_leon = yes; then
28946 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
28952 i
[34567]86-*-* | x86_64-
*-*)
28955 # Full C++ conformance when using a shared libstdc++-v3 requires some
28956 # support from the Cygwin DLL, which in more recent versions exports
28957 # wrappers to aid in interposing and redirecting operators new, delete,
28958 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
28959 # are configuring for a version of Cygwin that exports the wrappers.
28960 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
28961 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
28962 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
28963 gcc_ac_cygwin_dll_wrappers
=yes
28965 gcc_ac_cygwin_dll_wrappers
=no
28969 # Can't check presence of libc functions during cross-compile, so
28970 # we just have to assume we're building for an up-to-date target.
28971 gcc_ac_cygwin_dll_wrappers
=yes
28974 cat >>confdefs.h
<<_ACEOF
28975 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
28980 cygwin
* | pe | mingw32
*)
28981 # Recent binutils allows the three-operand form of ".comm" on PE. This
28982 # definition is used unconditionally to initialise the default state of
28983 # the target option variable that governs usage of the feature.
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
28985 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
28986 if ${gcc_cv_as_comm_has_align+:} false
; then :
28987 $as_echo_n "(cached) " >&6
28989 gcc_cv_as_comm_has_align
=no
28990 if test x
$gcc_cv_as != x
; then
28991 $as_echo '.comm foo,1,32' > conftest.s
28992 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28994 (eval $ac_try) 2>&5
28996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28997 test $ac_status = 0; }; }
28999 gcc_cv_as_comm_has_align
=yes
29001 echo "configure: failed program was" >&5
29004 rm -f conftest.o conftest.s
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
29008 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
29012 cat >>confdefs.h
<<_ACEOF
29013 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
29016 # Used for DWARF 2 in PE
29017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
29018 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
29019 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
29020 $as_echo_n "(cached) " >&6
29022 gcc_cv_as_ix86_pe_secrel32
=no
29023 if test x
$gcc_cv_as != x
; then
29027 .secrel32 foo' > conftest.s
29028 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29030 (eval $ac_try) 2>&5
29032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29033 test $ac_status = 0; }; }
29035 if test x
$gcc_cv_ld != x \
29036 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
29037 gcc_cv_as_ix86_pe_secrel32
=yes
29041 echo "configure: failed program was" >&5
29044 rm -f conftest.o conftest.s
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
29048 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
29049 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
29051 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
29055 # Test if the assembler supports the extended form of the .section
29056 # directive that specifies section alignment. LTO support uses this,
29057 # but normally only after installation, so we warn but don't fail the
29058 # configure if LTO is enabled but the assembler does not support it.
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
29060 $as_echo_n "checking assembler for .section with alignment... " >&6; }
29061 if ${gcc_cv_as_section_has_align+:} false
; then :
29062 $as_echo_n "(cached) " >&6
29064 gcc_cv_as_section_has_align
=no
29065 if test x
$gcc_cv_as != x
; then
29066 $as_echo '.section lto_test,"dr0"' > conftest.s
29067 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
29068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29069 (eval $ac_try) 2>&5
29071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29072 test $ac_status = 0; }; }
29074 gcc_cv_as_section_has_align
=yes
29076 echo "configure: failed program was" >&5
29079 rm -f conftest.o conftest.s
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
29083 $as_echo "$gcc_cv_as_section_has_align" >&6; }
29086 if test x
$gcc_cv_as_section_has_align != xyes
; then
29087 case ",$enable_languages," in
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
29090 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
29097 darwin2
* | darwin19
*)
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
29099 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
29100 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
29101 $as_echo_n "(cached) " >&6
29103 gcc_cv_as_mllvm_x86_pad_for_align
=no
29104 if test x
$gcc_cv_as != x
; then
29105 $as_echo '.text' > conftest.s
29106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
29107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29108 (eval $ac_try) 2>&5
29110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29111 test $ac_status = 0; }; }
29113 gcc_cv_as_mllvm_x86_pad_for_align
=yes
29115 echo "configure: failed program was" >&5
29118 rm -f conftest.o conftest.s
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
29122 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
29123 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
29125 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29133 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29134 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
29135 $as_echo_n "(cached) " >&6
29137 gcc_cv_as_ix86_xbrace_comment
=no
29138 if test x
$gcc_cv_as != x
; then
29139 $as_echo '.text' > conftest.s
29140 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29142 (eval $ac_try) 2>&5
29144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29145 test $ac_status = 0; }; }
29147 gcc_cv_as_ix86_xbrace_comment
=yes
29149 echo "configure: failed program was" >&5
29152 rm -f conftest.o conftest.s
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29156 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29157 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29159 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29165 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29166 if ${gcc_cv_as_ix86_filds+:} false
; then :
29167 $as_echo_n "(cached) " >&6
29169 gcc_cv_as_ix86_filds
=no
29170 if test x
$gcc_cv_as != x
; then
29171 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29172 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29174 (eval $ac_try) 2>&5
29176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29177 test $ac_status = 0; }; }
29179 gcc_cv_as_ix86_filds
=yes
29181 echo "configure: failed program was" >&5
29184 rm -f conftest.o conftest.s
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29188 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29189 if test $gcc_cv_as_ix86_filds = yes; then
29191 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29197 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29198 if ${gcc_cv_as_ix86_fildq+:} false
; then :
29199 $as_echo_n "(cached) " >&6
29201 gcc_cv_as_ix86_fildq
=no
29202 if test x
$gcc_cv_as != x
; then
29203 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29204 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29206 (eval $ac_try) 2>&5
29208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29209 test $ac_status = 0; }; }
29211 gcc_cv_as_ix86_fildq
=yes
29213 echo "configure: failed program was" >&5
29216 rm -f conftest.o conftest.s
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29220 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29221 if test $gcc_cv_as_ix86_fildq = yes; then
29223 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29229 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29230 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
29231 $as_echo_n "(cached) " >&6
29233 gcc_cv_as_ix86_cmov_sun_syntax
=no
29234 if test x
$gcc_cv_as != x
; then
29235 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29236 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29238 (eval $ac_try) 2>&5
29240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29241 test $ac_status = 0; }; }
29243 gcc_cv_as_ix86_cmov_sun_syntax
=yes
29245 echo "configure: failed program was" >&5
29248 rm -f conftest.o conftest.s
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29252 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29253 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29255 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29261 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29262 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
29263 $as_echo_n "(cached) " >&6
29265 gcc_cv_as_ix86_ffreep
=no
29266 if test x
$gcc_cv_as != x
; then
29267 $as_echo 'ffreep %st(1)' > conftest.s
29268 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29270 (eval $ac_try) 2>&5
29272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29273 test $ac_status = 0; }; }
29275 gcc_cv_as_ix86_ffreep
=yes
29277 echo "configure: failed program was" >&5
29280 rm -f conftest.o conftest.s
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29284 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29285 if test $gcc_cv_as_ix86_ffreep = yes; then
29287 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29293 $as_echo_n "checking assembler for .quad directive... " >&6; }
29294 if ${gcc_cv_as_ix86_quad+:} false
; then :
29295 $as_echo_n "(cached) " >&6
29297 gcc_cv_as_ix86_quad
=no
29298 if test x
$gcc_cv_as != x
; then
29299 $as_echo '.quad 0' > conftest.s
29300 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29302 (eval $ac_try) 2>&5
29304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29305 test $ac_status = 0; }; }
29307 gcc_cv_as_ix86_quad
=yes
29309 echo "configure: failed program was" >&5
29312 rm -f conftest.o conftest.s
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29316 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29317 if test $gcc_cv_as_ix86_quad = yes; then
29319 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29325 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29326 if ${gcc_cv_as_ix86_sahf+:} false
; then :
29327 $as_echo_n "(cached) " >&6
29329 gcc_cv_as_ix86_sahf
=no
29330 if test x
$gcc_cv_as != x
; then
29333 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29335 (eval $ac_try) 2>&5
29337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29338 test $ac_status = 0; }; }
29340 gcc_cv_as_ix86_sahf
=yes
29342 echo "configure: failed program was" >&5
29345 rm -f conftest.o conftest.s
29348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29349 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29350 if test $gcc_cv_as_ix86_sahf = yes; then
29352 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29358 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29359 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
29360 $as_echo_n "(cached) " >&6
29362 gcc_cv_as_ix86_interunit_movq
=no
29363 if test x
$gcc_cv_as != x
; then
29366 movq %rax, %xmm0' > conftest.s
29367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29369 (eval $ac_try) 2>&5
29371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29372 test $ac_status = 0; }; }
29374 gcc_cv_as_ix86_interunit_movq
=yes
29376 echo "configure: failed program was" >&5
29379 rm -f conftest.o conftest.s
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29383 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29387 cat >>confdefs.h
<<_ACEOF
29388 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29393 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29394 if ${gcc_cv_as_ix86_hle+:} false
; then :
29395 $as_echo_n "(cached) " >&6
29397 gcc_cv_as_ix86_hle
=no
29398 if test x
$gcc_cv_as != x
; then
29399 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29400 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29402 (eval $ac_try) 2>&5
29404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29405 test $ac_status = 0; }; }
29407 gcc_cv_as_ix86_hle
=yes
29409 echo "configure: failed program was" >&5
29412 rm -f conftest.o conftest.s
29415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29416 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29417 if test $gcc_cv_as_ix86_hle = yes; then
29419 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29425 $as_echo_n "checking assembler for swap suffix... " >&6; }
29426 if ${gcc_cv_as_ix86_swap+:} false
; then :
29427 $as_echo_n "(cached) " >&6
29429 gcc_cv_as_ix86_swap
=no
29430 if test x
$gcc_cv_as != x
; then
29431 $as_echo 'movl.s %esp, %ebp' > conftest.s
29432 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29434 (eval $ac_try) 2>&5
29436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29437 test $ac_status = 0; }; }
29439 gcc_cv_as_ix86_swap
=yes
29441 echo "configure: failed program was" >&5
29444 rm -f conftest.o conftest.s
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29448 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29449 if test $gcc_cv_as_ix86_swap = yes; then
29451 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29457 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29458 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
29459 $as_echo_n "(cached) " >&6
29461 gcc_cv_as_ix86_diff_sect_delta
=no
29462 if test x
$gcc_cv_as != x
; then
29463 $as_echo '.section .rodata
29469 .L2: nop' > conftest.s
29470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29472 (eval $ac_try) 2>&5
29474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29475 test $ac_status = 0; }; }
29477 gcc_cv_as_ix86_diff_sect_delta
=yes
29479 echo "configure: failed program was" >&5
29482 rm -f conftest.o conftest.s
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29486 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29487 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29489 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29495 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29496 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
29497 $as_echo_n "(cached) " >&6
29499 gcc_cv_as_ix86_rep_lock_prefix
=no
29500 if test x
$gcc_cv_as != x
; then
29501 $as_echo 'rep movsl
29506 lock addl %edi, (%eax,%esi)
29507 lock orl $0, (%esp)' > conftest.s
29508 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29510 (eval $ac_try) 2>&5
29512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29513 test $ac_status = 0; }; }
29515 gcc_cv_as_ix86_rep_lock_prefix
=yes
29517 echo "configure: failed program was" >&5
29520 rm -f conftest.o conftest.s
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29524 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29525 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29527 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29533 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29534 if ${gcc_cv_as_ix86_ud2+:} false
; then :
29535 $as_echo_n "(cached) " >&6
29537 gcc_cv_as_ix86_ud2
=no
29538 if test x
$gcc_cv_as != x
; then
29539 $as_echo 'ud2' > conftest.s
29540 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29542 (eval $ac_try) 2>&5
29544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29545 test $ac_status = 0; }; }
29547 gcc_cv_as_ix86_ud2
=yes
29549 echo "configure: failed program was" >&5
29552 rm -f conftest.o conftest.s
29555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29556 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29557 if test $gcc_cv_as_ix86_ud2 = yes; then
29559 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29564 # Enforce 32-bit output with gas and gld.
29565 if test x
$gas = xyes
; then
29566 as_ix86_gas_32_opt
="--32"
29568 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29569 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
29570 ld_ix86_gld_32_opt
="-melf_i386_sol2"
29572 ld_ix86_gld_32_opt
="-melf_i386"
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29577 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29578 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
29579 $as_echo_n "(cached) " >&6
29581 gcc_cv_as_ix86_tlsgdplt
=no
29582 if test x
$gcc_cv_as != x
; then
29583 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29584 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29586 (eval $ac_try) 2>&5
29588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29589 test $ac_status = 0; }; }
29591 if test x
$gcc_cv_ld != x \
29592 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
29593 gcc_cv_as_ix86_tlsgdplt
=yes
29597 echo "configure: failed program was" >&5
29600 rm -f conftest.o conftest.s
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29604 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29605 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29607 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29613 .section .tdata,"aw'$tls_section_flag'",@progbits
29615 .section .text,"ax",@progbits
29616 call tls_ld@tlsldmplt'
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29619 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29620 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
29621 $as_echo_n "(cached) " >&6
29623 gcc_cv_as_ix86_tlsldmplt
=no
29624 if test x
$gcc_cv_as != x
; then
29625 $as_echo "$conftest_s" > conftest.s
29626 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29628 (eval $ac_try) 2>&5
29630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29631 test $ac_status = 0; }; }
29633 if test x
$gcc_cv_ld != x \
29634 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
29635 gcc_cv_as_ix86_tlsldmplt
=yes
29639 echo "configure: failed program was" >&5
29642 rm -f conftest.o conftest.s
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29646 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29650 cat >>confdefs.h
<<_ACEOF
29651 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29656 .section .text,"ax",@progbits
29658 .type _start, @function
29660 leal value@tlsldm(%ebx), %eax
29661 call ___tls_get_addr@plt
29663 .section .tdata,"aw'$tls_section_flag'",@progbits
29664 .type value, @object
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29667 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29668 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
29669 $as_echo_n "(cached) " >&6
29671 gcc_cv_as_ix86_tlsldm
=no
29672 if test x
$gcc_cv_as != x
; then
29673 $as_echo "$conftest_s" > conftest.s
29674 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29676 (eval $ac_try) 2>&5
29678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29679 test $ac_status = 0; }; }
29681 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
29682 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
29683 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
29684 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
29685 gcc_cv_as_ix86_tlsldm
=yes
29690 echo "configure: failed program was" >&5
29693 rm -f conftest.o conftest.s
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29697 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29701 cat >>confdefs.h
<<_ACEOF
29702 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29716 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29717 if ${gcc_cv_as_ix86_got32x+:} false
; then :
29718 $as_echo_n "(cached) " >&6
29720 gcc_cv_as_ix86_got32x
=no
29721 if test x
$gcc_cv_as != x
; then
29722 $as_echo "$conftest_s" > conftest.s
29723 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29725 (eval $ac_try) 2>&5
29727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29728 test $ac_status = 0; }; }
29730 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
29731 && test x
$gcc_cv_readelf != x \
29732 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
29733 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
29734 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
29735 if $gcc_cv_objdump -dw conftest
2>&1 \
29736 |
grep 0xffffff > /dev
/null
2>&1; then
29737 gcc_cv_as_ix86_got32x
=no
29739 gcc_cv_as_ix86_got32x
=yes
29744 echo "configure: failed program was" >&5
29747 rm -f conftest.o conftest.s
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29751 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29755 cat >>confdefs.h
<<_ACEOF
29756 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29760 # Check if gas and gld support "addq %r23,foo@GOTTPOFF(%rip), %r15"
29761 # with R_X86_64_CODE_6_GOTTPOFF relocation.
29762 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29763 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_x86_64_sol2
> /dev
/null
; then
29764 ld_ix86_gld_64_opt
="-melf_x86_64_sol2"
29766 ld_ix86_gld_64_opt
="-melf_x86_64"
29769 # Enforce 64-bit output with gas and gld.
29770 if test x
$gas = xyes
; then
29771 as_ix86_gas_64_opt
="--64"
29776 .type _start, @function
29778 addq %r23,foo@GOTTPOFF(%rip), %r15
29779 .section .tdata,"awT",@progbits
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc" >&5
29784 $as_echo_n "checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc... " >&6; }
29785 if ${gcc_cv_as_x86_64_code_6_gottpoff+:} false
; then :
29786 $as_echo_n "(cached) " >&6
29788 gcc_cv_as_x86_64_code_6_gottpoff
=no
29789 if test x
$gcc_cv_as != x
; then
29790 $as_echo "$conftest_s" > conftest.s
29791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_64_opt -o conftest.o conftest.s >&5'
29792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29793 (eval $ac_try) 2>&5
29795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29796 test $ac_status = 0; }; }
29798 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
29799 && test x
$gcc_cv_readelf != x \
29800 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
29801 |
grep R_X86_64_CODE_6_GOTTPOFF
> /dev
/null
2>&1 \
29802 && $gcc_cv_ld $ld_ix86_gld_64_opt -o conftest conftest.o
> /dev
/null
2>&1; then
29803 if $gcc_cv_objdump -dw conftest
2>&1 \
29804 |
grep "add \+\$0xf\+8,%r23,%r15" > /dev
/null
2>&1; then
29805 gcc_cv_as_x86_64_code_6_gottpoff
=yes
29807 gcc_cv_as_x86_64_code_6_gottpoff
=no
29812 echo "configure: failed program was" >&5
29815 rm -f conftest.o conftest.s
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_x86_64_code_6_gottpoff" >&5
29819 $as_echo "$gcc_cv_as_x86_64_code_6_gottpoff" >&6; }
29823 cat >>confdefs.h
<<_ACEOF
29824 #define HAVE_AS_R_X86_64_CODE_6_GOTTPOFF `if test x"$gcc_cv_as_x86_64_code_6_gottpoff" = xyes; then echo 1; else echo 0; fi`
29828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29829 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29830 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
29831 $as_echo_n "(cached) " >&6
29833 gcc_cv_as_ix86_gotoff_in_data
=no
29834 if test x
$gcc_cv_as != x
; then
29839 .long .L0@GOTOFF' > conftest.s
29840 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29842 (eval $ac_try) 2>&5
29844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29845 test $ac_status = 0; }; }
29847 gcc_cv_as_ix86_gotoff_in_data
=yes
29849 echo "configure: failed program was" >&5
29852 rm -f conftest.o conftest.s
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29856 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29860 cat >>confdefs.h
<<_ACEOF
29861 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29866 .section .text,"ax",@progbits
29868 .type _start, @function
29870 leal ld@tlsldm(%ecx), %eax
29871 call *___tls_get_addr@GOT(%ecx)
29872 leal gd@tlsgd(%ecx), %eax
29873 call *___tls_get_addr@GOT(%ecx)
29875 .section .tdata,"aw'$tls_section_flag'",@progbits
29883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29884 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29885 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
29886 $as_echo_n "(cached) " >&6
29888 gcc_cv_as_ix86_tls_get_addr_via_got
=no
29889 if test x
$gcc_cv_as != x
; then
29890 $as_echo "$conftest_s" > conftest.s
29891 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29893 (eval $ac_try) 2>&5
29895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29896 test $ac_status = 0; }; }
29898 if test x
$gcc_cv_ld != x \
29899 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
29900 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
29904 echo "configure: failed program was" >&5
29907 rm -f conftest.o conftest.s
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29911 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29915 cat >>confdefs.h
<<_ACEOF
29916 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
29923 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
29924 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
29925 $as_echo_n "(cached) " >&6
29927 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
29928 if test x
$gcc_cv_as != x
; then
29930 addl r15 = @ltoffx(x#), gp
29932 ld8.mov r16 = [r15], x#
29934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29936 (eval $ac_try) 2>&5
29938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29939 test $ac_status = 0; }; }
29941 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
29943 echo "configure: failed program was" >&5
29946 rm -f conftest.o conftest.s
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
29950 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
29951 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
29953 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
29965 $as_echo_n "checking assembler for .machine directive support... " >&6; }
29966 if ${gcc_cv_as_machine_directive+:} false
; then :
29967 $as_echo_n "(cached) " >&6
29969 gcc_cv_as_machine_directive
=no
29970 if test x
$gcc_cv_as != x
; then
29971 $as_echo ' .machine ppc7400' > conftest.s
29972 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29974 (eval $ac_try) 2>&5
29976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29977 test $ac_status = 0; }; }
29979 gcc_cv_as_machine_directive
=yes
29981 echo "configure: failed program was" >&5
29984 rm -f conftest.o conftest.s
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
29988 $as_echo "$gcc_cv_as_machine_directive" >&6; }
29991 if test x
$gcc_cv_as_machine_directive != xyes
; then
29992 echo "*** This target requires an assembler supporting \".machine\"" >&2
29993 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
29994 test x
$build = x
$target && exit 1
30000 *-*-aix*) conftest_s
=' .machine "pwr5"
30003 *-*-darwin*) conftest_s
=' .text
30005 *) conftest_s
=' .machine power4
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
30011 $as_echo_n "checking assembler for mfcr field support... " >&6; }
30012 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
30013 $as_echo_n "(cached) " >&6
30015 gcc_cv_as_powerpc_mfcrf
=no
30016 if test x
$gcc_cv_as != x
; then
30017 $as_echo "$conftest_s" > conftest.s
30018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30020 (eval $ac_try) 2>&5
30022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30023 test $ac_status = 0; }; }
30025 gcc_cv_as_powerpc_mfcrf
=yes
30027 echo "configure: failed program was" >&5
30030 rm -f conftest.o conftest.s
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
30034 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
30035 if test $gcc_cv_as_powerpc_mfcrf = yes; then
30037 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
30043 *-*-aix*) conftest_s
=' .machine "pwr10"
30046 *-*-darwin*) conftest_s
=' .text
30048 *) conftest_s
=' .machine power10
30053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
30054 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
30055 if ${gcc_cv_as_power10_htm+:} false
; then :
30056 $as_echo_n "(cached) " >&6
30058 gcc_cv_as_power10_htm
=no
30059 if test x
$gcc_cv_as != x
; then
30060 $as_echo "$conftest_s" > conftest.s
30061 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30063 (eval $ac_try) 2>&5
30065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30066 test $ac_status = 0; }; }
30068 gcc_cv_as_power10_htm
=yes
30070 echo "configure: failed program was" >&5
30073 rm -f conftest.o conftest.s
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
30077 $as_echo "$gcc_cv_as_power10_htm" >&6; }
30078 if test $gcc_cv_as_power10_htm = yes; then
30080 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
30086 *-*-aix*) conftest_s
=' .csect .text[PR]
30088 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
30092 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
30093 *) conftest_s
=' .text
30095 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
30099 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
30100 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
30101 $as_echo_n "(cached) " >&6
30103 gcc_cv_as_powerpc_rel16
=no
30104 if test x
$gcc_cv_as != x
; then
30105 $as_echo "$conftest_s" > conftest.s
30106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30108 (eval $ac_try) 2>&5
30110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30111 test $ac_status = 0; }; }
30113 gcc_cv_as_powerpc_rel16
=yes
30115 echo "configure: failed program was" >&5
30118 rm -f conftest.o conftest.s
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
30122 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
30123 if test $gcc_cv_as_powerpc_rel16 = yes; then
30125 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30131 *-*-aix*) conftest_s
=' .machine "pwr7"
30134 *) conftest_s
=' .machine power7
30139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30140 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30141 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
30142 $as_echo_n "(cached) " >&6
30144 gcc_cv_as_powerpc_vsx
=no
30145 if test x
$gcc_cv_as != x
; then
30146 $as_echo "$conftest_s" > conftest.s
30147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30149 (eval $ac_try) 2>&5
30151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30152 test $ac_status = 0; }; }
30154 gcc_cv_as_powerpc_vsx
=yes
30156 echo "configure: failed program was" >&5
30159 rm -f conftest.o conftest.s
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30163 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30164 if test $gcc_cv_as_powerpc_vsx = yes; then
30166 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30172 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30173 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
30174 $as_echo_n "(cached) " >&6
30176 gcc_cv_as_powerpc_gnu_attribute
=no
30177 if test x
$gcc_cv_as != x
; then
30178 $as_echo '.gnu_attribute 4,1' > conftest.s
30179 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30181 (eval $ac_try) 2>&5
30183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30184 test $ac_status = 0; }; }
30186 gcc_cv_as_powerpc_gnu_attribute
=yes
30188 echo "configure: failed program was" >&5
30191 rm -f conftest.o conftest.s
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30195 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30196 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30198 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30204 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30205 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
30206 $as_echo_n "(cached) " >&6
30208 gcc_cv_as_powerpc_entry_markers
=no
30209 if test x
$gcc_cv_as != x
; then
30210 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30211 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30213 (eval $ac_try) 2>&5
30215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30216 test $ac_status = 0; }; }
30218 gcc_cv_as_powerpc_entry_markers
=yes
30220 echo "configure: failed program was" >&5
30223 rm -f conftest.o conftest.s
30226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30227 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30228 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30230 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30236 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30237 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
30238 $as_echo_n "(cached) " >&6
30240 gcc_cv_as_powerpc_pltseq_markers
=no
30241 if test x
$gcc_cv_as != x
; then
30242 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30243 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
30244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30245 (eval $ac_try) 2>&5
30247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30248 test $ac_status = 0; }; }
30250 gcc_cv_as_powerpc_pltseq_markers
=yes
30252 echo "configure: failed program was" >&5
30255 rm -f conftest.o conftest.s
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30259 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30260 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30262 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30270 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30271 if ${gcc_cv_as_aix_ref+:} false
; then :
30272 $as_echo_n "(cached) " >&6
30274 gcc_cv_as_aix_ref
=no
30275 if test x
$gcc_cv_as != x
; then
30276 $as_echo ' .csect stuff[rw]
30282 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30284 (eval $ac_try) 2>&5
30286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30287 test $ac_status = 0; }; }
30289 gcc_cv_as_aix_ref
=yes
30291 echo "configure: failed program was" >&5
30294 rm -f conftest.o conftest.s
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30298 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30299 if test $gcc_cv_as_aix_ref = yes; then
30301 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30307 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30308 if ${gcc_cv_as_aix_dwloc+:} false
; then :
30309 $as_echo_n "(cached) " >&6
30311 gcc_cv_as_aix_dwloc
=no
30312 if test x
$gcc_cv_as != x
; then
30313 $as_echo ' .dwsect 0xA0000
30317 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30319 (eval $ac_try) 2>&5
30321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30322 test $ac_status = 0; }; }
30324 gcc_cv_as_aix_dwloc
=yes
30326 echo "configure: failed program was" >&5
30329 rm -f conftest.o conftest.s
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30333 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30334 if test $gcc_cv_as_aix_dwloc = yes; then
30336 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo" >&5
30346 $as_echo_n "checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo... " >&6; }
30347 if ${gcc_cv_as_mips_explicit_relocs_pcrel+:} false
; then :
30348 $as_echo_n "(cached) " >&6
30350 gcc_cv_as_mips_explicit_relocs_pcrel
=no
30351 if test x
$gcc_cv_as != x
; then
30352 $as_echo ' lui $4,%pcrel_hi(foo)' > conftest.s
30353 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30355 (eval $ac_try) 2>&5
30357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30358 test $ac_status = 0; }; }
30360 gcc_cv_as_mips_explicit_relocs_pcrel
=yes
30362 echo "configure: failed program was" >&5
30365 rm -f conftest.o conftest.s
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs_pcrel" >&5
30369 $as_echo "$gcc_cv_as_mips_explicit_relocs_pcrel" >&6; }
30370 if test $gcc_cv_as_mips_explicit_relocs_pcrel = yes; then
30372 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_PCREL" >>confdefs.h
30377 if test x
$gcc_cv_as_mips_explicit_relocs_pcrel = xno
; then \
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %gp_rel" >&5
30379 $as_echo_n "checking assembler for explicit relocation support: %gp_rel... " >&6; }
30380 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
30381 $as_echo_n "(cached) " >&6
30383 gcc_cv_as_mips_explicit_relocs
=no
30384 if test x
$gcc_cv_as != x
; then
30385 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30388 (eval $ac_try) 2>&5
30390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30391 test $ac_status = 0; }; }
30393 gcc_cv_as_mips_explicit_relocs
=yes
30395 echo "configure: failed program was" >&5
30398 rm -f conftest.o conftest.s
30401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30402 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30403 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30405 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_BASE" >>confdefs.h
30410 gcc_cv_as_mips_explicit_relocs
=yes
30413 if test x
$gcc_cv_as_mips_explicit_relocs = xno
; then \
30415 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_NONE" >>confdefs.h
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30420 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30421 if ${gcc_cv_as_mips_no_shared+:} false
; then :
30422 $as_echo_n "(cached) " >&6
30424 gcc_cv_as_mips_no_shared
=no
30425 if test x
$gcc_cv_as != x
; then
30426 $as_echo 'nop' > conftest.s
30427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30429 (eval $ac_try) 2>&5
30431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30432 test $ac_status = 0; }; }
30434 gcc_cv_as_mips_no_shared
=yes
30436 echo "configure: failed program was" >&5
30439 rm -f conftest.o conftest.s
30442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30443 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30444 if test $gcc_cv_as_mips_no_shared = yes; then
30446 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30452 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30453 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
30454 $as_echo_n "(cached) " >&6
30456 gcc_cv_as_mips_gnu_attribute
=no
30457 if test x
$gcc_cv_as != x
; then
30458 $as_echo '.gnu_attribute 4,1' > conftest.s
30459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30461 (eval $ac_try) 2>&5
30463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30464 test $ac_status = 0; }; }
30466 gcc_cv_as_mips_gnu_attribute
=yes
30468 echo "configure: failed program was" >&5
30471 rm -f conftest.o conftest.s
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30475 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30476 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30478 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30484 $as_echo_n "checking assembler for .module support... " >&6; }
30485 if ${gcc_cv_as_mips_dot_module+:} false
; then :
30486 $as_echo_n "(cached) " >&6
30488 gcc_cv_as_mips_dot_module
=no
30489 if test x
$gcc_cv_as != x
; then
30490 $as_echo '.module mips2
30491 .module fp=xx' > conftest.s
30492 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
30493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30494 (eval $ac_try) 2>&5
30496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30497 test $ac_status = 0; }; }
30499 gcc_cv_as_mips_dot_module
=yes
30501 echo "configure: failed program was" >&5
30504 rm -f conftest.o conftest.s
30507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30508 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30509 if test $gcc_cv_as_mips_dot_module = yes; then
30511 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30515 if test x
$gcc_cv_as_mips_dot_module = xno \
30516 && test x
$with_fp_32 != x
; then
30517 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30521 $as_echo_n "checking assembler for .micromips support... " >&6; }
30522 if ${gcc_cv_as_micromips_support+:} false
; then :
30523 $as_echo_n "(cached) " >&6
30525 gcc_cv_as_micromips_support
=no
30526 if test x
$gcc_cv_as != x
; then
30527 $as_echo '.set micromips' > conftest.s
30528 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30530 (eval $ac_try) 2>&5
30532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30533 test $ac_status = 0; }; }
30535 gcc_cv_as_micromips_support
=yes
30537 echo "configure: failed program was" >&5
30540 rm -f conftest.o conftest.s
30543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30544 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30545 if test $gcc_cv_as_micromips_support = yes; then
30547 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30553 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30554 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
30555 $as_echo_n "(cached) " >&6
30557 gcc_cv_as_mips_dtprelword
=no
30558 if test x
$gcc_cv_as != x
; then
30559 $as_echo '.section .tdata,"awT",@progbits
30563 .dtprelword x+0x8000' > conftest.s
30564 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30566 (eval $ac_try) 2>&5
30568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30569 test $ac_status = 0; }; }
30571 gcc_cv_as_mips_dtprelword
=yes
30573 echo "configure: failed program was" >&5
30576 rm -f conftest.o conftest.s
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30580 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30581 if test $gcc_cv_as_mips_dtprelword = yes; then
30583 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30589 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30590 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
30591 $as_echo_n "(cached) " >&6
30593 gcc_cv_as_mips_dspr1_mult
=no
30594 if test x
$gcc_cv_as != x
; then
30595 $as_echo ' .set mips32r2
30603 multu $ac3,$4,$5' > conftest.s
30604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30606 (eval $ac_try) 2>&5
30608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30609 test $ac_status = 0; }; }
30611 gcc_cv_as_mips_dspr1_mult
=yes
30613 echo "configure: failed program was" >&5
30616 rm -f conftest.o conftest.s
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30620 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30621 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30623 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30629 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30630 gcc_cv_as_ld_jalr_reloc
=no
30631 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30632 if test $in_tree_ld = yes ; then
30633 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
30634 && test $in_tree_ld_is_elf = yes; then
30635 gcc_cv_as_ld_jalr_reloc
=yes
30637 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30638 echo ' .ent x' > conftest.s
30639 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30640 echo ' lw $25,%call16(y)($28)' >> conftest.s
30641 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30642 echo '1: jalr $25' >> conftest.s
30643 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30644 echo '1: jalr $25' >> conftest.s
30645 echo ' .end x' >> conftest.s
30646 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
30647 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
30648 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
30649 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
30650 gcc_cv_as_ld_jalr_reloc
=yes
30656 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30657 if test x
$target_cpu_default = x
; then
30658 target_cpu_default
=MASK_RELAX_PIC_CALLS
30660 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30664 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30667 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30668 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
30669 $as_echo_n "(cached) " >&6
30671 gcc_cv_ld_mips_personality_relaxation
=no
30672 if test $in_tree_ld = yes ; then
30673 if test "$gcc_cv_gld_major_version" -eq 2 \
30674 -a "$gcc_cv_gld_minor_version" -ge 21 \
30675 -o "$gcc_cv_gld_major_version" -gt 2; then
30676 gcc_cv_ld_mips_personality_relaxation
=yes
30678 elif test x
$gcc_cv_as != x \
30679 -a x
$gcc_cv_ld != x \
30680 -a x
$gcc_cv_readelf != x
; then
30681 cat > conftest.s
<<EOF
30683 .cfi_personality 0x80,indirect_ptr
30690 .section .data,"aw",@progbits
30694 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
30695 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
30696 if $gcc_cv_readelf -d conftest
2>&1 \
30697 |
grep TEXTREL
> /dev
/null
2>&1; then
30699 elif $gcc_cv_readelf --relocs conftest
2>&1 \
30700 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
30703 gcc_cv_ld_mips_personality_relaxation
=yes
30707 rm -f conftest.s conftest.o conftest
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30710 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30711 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
30713 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30718 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30719 if ${gcc_cv_as_mips_nan+:} false
; then :
30720 $as_echo_n "(cached) " >&6
30722 gcc_cv_as_mips_nan
=no
30723 if test x
$gcc_cv_as != x
; then
30724 $as_echo '' > conftest.s
30725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30727 (eval $ac_try) 2>&5
30729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30730 test $ac_status = 0; }; }
30732 gcc_cv_as_mips_nan
=yes
30734 echo "configure: failed program was" >&5
30737 rm -f conftest.o conftest.s
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30741 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30742 if test $gcc_cv_as_mips_nan = yes; then
30744 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30748 if test x
$gcc_cv_as_mips_nan = xno \
30749 && test x
$with_nan != x
; then
30750 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30754 # Earlier GAS versions generically support .gnu_attribute, but the
30755 # msp430 assembler will not do anything with it.
30756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30757 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30758 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
30759 $as_echo_n "(cached) " >&6
30761 gcc_cv_as_msp430_gnu_attribute
=no
30762 if test x
$gcc_cv_as != x
; then
30763 $as_echo '.gnu_attribute 4,1' > conftest.s
30764 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30766 (eval $ac_try) 2>&5
30768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30769 test $ac_status = 0; }; }
30771 gcc_cv_as_msp430_gnu_attribute
=yes
30773 echo "configure: failed program was" >&5
30776 rm -f conftest.o conftest.s
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30780 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30781 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30783 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30788 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30789 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
30790 $as_echo_n "(cached) " >&6
30792 gcc_cv_as_msp430_mspabi_attribute
=no
30793 if test x
$gcc_cv_as != x
; then
30794 $as_echo '.mspabi_attribute 4,2' > conftest.s
30795 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30797 (eval $ac_try) 2>&5
30799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30800 test $ac_status = 0; }; }
30802 gcc_cv_as_msp430_mspabi_attribute
=yes
30804 echo "configure: failed program was" >&5
30807 rm -f conftest.o conftest.s
30810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30811 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30812 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30814 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30818 if test x
$enable_newlib_nano_formatted_io = xyes
; then
30820 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30826 $as_echo_n "checking assembler for .attribute support... " >&6; }
30827 if ${gcc_cv_as_riscv_attribute+:} false
; then :
30828 $as_echo_n "(cached) " >&6
30830 gcc_cv_as_riscv_attribute
=no
30831 if test x
$gcc_cv_as != x
; then
30832 $as_echo '.attribute stack_align,4' > conftest.s
30833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30835 (eval $ac_try) 2>&5
30837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30838 test $ac_status = 0; }; }
30840 gcc_cv_as_riscv_attribute
=yes
30842 echo "configure: failed program was" >&5
30845 rm -f conftest.o conftest.s
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30849 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30850 if test $gcc_cv_as_riscv_attribute = yes; then
30852 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30857 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30858 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
30859 $as_echo_n "(cached) " >&6
30861 gcc_cv_as_riscv_isa_spec
=no
30862 if test x
$gcc_cv_as != x
; then
30863 $as_echo '' > conftest.s
30864 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30866 (eval $ac_try) 2>&5
30868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30869 test $ac_status = 0; }; }
30871 gcc_cv_as_riscv_isa_spec
=yes
30873 echo "configure: failed program was" >&5
30876 rm -f conftest.o conftest.s
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30880 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30881 if test $gcc_cv_as_riscv_isa_spec = yes; then
30883 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
30888 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
30889 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
30890 $as_echo_n "(cached) " >&6
30892 gcc_cv_as_riscv_march_zifencei
=no
30893 if test x
$gcc_cv_as != x
; then
30894 $as_echo '' > conftest.s
30895 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
30896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30897 (eval $ac_try) 2>&5
30899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30900 test $ac_status = 0; }; }
30902 gcc_cv_as_riscv_march_zifencei
=yes
30904 echo "configure: failed program was" >&5
30907 rm -f conftest.o conftest.s
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
30911 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
30912 if test $gcc_cv_as_riscv_march_zifencei = yes; then
30914 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zaamo_zalrsc support" >&5
30919 $as_echo_n "checking assembler for -march=rv32i_zaamo_zalrsc support... " >&6; }
30920 if ${gcc_cv_as_riscv_march_zaamo_zalrsc+:} false
; then :
30921 $as_echo_n "(cached) " >&6
30923 gcc_cv_as_riscv_march_zaamo_zalrsc
=no
30924 if test x
$gcc_cv_as != x
; then
30925 $as_echo '' > conftest.s
30926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zaamo_zalrsc -o conftest.o conftest.s >&5'
30927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30928 (eval $ac_try) 2>&5
30930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30931 test $ac_status = 0; }; }
30933 gcc_cv_as_riscv_march_zaamo_zalrsc
=yes
30935 echo "configure: failed program was" >&5
30938 rm -f conftest.o conftest.s
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zaamo_zalrsc" >&5
30942 $as_echo "$gcc_cv_as_riscv_march_zaamo_zalrsc" >&6; }
30943 if test $gcc_cv_as_riscv_march_zaamo_zalrsc = yes; then
30945 $as_echo "#define HAVE_AS_MARCH_ZAAMO_ZALRSC 1" >>confdefs.h
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_b support" >&5
30950 $as_echo_n "checking assembler for -march=rv32i_b support... " >&6; }
30951 if ${gcc_cv_as_riscv_march_b+:} false
; then :
30952 $as_echo_n "(cached) " >&6
30954 gcc_cv_as_riscv_march_b
=no
30955 if test x
$gcc_cv_as != x
; then
30956 $as_echo '' > conftest.s
30957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_b -o conftest.o conftest.s >&5'
30958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30959 (eval $ac_try) 2>&5
30961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30962 test $ac_status = 0; }; }
30964 gcc_cv_as_riscv_march_b
=yes
30966 echo "configure: failed program was" >&5
30969 rm -f conftest.o conftest.s
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_b" >&5
30973 $as_echo "$gcc_cv_as_riscv_march_b" >&6; }
30974 if test $gcc_cv_as_riscv_march_b = yes; then
30976 $as_echo "#define HAVE_AS_MARCH_B 1" >>confdefs.h
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30983 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30984 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
30985 $as_echo_n "(cached) " >&6
30987 gcc_cv_as_loongarch_dtprelword
=no
30988 if test x
$gcc_cv_as != x
; then
30989 $as_echo '' > conftest.s
30990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
30991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30992 (eval $ac_try) 2>&5
30994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30995 test $ac_status = 0; }; }
30997 .section .tdata
,"awT",@progbits
31001 .dtprelword x
+0x8000
31003 echo "configure: failed program was" >&5
31006 rm -f conftest.o conftest.s
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
31010 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
31012 if test $gcc_cv_as_loongarch_dtprelword != yes; then
31014 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
31018 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
31019 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
31020 $as_echo_n "(cached) " >&6
31022 gcc_cv_as_loongarch_explicit_relocs
=no
31023 if test x
$gcc_cv_as != x
; then
31024 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
31025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31027 (eval $ac_try) 2>&5
31029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31030 test $ac_status = 0; }; }
31032 gcc_cv_as_loongarch_explicit_relocs
=yes
31034 echo "configure: failed program was" >&5
31037 rm -f conftest.o conftest.s
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
31041 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
31042 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
31044 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
31049 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
31050 if ${gcc_cv_as_loongarch_call36+:} false
; then :
31051 $as_echo_n "(cached) " >&6
31053 gcc_cv_as_loongarch_call36
=no
31054 if test x
$gcc_cv_as != x
; then
31055 $as_echo 'pcaddu18i $r1, %call36(a)
31056 jirl $r1, $r1, 0' > conftest.s
31057 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31059 (eval $ac_try) 2>&5
31061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31062 test $ac_status = 0; }; }
31064 gcc_cv_as_loongarch_call36
=yes
31066 echo "configure: failed program was" >&5
31069 rm -f conftest.o conftest.s
31072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
31073 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
31074 if test $gcc_cv_as_loongarch_call36 = yes; then
31076 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
31081 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
31082 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
31083 $as_echo_n "(cached) " >&6
31085 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
31086 if test x
$gcc_cv_as != x
; then
31087 $as_echo '.cfi_startproc
31088 .cfi_personality 0x9b,a
31090 .cfi_endproc' > conftest.s
31091 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31093 (eval $ac_try) 2>&5
31095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31096 test $ac_status = 0; }; }
31098 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
31100 echo "configure: failed program was" >&5
31103 rm -f conftest.o conftest.s
31106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
31107 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
31108 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
31110 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
31115 $as_echo_n "checking assembler for -mrelax option... " >&6; }
31116 if ${gcc_cv_as_loongarch_relax+:} false
; then :
31117 $as_echo_n "(cached) " >&6
31119 gcc_cv_as_loongarch_relax
=no
31120 if test x
$gcc_cv_as != x
; then
31121 $as_echo '.text' > conftest.s
31122 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
31123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31124 (eval $ac_try) 2>&5
31126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31127 test $ac_status = 0; }; }
31129 gcc_cv_as_loongarch_relax
=yes
31131 echo "configure: failed program was" >&5
31134 rm -f conftest.o conftest.s
31137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
31138 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
31139 if test $gcc_cv_as_loongarch_relax = yes; then
31141 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
31146 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
31147 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false
; then :
31148 $as_echo_n "(cached) " >&6
31150 gcc_cv_as_loongarch_cond_branch_relax
=no
31151 if test x
$gcc_cv_as != x
; then
31156 beq $a0,$a1,a' > conftest.s
31157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
31158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31159 (eval $ac_try) 2>&5
31161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31162 test $ac_status = 0; }; }
31164 gcc_cv_as_loongarch_cond_branch_relax
=yes
31166 echo "configure: failed program was" >&5
31169 rm -f conftest.o conftest.s
31172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31173 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31174 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31176 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls le relaxation support" >&5
31181 $as_echo_n "checking assembler for tls le relaxation support... " >&6; }
31182 if ${gcc_cv_as_loongarch_tls_le_relaxation_support+:} false
; then :
31183 $as_echo_n "(cached) " >&6
31185 gcc_cv_as_loongarch_tls_le_relaxation_support
=no
31186 if test x
$gcc_cv_as != x
; then
31187 $as_echo 'lu12i.w $t0,%le_hi20_r(a)' > conftest.s
31188 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31190 (eval $ac_try) 2>&5
31192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31193 test $ac_status = 0; }; }
31195 gcc_cv_as_loongarch_tls_le_relaxation_support
=yes
31197 echo "configure: failed program was" >&5
31200 rm -f conftest.o conftest.s
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_tls_le_relaxation_support" >&5
31204 $as_echo "$gcc_cv_as_loongarch_tls_le_relaxation_support" >&6; }
31205 if test $gcc_cv_as_loongarch_tls_le_relaxation_support = yes; then
31207 $as_echo "#define HAVE_AS_TLS_LE_RELAXATION 1" >>confdefs.h
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31214 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31215 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
31216 $as_echo_n "(cached) " >&6
31218 gcc_cv_as_s390_gnu_attribute
=no
31219 if test x
$gcc_cv_as != x
; then
31220 $as_echo '.gnu_attribute 8,1' > conftest.s
31221 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31223 (eval $ac_try) 2>&5
31225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31226 test $ac_status = 0; }; }
31228 gcc_cv_as_s390_gnu_attribute
=yes
31230 echo "configure: failed program was" >&5
31233 rm -f conftest.o conftest.s
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31237 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31238 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31240 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31245 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31246 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
31247 $as_echo_n "(cached) " >&6
31249 gcc_cv_as_s390_machine_machinemode
=no
31250 if test x
$gcc_cv_as != x
; then
31251 $as_echo ' .machinemode push
31254 .machine pop' > conftest.s
31255 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31257 (eval $ac_try) 2>&5
31259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31260 test $ac_status = 0; }; }
31262 gcc_cv_as_s390_machine_machinemode
=yes
31264 echo "configure: failed program was" >&5
31267 rm -f conftest.o conftest.s
31270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31271 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31272 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31274 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31279 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31280 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
31281 $as_echo_n "(cached) " >&6
31283 gcc_cv_as_s390_architecture_modifiers
=no
31284 if test x
$gcc_cv_as != x
; then
31285 $as_echo ' .machine z13+vx ' > conftest.s
31286 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31288 (eval $ac_try) 2>&5
31290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31291 test $ac_status = 0; }; }
31293 gcc_cv_as_s390_architecture_modifiers
=yes
31295 echo "configure: failed program was" >&5
31298 rm -f conftest.o conftest.s
31301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31302 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31303 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31305 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31310 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31311 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
31312 $as_echo_n "(cached) " >&6
31314 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
31315 if test x
$gcc_cv_as != x
; then
31316 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31317 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31319 (eval $ac_try) 2>&5
31321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31322 test $ac_status = 0; }; }
31324 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
31326 echo "configure: failed program was" >&5
31329 rm -f conftest.o conftest.s
31332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31333 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31334 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31336 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31341 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31342 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
31343 $as_echo_n "(cached) " >&6
31345 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
31346 if test x
$gcc_cv_as != x
; then
31347 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31348 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31350 (eval $ac_try) 2>&5
31352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31353 test $ac_status = 0; }; }
31355 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
31357 echo "configure: failed program was" >&5
31360 rm -f conftest.o conftest.s
31363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31364 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31365 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31367 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31375 # Mips, LoongArch and HP-UX need the GNU assembler.
31376 # Linux on IA64 might be able to use the Intel assembler.
31379 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
31380 if test x
$gas_flag = xyes \
31381 ||
test x
"$host" != x
"$build" \
31382 ||
test ! -x "$gcc_cv_as" \
31383 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
31386 echo "*** This configuration requires the GNU assembler" >&2
31392 # AMD GCN needs the LLVM assembler and linker.
31393 # Test that LLVM is at least 13.0.1.
31396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31397 $as_echo_n "checking llvm assembler version... " >&6; }
31398 gcc_cv_as_version
="unknown"
31399 if test x
$gcc_cv_as != x
; then
31400 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31401 case "$gcc_cv_as_version" in
31402 13.0.
[1-9]*) ;; # 13.0.1+
31403 13.
[1-9]*) ;; # 13.1+
31404 1[4-9]*) ;; # 14..19
31405 [2-9][0-9]*) ;; # 20..99
31406 [1-9][0-9][0-9]*) ;; # 100+
31407 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
31408 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31412 $as_echo "$gcc_cv_as_version, ok" >&6; }
31418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31419 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31420 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
31421 $as_echo_n "(cached) " >&6
31423 gcc_cv_as_arm_option_extensions
=no
31424 if test x
$gcc_cv_as != x
; then
31428 vmov.f32 s0, s1' > conftest.s
31429 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31431 (eval $ac_try) 2>&5
31433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31434 test $ac_status = 0; }; }
31436 gcc_cv_as_arm_option_extensions
=yes
31438 echo "configure: failed program was" >&5
31441 rm -f conftest.o conftest.s
31444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31445 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31446 if test $gcc_cv_as_arm_option_extensions = yes; then
31448 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31454 # ??? Not all targets support dwarf2 debug_line, even within a version
31455 # of gas. Moreover, we need to emit a valid instruction to trigger any
31456 # info to the output file. So, as supported targets are added to gas 2.11,
31457 # add some instruction here to (also) show we expect this might work.
31458 # ??? Once 2.11 is released, probably need to add first known working
31459 # version to the per-target configury.
31460 case "$cpu_type" in
31461 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31462 | m68k | microblaze | mips | nds32 | pa | riscv | rs6000 | score | sparc \
31463 | visium | xstormy16 | xtensa | ft32
)
31473 if test x
"$insn" != x
; then
31475 .file 1 \"conftest.s\"
31478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31479 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31480 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
31481 $as_echo_n "(cached) " >&6
31483 gcc_cv_as_dwarf2_debug_line
=no
31484 if test x
$gcc_cv_as != x
; then
31485 $as_echo "$conftest_s" > conftest.s
31486 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31488 (eval $ac_try) 2>&5
31490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31491 test $ac_status = 0; }; }
31493 if test x
$gcc_cv_objdump != x \
31494 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
31495 |
grep debug_line
> /dev
/null
2>&1; then
31496 gcc_cv_as_dwarf2_debug_line
=yes
31497 elif test x
$gcc_cv_otool != x \
31498 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
31499 |
grep debug_line
> /dev
/null
2>&1; then
31500 gcc_cv_as_dwarf2_debug_line
=yes
31503 echo "configure: failed program was" >&5
31506 rm -f conftest.o conftest.s
31509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31510 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31514 # The .debug_line file table must be in the exact order that
31515 # we specified the files, since these indices are also used
31516 # by DW_AT_decl_file. Approximate this test by testing if
31517 # the assembler bitches if the same index is assigned twice.
31518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31519 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31520 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
31521 $as_echo_n "(cached) " >&6
31523 gcc_cv_as_dwarf2_file_buggy
=no
31524 if test x
$gcc_cv_as != x
; then
31525 $as_echo ' .file 1 "foo.s"
31526 .file 1 "bar.s"' > conftest.s
31527 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31529 (eval $ac_try) 2>&5
31531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31532 test $ac_status = 0; }; }
31534 gcc_cv_as_dwarf2_file_buggy
=yes
31536 echo "configure: failed program was" >&5
31539 rm -f conftest.o conftest.s
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
31543 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31547 if test $gcc_cv_as_dwarf2_debug_line = yes \
31548 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
31550 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31553 if test $gcc_cv_as_leb128 = yes; then
31555 .file 1 \"conftest.s\"
31556 .loc 1 3 0 view .LVU1
31562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31563 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31564 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
31565 $as_echo_n "(cached) " >&6
31567 gcc_cv_as_dwarf2_debug_view
=no
31568 if test x
$gcc_cv_as != x
; then
31569 $as_echo "$conftest_s" > conftest.s
31570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31572 (eval $ac_try) 2>&5
31574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31575 test $ac_status = 0; }; }
31577 gcc_cv_as_dwarf2_debug_view
=yes
31579 echo "configure: failed program was" >&5
31582 rm -f conftest.o conftest.s
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31586 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31587 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31589 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31597 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31598 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
31599 $as_echo_n "(cached) " >&6
31601 gcc_cv_as_gdwarf2_flag
=no
31602 if test x
$gcc_cv_as != x
; then
31603 $as_echo "$insn" > conftest.s
31604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31606 (eval $ac_try) 2>&5
31608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31609 test $ac_status = 0; }; }
31611 gcc_cv_as_gdwarf2_flag
=yes
31613 echo "configure: failed program was" >&5
31616 rm -f conftest.o conftest.s
31619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31620 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31621 if test $gcc_cv_as_gdwarf2_flag = yes; then
31623 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31629 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31630 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
31631 $as_echo_n "(cached) " >&6
31633 gcc_cv_as_gdwarf_5_flag
=no
31634 if test x
$gcc_cv_as != x
; then
31635 $as_echo "$insn" > conftest.s
31636 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31638 (eval $ac_try) 2>&5
31640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31641 test $ac_status = 0; }; }
31643 if test x
$gcc_cv_objdump != x \
31644 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
31645 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
31646 gcc_cv_as_gdwarf_5_flag
=yes;
31649 echo "configure: failed program was" >&5
31652 rm -f conftest.o conftest.s
31655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31656 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31657 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31659 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31665 win32 | pe | cygwin
* | mingw32
*)
31666 section_flags
=\"dr
\"
31667 function_type
=".def foo; .scl 2; .type 32; .endef"
31670 section_flags
=\"\",%progbits
31671 function_type
=".type foo, %function"
31672 function_size
=".size foo, .-foo";;
31674 dwarf4_debug_info_size
=0x46
31675 dwarf4_high_pc_form
=7
31676 dwarf4_debug_aranges_size
=0x2c
31678 for dwarf4_addr_size
in 8 4; do
31694 .section .debug_info,$section_flags
31696 .4byte $dwarf4_debug_info_size
31698 .4byte .Ldebug_abbrev0
31699 .byte 0x$dwarf4_addr_size
31701 .ascii \"GNU C17\\0\"
31705 .${dwarf4_addr_size}byte .Ltext0
31706 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31707 .4byte .Ldebug_line0
31713 .${dwarf4_addr_size}byte .LFB0
31714 .${dwarf4_addr_size}byte .LFE0-.LFB0
31718 .section .debug_abbrev,$section_flags
31734 .byte 0x$dwarf4_high_pc_form
31755 .byte 0x$dwarf4_high_pc_form
31761 .section .debug_aranges,$section_flags
31762 .4byte $dwarf4_debug_aranges_size
31764 .4byte .Ldebug_info0
31769 .${dwarf4_addr_size}byte .Ltext0
31770 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31771 .${dwarf4_addr_size}byte 0
31772 .${dwarf4_addr_size}byte 0
31773 .section .debug_line,$section_flags
31775 .4byte .LELT0-.LSLT0
31778 .4byte .LELTP0-.LASLTP0
31806 .byte 0x$dwarf4_line_sz
31808 .${dwarf4_addr_size}byte .LM1
31813 .byte 0x$dwarf4_line_sz
31815 .${dwarf4_addr_size}byte .LM2
31820 .byte 0x$dwarf4_line_sz
31822 .${dwarf4_addr_size}byte .Letext0
31827 .section .debug_str,$section_flags
31831 if test $dwarf4_addr_size = 4; then
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31833 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31834 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
31835 $as_echo_n "(cached) " >&6
31837 gcc_cv_as_debug_line_32_flag
=no
31838 if test x
$gcc_cv_as != x
; then
31839 $as_echo "$conftest_s" > conftest.s
31840 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31842 (eval $ac_try) 2>&5
31844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31845 test $ac_status = 0; }; }
31847 gcc_cv_as_debug_line_32_flag
=yes
31849 echo "configure: failed program was" >&5
31852 rm -f conftest.o conftest.s
31855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31856 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31857 if test $gcc_cv_as_debug_line_32_flag = yes; then
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31863 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31864 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
31865 $as_echo_n "(cached) " >&6
31867 gcc_cv_as_debug_line_64_flag
=no
31868 if test x
$gcc_cv_as != x
; then
31869 $as_echo "$conftest_s" > conftest.s
31870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31872 (eval $ac_try) 2>&5
31874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31875 test $ac_status = 0; }; }
31877 gcc_cv_as_debug_line_64_flag
=yes
31879 echo "configure: failed program was" >&5
31882 rm -f conftest.o conftest.s
31885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31886 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31887 if test $gcc_cv_as_debug_line_64_flag = yes; then
31892 if test $dwarf4_success = yes; then
31894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31895 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31896 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
31897 $as_echo_n "(cached) " >&6
31899 gcc_cv_as_dwarf_4_debug_line_flag
=no
31900 if test x
$gcc_cv_as != x
; then
31901 $as_echo "$conftest_s" > conftest.s
31902 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31904 (eval $ac_try) 2>&5
31906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31907 test $ac_status = 0; }; }
31909 gcc_cv_as_dwarf_4_debug_line_flag
=yes
31911 echo "configure: failed program was" >&5
31914 rm -f conftest.o conftest.s
31917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31918 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31919 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31925 dwarf4_debug_info_size
=0x36
31926 dwarf4_high_pc_form
=6
31927 dwarf4_debug_aranges_size
=0x1c
31931 if test $dwarf4_success = yes; then
31949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
31950 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
31951 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
31952 $as_echo_n "(cached) " >&6
31954 gcc_cv_as_dwarf_4_app_flag
=no
31955 if test x
$gcc_cv_as != x
; then
31956 $as_echo "$conftest_s" > conftest.s
31957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31959 (eval $ac_try) 2>&5
31961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31962 test $ac_status = 0; }; }
31964 gcc_cv_as_dwarf_4_app_flag
=yes
31966 echo "configure: failed program was" >&5
31969 rm -f conftest.o conftest.s
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
31973 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
31974 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
31980 if test $dwarf4_success = yes; then
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
31991 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
31992 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
31993 $as_echo_n "(cached) " >&6
31995 gcc_cv_as_working_gdwarf_n_flag
=no
31996 if test x
$gcc_cv_as != x
; then
31997 $as_echo "$conftest_s" > conftest.s
31998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32000 (eval $ac_try) 2>&5
32002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32003 test $ac_status = 0; }; }
32005 if test x
$gcc_cv_objdump != x \
32006 && $gcc_cv_objdump -W conftest.o
2>&1 \
32007 |
grep conftest.s
> /dev
/null
2>&1; then
32008 gcc_cv_as_working_gdwarf_n_flag
=no
32010 gcc_cv_as_working_gdwarf_n_flag
=yes
32013 echo "configure: failed program was" >&5
32016 rm -f conftest.o conftest.s
32019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
32020 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
32023 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
32025 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
32030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
32031 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
32032 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
32033 $as_echo_n "(cached) " >&6
32035 gcc_cv_as_debug_prefix_map_flag
=no
32036 if test x
$gcc_cv_as != x
; then
32037 $as_echo "$insn" > conftest.s
32038 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
32039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32040 (eval $ac_try) 2>&5
32042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32043 test $ac_status = 0; }; }
32045 gcc_cv_as_debug_prefix_map_flag
=yes
32047 echo "configure: failed program was" >&5
32050 rm -f conftest.o conftest.s
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
32054 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
32055 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
32057 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
32063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
32064 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
32065 if ${gcc_cv_as_compress_debug+:} false
; then :
32066 $as_echo_n "(cached) " >&6
32068 gcc_cv_as_compress_debug
=no
32069 if test x
$gcc_cv_as != x
; then
32070 $as_echo '' > conftest.s
32071 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32073 (eval $ac_try) 2>&5
32075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32076 test $ac_status = 0; }; }
32078 # gas compiled without zlib cannot compress debug sections and warns
32079 # about it, but still exits successfully. So check for this, too.
32080 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
32082 gcc_cv_as_compress_debug
=0
32083 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
32085 gcc_cv_as_compress_debug
=1
32086 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
32087 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
32088 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
32089 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
32091 gcc_cv_as_compress_debug
=2
32094 gcc_cv_as_compress_debug
=0
32097 echo "configure: failed program was" >&5
32100 rm -f conftest.o conftest.s
32103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
32104 $as_echo "$gcc_cv_as_compress_debug" >&6; }
32108 cat >>confdefs.h
<<_ACEOF
32109 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
32113 cat >>confdefs.h
<<_ACEOF
32114 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
32118 cat >>confdefs.h
<<_ACEOF
32119 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
32124 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
32125 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
32126 $as_echo_n "(cached) " >&6
32128 gcc_cv_as_lcomm_with_alignment
=no
32129 if test x
$gcc_cv_as != x
; then
32130 $as_echo '.lcomm bar,4,16' > conftest.s
32131 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32133 (eval $ac_try) 2>&5
32135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32136 test $ac_status = 0; }; }
32138 gcc_cv_as_lcomm_with_alignment
=yes
32140 echo "configure: failed program was" >&5
32143 rm -f conftest.o conftest.s
32146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
32147 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
32148 if test $gcc_cv_as_lcomm_with_alignment = yes; then
32150 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32155 if test x
$with_sysroot = x
&& test x
$host = x
$target \
32156 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32157 && test "$prefix" != "NONE"; then
32159 cat >>confdefs.h
<<_ACEOF
32160 #define PREFIX_INCLUDE_DIR "$prefix/include"
32165 # Determine the version of glibc, if any, used on the target.
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32167 $as_echo_n "checking for target glibc version... " >&6; }
32169 # Check whether --with-glibc-version was given.
32170 if test "${with_glibc_version+set}" = set; then :
32171 withval
=$with_glibc_version;
32172 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32173 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32174 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32176 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
32180 glibc_version_major
=0
32181 glibc_version_minor
=0
32182 if test -f $target_header_dir/features.h \
32183 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32184 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32185 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32186 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32191 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32193 cat >>confdefs.h
<<_ACEOF
32194 #define TARGET_GLIBC_MAJOR $glibc_version_major
32198 cat >>confdefs.h
<<_ACEOF
32199 #define TARGET_GLIBC_MINOR $glibc_version_minor
32203 # Check whether --enable-gnu-unique-object was given.
32204 if test "${enable_gnu_unique_object+set}" = set; then :
32205 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32207 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32208 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32212 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32213 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
32214 $as_echo_n "(cached) " >&6
32216 gcc_cv_as_gnu_unique_object
=no
32217 if test x
$gcc_cv_as != x
; then
32218 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32219 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32221 (eval $ac_try) 2>&5
32223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32224 test $ac_status = 0; }; }
32226 gcc_cv_as_gnu_unique_object
=yes
32228 echo "configure: failed program was" >&5
32231 rm -f conftest.o conftest.s
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32235 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32236 if test $gcc_cv_as_gnu_unique_object = yes; then
32237 # We need to unquote above to to use the definition from config.gcc.
32238 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32240 if test $glibc_version_major -gt 2 \
32241 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32242 enable_gnu_unique_object
=yes
32249 if test x
$enable_gnu_unique_object = xyes
; then
32251 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32256 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32257 if ${gcc_cv_as_line_zero+:} false
; then :
32258 $as_echo_n "(cached) " >&6
32260 gcc_cv_as_line_zero
=no
32261 if test "x$gcc_cv_as" != x
; then
32262 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32263 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32265 (eval $ac_try) 2>&5
32267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32268 test $ac_status = 0; }; } &&
32269 test "x`cat conftest.out`" = x
32271 gcc_cv_as_line_zero
=yes
32273 echo "configure: failed program was" >&5
32275 echo "configure: error output was" >&5
32276 cat conftest.out
>&5
32278 rm -f conftest.o conftest.s conftest.out
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32282 $as_echo "$gcc_cv_as_line_zero" >&6; }
32283 if test "x$gcc_cv_as_line_zero" = xyes
; then
32285 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32290 $as_echo_n "checking support for thin archives... " >&6; }
32291 thin_archive_support
=no
32292 echo 'int main (void) { return 0; }' > conftest.c
32293 if ($AR --version |
sed 1q |
grep "GNU ar" \
32294 && $CC $CFLAGS -c conftest.c \
32295 && $AR rcT conftest.a conftest.o \
32296 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
32297 thin_archive_support
=yes
32299 rm -f conftest.c conftest.o conftest.a conftest
32300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32301 $as_echo "$thin_archive_support" >&6; }
32304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32305 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32306 gcc_cv_ld_eh_frame_hdr
=no
32307 if test $in_tree_ld = yes ; then
32308 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
32309 && test $in_tree_ld_is_elf = yes; then
32310 gcc_cv_ld_eh_frame_hdr
=yes
32312 elif test x
$gcc_cv_ld != x
; then
32313 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32314 # Check if linker supports --eh-frame-hdr option
32315 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
32316 gcc_cv_ld_eh_frame_hdr
=yes
32321 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32322 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
32323 gcc_cv_ld_eh_frame_hdr
=yes
32330 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
32332 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32336 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32339 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32340 gcc_cv_ld_eh_frame_ciev3
=no
32341 if test $in_tree_ld = yes ; then
32342 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
32343 && test $in_tree_ld_is_elf = yes; then
32344 gcc_cv_ld_eh_frame_ciev3
=yes
32346 elif test x
$gcc_cv_ld != x
; then
32347 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32348 gcc_cv_ld_eh_frame_ciev3
=yes
32349 if test 0"$ld_date" -lt 20040513; then
32350 if test -n "$ld_date"; then
32351 # If there was date string, but was earlier than 2004-05-13, fail
32352 gcc_cv_ld_eh_frame_ciev3
=no
32353 elif test "$ld_vers_major" -lt 2; then
32354 gcc_cv_ld_eh_frame_ciev3
=no
32355 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32356 gcc_cv_ld_eh_frame_ciev3
=no
32362 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32363 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
32364 gcc_cv_ld_eh_frame_ciev3
=yes
32371 cat >>confdefs.h
<<_ACEOF
32372 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32376 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32379 $as_echo_n "checking linker position independent executable support... " >&6; }
32381 if test $in_tree_ld = yes ; then
32383 # Full PIE support on Solaris was only introduced in gld 2.26.
32384 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
32385 *) gcc_gld_pie_min_version
=15 ;;
32387 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
32388 && test $in_tree_ld_is_elf = yes; then
32391 elif test x
$gcc_cv_ld != x
; then
32392 # Check if linker supports -pie option
32393 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
32397 if echo "$ld_ver" |
grep GNU
> /dev
/null \
32398 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32405 *-*-solaris2.1
[1-9]*)
32406 # Solaris 11.3 added PIE support.
32407 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
32414 if test x
"$gcc_cv_ld_pie" = xyes
; then
32416 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32420 $as_echo "$gcc_cv_ld_pie" >&6; }
32422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32423 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32424 gcc_cv_ld_pie_copyreloc
=no
32425 if test $gcc_cv_ld_pie = yes ; then
32426 if test $in_tree_ld = yes ; then
32427 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
32428 gcc_cv_ld_pie_copyreloc
=yes
32430 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32431 # Check if linker supports -pie option with copy reloc
32433 i?
86-*-linux* | x86_64-
*-linux*)
32434 cat > conftest1.s
<<EOF
32437 .type a_glob, @object
32442 cat > conftest2.s
<<EOF
32445 .type main, @function
32447 movl %eax, a_glob(%rip)
32450 .section .data.rel,"aw",@progbits
32455 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
32456 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
32457 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
32458 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
32459 gcc_cv_ld_pie_copyreloc
=yes
32461 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32467 cat >>confdefs.h
<<_ACEOF
32468 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32472 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32475 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32476 gcc_cv_ld_eh_gc_sections
=no
32477 if test $in_tree_ld = yes ; then
32478 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
32479 && test $in_tree_ld_is_elf = yes; then
32480 gcc_cv_ld_eh_gc_sections
=yes
32482 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
32483 cat > conftest.s
<<EOF
32486 .type _start, @function
32489 .size _start, .-_start
32490 .section .text.foo,"ax",@progbits
32491 .type foo, @function
32495 .section .gcc_except_table.foo,"a",@progbits
32498 .section .eh_frame,"a",@progbits
32501 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32502 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32503 |
grep "gc-sections option ignored" > /dev
/null
; then
32504 gcc_cv_ld_eh_gc_sections
=no
32505 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32506 |
grep gcc_except_table
> /dev
/null
; then
32507 gcc_cv_ld_eh_gc_sections
=yes
32508 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32509 if test x
$gcc_cv_as_comdat_group != xyes
; then
32510 gcc_cv_ld_eh_gc_sections
=no
32511 cat > conftest.s
<<EOF
32514 .type _start, @function
32517 .size _start, .-_start
32518 .section .gnu.linkonce.t.foo,"ax",@progbits
32519 .type foo, @function
32523 .section .gcc_except_table.foo,"a",@progbits
32526 .section .eh_frame,"a",@progbits
32529 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32530 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32531 |
grep "gc-sections option ignored" > /dev
/null
; then
32532 gcc_cv_ld_eh_gc_sections
=no
32533 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32534 |
grep gcc_except_table
> /dev
/null
; then
32535 gcc_cv_ld_eh_gc_sections
=yes
32541 rm -f conftest.s conftest.o conftest
32545 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32546 gcc_cv_ld_eh_gc_sections
=no
32549 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
32551 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32555 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32558 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32559 gcc_cv_ld_eh_gc_sections_bug
=no
32560 if test $in_tree_ld = yes ; then
32561 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
32562 && test $in_tree_ld_is_elf = yes; then
32563 gcc_cv_ld_eh_gc_sections_bug
=yes
32565 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
-a x
$gcc_cv_as_comdat_group = xyes
; then
32566 gcc_cv_ld_eh_gc_sections_bug
=yes
32567 cat > conftest.s
<<EOF
32570 .type _start, @function
32573 .size _start, .-_start
32574 .section .text.startup.foo,"ax",@progbits
32575 .type foo, @function
32579 .section .gcc_except_table.foo,"a",@progbits
32582 .section .eh_frame,"a",@progbits
32585 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32586 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32587 |
grep "gc-sections option ignored" > /dev
/null
; then
32589 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32590 |
grep gcc_except_table
> /dev
/null
; then
32591 gcc_cv_ld_eh_gc_sections_bug
=no
32594 rm -f conftest.s conftest.o conftest
32596 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
32598 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32602 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32605 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32606 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32607 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
32608 gcc_cv_ld_compress_debug
=1
32609 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
32610 # Detect zstd debug section compression support
32611 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
32612 gcc_cv_ld_compress_debug
=2
32615 case "${target}" in
32617 # Introduced in Solaris 11.2.
32618 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
32619 gcc_cv_ld_compress_debug
=1
32620 gcc_cv_ld_compress_debug_option
="-z compress-sections"
32622 gcc_cv_ld_compress_debug
=0
32626 # Assume linkers other than GNU ld don't support compessed debug
32628 gcc_cv_ld_compress_debug
=0
32633 cat >>confdefs.h
<<_ACEOF
32634 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32638 cat >>confdefs.h
<<_ACEOF
32639 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32643 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32645 if test x
"$ld64_flag" = x
"yes"; then
32647 # Set defaults for possibly untestable items.
32648 gcc_cv_ld64_export_dynamic
=0
32649 gcc_cv_ld64_platform_version
=0
32650 gcc_cv_ld64_demangle
=0
32652 if test "$build" = "$host"; then
32658 # On Darwin, because of FAT library support, it is often possible to execute
32659 # exes from compatible archs even when the host differs from the build system.
32660 case "$build","$host" in
32661 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
32662 darwin_try_test
=1;;
32666 # If the configurer specified a minimum ld64 version to be supported, then use
32667 # that to determine feature support.
32668 if test x
"${gcc_cv_ld64_version}" != x
; then
32669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32670 $as_echo_n "checking ld64 specified version... " >&6; }
32671 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32673 $as_echo "$gcc_cv_ld64_major" >&6; }
32674 if test "$gcc_cv_ld64_major" -ge 97; then
32675 gcc_cv_ld64_demangle
=1
32677 if test "$gcc_cv_ld64_major" -ge 236; then
32678 gcc_cv_ld64_export_dynamic
=1
32680 if test "$gcc_cv_ld64_major" -ge 512; then
32681 gcc_cv_ld64_platform_version
=1
32683 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32684 # If the version was not specified, try to find it.
32685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32686 $as_echo_n "checking linker version... " >&6; }
32687 if test x
"${gcc_cv_ld64_version}" = x
; then
32688 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32689 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32692 $as_echo "$gcc_cv_ld64_version" >&6; }
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32695 $as_echo_n "checking linker for -demangle support... " >&6; }
32696 gcc_cv_ld64_demangle
=1
32697 if $gcc_cv_ld -demangle < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32698 gcc_cv_ld64_demangle
=0
32700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32701 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32704 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32705 gcc_cv_ld64_export_dynamic
=1
32706 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32707 gcc_cv_ld64_export_dynamic
=0
32709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32710 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32713 $as_echo_n "checking linker for -platform_version support... " >&6; }
32714 gcc_cv_ld64_platform_version
=1
32715 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32716 gcc_cv_ld64_platform_version
=0
32718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32719 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32722 if test x
"${gcc_cv_ld64_version}" != x
; then
32724 cat >>confdefs.h
<<_ACEOF
32725 #define LD64_VERSION "${gcc_cv_ld64_version}"
32731 cat >>confdefs.h
<<_ACEOF
32732 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32737 cat >>confdefs.h
<<_ACEOF
32738 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32743 cat >>confdefs.h
<<_ACEOF
32744 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32749 if test x
"$dsymutil_flag" = x
"yes"; then
32751 # If the user specified a dsymutil path, then we will already have the
32752 # version string, otherwise, pick it up.
32753 if test x
"$gcc_cv_dsymutil" = x
; then
32754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32755 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32756 dsymutil_vers
="tool unspecified"
32757 elif test x
"$dsymutil_vers" = x
; then
32758 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32761 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
32762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32763 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32764 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
32765 dsymutil_kind
=DWARFUTILS
32766 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32767 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
32768 dsymutil_kind
=CLANG
32769 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32770 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
32772 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32774 dsymutil_kind
=DET_UNKNOWN
32775 dsymutil_vers
="0.0"
32777 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32778 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32779 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32780 if test x
"${dsymutil_minor}" = x
; then
32783 if test x
"${dsymutil_tiny}" = x
; then
32787 cat >>confdefs.h
<<_ACEOF
32788 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32792 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32796 win32 | pe | cygwin* | mingw32*)
32797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
32798 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
32799 gcc_cv_ld_broken_pe_dwarf5=yes
32800 if test $in_tree_ld = yes ; then
32801 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32802 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32803 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32804 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32805 gcc_cv_ld_broken_pe_dwarf5=no
32808 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32809 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32810 gcc_cv_ld_broken_pe_dwarf5=no
32813 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32815 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32819 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32822 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32823 gcc_cv_ld_disable_dynamicbase
=no
32824 if test $in_tree_ld = yes; then
32825 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 36 -o "$gcc_cv_gld_major_version" -gt 2; then \
32826 gcc_cv_ld_disable_dynamicbase
=yes
32829 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
32830 gcc_cv_ld_disable_dynamicbase
=yes
32833 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
32835 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32839 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32848 $as_echo_n "checking linker --as-needed support... " >&6; }
32849 if ${gcc_cv_ld_as_needed+:} false
; then :
32850 $as_echo_n "(cached) " >&6
32852 gcc_cv_ld_as_needed
=no
32853 gcc_cv_ld_as_needed_option
='--as-needed'
32854 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
32855 if test $in_tree_ld = yes ; then
32856 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
32857 && test $in_tree_ld_is_elf = yes; then
32858 gcc_cv_ld_as_needed
=yes
32859 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32860 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
32861 gcc_cv_ld_no_as_needed_option
='--pop-state'
32864 elif test x
$gcc_cv_ld != x
; then
32865 # Check if linker supports --as-needed and --no-as-needed options
32866 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
32867 gcc_cv_ld_as_needed
=yes
32868 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
32869 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
32870 && echo "$ld_ver" |
grep GNU
> /dev
/null \
32871 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32872 # Use these options only when both ld.bfd and ld.gold support
32873 # --push-state/--pop-state, which unfortunately wasn't added
32874 # at the same time.
32875 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
32876 gcc_cv_ld_no_as_needed_option
='--pop-state'
32879 case "$target:$gnu_ld" in
32881 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32883 gcc_cv_ld_as_needed
=yes
32884 gcc_cv_ld_as_needed_option
="-z ignore"
32885 gcc_cv_ld_no_as_needed_option
="-z record"
32889 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32890 # dl_iterate_phdr, i.e. since Solaris 11.
32892 *-*-solaris2.1
[1-9]*)
32894 i?
86-*-* | x86_64-
*-*)
32895 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32896 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32897 gcc_cv_ld_as_needed
=no
32903 gcc_cv_ld_as_needed
=no
32908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32909 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32910 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
32912 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32915 cat >>confdefs.h
<<_ACEOF
32916 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32920 cat >>confdefs.h
<<_ACEOF
32921 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32927 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32928 saved_LDFLAGS
="$LDFLAGS"
32929 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
32930 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32932 /* end confdefs.h. */
32933 int main(void) {return 0;}
32935 if ac_fn_cxx_try_link
"$LINENO"; then :
32936 gcc_cv_ld_clearcap
=yes; break
32938 gcc_cv_ld_clearcap
=no
32940 rm -f core conftest.err conftest.
$ac_objext \
32941 conftest
$ac_exeext conftest.
$ac_ext
32943 LDFLAGS
="$saved_LDFLAGS"
32944 if test "x$gcc_cv_ld_clearcap" = xyes
; then
32946 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
32948 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
32951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
32952 $as_echo "$gcc_cv_ld_clearcap" >&6; }
32958 emul_name
="-melf32lppc"
32961 emul_name
="-melf32ppc"
32964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
32965 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
32966 if ${gcc_cv_ld_ppc_attr+:} false
; then :
32967 $as_echo_n "(cached) " >&6
32969 gcc_cv_ld_ppc_attr
=no
32970 if test x
"$ld_is_gold" = xyes
; then
32971 gcc_cv_ld_ppc_attr
=yes
32972 elif test $in_tree_ld = yes ; then
32973 if test "$gcc_cv_gld_major_version" -eq 2 \
32974 -a "$gcc_cv_gld_minor_version" -ge 28 \
32975 -o "$gcc_cv_gld_major_version" -gt 2; then
32976 gcc_cv_ld_ppc_attr
=yes
32978 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32979 # check that merging the long double .gnu_attribute doesn't warn
32980 cat > conftest1.s
<<EOF
32983 cat > conftest2.s
<<EOF
32986 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
32987 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
32988 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
32989 && test ! -s conftest.err
; then
32990 gcc_cv_ld_ppc_attr
=yes
32992 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
32996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
32997 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
32998 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
33000 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
33006 case "$target:$tm_file" in
33007 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
33010 emul_name
="-melf64lppc"
33013 emul_name
="-melf64ppc"
33016 emul_name
="-melf64lppc_fbsd"
33019 emul_name
="-melf64ppc_fbsd"
33022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
33023 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
33024 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
33025 $as_echo_n "(cached) " >&6
33027 gcc_cv_ld_no_dot_syms
=no
33028 if test x
"$ld_is_gold" = xyes
; then
33029 gcc_cv_ld_no_dot_syms
=yes
33030 elif test $in_tree_ld = yes ; then
33031 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
33032 gcc_cv_ld_no_dot_syms
=yes
33034 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
33035 cat > conftest1.s
<<EOF
33039 cat > conftest2.s
<<EOF
33040 .section ".opd","aw"
33043 .type foo,@function
33045 .quad .LEfoo,.TOC.@tocbase,0
33051 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
33052 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
33053 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
33054 gcc_cv_ld_no_dot_syms
=yes
33056 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
33060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
33061 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
33062 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
33064 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
33068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33069 $as_echo_n "checking linker large toc support... " >&6; }
33070 if ${gcc_cv_ld_large_toc+:} false
; then :
33071 $as_echo_n "(cached) " >&6
33073 gcc_cv_ld_large_toc
=no
33074 if test x
"$ld_is_gold" = xyes
; then
33075 gcc_cv_ld_large_toc
=yes
33076 elif test $in_tree_ld = yes ; then
33077 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
33078 gcc_cv_ld_large_toc
=yes
33080 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
33081 cat > conftest.s
<<EOF
33082 .section ".tbss","awT",@nobits
33088 addis 9,13,ie0@got@tprel@ha
33089 ld 9,ie0@got@tprel@l(9)
33091 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
33092 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
33093 gcc_cv_ld_large_toc
=yes
33095 rm -f conftest conftest.o conftest.s
33099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33100 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33101 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
33103 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
33108 $as_echo_n "checking linker toc pointer alignment... " >&6; }
33109 if ${gcc_cv_ld_toc_align+:} false
; then :
33110 $as_echo_n "(cached) " >&6
33112 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
33113 cat > conftest.s
<<EOF
33118 .section .data.rel.ro,"aw",@progbits
33123 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
33124 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
33125 gcc_cv_ld_toc_align
=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
33127 rm -f conftest conftest.o conftest.s
33131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
33132 $as_echo "$gcc_cv_ld_toc_align" >&6; }
33133 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
33135 cat >>confdefs.h
<<_ACEOF
33136 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
33145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33146 $as_echo_n "checking linker large toc support... " >&6; }
33147 if ${gcc_cv_ld_large_toc+:} false
; then :
33148 $as_echo_n "(cached) " >&6
33150 gcc_cv_ld_large_toc
=no
33151 if test x
$gcc_cv_as != x
; then
33152 cat > conftest.s
<<EOF
33162 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
33163 gcc_cv_ld_large_toc
=yes
33165 rm -f conftest conftest.o conftest.s
33169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33170 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33171 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
33173 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33180 $as_echo_n "checking linker --build-id support... " >&6; }
33181 if ${gcc_cv_ld_buildid+:} false
; then :
33182 $as_echo_n "(cached) " >&6
33184 gcc_cv_ld_buildid
=no
33185 if test $in_tree_ld = yes ; then
33186 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33187 "$gcc_cv_gld_minor_version" -ge 18 -o \
33188 "$gcc_cv_gld_major_version" -gt 2 \
33189 && test $in_tree_ld_is_elf = yes; then
33190 gcc_cv_ld_buildid
=yes
33192 elif test x
$gcc_cv_ld != x
; then
33193 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
33194 gcc_cv_ld_buildid
=yes
33198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33199 $as_echo "$gcc_cv_ld_buildid" >&6; }
33200 if test x
"$gcc_cv_ld_buildid" = xyes
; then
33202 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33206 # Check whether --enable-linker-build-id was given.
33207 if test "${enable_linker_build_id+set}" = set; then :
33208 enableval
=$enable_linker_build_id;
33210 enable_linker_build_id
=no
33214 if test x
"$enable_linker_build_id" = xyes
; then
33215 if test x
"$gcc_cv_ld_buildid" = xyes
; then
33217 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33221 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33225 # In binutils 2.21, GNU ld gained support for new emulations fully
33226 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33228 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33229 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
33230 $as_echo_n "(cached) " >&6
33232 gcc_cv_ld_sol2_emulation
=no
33233 if test $in_tree_ld = yes ; then
33234 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33235 "$gcc_cv_gld_minor_version" -ge 21 -o \
33236 "$gcc_cv_gld_major_version" -gt 2 \
33237 && test $in_tree_ld_is_elf = yes; then
33238 gcc_cv_ld_sol2_emulation
=yes
33240 elif test x
$gcc_cv_ld != x
; then
33241 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
33242 grep _sol2
> /dev
/null
; then
33243 gcc_cv_ld_sol2_emulation
=yes
33247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33248 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33249 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
33251 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33256 $as_echo_n "checking linker --sysroot support... " >&6; }
33257 if ${gcc_cv_ld_sysroot+:} false
; then :
33258 $as_echo_n "(cached) " >&6
33260 gcc_cv_ld_sysroot
=no
33261 if test $in_tree_ld = yes ; then
33262 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
33263 gcc_cv_ld_sysroot
=yes
33265 elif test x
$gcc_cv_ld != x
; then
33266 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
33267 gcc_cv_ld_sysroot
=yes
33271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33272 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33273 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
33275 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33281 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33283 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33284 if ${gcc_cv_solaris_crts+:} false
; then :
33285 $as_echo_n "(cached) " >&6
33287 gcc_cv_solaris_crts
=no
33288 if test x
$host != x
$target; then
33289 if test "x$with_sysroot" = xyes
; then
33290 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
33292 target_sysroot
="${with_sysroot}"
33295 target_libdir
="$target_sysroot/usr/lib"
33296 # At the time they were added, gcrt1.o became a symlink for backwards
33297 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33299 i?
86-*-solaris2* | x86_64-
*-solaris2*)
33300 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
33302 sparc
*-*-solaris2*)
33303 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
33307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33308 $as_echo "$gcc_cv_solaris_crts" >&6; }
33311 if test x
$gcc_cv_solaris_crts = xyes
; then
33313 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33317 # Check whether --enable-libssp was given.
33318 if test "${enable_libssp+set}" = set; then :
33319 enableval
=$enable_libssp; case "${enableval}" in
33323 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
33329 # Test for stack protector support in target C library.
33330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33331 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33332 if ${gcc_cv_libc_provides_ssp+:} false
; then :
33333 $as_echo_n "(cached) " >&6
33335 gcc_cv_libc_provides_ssp
=no
33336 if test "x$enable_libssp" = "xno"; then
33337 gcc_cv_libc_provides_ssp
=yes
33338 elif test "x$enable_libssp" = "xyes"; then
33339 gcc_cv_libc_provides_ssp
=no
33343 # All versions of musl provide stack protector
33344 gcc_cv_libc_provides_ssp
=yes;;
33345 *-*-linux* |
*-*-kfreebsd*-gnu)
33346 # glibc 2.4 and later provides __stack_chk_fail and
33347 # either __stack_chk_guard, or TLS access to stack guard canary.
33349 if test $glibc_version_major -gt 2 \
33350 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33351 gcc_cv_libc_provides_ssp
=yes
33354 if test -f $target_header_dir/features.h \
33355 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33356 $target_header_dir/features.h
> /dev
/null
; then
33357 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33358 $target_header_dir/features.h
> /dev
/null
&& \
33359 test -f $target_header_dir/bits
/uClibc_config.h
&& \
33360 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33361 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
33362 gcc_cv_libc_provides_ssp
=yes
33364 # all versions of Bionic support stack protector
33365 elif test -f $target_header_dir/sys
/cdefs.h \
33366 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33367 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
33368 gcc_cv_libc_provides_ssp
=yes
33373 # Avoid complicated tests (see
33374 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33375 # simply assert that glibc does provide this, which is true for all
33376 # realistically usable GNU/Hurd configurations.
33377 # All supported versions of musl provide it as well
33378 gcc_cv_libc_provides_ssp
=yes;;
33379 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
33380 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33381 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
33382 gcc_cv_libc_provides_ssp
=yes
33384 echo "no __stack_chk_fail on this target"
33388 *) gcc_cv_libc_provides_ssp
=no
;;
33392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33393 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33395 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
33397 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33401 # Check whether --enable-default-ssp was given.
33402 # Check whether --enable-default-ssp was given.
33403 if test "${enable_default_ssp+set}" = set; then :
33404 enableval
=$enable_default_ssp;
33405 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
33407 ia64
*-*-*) enable_default_ssp
=no
;;
33408 *) enable_default_ssp
=$enableval ;;
33411 enable_default_ssp
=no
33414 enable_default_ssp
=no
33417 if test x
$enable_default_ssp = xyes
; then
33419 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33424 # Test for <sys/sdt.h> on the target.
33426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33427 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33428 if ${gcc_cv_sys_sdt_h+:} false
; then :
33429 $as_echo_n "(cached) " >&6
33432 gcc_cv_sys_sdt_h
=no
33433 if test -f $target_header_dir/sys
/sdt.h
; then
33434 gcc_cv_sys_sdt_h
=yes
33438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33439 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33440 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
33443 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33448 # Check if TFmode long double should be used by default or not.
33449 # Some glibc targets used DFmode long double, but with glibc 2.4
33450 # and later they can use TFmode.
33452 powerpc
*-*-linux* | \
33453 sparc
*-*-linux* | \
33457 # Check whether --with-long-double-128 was given.
33458 if test "${with_long_double_128+set}" = set; then :
33459 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
33463 s390
*-*-linux-musl*)
33464 gcc_cv_target_ldbl128
=yes
33466 powerpc
*-*-linux-musl*)
33467 gcc_cv_target_ldbl128
=no
33471 if test $glibc_version_major -gt 2 \
33472 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33473 gcc_cv_target_ldbl128
=yes
33476 gcc_cv_target_ldbl128
=no
33477 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33478 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
33479 && gcc_cv_target_ldbl128
=yes
33490 if test x
$gcc_cv_target_ldbl128 = xyes
; then
33492 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33496 # Check if TFmode long double target should use the IBM extended double or IEEE
33497 # 128-bit floating point formats if long doubles are 128-bits long. The long
33498 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33499 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33502 # Check whether --with-long-double-format was given.
33503 if test "${with_long_double_format+set}" = set; then :
33504 withval
=$with_long_double_format;
33505 case "$target:$with_long_double_format" in
33506 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
33509 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
33510 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33511 case "$with_cpu" in
33512 power7 | power8 | power9 | power1
*)
33516 as_fn_error $?
"Configuration option --with-long-double-format is only \
33517 supported if the default cpu is power7 or newer" "$LINENO" 5
33518 with_long_double_format
=""
33522 powerpc64
*-*-linux*:*)
33523 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33524 with_long_double_format
=""
33527 as_fn_error $?
"Configure option --with-long-double-format is only supported \
33528 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33529 with_long_double_format
=""
33535 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33536 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33537 gcc_cv_libc_provides_hwcap_in_tcb
=no
33541 if test $glibc_version_major -gt 2 \
33542 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33543 gcc_cv_libc_provides_hwcap_in_tcb
=yes
33547 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
33549 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33553 # Check if the target LIBC handles PT_GNU_STACK.
33554 gcc_cv_libc_gnustack
=unknown
33556 mips
*-*-linux-musl*)
33557 gcc_cv_libc_gnustack
=yes
33561 if test $glibc_version_major -gt 2 \
33562 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33563 gcc_cv_libc_gnustack
=yes
33567 if test x
$gcc_cv_libc_gnustack = xyes
; then
33569 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33574 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33575 gcc_cv_target_dl_iterate_phdr
=unknown
33578 gcc_cv_target_dl_iterate_phdr
=yes
33580 *-*-dragonfly* |
*-*-freebsd*)
33581 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
33582 gcc_cv_target_dl_iterate_phdr
=yes
33584 gcc_cv_target_dl_iterate_phdr
=no
33588 gcc_cv_target_dl_iterate_phdr
=yes
33592 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
33594 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33598 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33600 # We no longer support different GC mechanisms. Emit an error if
33601 # the user configures with --with-gc.
33603 # Check whether --with-gc was given.
33604 if test "${with_gc+set}" = set; then :
33605 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33609 # Libraries to use on the host. This will normally be set by the top
33610 # level Makefile. Here we simply capture the value for our Makefile.
33611 if test -z "${HOST_LIBS+set}"; then
33616 # Use the system's zlib library.
33618 # Use the system's zlib library.
33619 zlibdir
="-L\$(top_builddir)/../zlib"
33620 zlibinc
="-I\$(top_srcdir)/../zlib"
33622 # Check whether --with-system-zlib was given.
33623 if test "${with_system_zlib+set}" = set; then :
33624 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
33636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33637 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33638 # Check whether --enable-maintainer-mode was given.
33639 if test "${enable_maintainer_mode+set}" = set; then :
33640 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33647 $as_echo "$maintainer_mode" >&6; }
33649 if test "$maintainer_mode" = "yes"; then
33655 if test -z "$CTAGS"; then
33659 if test -z "$ETAGS"; then
33663 if test -z "$CSCOPE"; then
33669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33670 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33671 # Check whether --enable-link-mutex was given.
33672 if test "${enable_link_mutex+set}" = set; then :
33673 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
33678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33679 $as_echo "$do_link_mutex" >&6; }
33681 if test "$do_link_mutex" = "yes"; then
33683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&5
33684 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33686 DO_LINK_MUTEX
=false
33691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33692 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33693 # Check whether --enable-link-serialization was given.
33694 if test "${enable_link_serialization+set}" = set; then :
33695 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
33697 do_link_serialization
=no
33700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33701 $as_echo "$do_link_serialization" >&6; }
33703 case "$do_link_serialization" in
33705 DO_LINK_SERIALIZATION
=1;;
33706 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
33707 DO_LINK_SERIALIZATION
=$do_link_serialization;;
33709 DO_LINK_SERIALIZATION
=;;
33711 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33719 # Make empty files to contain the specs and options for each language.
33720 # Then add #include lines to for a compiler that has specs and/or options.
33726 # These (without "all_") are set in each config-lang.in.
33727 # `language' must be a single word so is spelled singularly.
33730 all_outputs
='Makefile'
33731 # List of language configure and makefile fragments.
33732 all_lang_configurefrags
=
33733 all_lang_makefrags
=
33734 # Additional files for gengtype
33735 all_gtfiles
="$target_gtfiles"
33737 # These are the languages that are set in --enable-languages,
33738 # and are available in the GCC tree.
33739 all_selected_languages
=
33741 # Add the language fragments.
33742 # Languages are added via two mechanisms. Some information must be
33743 # recorded in makefile variables, these are defined in config-lang.in.
33744 # We accumulate them and plug them into the main Makefile.
33745 # The other mechanism is a set of hooks for each of the main targets
33746 # like `clean', `install', etc.
33748 language_hooks
="Make-hooks"
33750 for lang
in ${srcdir}/*/config-lang.
in
33752 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33754 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33755 if test "x$lang_alias" = x
33757 echo "$lang doesn't set \$language." 1>&2
33760 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33761 subdirs
="$subdirs $subdir"
33763 # $gcc_subdir is where the gcc integration files are to be found
33764 # for a language, both for internal compiler purposes (compiler
33765 # sources implementing front-end to GCC tree converters), and for
33766 # build infrastructure purposes (Make-lang.in, etc.)
33768 # This will be <subdir> (relative to $srcdir) if a line like
33769 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33770 # is found in <langdir>/config-lang.in, and will remain <langdir>
33773 # Except for the language alias (fetched above), the regular
33774 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33775 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33776 # only this and the language alias.
33778 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33779 if [ "$gcc_subdir" = "" ]; then
33780 gcc_subdir
="$subdir"
33783 case ",$enable_languages," in
33785 all_selected_languages
="$all_selected_languages $lang_alias"
33786 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
33787 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33798 .
${srcdir}/$gcc_subdir/config-lang.
in
33799 if test "x$language" = x
33801 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33806 case ",$enable_languages," in
33807 *,$lang_alias,*) ;;
33809 for i
in $subdir_requires; do
33810 test -f "${srcdir}/$i/config-lang.in" && continue
33818 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33819 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
33820 # Put c/Make-lang.in fragment first to match serialization languages order.
33821 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33823 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33825 if test -f $srcdir/$gcc_subdir/lang.opt
; then
33826 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33827 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33829 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
33830 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33832 all_languages
="$all_languages $language"
33833 all_compilers
="$all_compilers $compilers"
33834 all_outputs
="$all_outputs $outputs"
33835 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
33836 case ",$enable_languages," in
33839 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33849 for language
in $all_selected_languages
33851 check_languages
="$check_languages check-$language"
33853 if test x
$enable_libgdiagnostics = xyes
; then
33854 check_languages
="$check_languages check-libgdiagnostics check-sarif-replay"
33857 selftest_languages
=
33858 for language
in $all_selected_languages
33860 selftest_languages
="$selftest_languages selftest-$language"
33863 # We link each language in with a set of hooks, reached indirectly via
33864 # lang.${target}. Only do so for selected languages.
33868 target_list
="all.cross start.encap rest.encap tags \
33869 install-common install-man install-info install-dvi install-pdf \
33870 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33871 mostlyclean clean distclean maintainer-clean install-plugin"
33873 for t
in $target_list
33876 for lang
in $all_selected_languages
33880 echo "lang.$t: $x" >> Make-hooks
33883 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33884 echo "SERIAL_LIST =" >> Make-hooks
33885 echo else >> Make-hooks
33889 serialization_languages
=c
33890 for lang
in $all_selected_languages
33892 test $lang = c
&& continue
33893 if test $lang = lto
; then
33894 serialization_languages
="$serialization_languages lto1 lto2"
33896 serialization_languages
="$serialization_languages $lang"
33899 for lang
in $serialization_languages
33901 test $lang = c
&& continue
33902 lang_cnt
=`expr $lang_cnt + 1`
33903 lang_list
=" $prev$lang_list"
33906 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33907 echo endif
>> Make-hooks
33908 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33909 echo "INDEX.c = 0" >> Make-hooks
33911 for lang
in $serialization_languages
33913 test $lang = c
&& continue
33914 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33915 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33916 lang_cnt
=`expr $lang_cnt - 1`
33917 lang_idx
=`expr $lang_idx + 1`
33921 # Option include files
33924 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
33925 option_includes
="option-includes.mk"
33934 echo "dir ." > .gdbinit
33935 echo "dir ${srcdir}" >> .gdbinit
33936 if test x
$gdb_needs_out_file_path = xyes
33938 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
33940 if test "x$subdirs" != x
; then
33943 echo "dir ${srcdir}/$s" >> .gdbinit
33946 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
33947 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
33949 # Put a breakpoint on __asan_report_error to help with debugging buffer
33952 *-fsanitize=address
*)
33953 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
33957 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
33961 # Find a directory in which to install a shared libgcc.
33963 # Check whether --enable-version-specific-runtime-libs was given.
33964 if test "${enable_version_specific_runtime_libs+set}" = set; then :
33965 enableval
=$enable_version_specific_runtime_libs;
33969 # Substitute configuration variables
34043 if test x
${build} = x
${host} ; then
34044 if test x
${host} = x
${target} ; then
34045 echo "Links are now set up to build a native compiler for ${target}." 1>&2
34047 echo "Links are now set up to build a cross-compiler" 1>&2
34048 echo " from ${host} to ${target}." 1>&2
34051 if test x
${host} = x
${target} ; then
34052 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
34053 echo " for ${target}." 1>&2
34055 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
34056 echo " from ${host} to ${target}." 1>&2
34065 if test "x${ISLLIBS}" != "x" ; then
34067 $as_echo "#define HAVE_isl 1" >>confdefs.h
34071 # Check for plugin support
34072 # Check whether --enable-plugin was given.
34073 if test "${enable_plugin+set}" = set; then :
34074 enableval
=$enable_plugin; enable_plugin
=$enableval
34076 enable_plugin
=yes; default_plugin
=yes
34085 # Since plugin support under MinGW is not as straightforward as on
34086 # other platforms (e.g., we have to link import library, etc), we
34087 # only enable it if explicitly requested.
34088 if test x
"$default_plugin" = x
"yes"; then
34090 elif test x
"$enable_plugin" = x
"yes"; then
34091 # Use make's target variable to derive import library name.
34092 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
34097 if test x
$build = x
$host; then
34098 export_sym_check
="nm${exeext} -g"
34099 elif test x
$host = x
$target; then
34100 export_sym_check
="$gcc_cv_nm -g"
34106 if test x
$build = x
$host; then
34107 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
34108 elif test x
$host = x
$target; then
34109 export_sym_check
="$gcc_cv_objdump -T"
34111 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
34116 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
34118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
34119 $as_echo_n "checking for exported symbols... " >&6; }
34120 if test "x$export_sym_check" != x
; then
34121 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
34122 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
34123 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
34124 : # No need to use a flag
34125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34126 $as_echo "yes" >&6; }
34128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34129 $as_echo "yes" >&6; }
34130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
34131 $as_echo_n "checking for -rdynamic... " >&6; }
34132 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
34133 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
34134 plugin_rdynamic
=yes
34135 pluginlibs
="-rdynamic"
34140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
34141 $as_echo "$plugin_rdynamic" >&6; }
34144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
34145 $as_echo "unable to check" >&6; }
34150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34151 $as_echo_n "checking for library containing dlopen... " >&6; }
34152 if ${ac_cv_search_dlopen+:} false
; then :
34153 $as_echo_n "(cached) " >&6
34155 ac_func_search_save_LIBS
=$LIBS
34156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34157 /* end confdefs.h. */
34159 /* Override any GCC internal prototype to avoid an error.
34160 Use char because int might match the return type of a GCC
34161 builtin and then its argument prototype would still apply. */
34174 for ac_lib
in '' dl
; do
34175 if test -z "$ac_lib"; then
34176 ac_res
="none required"
34179 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
34181 if ac_fn_cxx_try_link
"$LINENO"; then :
34182 ac_cv_search_dlopen
=$ac_res
34184 rm -f core conftest.err conftest.
$ac_objext \
34186 if ${ac_cv_search_dlopen+:} false
; then :
34190 if ${ac_cv_search_dlopen+:} false
; then :
34193 ac_cv_search_dlopen
=no
34195 rm conftest.
$ac_ext
34196 LIBS
=$ac_func_search_save_LIBS
34198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34199 $as_echo "$ac_cv_search_dlopen" >&6; }
34200 ac_res
=$ac_cv_search_dlopen
34201 if test "$ac_res" != no
; then :
34202 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
34206 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
34207 pluginlibs
="$pluginlibs -ldl"
34211 # Check that we can build shared objects with -fPIC -shared
34212 saved_LDFLAGS
="$LDFLAGS"
34213 saved_CFLAGS
="$CFLAGS"
34214 saved_CXXFLAGS
="$CXXFLAGS"
34217 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34218 CFLAGS
="$CFLAGS -fPIC"
34219 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34220 CXXFLAGS
="$CXXFLAGS -fPIC"
34221 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
34224 CFLAGS
="$CFLAGS -fPIC"
34225 CXXFLAGS
="$CXXFLAGS -fPIC"
34226 LDFLAGS
="$LDFLAGS -fPIC -shared"
34229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34230 $as_echo_n "checking for -fPIC -shared... " >&6; }
34231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34232 /* end confdefs.h. */
34242 if ac_fn_cxx_try_link
"$LINENO"; then :
34243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34244 $as_echo "yes" >&6; }; have_pic_shared
=yes
34246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34247 $as_echo "no" >&6; }; have_pic_shared
=no
34249 rm -f core conftest.err conftest.
$ac_objext \
34250 conftest
$ac_exeext conftest.
$ac_ext
34251 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
34255 LDFLAGS
="$saved_LDFLAGS"
34256 CFLAGS
="$saved_CFLAGS"
34257 CXXFLAGS
="$saved_CXXFLAGS"
34259 # If plugin support had been requested but not available, fail.
34260 if test x
"$enable_plugin" = x
"no" ; then
34261 if test x
"$default_plugin" != x
"yes"; then
34263 Building GCC with plugin support requires a host that supports
34264 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34271 if test x
"$enable_plugin" = x
"yes"; then
34273 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34278 # Enable --enable-host-shared
34279 # Check whether --enable-host-shared was given.
34280 if test "${enable_host_shared+set}" = set; then :
34281 enableval
=$enable_host_shared;
34286 # Enable --enable-host-pie
34287 # Check whether --enable-host-pie was given.
34288 if test "${enable_host_pie+set}" = set; then :
34289 enableval
=$enable_host_pie;
34294 # Check whether --enable-libgdiagnostics was given.
34295 if test "${enable_libgdiagnostics+set}" = set; then :
34296 enableval
=$enable_libgdiagnostics;
34301 if test "$enable_libgdiagnostics" = "yes"; then
34302 LIBGDIAGNOSTICS
='libgdiagnostics sarif-replay'
34309 # Enable --enable-host-bind-now
34310 # Check whether --enable-host-bind-now was given.
34311 if test "${enable_host_bind_now+set}" = set; then :
34312 enableval
=$enable_host_bind_now;
34317 # Check whether --enable-libquadmath-support was given.
34318 if test "${enable_libquadmath_support+set}" = set; then :
34319 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
34321 ENABLE_LIBQUADMATH_SUPPORT
=yes
34324 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34326 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34331 # Specify what hash style to use by default.
34333 # Check whether --with-linker-hash-style was given.
34334 if test "${with_linker_hash_style+set}" = set; then :
34335 withval
=$with_linker_hash_style; case x
"$withval" in
34337 LINKER_HASH_STYLE
=sysv
34340 LINKER_HASH_STYLE
=gnu
34343 LINKER_HASH_STYLE
=both
34346 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34350 LINKER_HASH_STYLE
=''
34353 if test x
"${LINKER_HASH_STYLE}" != x
; then
34355 cat >>confdefs.h
<<_ACEOF
34356 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34361 # Specify what should be the default of -fdiagnostics-color option.
34363 # Check whether --with-diagnostics-color was given.
34364 if test "${with_diagnostics_color+set}" = set; then :
34365 withval
=$with_diagnostics_color; case x
"$withval" in
34367 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
34370 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
34373 DIAGNOSTICS_COLOR_DEFAULT
=-1
34376 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
34379 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34383 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
34387 cat >>confdefs.h
<<_ACEOF
34388 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34392 # Specify what should be the default of -fdiagnostics-urls option.
34394 # Check whether --with-diagnostics-urls was given.
34395 if test "${with_diagnostics_urls+set}" = set; then :
34396 withval
=$with_diagnostics_urls; case x
"$withval" in
34398 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
34401 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
34404 DIAGNOSTICS_URLS_DEFAULT
=-1
34407 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
34410 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34414 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
34418 cat >>confdefs.h
<<_ACEOF
34419 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34423 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34424 # of jit/jit-playback.cc.
34425 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34426 echo "gcc_driver_version: ${gcc_driver_version}"
34427 cat > gcc-driver-name.h
<<EOF
34428 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34431 # Check whether --enable-default-pie was given.
34432 # Check whether --enable-default-pie was given.
34433 if test "${enable_default_pie+set}" = set; then :
34434 enableval
=$enable_default_pie; enable_default_pie
=$enableval
34436 enable_default_pie
=no
34439 if test x
$enable_default_pie = xyes
; then
34441 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34446 # Check if -fno-PIE works.
34447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34448 $as_echo_n "checking for -fno-PIE option... " >&6; }
34449 if ${gcc_cv_c_no_fpie+:} false
; then :
34450 $as_echo_n "(cached) " >&6
34452 saved_CXXFLAGS
="$CXXFLAGS"
34453 CXXFLAGS
="$CXXFLAGS -fno-PIE"
34454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34455 /* end confdefs.h. */
34456 int main(void) {return 0;}
34458 if ac_fn_cxx_try_compile
"$LINENO"; then :
34459 gcc_cv_c_no_fpie
=yes
34461 gcc_cv_c_no_fpie
=no
34463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34464 CXXFLAGS
="$saved_CXXFLAGS"
34466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34467 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34469 # Check if -no-pie works.
34470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34471 $as_echo_n "checking for -no-pie option... " >&6; }
34472 if ${gcc_cv_no_pie+:} false
; then :
34473 $as_echo_n "(cached) " >&6
34475 saved_LDFLAGS
="$LDFLAGS"
34476 LDFLAGS
="$LDFLAGS -no-pie"
34477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34478 /* end confdefs.h. */
34479 int main(void) {return 0;}
34481 if ac_fn_cxx_try_link
"$LINENO"; then :
34486 rm -f core conftest.err conftest.
$ac_objext \
34487 conftest
$ac_exeext conftest.
$ac_ext
34488 LDFLAGS
="$saved_LDFLAGS"
34490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34491 $as_echo "$gcc_cv_no_pie" >&6; }
34493 if test x
$enable_host_shared = xyes
; then
34495 elif test x
$enable_host_pie = xyes
; then
34497 elif test x
$gcc_cv_c_no_fpie = xyes
; then
34505 if test x
$enable_host_pie = xyes
; then
34507 elif test x
$gcc_cv_no_pie = xyes
; then
34513 if test x
$enable_host_bind_now = xyes
; then
34514 LD_PICFLAG
="$LD_PICFLAG -Wl,-z,now"
34519 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34520 # Check whether --enable-cet was given.
34521 if test "${enable_cet+set}" = set; then :
34522 enableval
=$enable_cet;
34523 case "$enableval" in
34525 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34534 $as_echo_n "checking for CET support... " >&6; }
34537 i
[34567]86-*-linux* | x86_64-
*-linux*)
34539 cet_save_CFLAGS
="$CFLAGS"
34540 CFLAGS
="$CFLAGS -fcf-protection"
34541 case "$enable_cet" in
34543 # Check if target supports multi-byte NOPs
34544 # and if compiler and assembler support CET.
34545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34546 /* end confdefs.h. */
34552 #if !defined(__SSE2__)
34553 #error target does not support multi-byte NOPs
34562 if ac_fn_cxx_try_compile
"$LINENO"; then :
34567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34570 # Check if compiler and assembler support CET.
34571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34572 /* end confdefs.h. */
34582 if ac_fn_cxx_try_compile
"$LINENO"; then :
34587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34588 if test $support_cet = "no"; then
34589 if test x
$enable_bootstrap != xno \
34590 && test -z "${with_build_subdir}" \
34591 && (test ! -f ..
/stage_current \
34592 ||
test `cat ../stage_current` != "stage1"); then
34593 # Require CET support only for the final GCC build.
34594 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34596 # Don't enable CET without CET support for non-bootstrap
34597 # build, in stage1 nor for build support.
34603 CFLAGS
="$cet_save_CFLAGS"
34611 cet_save_CFLAGS
="$CFLAGS"
34612 CFLAGS
="$CFLAGS -fcf-protection=none"
34613 cet_save_LDFLAGS
="$LDFLAGS"
34614 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34615 if test x
$may_have_cet = xyes
; then
34616 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34618 /* end confdefs.h. */
34628 if ac_fn_cxx_try_link
"$LINENO"; then :
34633 rm -f core conftest.err conftest.
$ac_objext \
34634 conftest
$ac_exeext conftest.
$ac_ext
34637 if test x
$may_have_cet = xyes
; then
34638 if test x
$cross_compiling = xno
; then
34639 if test "$cross_compiling" = yes; then :
34640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34642 as_fn_error $?
"cannot run test program while cross compiling
34643 See \`config.log' for more details" "$LINENO" 5; }
34645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34646 /* end confdefs.h. */
34656 if ac_fn_cxx_try_run
"$LINENO"; then :
34657 have_multi_byte_nop
=yes
34659 have_multi_byte_nop
=no
34661 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
34662 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
34666 if test x
$have_multi_byte_nop = xyes
; then
34667 if test "$cross_compiling" = yes; then :
34668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34670 as_fn_error $?
"cannot run test program while cross compiling
34671 See \`config.log' for more details" "$LINENO" 5; }
34673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34674 /* end confdefs.h. */
34682 __attribute__ ((noinline, noclone))
34683 xxx (void (*f) (void))
34689 __attribute__ ((noinline, noclone))
34703 if ac_fn_cxx_try_run
"$LINENO"; then :
34708 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
34709 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
34713 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
34714 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34718 # Enable CET in cross compiler if possible so that it will run on both
34719 # CET and non-CET hosts.
34722 if test x
$enable_cet = xyes
; then
34723 CET_HOST_FLAGS
="-fcf-protection"
34724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34725 $as_echo "yes" >&6; }
34727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34728 $as_echo "no" >&6; }
34730 CFLAGS
="$cet_save_CFLAGS"
34731 LDFLAGS
="$cet_save_LDFLAGS"
34733 case x
$enable_languages in
34742 # Check linker supports '-z bndplt'
34743 ld_bndplt_support
=no
34744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34745 $as_echo_n "checking linker -z bndplt option... " >&6; }
34746 if test x
"$ld_is_gold" = xno
; then
34747 if test $in_tree_ld = yes ; then
34748 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
34749 ld_bndplt_support
=yes
34751 elif test x
$gcc_cv_ld != x
; then
34752 # Check if linker supports -z bndplt option
34753 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
34754 ld_bndplt_support
=yes
34758 if test x
"$ld_bndplt_support" = xyes
; then
34760 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34764 $as_echo "$ld_bndplt_support" >&6; }
34766 # Check linker supports '--push-state'/'--pop-state'
34767 ld_pushpopstate_support
=no
34768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34769 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34770 if test x
"$ld_is_gold" = xno
; then
34771 if test $in_tree_ld = yes ; then
34772 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
34773 ld_pushpopstate_support
=yes
34775 elif test x
$gcc_cv_ld != x
; then
34776 # Check if linker supports --push-state/--pop-state options
34777 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
34778 ld_pushpopstate_support
=yes
34782 if test x
"$ld_pushpopstate_support" = xyes
; then
34784 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34788 $as_echo "$ld_pushpopstate_support" >&6; }
34790 # On s390, float_t has historically been statically defined as double for no
34791 # good reason. To comply with the C standard in the light of this definition,
34792 # gcc has evaluated float expressions in double precision when in
34793 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34794 # a smooth transition towards the new model used by most architectures, where
34795 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34796 # float_t from that, this behavior can be configured with
34797 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34798 # the old model. When omitted, native builds and cross compiles that have target
34799 # libc headers will detect whether libc clamps float_t to double and in that
34800 # case maintain the old model. Otherwise, they will default to the new model.
34801 # Check whether --enable-s390-excess-float-precision was given.
34802 if test "${enable_s390_excess_float_precision+set}" = set; then :
34803 enableval
=$enable_s390_excess_float_precision;
34805 enable_s390_excess_float_precision
=auto
34811 if test x
"$enable_s390_excess_float_precision" = xauto
; then
34812 # Can we autodetect the behavior of the target libc?
34813 if test "$target" = "$host" -a "$host" = "$build"; then
34814 enable_s390_excess_float_precision
=autodetect
34815 elif test "x$with_headers" != xno
; then
34816 # cross build. are target headers available?
34817 # carefully coerce the build-system compiler to use target headers
34818 saved_CXXFLAGS
="$CXXFLAGS"
34819 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34820 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34821 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
34822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34823 /* end confdefs.h. */
34828 if ac_fn_cxx_try_compile
"$LINENO"; then :
34829 enable_s390_excess_float_precision
=autodetect
34831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34832 CXXFLAGS
="$saved_CXXFLAGS"
34835 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
34836 saved_CXXFLAGS
="$CXXFLAGS"
34837 if ! test "$target" = "$host" -a "$host" = "$build"; then
34838 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
34839 unset CROSS_TEST_CXXFLAGS
34841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34842 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34843 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
34844 $as_echo_n "(cached) " >&6
34847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34848 /* end confdefs.h. */
34850 #define __FLT_EVAL_METHOD__ 0
34852 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34855 if ac_fn_cxx_try_compile
"$LINENO"; then :
34856 gcc_cv_float_t_clamped_to_double
=yes
34858 gcc_cv_float_t_clamped_to_double
=no
34860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34863 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34864 CXXFLAGS
="$saved_CXXFLAGS"
34865 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
34867 # no way to detect behavior of target libc, default to new model
34868 enable_s390_excess_float_precision
=no
34873 if test x
"$enable_s390_excess_float_precision" = xyes
; then
34875 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34881 # Check if the linker supports '-z now'
34883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34884 $as_echo_n "checking linker -z now option... " >&6; }
34885 if test x
"$ld_is_gold" = xyes
; then
34887 elif test $in_tree_ld = yes ; then
34888 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then
34891 elif test x
$gcc_cv_ld != x
; then
34892 # Check if linker supports -z now
34893 if $gcc_cv_ld --help 2>&1 |
grep -- '-z now' > /dev
/null
; then
34898 cat >>confdefs.h
<<_ACEOF
34899 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
34902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
34903 $as_echo "$ld_now_support" >&6; }
34905 # Check if the linker supports '-z relro'
34906 ld_relro_support
=no
34907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
34908 $as_echo_n "checking linker -z relro option... " >&6; }
34909 if test x
"$ld_is_gold" = xyes
; then
34910 ld_relro_support
=yes
34911 elif test $in_tree_ld = yes ; then
34912 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2; then
34913 ld_relro_support
=yes
34915 elif test x
$gcc_cv_ld != x
; then
34916 # Check if linker supports -z relro
34917 if $gcc_cv_ld --help 2>&1 |
grep -- '-z relro' > /dev
/null
; then
34918 ld_relro_support
=yes
34922 cat >>confdefs.h
<<_ACEOF
34923 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
34926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
34927 $as_echo "$ld_relro_support" >&6; }
34931 # -fhardened is only supported on GNU/Linux.
34932 fhardened_support
=yes
34935 fhardened_support
=no
34940 cat >>confdefs.h
<<_ACEOF
34941 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
34944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
34945 $as_echo "$fhardened_support" >&6; }
34947 # Configure the subdirectories
34948 # AC_CONFIG_SUBDIRS($subdirs)
34950 # Create the Makefile
34951 # and configure language subdirectories
34952 ac_config_files
="$ac_config_files $all_outputs"
34955 ac_config_commands
="$ac_config_commands default"
34957 cat >confcache
<<\_ACEOF
34958 # This file is a shell script that caches the results of configure
34959 # tests run on this system so they can be shared between configure
34960 # scripts and configure runs, see configure's option --config-cache.
34961 # It is not useful on other systems. If it contains results you don't
34962 # want to keep, you may remove or edit it.
34964 # config.status only pays attention to the cache file if you give it
34965 # the --recheck option to rerun configure.
34967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34969 # following values.
34973 # The following way of writing the cache mishandles newlines in values,
34974 # but we know of no workaround that is simple, portable, and efficient.
34975 # So, we kill variables containing newlines.
34976 # Ultrix sh set writes to stderr and can't be redirected directly,
34977 # and sets the high bit in the cache file unless we assign to the vars.
34979 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34980 eval ac_val
=\$
$ac_var
34984 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34988 _ | IFS | as_nl
) ;; #(
34989 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
34990 *) { eval $ac_var=; unset $ac_var;} ;;
34996 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34997 *${as_nl}ac_space
=\
*)
34998 # `set' does not quote correctly, so add quotes: double-quote
34999 # substitution turns \\\\ into \\, and sed turns \\ into \.
35002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35005 # `set' quotes correctly as required by POSIX, so do not add quotes.
35006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35017 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35019 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
35020 if test -w "$cache_file"; then
35021 if test "x$cache_file" != "x/dev/null"; then
35022 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35023 $as_echo "$as_me: updating cache $cache_file" >&6;}
35024 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
35025 cat confcache
>"$cache_file"
35027 case $cache_file in #(
35029 mv -f confcache
"$cache_file"$$
&&
35030 mv -f "$cache_file"$$
"$cache_file" ;; #(
35032 mv -f confcache
"$cache_file" ;;
35037 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35038 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35043 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
35044 # Let make expand exec_prefix.
35045 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
35047 DEFS
=-DHAVE_CONFIG_H
35052 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
35053 # 1. Remove the extension, and $U if already installed.
35054 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
35055 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
35056 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35057 # will be set to the directory where LIBOBJS objects are built.
35058 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35059 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
35061 LIBOBJS
=$ac_libobjs
35063 LTLIBOBJS
=$ac_ltlibobjs
35067 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
35068 as_fn_error $?
"conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
35069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35072 : "${CONFIG_STATUS=./config.status}"
35074 ac_clean_files_save
=$ac_clean_files
35075 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35077 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35079 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35081 # Generated by $as_me.
35082 # Run this file to recreate the current configuration.
35083 # Compiler output produced by configure, useful for debugging
35084 # configure, is in config.log if it exists.
35087 ac_cs_recheck=false
35090 SHELL=\${CONFIG_SHELL-$SHELL}
35093 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
35094 ## -------------------- ##
35095 ## M4sh Initialization. ##
35096 ## -------------------- ##
35098 # Be more Bourne compatible
35099 DUALCASE
=1; export DUALCASE
# for MKS sh
35100 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
35103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35104 # is contrary to our usage. Disable this feature.
35105 alias -g '${1+"$@"}'='"$@"'
35106 setopt NO_GLOB_SUBST
35108 case `(set -o) 2>/dev/null` in #(
35120 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35121 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35124 # Prefer a ksh shell builtin over an external printf program on Solaris,
35125 # but without wasting forks for bash or zsh.
35126 if test -z "$BASH_VERSION$ZSH_VERSION" \
35127 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35128 as_echo='print
-r --'
35129 as_echo_n='print
-rn --'
35130 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35131 as_echo='printf %s
\n'
35132 as_echo_n='printf %s
'
35134 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35135 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
35136 as_echo_n='/usr
/ucb
/echo -n'
35138 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35139 as_echo_n_body='eval
35143 expr "X$arg" : "X\\(.*\\)$as_nl";
35144 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35146 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
35148 export as_echo_n_body
35149 as_echo_n='sh
-c $as_echo_n_body as_echo
'
35151 export as_echo_body
35152 as_echo='sh
-c $as_echo_body as_echo
'
35155 # The user is always right.
35156 if test "${PATH_SEPARATOR+set}" != set; then
35158 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35159 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35166 # We need space, tab and new line, in precisely that order. Quoting is
35167 # there to prevent editors from complaining about space-tab.
35168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35169 # splitting by setting IFS to empty value.)
35172 # Find who we are. Look in the path if we contain no directory separator.
35175 *[\\/]* ) as_myself=$0 ;;
35176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35177 for as_dir in $PATH
35180 test -z "$as_dir" && as_dir=.
35181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35187 # We did not find ourselves, most probably we were run as `sh COMMAND'
35188 # in which case we are not to be found in the path.
35189 if test "x$as_myself" = x
; then
35192 if test ! -f "$as_myself"; then
35193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35197 # Unset variables that we do not need and which cause bugs (e.g. in
35198 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35199 # suppresses any "Segmentation fault" message there. '((' could
35200 # trigger a bug in pdksh 5.2.14.
35201 for as_var
in BASH_ENV ENV MAIL MAILPATH
35202 do eval test x\
${$as_var+set} = xset \
35203 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
35216 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
35219 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35220 # ----------------------------------------
35221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35223 # script with STATUS, using 1 if that was 0.
35226 as_status
=$1; test $as_status -eq 0 && as_status
=1
35228 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
35229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35231 $as_echo "$as_me: error: $2" >&2
35232 as_fn_exit
$as_status
35236 # as_fn_set_status STATUS
35237 # -----------------------
35238 # Set $? to STATUS, without forking.
35239 as_fn_set_status
()
35242 } # as_fn_set_status
35244 # as_fn_exit STATUS
35245 # -----------------
35246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35250 as_fn_set_status
$1
35256 # Portably unset VAR.
35259 { eval $1=; unset $1;}
35261 as_unset
=as_fn_unset
35262 # as_fn_append VAR VALUE
35263 # ----------------------
35264 # Append the text in VALUE to the end of the definition contained in VAR. Take
35265 # advantage of any shell optimizations that allow amortized linear growth over
35266 # repeated appends, instead of the typical quadratic growth present in naive
35268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
35269 eval 'as_fn_append ()
35280 # as_fn_arith ARG...
35281 # ------------------
35282 # Perform arithmetic evaluation on the ARGs, and store the result in the
35283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35284 # must be portable across $(()) and expr.
35285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
35286 eval 'as_fn_arith ()
35293 as_val
=`expr "$@" || test $? -eq 1`
35298 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35299 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35305 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35306 as_basename
=basename
35311 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35317 as_me
=`$as_basename -- "$0" ||
35318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35319 X"$0" : 'X\(//\)$' \| \
35320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35322 sed '/^.*\/\([^/][^/]*\)\/*$/{
35336 # Avoid depending upon Character Ranges.
35337 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35338 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35339 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35340 as_cr_digits
='0123456789'
35341 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35343 ECHO_C
= ECHO_N
= ECHO_T
=
35344 case `echo -n x` in #(((((
35346 case `echo 'xy\c'` in
35347 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35349 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
35356 rm -f conf$$ conf$$.exe conf$$.
file
35357 if test -d conf$$.dir
; then
35358 rm -f conf$$.dir
/conf$$.
file
35361 mkdir conf$$.dir
2>/dev
/null
35363 if (echo >conf$$.
file) 2>/dev
/null
; then
35364 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35366 # ... but there are two gotchas:
35367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35369 # In both cases, we have to default to `cp -pR'.
35370 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35372 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35380 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35381 rmdir conf$$.dir
2>/dev
/null
35386 # Create "$as_dir" as a directory, including parents if necessary.
35391 -*) as_dir
=.
/$as_dir;;
35393 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
35397 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35398 *) as_qdir
=$as_dir;;
35400 as_dirs
="'$as_qdir' $as_dirs"
35401 as_dir
=`$as_dirname -- "$as_dir" ||
35402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35403 X"$as_dir" : 'X\(//\)[^/]' \| \
35404 X"$as_dir" : 'X\(//\)$' \| \
35405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35406 $as_echo X"$as_dir" |
35407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35411 /^X\(\/\/\)[^/].*/{
35424 test -d "$as_dir" && break
35426 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35427 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
35431 if mkdir
-p .
2>/dev
/null
; then
35432 as_mkdir_p
='mkdir -p "$as_dir"'
35434 test -d .
/-p && rmdir .
/-p
35439 # as_fn_executable_p FILE
35440 # -----------------------
35441 # Test if FILE is an executable regular file.
35442 as_fn_executable_p
()
35444 test -f "$1" && test -x "$1"
35445 } # as_fn_executable_p
35446 as_test_x
='test -x'
35447 as_executable_p
=as_fn_executable_p
35449 # Sed expression to map a string onto a valid CPP name.
35450 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35452 # Sed expression to map a string onto a valid variable name.
35453 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35457 ## ----------------------------------- ##
35458 ## Main body of $CONFIG_STATUS script. ##
35459 ## ----------------------------------- ##
35461 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
35463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35464 # Save the log message, to keep $0 and so on meaningful, and to
35465 # report actual input values of CONFIG_FILES etc. instead of their
35466 # values after options handling.
35468 This file was extended by $as_me, which was
35469 generated by GNU Autoconf 2.69. Invocation command line was
35471 CONFIG_FILES = $CONFIG_FILES
35472 CONFIG_HEADERS = $CONFIG_HEADERS
35473 CONFIG_LINKS = $CONFIG_LINKS
35474 CONFIG_COMMANDS = $CONFIG_COMMANDS
35477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35482 case $ac_config_files in *"
35483 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
35486 case $ac_config_headers in *"
35487 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
35491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35492 # Files that config.status was made for.
35493 config_files="$ac_config_files"
35494 config_headers="$ac_config_headers"
35495 config_links="$ac_config_links"
35496 config_commands="$ac_config_commands"
35500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35502 \`$as_me' instantiates files and other configuration actions
35503 from templates according to the current configuration. Unless the files
35504 and actions are specified as TAGs, all are instantiated by default.
35506 Usage: $0 [OPTION]... [TAG]...
35508 -h, --help print this help, then exit
35509 -V, --version print version number and configuration settings, then exit
35510 --config print configuration, then exit
35511 -q, --quiet, --silent
35512 do not print progress messages
35513 -d, --debug don't remove temporary files
35514 --recheck update $as_me by reconfiguring in the same conditions
35515 --file=FILE[:TEMPLATE]
35516 instantiate the configuration file FILE
35517 --header=FILE[:TEMPLATE]
35518 instantiate the configuration header FILE
35520 Configuration files:
35523 Configuration headers:
35526 Configuration links:
35529 Configuration commands:
35532 Report bugs to the package provider."
35535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35536 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35539 configured by $0, generated by GNU Autoconf 2.69,
35540 with options \\"\$ac_cs_config\\"
35542 Copyright (C) 2012 Free Software Foundation, Inc.
35543 This config.status script is free software; the Free Software Foundation
35544 gives unlimited permission to copy, distribute and modify it."
35550 test -n "\$AWK" || AWK=awk
35553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35554 # The default lists apply if the user does not specify any file.
35560 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35561 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35565 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35577 # Handling of the options.
35578 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35580 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35581 $as_echo "$ac_cs_version"; exit ;;
35582 --config |
--confi |
--conf |
--con |
--co |
--c )
35583 $as_echo "$ac_cs_config"; exit ;;
35584 --debug |
--debu |
--deb |
--de |
--d |
-d )
35586 --file |
--fil |
--fi |
--f )
35589 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35590 '') as_fn_error $?
"missing file argument" ;;
35592 as_fn_append CONFIG_FILES
" '$ac_optarg'"
35593 ac_need_defaults
=false
;;
35594 --header |
--heade |
--head |
--hea )
35597 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35599 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
35600 ac_need_defaults
=false
;;
35602 # Conflict between --help and --header
35603 as_fn_error $?
"ambiguous option: \`$1'
35604 Try \`$0 --help' for more information.";;
35605 --help |
--hel |
-h )
35606 $as_echo "$ac_cs_usage"; exit ;;
35607 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35608 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35611 # This is an error.
35612 -*) as_fn_error $?
"unrecognized option: \`$1'
35613 Try \`$0 --help' for more information." ;;
35615 *) as_fn_append ac_config_targets
" $1"
35616 ac_need_defaults
=false
;;
35622 ac_configure_extra_args
=
35624 if $ac_cs_silent; then
35626 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35631 if \$ac_cs_recheck; then
35632 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35634 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35635 CONFIG_SHELL='$SHELL'
35636 export CONFIG_SHELL
35641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35645 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35646 ## Running $as_me. ##
35652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35656 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35657 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35658 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35659 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35661 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35662 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35663 LINGUAS="${LINGUAS-%UNSET%}"
35669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35671 # Handling of arguments.
35672 for ac_config_target
in $ac_config_targets
35674 case $ac_config_target in
35675 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
35676 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
35677 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
35678 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
35679 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
35680 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35681 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
35682 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35683 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35684 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
35685 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
35687 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35692 # If the user did not use the arguments to specify the items to instantiate,
35693 # then the envvar interface is used. Set only those that are not.
35694 # We use the long form for the default assignment because of an extremely
35695 # bizarre bug on SunOS 4.1.3.
35696 if $ac_need_defaults; then
35697 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35698 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35699 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
35700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35703 # Have a temporary directory for convenience. Make it in the build tree
35704 # simply because there is no reason against having it here, and in addition,
35705 # creating and moving files from /tmp can sometimes cause problems.
35706 # Hook for its removal unless debugging.
35707 # Note that there is a small window in which the directory will not be cleaned:
35708 # after its creation but before its name has been assigned to `$tmp'.
35712 trap 'exit_status=$?
35713 : "${ac_tmp:=$tmp}"
35714 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35716 trap 'as_fn_exit 1' 1 2 13 15
35718 # Create a (secure) tmp directory for tmp files.
35721 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35725 tmp
=.
/conf$$
-$RANDOM
35726 (umask 077 && mkdir
"$tmp")
35727 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
35730 # Set up the scripts for CONFIG_FILES section.
35731 # No need to generate them if there are no CONFIG_FILES.
35732 # This happens for instance with `./config.status config.h'.
35733 if test -n "$CONFIG_FILES"; then
35735 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
35736 ac_cs_awk_getline
=:
35737 ac_cs_awk_pipe_init
=
35738 ac_cs_awk_read_file
='
35739 while ((getline aline < (F[key])) > 0)
35742 ac_cs_awk_pipe_fini
=
35744 ac_cs_awk_getline
=false
35745 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
35746 ac_cs_awk_read_file
='
35748 print "cat " F[key] " &&"
35749 '$ac_cs_awk_pipe_init
35750 # The final `:' finishes the AND list.
35751 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
35753 ac_cr
=`echo X | tr X '\015'`
35754 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35755 # But we know of no other shell where ac_cr would be empty at this
35756 # point, so we can use a bashism as a fallback.
35757 if test "x$ac_cr" = x
; then
35758 eval ac_cr
=\$
\'\\r
\'
35760 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35761 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35764 ac_cs_awk_cr
=$ac_cr
35767 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35770 # Create commands to substitute file output variables.
35772 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35773 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35774 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
35777 } >conf$
$files.sh
&&
35778 . .
/conf$
$files.sh ||
35779 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
35780 rm -f conf$
$files.sh
35783 echo "cat >conf$$subs.awk <<_ACEOF" &&
35784 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35786 } >conf$$subs.sh ||
35787 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35788 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35790 for ac_last_try in false false false false false :; do
35791 . ./conf$$subs.sh ||
35792 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35794 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
35795 if test $ac_delim_n = $ac_delim_num; then
35797 elif $ac_last_try; then
35798 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35800 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
35803 rm -f conf$$subs.sh
35805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35806 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
35810 s/^/S["/; s
/!.
*/"]=/
35820 s/\(.\{148\}\)..*/\1/
35822 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
35827 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35834 s/\(.\{148\}\)..*/\1/
35836 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
35840 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35845 ' <conf$$subs.awk | sed '
35850 ' >>$CONFIG_STATUS || ac_write_fail=1
35851 rm -f conf$$subs.awk
35852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35854 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
35855 for (key in S) S_is_set[key] = 1
35857 \$ac_cs_awk_pipe_init
35861 nfields = split(line, field, "@
")
35863 len = length(field[1])
35864 for (i = 2; i < nfields; i++) {
35866 keylen = length(key)
35867 if (S_is_set[key]) {
35869 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35870 len += length(value) + length(field[++i])
35875 if (nfields == 3 && !substed) {
35877 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35878 \$ac_cs_awk_read_file
35884 \$ac_cs_awk_pipe_fini
35887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35888 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35889 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
35892 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
35893 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
35896 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35897 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
35898 # trailing colons and then remove the whole line if VPATH becomes empty
35899 # (actually we leave an empty line to preserve line numbers).
35900 if test "x
$srcdir" = x.; then
35901 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35920 fi # test -n "$CONFIG_FILES"
35922 # Set up the scripts for CONFIG_HEADERS section.
35923 # No need to generate them if there are no CONFIG_HEADERS.
35924 # This happens for instance with `./config.status Makefile'.
35925 if test -n "$CONFIG_HEADERS"; then
35926 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
35930 # Transform confdefs.h into an awk script `defines.awk', embedded as
35931 # here-document in config.status, that substitutes the proper values into
35932 # config.h.in to produce config.h.
35934 # Create a delimiter string that does not exist in confdefs.h, to ease
35935 # handling of long lines.
35937 for ac_last_try in false false :; do
35938 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
35939 if test -z "$ac_tt"; then
35941 elif $ac_last_try; then
35942 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
35944 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
35948 # For the awk script, D is an array of macro values keyed by name,
35949 # likewise P contains macro parameters if any. Preserve backslash
35950 # newline sequences.
35952 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35954 s/.\{148\}/&'"$ac_delim"'/g
35957 s/^[ ]*#[ ]*define[ ][ ]*/ /
35964 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
35966 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
35970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
35971 D["\
1"]=" \
3\\\\\\n
"\\/p
35973 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
35978 s/.\{148\}/&'"$ac_delim"'/g
35983 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
35986 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
35988 ' <confdefs.h | sed '
35989 s/'"$ac_delim"'/"\\\
35990 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35993 for (key in D) D_is_set[key] = 1
35996 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35998 split(line, arg, " ")
35999 if (arg[1] == "#") {
36003 defundef
= substr
(arg
[1], 2)
36006 split(mac1
, mac2
, "(") #)
36008 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
36009 if (D_is_set
[macro
]) {
36010 # Preserve the white space surrounding the "#".
36011 print prefix
"define", macro P
[macro
] D
[macro
]
36014 # Replace #undef with comments. This is necessary, for example,
36015 # in the case of _POSIX_SOURCE, which is predefined and required
36016 # on some systems where configure will not decide to define it.
36017 if (defundef
== "undef") {
36018 print
"/*", prefix defundef
, macro
, "*/"
36026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36027 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
36028 fi # test -n "$CONFIG_HEADERS"
36031 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
36036 :[FHLC
]) ac_mode
=$ac_tag; continue;;
36038 case $ac_mode$ac_tag in
36040 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
36041 :[FH
]-) ac_tag
=-:-;;
36042 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
36059 -) ac_f
="$ac_tmp/stdin";;
36060 *) # Look for the file first in the build tree, then in the source tree
36061 # (if the path is not absolute). The absolute path cannot be DOS-style,
36062 # because $ac_f cannot contain `:'.
36066 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36068 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36070 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36071 as_fn_append ac_file_inputs
" '$ac_f'"
36074 # Let's still pretend it is `configure' which instantiates (i.e., don't
36075 # use $as_me), people would be surprised to read:
36076 # /* config.h. Generated by config.status. */
36077 configure_input
='Generated from '`
36078 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36080 if test x
"$ac_file" != x-
; then
36081 configure_input
="$ac_file. $configure_input"
36082 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36083 $as_echo "$as_me: creating $ac_file" >&6;}
36085 # Neutralize special characters interpreted by sed in replacement strings.
36086 case $configure_input in #(
36087 *\
&* |
*\|
* |
*\\* )
36088 ac_sed_conf_input
=`$as_echo "$configure_input" |
36089 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36090 *) ac_sed_conf_input
=$configure_input;;
36094 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
36095 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
36100 ac_dir
=`$as_dirname -- "$ac_file" ||
36101 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36102 X"$ac_file" : 'X\(//\)[^/]' \| \
36103 X"$ac_file" : 'X\(//\)$' \| \
36104 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36105 $as_echo X"$ac_file" |
36106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36110 /^X\(\/\/\)[^/].*/{
36123 as_dir
="$ac_dir"; as_fn_mkdir_p
36127 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36129 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36130 # A ".." for each directory in $ac_dir_suffix.
36131 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36132 case $ac_top_builddir_sub in
36133 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36134 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36137 ac_abs_top_builddir
=$ac_pwd
36138 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36139 # for backward compatibility:
36140 ac_top_builddir
=$ac_top_build_prefix
36143 .
) # We are building in place.
36145 ac_top_srcdir
=$ac_top_builddir_sub
36146 ac_abs_top_srcdir
=$ac_pwd ;;
36147 [\\/]* | ?
:[\\/]* ) # Absolute name.
36148 ac_srcdir
=$srcdir$ac_dir_suffix;
36149 ac_top_srcdir
=$srcdir
36150 ac_abs_top_srcdir
=$srcdir ;;
36151 *) # Relative name.
36152 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36153 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36154 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36156 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36166 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36167 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36172 # If the template does not know about datarootdir, expand it.
36173 # FIXME: This hack should be removed a few years after 2.60.
36174 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36185 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36186 *datarootdir
*) ac_datarootdir_seen
=yes;;
36187 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36189 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36192 ac_datarootdir_hack='
36193 s&@datadir@&$datadir&g
36194 s&@docdir@&$docdir&g
36195 s&@infodir@&$infodir&g
36196 s&@localedir@&$localedir&g
36197 s&@mandir@&$mandir&g
36198 s&\\\${datarootdir}&$datarootdir&g' ;;
36202 # Neutralize VPATH when `$srcdir' = `.'.
36203 # Shell code in configure.ac might set extrasub.
36204 # FIXME: do we really want to maintain this feature?
36205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36206 ac_sed_extra="$ac_vpsub
36209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36211 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36212 s|@configure_input@|
$ac_sed_conf_input|
;t t
36213 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36214 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
36215 s
&@srcdir@
&$ac_srcdir&;t t
36216 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36217 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36218 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36219 s
&@builddir@
&$ac_builddir&;t t
36220 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36221 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36222 s
&@INSTALL@
&$ac_INSTALL&;t t
36223 $ac_datarootdir_hack
36225 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36226 if $ac_cs_awk_getline; then
36227 $AWK -f "$ac_tmp/subs.
awk"
36229 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
36231 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
36233 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36234 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
36235 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36236 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
36237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36238 which seems to be undefined. Please make sure it is defined" >&5
36239 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36240 which seems to be undefined. Please make sure it is defined" >&2;}
36242 rm -f "$ac_tmp/stdin"
36244 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36245 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36253 if test x"$ac_file" != x-; then
36255 $as_echo "/* $configure_input */" \
36256 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36257 } >"$ac_tmp/config.h" \
36258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36259 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36260 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36261 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36264 mv "$ac_tmp/config.h" "$ac_file" \
36265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36268 $as_echo "/* $configure_input */" \
36269 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36270 || as_fn_error $? "could not create -" "$LINENO" 5
36278 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
36281 # Prefer the file from the source tree if names are identical.
36282 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36283 ac_source=$srcdir/$ac_source
36286 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36287 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36289 if test ! -r "$ac_source"; then
36290 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36294 # Try a relative symlink, then a hard link, then a copy.
36296 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36297 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36299 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36300 ln "$ac_source" "$ac_file" 2>/dev/null ||
36301 cp -p "$ac_source" "$ac_file" ||
36302 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36305 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36306 $as_echo "$as_me: executing $ac_file commands" >&6;}
36311 case $ac_file$ac_mode in
36312 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36314 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36315 for lang in $subdirs c-family common analyzer text-art rtl-ssa sym-exec
36317 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36320 for ac_file in $CONFIG_FILES; do
36321 # Support "outfile[:infile[:infile...]]"
36323 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
36325 # PO directories have a Makefile.in generated from Makefile.in.in.
36326 case "$ac_file" in */Makefile.in)
36327 # Adjust a relative srcdir.
36328 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
36329 ac_dir_suffix=/`echo "$ac_dir"|sed 's
%^\.
/%%'`
36330 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
36331 # In autoconf-2.13 it is called $ac_given_srcdir.
36332 # In autoconf-2.50 it is called $srcdir.
36333 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36334 case "$ac_given_srcdir" in
36335 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
36336 /*) top_srcdir="$ac_given_srcdir" ;;
36337 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36339 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36340 rm -f "$ac_dir/POTFILES"
36341 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36342 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36343 POMAKEFILEDEPS="POTFILES.in"
36344 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36345 # on $ac_dir but don't depend on user-specified configuration
36347 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36348 # The LINGUAS file contains the set of available languages.
36349 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36350 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
36352 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36353 # Hide the ALL_LINGUAS assigment from automake.
36354 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36355 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
36357 # The set of available languages was given in configure.ac.
36358 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36360 case "$ac_given_srcdir" in
36362 *) srcdirpre
='$(srcdir)/' ;;
36368 for lang
in $ALL_LINGUAS; do
36369 POFILES
="$POFILES $srcdirpre$lang.po"
36370 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
36371 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
36372 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
36374 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36375 # environment variable.
36377 if test -n "$ALL_LINGUAS"; then
36378 for presentlang
in $ALL_LINGUAS; do
36380 if test "%UNSET%" != "$LINGUAS"; then
36381 desiredlanguages
="$LINGUAS"
36383 desiredlanguages
="$ALL_LINGUAS"
36385 for desiredlang
in $desiredlanguages; do
36386 # Use the presentlang catalog if desiredlang is
36387 # a. equal to presentlang, or
36388 # b. a variant of presentlang (because in this case,
36389 # presentlang can be used as a fallback for messages
36390 # which are not translated in the desiredlang catalog).
36391 case "$desiredlang" in
36392 "$presentlang"*) useit
=yes;;
36395 if test $useit = yes; then
36396 INST_LINGUAS
="$INST_LINGUAS $presentlang"
36401 if test -n "$INST_LINGUAS"; then
36402 for lang
in $INST_LINGUAS; do
36403 CATALOGS
="$CATALOGS $lang.gmo"
36406 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
36407 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36408 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
36409 if test -f "$f"; then
36411 *.orig |
*.bak |
*~
) ;;
36412 *) cat "$f" >> "$ac_dir/Makefile" ;;
36420 "as":F
) chmod +x as
;;
36421 "collect-ld":F
) chmod +x collect-ld
;;
36422 "nm":F
) chmod +x nm
;;
36423 "dsymutil":F
) chmod +x dsymutil
;;
36425 case ${CONFIG_HEADERS} in
36426 *auto-host.h
:config.
in*)
36429 # Make sure all the subdirs exist.
36430 for d
in $subdirs doc build common c-family
36432 test -d $d || mkdir
$d
36442 ac_clean_files
=$ac_clean_files_save
36444 test $ac_write_fail = 0 ||
36445 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
36448 # configure is writing to config.log, and then calls config.status.
36449 # config.status does its own redirection, appending to config.log.
36450 # Unfortunately, on DOS this fails, as config.log is still kept open
36451 # by configure, so config.status won't be able to write to it; its
36452 # output is simply discarded. So we exec the FD to /dev/null,
36453 # effectively closing config.log, so it can be properly (re)opened and
36454 # appended to by config.status. When coming back to configure, we
36455 # need to make the FD available again.
36456 if test "$no_create" != yes; then
36458 ac_config_status_args
=
36459 test "$silent" = yes &&
36460 ac_config_status_args
="$ac_config_status_args --quiet"
36462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36465 # would make configure fail if this is the last instruction.
36466 $ac_cs_success || as_fn_exit
1
36468 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
36469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36470 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}