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>
632 ac_subst_vars
='LTLIBOBJS
663 common_out_object_file
679 gcc_gxx_libcxx_include_dir_add_sysroot
680 gcc_gxx_libcxx_include_dir
681 gcc_gxx_include_dir_add_sysroot
688 user_headers_inc_next_post
689 user_headers_inc_next_pre
691 TM_MULTILIB_EXCEPTIONS_CONFIG
701 build_xm_include_list
703 build_install_headers_dir
705 all_selected_languages
708 all_lang_configurefrags
716 DO_LINK_SERIALIZATION
728 ld_version_script_option
730 ORIGINAL_DSYMUTIL_FOR_TARGET
735 ORIGINAL_NM_FOR_TARGET
737 ORIGINAL_LD_GOLD_FOR_TARGET
738 ORIGINAL_LD_BFD_FOR_TARGET
739 ORIGINAL_LD_FOR_TARGET
740 ORIGINAL_PLUGIN_LD_FOR_TARGET
742 ORIGINAL_AS_FOR_TARGET
767 BUILD_SYSTEM_HEADER_DIR
787 NATIVE_SYSTEM_HEADER_DIR
814 MAKEINFO_TOC_INLINE_FLAG
828 omp_device_property_deps
829 omp_device_properties
831 real_target_noncanonical
832 enable_as_accelerator
842 DEFAULT_MATCHPD_PARTITIONS
849 valgrind_path_defines
881 CROSS_SYSTEM_HEADER_DIR
882 TARGET_SYSTEM_ROOT_DEFINE
884 SYSROOT_CFLAGS_FOR_TARGET
930 program_transform_name
941 ac_subst_files
='option_includes
944 enable_option_checking
947 with_native_system_header_dir
951 with_gxx_libcxx_include_dir
953 enable_generated_files_in_srcdir
961 enable_build_format_warnings
965 enable_gather_detailed_mem_stats
966 enable_valgrind_annotations
969 with_stack_clash_protection_guard_size
970 with_matchpd_partitions
985 with_documentation_root_url
986 with_changes_root_url
989 with_multilib_generator
996 enable_sjlj_exceptions
997 with_gcc_major_version_only
999 enable_mingw_wildcard
1000 enable_large_address_aware
1001 enable_leading_mingw64_underscores
1003 enable_frame_pointer
1004 enable_win32_registry
1012 enable_gnu_indirect_function
1013 enable_initfini_array
1015 enable_newlib_nano_formatted_io
1016 enable_standard_branch_protection
1017 enable_fix_cortex_a53_835769
1018 enable_fix_cortex_a53_843419
1020 enable_gnu_unique_object
1021 enable_linker_build_id
1024 with_long_double_128
1025 with_long_double_format
1028 enable_maintainer_mode
1030 enable_link_serialization
1031 enable_version_specific_runtime_libs
1035 enable_host_bind_now
1036 enable_libquadmath_support
1037 with_linker_hash_style
1038 with_diagnostics_color
1039 with_diagnostics_urls
1042 enable_s390_excess_float_precision
1044 ac_precious_vars
='build_alias
1063 # Initialize some variables set by options.
1065 ac_init_version
=false
1066 ac_unrecognized_opts
=
1067 ac_unrecognized_sep
=
1068 # The variables have the same names as the options, with
1069 # dashes changed to underlines.
1070 cache_file
=/dev
/null
1077 program_transform_name
=s
,x
,x
,
1085 # Installation directory options.
1086 # These are left unexpanded so users can "make install exec_prefix=/foo"
1087 # and all the variables that are supposed to be based on exec_prefix
1088 # by default will actually change.
1089 # Use braces instead of parens because sh, perl, etc. also accept them.
1090 # (The list follows the same order as the GNU Coding Standards.)
1091 bindir
='${exec_prefix}/bin'
1092 sbindir
='${exec_prefix}/sbin'
1093 libexecdir
='${exec_prefix}/libexec'
1094 datarootdir
='${prefix}/share'
1095 datadir
='${datarootdir}'
1096 sysconfdir
='${prefix}/etc'
1097 sharedstatedir
='${prefix}/com'
1098 localstatedir
='${prefix}/var'
1099 includedir
='${prefix}/include'
1100 oldincludedir
='/usr/include'
1101 docdir
='${datarootdir}/doc/${PACKAGE}'
1102 infodir
='${datarootdir}/info'
1107 libdir
='${exec_prefix}/lib'
1108 localedir
='${datarootdir}/locale'
1109 mandir
='${datarootdir}/man'
1115 # If the previous option needs an argument, assign it.
1116 if test -n "$ac_prev"; then
1117 eval $ac_prev=\
$ac_option
1123 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1128 # Accept the important Cygnus configure options, so we can diagnose typos.
1130 case $ac_dashdash$ac_option in
1134 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1136 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1137 bindir
=$ac_optarg ;;
1139 -build |
--build |
--buil |
--bui |
--bu)
1140 ac_prev
=build_alias
;;
1141 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1142 build_alias
=$ac_optarg ;;
1144 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1145 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1146 ac_prev
=cache_file
;;
1147 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1148 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1149 cache_file
=$ac_optarg ;;
1151 --config-cache |
-C)
1152 cache_file
=config.cache
;;
1154 -datadir |
--datadir |
--datadi |
--datad)
1156 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1157 datadir
=$ac_optarg ;;
1159 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1160 |
--dataroo |
--dataro |
--datar)
1161 ac_prev
=datarootdir
;;
1162 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1163 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1164 datarootdir
=$ac_optarg ;;
1166 -disable-* |
--disable-*)
1167 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1170 as_fn_error $?
"invalid feature name: $ac_useropt"
1171 ac_useropt_orig
=$ac_useropt
1172 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1175 "enable_
$ac_useropt"
1177 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1178 ac_unrecognized_sep
=', ';;
1180 eval enable_
$ac_useropt=no
;;
1182 -docdir |
--docdir |
--docdi |
--doc |
--do)
1184 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1185 docdir
=$ac_optarg ;;
1187 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1189 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1190 dvidir
=$ac_optarg ;;
1192 -enable-* |
--enable-*)
1193 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1196 as_fn_error $?
"invalid feature name: $ac_useropt"
1197 ac_useropt_orig
=$ac_useropt
1198 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "enable_
$ac_useropt"
1203 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1204 ac_unrecognized_sep
=', ';;
1206 eval enable_
$ac_useropt=\
$ac_optarg ;;
1208 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1209 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1210 |
--exec |
--exe |
--ex)
1211 ac_prev
=exec_prefix
;;
1212 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1213 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1214 |
--exec=* |
--exe=* |
--ex=*)
1215 exec_prefix
=$ac_optarg ;;
1217 -gas |
--gas |
--ga |
--g)
1218 # Obsolete; use --with-gas.
1221 -help |
--help |
--hel |
--he |
-h)
1222 ac_init_help
=long
;;
1223 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1224 ac_init_help
=recursive
;;
1225 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1226 ac_init_help
=short
;;
1228 -host |
--host |
--hos |
--ho)
1229 ac_prev
=host_alias
;;
1230 -host=* |
--host=* |
--hos=* |
--ho=*)
1231 host_alias
=$ac_optarg ;;
1233 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1235 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1237 htmldir
=$ac_optarg ;;
1239 -includedir |
--includedir |
--includedi |
--included |
--include \
1240 |
--includ |
--inclu |
--incl |
--inc)
1241 ac_prev
=includedir
;;
1242 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1243 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1244 includedir
=$ac_optarg ;;
1246 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1248 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1249 infodir
=$ac_optarg ;;
1251 -libdir |
--libdir |
--libdi |
--libd)
1253 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1254 libdir
=$ac_optarg ;;
1256 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1257 |
--libexe |
--libex |
--libe)
1258 ac_prev
=libexecdir
;;
1259 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1260 |
--libexe=* |
--libex=* |
--libe=*)
1261 libexecdir
=$ac_optarg ;;
1263 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1264 ac_prev
=localedir
;;
1265 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1266 localedir
=$ac_optarg ;;
1268 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1269 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1270 ac_prev
=localstatedir
;;
1271 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1272 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1273 localstatedir
=$ac_optarg ;;
1275 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1277 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1278 mandir
=$ac_optarg ;;
1280 -nfp |
--nfp |
--nf)
1281 # Obsolete; use --without-fp.
1284 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1285 |
--no-cr |
--no-c |
-n)
1288 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1289 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1292 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1293 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1294 |
--oldin |
--oldi |
--old |
--ol |
--o)
1295 ac_prev
=oldincludedir
;;
1296 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1297 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1298 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1299 oldincludedir
=$ac_optarg ;;
1301 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1303 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1304 prefix
=$ac_optarg ;;
1306 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1307 |
--program-pre |
--program-pr |
--program-p)
1308 ac_prev
=program_prefix
;;
1309 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1310 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1311 program_prefix
=$ac_optarg ;;
1313 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1314 |
--program-suf |
--program-su |
--program-s)
1315 ac_prev
=program_suffix
;;
1316 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1317 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1318 program_suffix
=$ac_optarg ;;
1320 -program-transform-name |
--program-transform-name \
1321 |
--program-transform-nam |
--program-transform-na \
1322 |
--program-transform-n |
--program-transform- \
1323 |
--program-transform |
--program-transfor \
1324 |
--program-transfo |
--program-transf \
1325 |
--program-trans |
--program-tran \
1326 |
--progr-tra |
--program-tr |
--program-t)
1327 ac_prev
=program_transform_name
;;
1328 -program-transform-name=* |
--program-transform-name=* \
1329 |
--program-transform-nam=* |
--program-transform-na=* \
1330 |
--program-transform-n=* |
--program-transform-=* \
1331 |
--program-transform=* |
--program-transfor=* \
1332 |
--program-transfo=* |
--program-transf=* \
1333 |
--program-trans=* |
--program-tran=* \
1334 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1335 program_transform_name
=$ac_optarg ;;
1337 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1339 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1340 pdfdir
=$ac_optarg ;;
1342 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1344 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1347 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1348 |
-silent |
--silent |
--silen |
--sile |
--sil)
1351 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1353 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1355 sbindir
=$ac_optarg ;;
1357 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1358 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1359 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1361 ac_prev
=sharedstatedir
;;
1362 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1363 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1364 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1366 sharedstatedir
=$ac_optarg ;;
1368 -site |
--site |
--sit)
1370 -site=* |
--site=* |
--sit=*)
1373 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1375 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1376 srcdir
=$ac_optarg ;;
1378 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1379 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1380 ac_prev
=sysconfdir
;;
1381 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1382 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1383 sysconfdir
=$ac_optarg ;;
1385 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1386 ac_prev
=target_alias
;;
1387 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1388 target_alias
=$ac_optarg ;;
1390 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1393 -version |
--version |
--versio |
--versi |
--vers |
-V)
1394 ac_init_version
=: ;;
1397 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1400 as_fn_error $?
"invalid package name: $ac_useropt"
1401 ac_useropt_orig
=$ac_useropt
1402 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1403 case $ac_user_opts in
1407 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1408 ac_unrecognized_sep
=', ';;
1410 eval with_
$ac_useropt=\
$ac_optarg ;;
1412 -without-* |
--without-*)
1413 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1414 # Reject names that are not valid shell variable names.
1415 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1416 as_fn_error $?
"invalid package name: $ac_useropt"
1417 ac_useropt_orig
=$ac_useropt
1418 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1419 case $ac_user_opts in
1423 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1424 ac_unrecognized_sep
=', ';;
1426 eval with_
$ac_useropt=no
;;
1429 # Obsolete; use --with-x.
1432 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1433 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1434 ac_prev
=x_includes
;;
1435 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1436 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1437 x_includes
=$ac_optarg ;;
1439 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1440 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1441 ac_prev
=x_libraries
;;
1442 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1443 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1444 x_libraries
=$ac_optarg ;;
1446 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1447 Try \`$0 --help' for more information"
1451 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1452 # Reject names that are not valid shell variable names.
1453 case $ac_envvar in #(
1454 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1455 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1457 eval $ac_envvar=\
$ac_optarg
1458 export $ac_envvar ;;
1461 # FIXME: should be removed in autoconf 3.0.
1462 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1463 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1464 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1465 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1471 if test -n "$ac_prev"; then
1472 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1473 as_fn_error $?
"missing argument to $ac_option"
1476 if test -n "$ac_unrecognized_opts"; then
1477 case $enable_option_checking in
1479 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1480 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1484 # Check all directory arguments for consistency.
1485 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1486 datadir sysconfdir sharedstatedir localstatedir includedir \
1487 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1488 libdir localedir mandir
1490 eval ac_val
=\$
$ac_var
1491 # Remove trailing slashes.
1494 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1495 eval $ac_var=\
$ac_val;;
1497 # Be sure to have absolute directory names.
1499 [\\/$
]* | ?
:[\\/]* ) continue;;
1500 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1502 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1505 # There might be people who depend on the old broken behavior: `$host'
1506 # used to hold the argument of --host etc.
1507 # FIXME: To remove some day.
1510 target
=$target_alias
1512 # FIXME: To remove some day.
1513 if test "x$host_alias" != x
; then
1514 if test "x$build_alias" = x
; then
1515 cross_compiling
=maybe
1516 elif test "x$build_alias" != "x$host_alias"; then
1522 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1524 test "$silent" = yes && exec 6>/dev
/null
1527 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1528 ac_ls_di
=`ls -di .` &&
1529 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1530 as_fn_error $?
"working directory cannot be determined"
1531 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1532 as_fn_error $?
"pwd does not report name of working directory"
1535 # Find the source files, if location was not specified.
1536 if test -z "$srcdir"; then
1537 ac_srcdir_defaulted
=yes
1538 # Try the directory containing this script, then the parent directory.
1539 ac_confdir
=`$as_dirname -- "$as_myself" ||
1540 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1541 X"$as_myself" : 'X\(//\)[^/]' \| \
1542 X"$as_myself" : 'X\(//\)$' \| \
1543 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1544 $as_echo X"$as_myself" |
1545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1563 if test ! -r "$srcdir/$ac_unique_file"; then
1567 ac_srcdir_defaulted
=no
1569 if test ! -r "$srcdir/$ac_unique_file"; then
1570 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1571 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1573 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1575 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1577 # When building in place, set srcdir=.
1578 if test "$ac_abs_confdir" = "$ac_pwd"; then
1581 # Remove unnecessary trailing slashes from srcdir.
1582 # Double slashes in file names in object file debugging info
1583 # mess up M-x gdb in Emacs.
1585 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1587 for ac_var
in $ac_precious_vars; do
1588 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1589 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1590 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1591 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1595 # Report the --help message.
1597 if test "$ac_init_help" = "long"; then
1598 # Omit some internal or obsolete options to make the list less imposing.
1599 # This message is too long to be a string in the A/UX 3.1 sh.
1601 \`configure' configures this package to adapt to many kinds of systems.
1603 Usage: $0 [OPTION]... [VAR=VALUE]...
1605 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1606 VAR=VALUE. See below for descriptions of some of the useful variables.
1608 Defaults for the options are specified in brackets.
1611 -h, --help display this help and exit
1612 --help=short display options specific to this package
1613 --help=recursive display the short help of all the included packages
1614 -V, --version display version information and exit
1615 -q, --quiet, --silent do not print \`checking ...' messages
1616 --cache-file=FILE cache test results in FILE [disabled]
1617 -C, --config-cache alias for \`--cache-file=config.cache'
1618 -n, --no-create do not create output files
1619 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1621 Installation directories:
1622 --prefix=PREFIX install architecture-independent files in PREFIX
1623 [$ac_default_prefix]
1624 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1627 By default, \`make install' will install all the files in
1628 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1629 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1630 for instance \`--prefix=\$HOME'.
1632 For better control, use the options below.
1634 Fine tuning of the installation directories:
1635 --bindir=DIR user executables [EPREFIX/bin]
1636 --sbindir=DIR system admin executables [EPREFIX/sbin]
1637 --libexecdir=DIR program executables [EPREFIX/libexec]
1638 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1639 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1640 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1641 --libdir=DIR object code libraries [EPREFIX/lib]
1642 --includedir=DIR C header files [PREFIX/include]
1643 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1644 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1645 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1646 --infodir=DIR info documentation [DATAROOTDIR/info]
1647 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1648 --mandir=DIR man documentation [DATAROOTDIR/man]
1649 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1650 --htmldir=DIR html documentation [DOCDIR]
1651 --dvidir=DIR dvi documentation [DOCDIR]
1652 --pdfdir=DIR pdf documentation [DOCDIR]
1653 --psdir=DIR ps documentation [DOCDIR]
1659 --program-prefix=PREFIX prepend PREFIX to installed program names
1660 --program-suffix=SUFFIX append SUFFIX to installed program names
1661 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1664 --build=BUILD configure
for building on BUILD
[guessed
]
1665 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1666 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1670 if test -n "$ac_init_help"; then
1675 --disable-option-checking ignore unrecognized
--enable/--with options
1676 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1677 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1678 --enable-generated-files-in-srcdir
1679 put copies of generated files
in source dir intended
1680 for creating
source tarballs
for users without
1681 texinfo bison or flex
1682 --disable-largefile omit support
for large files
1683 --disable-build-format-warnings
1684 don
't use -Wformat while building GCC
1685 --enable-werror-always enable -Werror despite compiler version
1686 --enable-checking[=LIST]
1687 enable expensive run-time checks. With LIST, enable
1688 only specific categories of checks. Categories are:
1689 yes,no,all,none,release. Flags are:
1690 assert,df,extra,fold,gc,gcac,gimple,misc,
1691 rtlflag,rtl,runtime,tree,valgrind,types
1692 --enable-coverage[=LEVEL]
1693 enable compiler's code coverage collection. Use to
1694 measure compiler performance and
locate unused parts
1695 of the compiler. With LEVEL
, specify optimization.
1696 Values are opt
, noopt
, default is noopt
1697 --enable-gather-detailed-mem-stats
1698 enable detailed memory allocation stats gathering
1699 --enable-valgrind-annotations
1700 enable valgrind runtime interaction
1701 --enable-multilib enable library support
for multiple ABIs
1702 --enable-multiarch enable support
for multiarch paths
1703 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1704 --enable-decimal-float={no
,yes,bid
,dpd
}
1705 enable decimal float extension to C. Selecting
'bid'
1706 or
'dpd' choses
which decimal floating point format
1708 --enable-fixed-point enable fixed-point arithmetic extension to C
1709 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1711 --enable-tls enable or disable generation of tls code overriding
1712 the assembler check
for tls support
1713 --enable-vtable-verify enable vtable verification feature
1714 --disable-analyzer disable
-fanalyzer static analyzer
1715 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1716 GNU Objective-C runtime
1717 --disable-shared don't provide a shared libgcc
1718 --disable-gcov don
't provide libgcov and related host tools
1719 --enable-languages=LIST specify which front-ends to build
1720 --disable-rpath do not hardcode runtime library paths
1721 --enable-sjlj-exceptions
1722 arrange to use setjmp/longjmp exception handling
1723 --enable-secureplt enable -msecure-plt by default for PowerPC
1724 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1725 Default to platform configuration
1726 --enable-large-address-aware
1727 Link mingw executables with --large-address-aware
1728 --enable-leading-mingw64-underscores
1729 enable leading underscores on 64 bit mingw targets
1730 --enable-cld enable -mcld by default for 32bit x86
1731 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1732 --disable-win32-registry
1733 disable lookup of installation paths in the Registry
1735 --enable-win32-registry enable registry lookup (default)
1736 --enable-win32-registry=KEY
1737 use KEY instead of GCC version as the last portion
1739 --enable-shared[=PKGS] build shared libraries [default=yes]
1740 --enable-static[=PKGS] build static libraries [default=yes]
1741 --enable-fast-install[=PKGS]
1742 optimize for fast installation [default=yes]
1743 --disable-libtool-lock avoid locking (might break parallel builds)
1744 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1745 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1746 --enable-gnu-indirect-function
1747 enable the use of the @gnu_indirect_function to
1749 --enable-initfini-array use .init_array/.fini_array sections
1750 --enable-comdat enable COMDAT group support
1751 --enable-newlib-nano-formatted-io
1752 Use nano version formatted IO
1754 --enable-standard-branch-protection
1755 enable Branch Target Identification Mechanism and
1756 Return Address Signing by default for AArch64
1757 --disable-standard-branch-protection
1758 disable Branch Target Identification Mechanism and
1759 Return Address Signing by default for AArch64
1762 --enable-fix-cortex-a53-835769
1763 enable workaround for AArch64 Cortex-A53 erratum
1765 --disable-fix-cortex-a53-835769
1766 disable workaround for AArch64 Cortex-A53 erratum
1770 --enable-fix-cortex-a53-843419
1771 enable workaround for AArch64 Cortex-A53 erratum
1773 --disable-fix-cortex-a53-843419
1774 disable workaround for AArch64 Cortex-A53 erratum
1777 --enable-gnu-unique-object
1778 enable the use of the @gnu_unique_object ELF
1779 extension on glibc systems
1780 --enable-linker-build-id
1781 compiler will always pass --build-id to linker
1782 --enable-libssp enable linking against libssp
1783 --enable-default-ssp enable Stack Smashing Protection as default
1784 --enable-maintainer-mode
1785 enable make rules and dependencies not useful (and
1786 sometimes confusing) to the casual installer
1787 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1788 thrashing on the build machine
1789 --enable-link-serialization
1790 avoid linking multiple GCC front-ends at once using
1791 make dependencies to avoid thrashing on the build
1793 --enable-version-specific-runtime-libs
1794 specify that runtime libraries should be installed
1795 in a compiler-specific directory
1796 --enable-plugin enable plugin support
1797 --enable-host-shared build host code as shared libraries
1798 --enable-host-pie build host code as PIE
1799 --enable-host-bind-now link host code as BIND_NOW
1800 --disable-libquadmath-support
1801 disable libquadmath support for Fortran
1802 --enable-default-pie enable Position Independent Executable as default
1803 --enable-cet enable Intel CET in host libraries [default=auto]
1804 --enable-s390-excess-float-precision
1805 on s390 targets, evaluate float with double
1806 precision when in standards-conforming mode
1809 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1810 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1811 --with-build-libsubdir=DIR Directory where to find libraries for build system
1812 --with-local-prefix=DIR specifies directory to put local include
1813 --with-native-system-header-dir=dir
1814 use dir as the directory to look for standard
1815 system header files in. Defaults to /usr/include.
1816 --with-build-sysroot=sysroot
1817 use sysroot as the system root during the build
1818 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1819 --with-gxx-include-dir=DIR
1820 specifies directory to put g++ header files
1821 --with-gxx-libcxx-include-dir=DIR
1822 specifies directory to find libc++ header files
1823 --with-cpp-install-dir=DIR
1824 install the user visible C preprocessor in DIR
1825 (relative to PREFIX) as well as PREFIX/bin
1826 --with-gnu-ld arrange to work with GNU ld
1827 --with-ld arrange to use the specified ld (full pathname)
1828 --with-demangler-in-ld try to use demangler in GNU ld
1829 --with-dsymutil arrange to use the specified dsymutil (full
1831 --with-gnu-as arrange to work with GNU as
1832 --with-as arrange to use the specified as (full pathname)
1833 --with-stack-clash-protection-guard-size=size
1834 Set the default stack clash protection guard size
1835 for specific targets as a power of two in bytes.
1836 --with-matchpd-partitions=num
1837 Set the number of partitions to make for gimple and
1838 generic when splitting match.pd. [default=10]
1839 --with-dwarf2 force the default debug format to be DWARF 2 (or
1841 --with-specs=SPECS add SPECS to driver command-line processing
1842 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1843 --with-bugurl=URL Direct users to URL to report a bug
1844 --with-documentation-root-url=URL
1845 Root for documentation URLs
1846 --with-changes-root-url=URL
1847 Root for GCC changes URLs
1848 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1850 --with-multilib-generator
1851 Multi-libs configuration string (RISC-V only)
1852 --with-zstd=PATH specify prefix directory for installed zstd library.
1853 Equivalent to --with-zstd-include=PATH/include plus
1854 --with-zstd-lib=PATH/lib
1855 --with-zstd-include=PATH
1856 specify directory for installed zstd include files
1857 --with-zstd-lib=PATH specify directory for the installed zstd library
1858 --with-gnu-ld assume the C compiler uses GNU ld default=no
1859 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1860 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1861 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1862 --with-gcc-major-version-only
1863 use only GCC major number
in filesystem paths
1864 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1866 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1867 --with-plugin-ld=[ARG
] specify the plugin linker
1868 --with-glibc-version=M.N
1869 assume GCC used with glibc version M.N or later
1870 --with-long-double-128 use
128-bit long double by default
1871 --with-long-double-format={ieee
,ibm
}
1872 Specify whether PowerPC long double uses IEEE or IBM format
1874 --with-gc={page
,zone
} this option is not supported anymore. It used to
1875 choose the garbage collection mechanism to use with
1877 --with-system-zlib use installed libz
1878 --with-linker-hash-style={sysv
,gnu
,both
}
1879 specify the linker
hash style
1880 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1881 specify the default of
-fdiagnostics-color option
1882 auto-if-env stands
for -fdiagnostics-color=auto
if
1883 GCC_COLOR environment variable is present and
1884 -fdiagnostics-color=never otherwise
1885 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1886 specify the default of
-fdiagnostics-urls option
1887 auto-if-env stands
for -fdiagnostics-urls=auto
if
1888 GCC_URLS or TERM_URLS environment variable is
1889 present and
-fdiagnostics-urls=never otherwise
1891 Some influential environment variables
:
1892 CC C compiler
command
1893 CFLAGS C compiler flags
1894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1895 nonstandard directory
<lib dir
>
1896 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1897 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1898 you have headers
in a nonstandard directory
<include dir
>
1899 CXX C
++ compiler
command
1900 CXXFLAGS C
++ compiler flags
1901 CXXCPP C
++ preprocessor
1903 GMPLIBS How to link GMP
1904 GMPINC How to
find GMP include files
1905 ISLLIBS How to link isl
1906 ISLINC How to
find isl include files
1908 Use these variables to override the choices made by
`configure' or to help
1909 it to find libraries and programs with nonstandard names/locations.
1911 Report bugs to the package provider.
1916 if test "$ac_init_help" = "recursive"; then
1917 # If there are subdirs, report their specific --help.
1918 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1919 test -d "$ac_dir" ||
1920 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1927 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1928 # A ".." for each directory in $ac_dir_suffix.
1929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1930 case $ac_top_builddir_sub in
1931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1935 ac_abs_top_builddir=$ac_pwd
1936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1937 # for backward compatibility:
1938 ac_top_builddir=$ac_top_build_prefix
1941 .) # We are building in place.
1943 ac_top_srcdir=$ac_top_builddir_sub
1944 ac_abs_top_srcdir=$ac_pwd ;;
1945 [\\/]* | ?:[\\/]* ) # Absolute name.
1946 ac_srcdir=$srcdir$ac_dir_suffix;
1947 ac_top_srcdir=$srcdir
1948 ac_abs_top_srcdir=$srcdir ;;
1950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1951 ac_top_srcdir=$ac_top_build_prefix$srcdir
1952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1956 cd "$ac_dir" || { ac_status=$?; continue; }
1957 # Check for guested configure.
1958 if test -f "$ac_srcdir/configure.gnu"; then
1960 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1961 elif test -f "$ac_srcdir/configure"; then
1963 $SHELL "$ac_srcdir/configure" --help=recursive
1965 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1967 cd "$ac_pwd" || { ac_status=$?; break; }
1971 test -n "$ac_init_help" && exit $ac_status
1972 if $ac_init_version; then
1975 generated by GNU Autoconf 2.69
1977 Copyright (C) 2012 Free Software Foundation, Inc.
1978 This configure script is free software; the Free Software Foundation
1979 gives unlimited permission to copy, distribute and modify it.
1984 ## ------------------------ ##
1985 ## Autoconf initialization. ##
1986 ## ------------------------ ##
1988 # ac_fn_c_try_compile LINENO
1989 # --------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_compile ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext
1995 if { { ac_try="$ac_compile"
1997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1998 *) ac_try_echo
=$ac_try;;
2000 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_compile") 2>conftest.err
2004 if test -s conftest.err
; then
2005 grep -v '^ *+' conftest.err
>conftest.er1
2006 cat conftest.er1
>&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest.
$ac_objext; then :
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.
$ac_ext >&5
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status
$ac_retval
2024 } # ac_fn_c_try_compile
2026 # ac_fn_cxx_try_compile LINENO
2027 # ----------------------------
2028 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_cxx_try_compile
()
2031 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2032 rm -f conftest.
$ac_objext
2033 if { { ac_try
="$ac_compile"
2035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040 (eval "$ac_compile") 2>conftest.err
2042 if test -s conftest.err; then
2043 grep -v '^ *+' conftest.err >conftest.er1
2044 cat conftest.er1 >&5
2045 mv -f conftest.er1 conftest.err
2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048 test $ac_status = 0; } && {
2049 test -z "$ac_cxx_werror_flag" ||
2050 test ! -s conftest.err
2051 } && test -s conftest.$ac_objext; then :
2054 $as_echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 as_fn_set_status $ac_retval
2062 } # ac_fn_cxx_try_compile
2064 # ac_fn_cxx_try_cpp LINENO
2065 # ------------------------
2066 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2067 ac_fn_cxx_try_cpp ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_cpp conftest.$ac_ext"
2072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2073 *) ac_try_echo
=$ac_try;;
2075 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2079 if test -s conftest.err
; then
2080 grep -v '^ *+' conftest.err
>conftest.er1
2081 cat conftest.er1
>&5
2082 mv -f conftest.er1 conftest.err
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } > conftest.i
&& {
2086 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2087 test ! -s conftest.err
2091 $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.
$ac_ext >&5
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status
$ac_retval
2099 } # ac_fn_cxx_try_cpp
2101 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2102 # ---------------------------------------------------------
2103 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2104 # the include files in INCLUDES and setting the cache variable VAR
2106 ac_fn_cxx_check_header_mongrel
()
2108 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2109 if eval \
${$3+:} false
; then :
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \
${$3+:} false
; then :
2113 $as_echo_n "(cached) " >&6
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2119 # Is the header compilable?
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2121 $as_echo_n "checking $2 usability... " >&6; }
2122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2127 if ac_fn_cxx_try_compile
"$LINENO"; then :
2128 ac_header_compiler
=yes
2130 ac_header_compiler
=no
2132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2134 $as_echo "$ac_header_compiler" >&6; }
2136 # Is the header present?
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2138 $as_echo_n "checking $2 presence... " >&6; }
2139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2143 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2144 ac_header_preproc
=yes
2146 ac_header_preproc
=no
2148 rm -f conftest.err conftest.i conftest.
$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2150 $as_echo "$ac_header_preproc" >&6; }
2152 # So? What about this header?
2153 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2156 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2158 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2162 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2164 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2166 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2168 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \
${$3+:} false
; then :
2176 $as_echo_n "(cached) " >&6
2178 eval "$3=\$ac_header_compiler"
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_cxx_check_header_mongrel
2188 # ac_fn_cxx_try_run LINENO
2189 # ------------------------
2190 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2191 # that executables *can* be run.
2192 ac_fn_cxx_try_run
()
2194 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2195 if { { ac_try
="$ac_link"
2197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202 (eval "$ac_link") 2>&5
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2206 { { case "(($ac_try" in
2207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2208 *) ac_try_echo
=$ac_try;;
2210 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211 $as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_try") 2>&5
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; }; }; then :
2218 $as_echo "$as_me: program exited with status $ac_status" >&5
2219 $as_echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.
$ac_ext >&5
2222 ac_retval
=$ac_status
2224 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status
$ac_retval
2228 } # ac_fn_cxx_try_run
2230 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2231 # ---------------------------------------------------------
2232 # Tests whether HEADER exists and can be compiled using the include files in
2233 # INCLUDES, setting the cache variable VAR accordingly.
2234 ac_fn_cxx_check_header_compile
()
2236 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval \
${$3+:} false
; then :
2240 $as_echo_n "(cached) " >&6
2242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2247 if ac_fn_cxx_try_compile
"$LINENO"; then :
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 } # ac_fn_cxx_check_header_compile
2261 # ac_fn_c_try_cpp LINENO
2262 # ----------------------
2263 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2266 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2267 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2276 if test -s conftest.err; then
2277 grep -v '^ *+' conftest.err >conftest.er1
2278 cat conftest.er1 >&5
2279 mv -f conftest.er1 conftest.err
2281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; } > conftest.i && {
2283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2284 test ! -s conftest.err
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2298 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2299 # ----------------------------------------------
2300 # Tries to find the compile-time value of EXPR in a program that includes
2301 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2303 ac_fn_cxx_compute_int ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 if test "$cross_compiling" = yes; then
2307 # Depending upon the size, compute the lo and hi bounds.
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2314 static int test_array [1 - 2 * !(($2) >= 0)];
2316 return test_array [0];
2322 if ac_fn_cxx_try_compile "$LINENO"; then :
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2331 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2333 return test_array [0];
2339 if ac_fn_cxx_try_compile "$LINENO"; then :
2340 ac_hi=$ac_mid; break
2342 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2343 if test $ac_lo -le $ac_mid; then
2347 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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_lo=$ac_mid; break
2386 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2387 if test $ac_mid -le $ac_hi; then
2391 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 # Binary search between lo and hi bounds.
2402 while test "x$ac_lo" != "x$ac_hi"; do
2403 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2410 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2412 return test_array [0];
2418 if ac_fn_cxx_try_compile "$LINENO"; then :
2421 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2433 static long int longval () { return $2; }
2434 static unsigned long int ulongval () { return $2; }
2441 FILE *f = fopen ("conftest.val", "w");
2446 long int i = longval ();
2449 fprintf (f, "%ld", i);
2453 unsigned long int i = ulongval ();
2456 fprintf (f, "%lu", i);
2458 /* Do not output a trailing newline, as this causes \r\n confusion
2459 on some platforms. */
2460 return ferror (f) || fclose (f) != 0;
2466 if ac_fn_cxx_try_run "$LINENO"; then :
2467 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2472 conftest.$ac_objext conftest.beam conftest.$ac_ext
2476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2477 as_fn_set_status $ac_retval
2479 } # ac_fn_cxx_compute_int
2481 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2482 # ---------------------------------------------
2483 # Tests whether TYPE exists after having included INCLUDES, setting cache
2484 # variable VAR accordingly.
2485 ac_fn_cxx_check_type ()
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489 $as_echo_n "checking for $2... " >&6; }
2490 if eval \${$3+:} false; then :
2491 $as_echo_n "(cached) " >&6
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2506 if ac_fn_cxx_try_compile "$LINENO"; then :
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533 } # ac_fn_cxx_check_type
2535 # ac_fn_c_find_intX_t LINENO BITS VAR
2536 # -----------------------------------
2537 # Finds a signed integer type with width BITS, setting cache variable VAR
2539 ac_fn_c_find_intX_t ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2543 $as_echo_n "checking for int$2_t... " >&6; }
2544 if eval \${$3+:} false; then :
2545 $as_echo_n "(cached) " >&6
2548 # Order is important - never check a type that is potentially smaller
2549 # than half of the expected target width.
2550 for ac_type in int$2_t 'int' 'long int' \
2551 'long long int' 'short int' 'signed char'; do
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 $ac_includes_default
2555 enum { N = $2 / 2 - 1 };
2559 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2561 return test_array [0];
2567 if ac_fn_cxx_try_compile "$LINENO"; then :
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 $ac_includes_default
2571 enum { N = $2 / 2 - 1 };
2575 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2576 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2578 return test_array [0];
2584 if ac_fn_cxx_try_compile "$LINENO"; then :
2591 eval "$3=\$ac_type" ;;
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 if eval test \"x\$"$3"\" = x"no"; then :
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2609 } # ac_fn_c_find_intX_t
2611 # ac_fn_cxx_try_link LINENO
2612 # -------------------------
2613 # Try to link conftest.$ac_ext, and return whether this succeeded.
2614 ac_fn_cxx_try_link ()
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 rm -f conftest.$ac_objext conftest$ac_exeext
2618 if { { ac_try="$ac_link"
2620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2621 *) ac_try_echo
=$ac_try;;
2623 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624 $as_echo "$ac_try_echo"; } >&5
2625 (eval "$ac_link") 2>conftest.err
2627 if test -s conftest.err
; then
2628 grep -v '^ *+' conftest.err
>conftest.er1
2629 cat conftest.er1
>&5
2630 mv -f conftest.er1 conftest.err
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; } && {
2634 test -z "$ac_cxx_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest
$ac_exeext && {
2637 test "$cross_compiling" = yes ||
2638 test -x conftest
$ac_exeext
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.
$ac_ext >&5
2647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2649 # interfere with the next link command; also delete a directory that is
2650 # left behind by Apple's compiler. We do this before executing the actions.
2651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 as_fn_set_status
$ac_retval
2655 } # ac_fn_cxx_try_link
2657 # ac_fn_c_find_uintX_t LINENO BITS VAR
2658 # ------------------------------------
2659 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2661 ac_fn_c_find_uintX_t
()
2663 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2665 $as_echo_n "checking for uint$2_t... " >&6; }
2666 if eval \
${$3+:} false
; then :
2667 $as_echo_n "(cached) " >&6
2670 # Order is important - never check a type that is potentially smaller
2671 # than half of the expected target width.
2672 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2673 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2676 $ac_includes_default
2680 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2682 return test_array [0];
2688 if ac_fn_cxx_try_compile
"$LINENO"; then :
2693 eval "$3=\$ac_type" ;;
2696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2697 if eval test \"x\$
"$3"\" = x
"no"; then :
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2709 } # ac_fn_c_find_uintX_t
2711 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2712 # ------------------------------------------------
2713 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2714 ac_fn_cxx_check_header_preproc
()
2716 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2718 $as_echo_n "checking for $2... " >&6; }
2719 if eval \
${$3+:} false
; then :
2720 $as_echo_n "(cached) " >&6
2722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h. */
2726 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2731 rm -f conftest.err conftest.i conftest.
$ac_ext
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2735 $as_echo "$ac_res" >&6; }
2736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2738 } # ac_fn_cxx_check_header_preproc
2740 # ac_fn_cxx_check_func LINENO FUNC VAR
2741 # ------------------------------------
2742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2743 ac_fn_cxx_check_func
()
2745 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if eval \
${$3+:} false
; then :
2749 $as_echo_n "(cached) " >&6
2751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2755 #define $2 innocuous_$2
2757 /* System header to define __stub macros and hopefully few prototypes,
2758 which can conflict with char $2 (); below.
2759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2760 <limits.h> exists even on freestanding compilers. */
2763 # include <limits.h>
2765 # include <assert.h>
2770 /* Override any GCC internal prototype to avoid an error.
2771 Use char because int might match the return type of a GCC
2772 builtin and then its argument prototype would still apply. */
2777 /* The GNU C library defines this for functions which it implements
2778 to always fail with ENOSYS. Some functions are actually named
2779 something starting with __ and the normal name is an alias. */
2780 #if defined __stub_$2 || defined __stub___$2
2792 if ac_fn_cxx_try_link
"$LINENO"; then :
2797 rm -f core conftest.err conftest.
$ac_objext \
2798 conftest
$ac_exeext conftest.
$ac_ext
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2802 $as_echo "$ac_res" >&6; }
2803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805 } # ac_fn_cxx_check_func
2807 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2808 # -----------------------------------------------
2809 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2811 ac_fn_cxx_check_decl
()
2813 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2814 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2815 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2817 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2818 if eval \
${$3+:} false
; then :
2819 $as_echo_n "(cached) " >&6
2821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2827 #ifndef $as_decl_name
2829 (void) $as_decl_use;
2831 (void) $as_decl_name;
2839 if ac_fn_cxx_try_compile
"$LINENO"; then :
2844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2851 } # ac_fn_cxx_check_decl
2853 # ac_fn_c_try_link LINENO
2854 # -----------------------
2855 # Try to link conftest.$ac_ext, and return whether this succeeded.
2858 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2859 rm -f conftest.
$ac_objext conftest
$ac_exeext
2860 if { { ac_try
="$ac_link"
2862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 $as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_link") 2>conftest.err
2869 if test -s conftest.err; then
2870 grep -v '^ *+' conftest.err >conftest.er1
2871 cat conftest.er1 >&5
2872 mv -f conftest.er1 conftest.err
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; } && {
2876 test -z "$ac_c_werror_flag" ||
2877 test ! -s conftest.err
2878 } && test -s conftest$ac_exeext && {
2879 test "$cross_compiling" = yes ||
2880 test -x conftest$ac_exeext
2884 $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2891 # interfere with the next link command; also delete a directory that is
2892 # left behind by Apple's compiler. We do this before executing the actions.
2893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2895 as_fn_set_status $ac_retval
2897 } # ac_fn_c_try_link
2899 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2900 # ----------------------------------------------
2901 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2902 ac_fn_c_check_header_preproc ()
2904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2906 $as_echo_n "checking for $2... " >&6; }
2907 if eval \${$3+:} false; then :
2908 $as_echo_n "(cached) " >&6
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2914 if ac_fn_c_try_cpp "$LINENO"; then :
2919 rm -f conftest.err conftest.i conftest.$ac_ext
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2923 $as_echo "$ac_res" >&6; }
2924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2926 } # ac_fn_c_check_header_preproc
2928 # ac_fn_c_check_func LINENO FUNC VAR
2929 # ----------------------------------
2930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2931 ac_fn_c_check_func ()
2933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2935 $as_echo_n "checking for $2... " >&6; }
2936 if eval \${$3+:} false; then :
2937 $as_echo_n "(cached) " >&6
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2943 #define $2 innocuous_$2
2945 /* System header to define __stub macros and hopefully few prototypes,
2946 which can conflict with char $2 (); below.
2947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2948 <limits.h> exists even on freestanding compilers. */
2951 # include <limits.h>
2953 # include <assert.h>
2958 /* Override any GCC internal prototype to avoid an error.
2959 Use char because int might match the return type of a GCC
2960 builtin and then its argument prototype would still apply. */
2965 /* The GNU C library defines this for functions which it implements
2966 to always fail with ENOSYS. Some functions are actually named
2967 something starting with __ and the normal name is an alias. */
2968 #if defined __stub_$2 || defined __stub___$2
2980 if ac_fn_c_try_link "$LINENO"; then :
2985 rm -f core conftest.err conftest.$ac_objext \
2986 conftest$ac_exeext conftest.$ac_ext
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2990 $as_echo "$ac_res" >&6; }
2991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2993 } # ac_fn_c_check_func
2994 cat >config.log <<_ACEOF
2995 This file contains any messages produced by compilers while
2996 running configure, to aid debugging if configure makes a mistake.
2998 It was created by $as_me, which was
2999 generated by GNU Autoconf 2.69. Invocation command line was
3011 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3012 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3013 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3014 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3015 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3017 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3018 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3020 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3021 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3022 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3023 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3024 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3025 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3026 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 $as_echo "PATH: $as_dir"
3051 # Keep a trace of the command line.
3052 # Strip out --no-create and --no-recursion so they do not pile up.
3053 # Strip out --silent because we don't want to record it for future runs.
3054 # Also quote any args containing shell meta-characters.
3055 # Make two passes to allow for proper duplicate-argument suppression.
3059 ac_must_keep_next=false
3065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3067 | -silent | --silent | --silen | --sile | --sil)
3070 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3075 as_fn_append ac_configure_args1 " '$ac_arg'"
3076 if test $ac_must_keep_next = true; then
3077 ac_must_keep_next=false # Got value, back to normal.
3080 *=* | --config-cache | -C | -disable-* | --disable-* \
3081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3083 | -with-* | --with-* | -without-* | --without-* | --x)
3084 case "$ac_configure_args0 " in
3085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3088 -* ) ac_must_keep_next=true ;;
3091 as_fn_append ac_configure_args " '$ac_arg'"
3096 { ac_configure_args0=; unset ac_configure_args0;}
3097 { ac_configure_args1=; unset ac_configure_args1;}
3099 # When interrupted or exit'd, cleanup temporary files, and complete
3100 # config.log. We remove comments because anyway the quotes in there
3101 # would cause problems or look ugly.
3102 # WARNING: Use '\'' to represent an apostrophe within the trap.
3103 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3104 trap 'exit_status=$?
3105 # Save into config.log some information that might help in debugging.
3109 $as_echo "## ---------------- ##
3110 ## Cache variables. ##
3111 ## ---------------- ##"
3113 # The following way of writing the cache mishandles newlines in values,
3115 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3116 eval ac_val=\$$ac_var
3120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3124 _ | IFS | as_nl) ;; #(
3125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3126 *) { eval $ac_var=; unset $ac_var;} ;;
3131 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3132 *${as_nl}ac_space=\ *)
3134 "s/'\''/'\''\\\\'\'''\''/g;
3135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3145 $as_echo "## ----------------- ##
3146 ## Output variables. ##
3147 ## ----------------- ##"
3149 for ac_var in $ac_subst_vars
3151 eval ac_val=\$$ac_var
3153 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3155 $as_echo "$ac_var='\''$ac_val'\''"
3159 if test -n "$ac_subst_files"; then
3160 $as_echo "## ------------------- ##
3161 ## File substitutions. ##
3162 ## ------------------- ##"
3164 for ac_var in $ac_subst_files
3166 eval ac_val=\$$ac_var
3168 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3170 $as_echo "$ac_var='\''$ac_val'\''"
3175 if test -s confdefs.h; then
3176 $as_echo "## ----------- ##
3183 test "$ac_signal" != 0 &&
3184 $as_echo "$as_me: caught signal $ac_signal"
3185 $as_echo "$as_me: exit $exit_status"
3187 rm -f core *.core core.conftest.* &&
3188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3191 for ac_signal in 1 2 13 15; do
3192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3197 rm -f -r conftest* confdefs.h
3199 $as_echo "/* confdefs.h */" > confdefs.h
3201 # Predefined preprocessor variables.
3203 cat >>confdefs.h <<_ACEOF
3204 #define PACKAGE_NAME "$PACKAGE_NAME"
3207 cat >>confdefs.h <<_ACEOF
3208 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3211 cat >>confdefs.h <<_ACEOF
3212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3215 cat >>confdefs.h <<_ACEOF
3216 #define PACKAGE_STRING "$PACKAGE_STRING"
3219 cat >>confdefs.h <<_ACEOF
3220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3223 cat >>confdefs.h <<_ACEOF
3224 #define PACKAGE_URL "$PACKAGE_URL"
3228 # Let the site file select an alternate cache file if it wants to.
3229 # Prefer an explicitly selected file to automatically selected ones.
3232 if test -n "$CONFIG_SITE"; then
3233 # We do not want a PATH search for config.site.
3234 case $CONFIG_SITE in #((
3235 -*) ac_site_file1=./$CONFIG_SITE;;
3236 */*) ac_site_file1=$CONFIG_SITE;;
3237 *) ac_site_file1=./$CONFIG_SITE;;
3239 elif test "x$prefix" != xNONE; then
3240 ac_site_file1=$prefix/share/config.site
3241 ac_site_file2=$prefix/etc/config.site
3243 ac_site_file1=$ac_default_prefix/share/config.site
3244 ac_site_file2=$ac_default_prefix/etc/config.site
3246 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3248 test "x$ac_site_file" = xNONE && continue
3249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3251 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3252 sed 's/^/| /' "$ac_site_file" >&5
3254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "failed to load site
script $ac_site_file
3257 See \
`config.log' for more details" "$LINENO" 5; }
3261 if test -r "$cache_file"; then
3262 # Some versions of bash will fail to source /dev/null (special files
3263 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3266 $as_echo "$as_me: loading cache $cache_file" >&6;}
3268 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3269 *) . "./$cache_file";;
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3274 $as_echo "$as_me: creating cache $cache_file" >&6;}
3278 # Check that the precious variables saved in the cache have kept the same
3280 ac_cache_corrupted=false
3281 for ac_var in $ac_precious_vars; do
3282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3283 eval ac_new_set=\$ac_env_${ac_var}_set
3284 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3285 eval ac_new_val=\$ac_env_${ac_var}_value
3286 case $ac_old_set,$ac_new_set in
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3289 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3290 ac_cache_corrupted=: ;;
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3293 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3294 ac_cache_corrupted=: ;;
3297 if test "x$ac_old_val" != "x$ac_new_val"; then
3298 # differences in whitespace do not lead to failure.
3299 ac_old_val_w=`echo x
$ac_old_val`
3300 ac_new_val_w=`echo x
$ac_new_val`
3301 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3303 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3304 ac_cache_corrupted=:
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3307 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3308 eval $ac_var=\$ac_old_val
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3311 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3313 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3316 # Pass precious variables to config.status.
3317 if test "$ac_new_set" = set; then
3319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3320 *) ac_arg=$ac_var=$ac_new_val ;;
3322 case " $ac_configure_args " in
3323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3324 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3328 if $ac_cache_corrupted; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3332 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3333 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3335 ## -------------------- ##
3336 ## Main body of script. ##
3337 ## -------------------- ##
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3354 gcc_version=`cat $srcdir/BASE-VER
`
3356 # Determine the host, build, and target systems
3358 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3359 if test -f "$ac_dir/install-sh"; then
3361 ac_install_sh="$ac_aux_dir/install-sh -c"
3363 elif test -f "$ac_dir/install.sh"; then
3365 ac_install_sh="$ac_aux_dir/install.sh -c"
3367 elif test -f "$ac_dir/shtool"; then
3369 ac_install_sh="$ac_aux_dir/shtool install -c"
3373 if test -z "$ac_aux_dir"; then
3374 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3377 # These three variables are undocumented and unsupported,
3378 # and are intended to be withdrawn in a future Autoconf release.
3379 # They can cause serious problems if a builder's source tree is in a directory
3380 # whose full name contains unusual characters.
3381 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3382 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3383 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3386 # Make sure we can run config.sub.
3387 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3388 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3391 $as_echo_n "checking build system type... " >&6; }
3392 if ${ac_cv_build+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 ac_build_alias=$build_alias
3396 test "x$ac_build_alias" = x &&
3397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3398 test "x$ac_build_alias" = x &&
3399 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3401 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3405 $as_echo "$ac_cv_build" >&6; }
3406 case $ac_cv_build in
3408 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3411 ac_save_IFS=$IFS; IFS='-'
3417 # Remember, the first character of IFS is used to create $*,
3418 # except with old shells:
3421 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3425 $as_echo_n "checking host system type... " >&6; }
3426 if ${ac_cv_host+:} false; then :
3427 $as_echo_n "(cached) " >&6
3429 if test "x$host_alias" = x; then
3430 ac_cv_host=$ac_cv_build
3432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3438 $as_echo "$ac_cv_host" >&6; }
3441 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3444 ac_save_IFS=$IFS; IFS='-'
3450 # Remember, the first character of IFS is used to create $*,
3451 # except with old shells:
3454 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3458 $as_echo_n "checking target system type... " >&6; }
3459 if ${ac_cv_target+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 if test "x$target_alias" = x; then
3463 ac_cv_target=$ac_cv_host
3465 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3466 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3471 $as_echo "$ac_cv_target" >&6; }
3472 case $ac_cv_target in
3474 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3476 target=$ac_cv_target
3477 ac_save_IFS=$IFS; IFS='-'
3483 # Remember, the first character of IFS is used to create $*,
3484 # except with old shells:
3487 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3490 # The aliases save the names the user supplied, while $host etc.
3491 # will get canonicalized.
3492 test -n "$target_alias" &&
3493 test "$program_prefix$program_suffix$program_transform_name" = \
3495 program_prefix=${target_alias}-
3497 # Determine the noncanonical host name, for Ada.
3498 case ${build_alias} in
3499 "") build_noncanonical=${build} ;;
3500 *) build_noncanonical=${build_alias} ;;
3503 case ${host_alias} in
3504 "") host_noncanonical=${build_noncanonical} ;;
3505 *) host_noncanonical=${host_alias} ;;
3511 # Determine the noncanonical target name, for directory use.
3512 case ${target_alias} in
3513 "") target_noncanonical=${host_noncanonical} ;;
3514 *) target_noncanonical=${target_alias} ;;
3520 # Used for constructing correct paths for offload compilers.
3521 real_target_noncanonical=${target_noncanonical}
3524 # Determine the target- and build-specific subdirectories
3526 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3527 # have matching libraries, they should use host libraries: Makefile.tpl
3528 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3529 # However, they still use the build modules, because the corresponding
3530 # host modules (e.g. bison) are only built for the host when bootstrap
3532 # - build_subdir is where we find build modules, and never changes.
3533 # - build_libsubdir is where we find build libraries, and can be overridden.
3535 # Prefix 'build-' so this never conflicts with target_subdir.
3536 build_subdir="build-${build_noncanonical}"
3538 # Check whether --with-build-libsubdir was given.
3539 if test "${with_build_libsubdir+set}" = set; then :
3540 withval=$with_build_libsubdir; build_libsubdir="$withval"
3542 build_libsubdir="$build_subdir"
3545 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3546 if ( test $srcdir = . && test -d gcc ) \
3547 || test -d $srcdir/../host-${host_noncanonical}; then
3548 host_subdir="host-${host_noncanonical}"
3553 target_subdir=${target_noncanonical}
3556 # Set program_transform_name
3557 test "$program_prefix" != NONE &&
3558 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3559 # Use a double $ so make ignores it.
3560 test "$program_suffix" != NONE &&
3561 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3562 # Double any \ or $.
3563 # By default was `s
,x
,x
', remove it if useless.
3564 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3568 # Check for bogus environment variables.
3569 # Test if LIBRARY_PATH contains the notation for the current directory
3570 # since this would lead to problems installing/building glibc.
3571 # LIBRARY_PATH contains the current directory if one of the following
3573 # - one of the terminals (":" and ";") is the first or last sign
3574 # - two terminals occur directly after each other
3575 # - the path contains an element with a dot in it
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3577 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3578 case ${LIBRARY_PATH} in
3579 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3580 library_path_setting="contains current directory"
3583 library_path_setting="ok"
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3587 $as_echo "$library_path_setting" >&6; }
3588 if test "$library_path_setting" != "ok"; then
3590 *** LIBRARY_PATH shouldn't contain the current directory when
3591 *** building gcc. Please change the environment variable
3592 *** and run configure again.
" "$LINENO" 5
3595 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3596 # since this would lead to problems installing/building glibc.
3597 # GCC_EXEC_PREFIX contains the current directory if one of the following
3599 # - one of the terminals (":" and ";") is the first or last sign
3600 # - two terminals occur directly after each other
3601 # - the path contains an element with a dot in it
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3603 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3604 case ${GCC_EXEC_PREFIX} in
3605 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3606 gcc_exec_prefix_setting="contains current directory
"
3609 gcc_exec_prefix_setting="ok
"
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3613 $as_echo "$gcc_exec_prefix_setting" >&6; }
3614 if test "$gcc_exec_prefix_setting" != "ok
"; then
3616 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3617 *** building gcc. Please change the environment variable
3618 *** and run configure again." "$LINENO" 5
3625 # Specify the local prefix
3628 # Check whether --with-local-prefix was given.
3629 if test "${with_local_prefix+set}" = set; then :
3630 withval=$with_local_prefix; case "${withval}" in
3631 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3633 *) local_prefix=$with_local_prefix ;;
3638 # Default local prefix if it is empty
3639 if test x$local_prefix = x; then
3640 local_prefix=/usr/local
3644 # Check whether --with-native-system-header-dir was given.
3645 if test "${with_native_system_header_dir+set}" = set; then :
3646 withval=$with_native_system_header_dir;
3647 case ${with_native_system_header_dir} in
3648 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3649 /* | [A-Za-z]:[\\/]*) ;;
3650 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3652 configured_native_system_header_dir="${withval}"
3655 configured_native_system_header_dir=
3660 # Check whether --with-build-sysroot was given.
3661 if test "${with_build_sysroot+set}" = set; then :
3662 withval=$with_build_sysroot; if test x"$withval" != x ; then
3663 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3666 SYSROOT_CFLAGS_FOR_TARGET=
3671 if test "x$prefix" = xNONE; then
3672 test_prefix=/usr/local
3676 if test "x$exec_prefix" = xNONE; then
3677 test_exec_prefix=$test_prefix
3679 test_exec_prefix=$exec_prefix
3683 # Check whether --with-sysroot was given.
3684 if test "${with_sysroot+set}" = set; then :
3685 withval=$with_sysroot;
3686 case ${with_sysroot} in
3688 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3690 case ${with_sysroot} in
3691 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3692 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3695 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3696 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3698 case ${TARGET_SYSTEM_ROOT} in
3699 "${test_prefix}"|"${test_prefix}/"*|\
3700 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3701 '${prefix}'|'${prefix}/'*|\
3702 '${exec_prefix}'|'${exec_prefix}/'*)
3703 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3704 TARGET_SYSTEM_ROOT_DEFINE="$t"
3711 TARGET_SYSTEM_ROOT_DEFINE=
3712 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3720 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3721 # passed in by the toplevel make and thus we'd get different behavior
3722 # depending on where we built the sources.
3723 gcc_gxx_include_dir
=
3724 # Specify the g++ header file directory
3726 # Check whether --with-gxx-include-dir was given.
3727 if test "${with_gxx_include_dir+set}" = set; then :
3728 withval
=$with_gxx_include_dir; case "${withval}" in
3729 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3731 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3736 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3737 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3738 # relative to the sysroot.
3739 gcc_gxx_include_dir_add_sysroot
=0
3741 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3742 if test x
${gcc_gxx_include_dir} = x
; then
3743 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3744 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3746 libstdcxx_incdir
='include/c++/$(version)'
3747 if test x
$host != x
$target; then
3748 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3750 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3752 elif test "${with_sysroot+set}" = set; then
3753 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3754 if test "${gcc_gxx_without_sysroot}"; then
3755 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3756 gcc_gxx_include_dir_add_sysroot
=1
3760 # Configuration for an alternate set of C++ headers.
3761 gcc_gxx_libcxx_include_dir
=
3762 # Specify the alternate g++ header file directory
3764 # Check whether --with-gxx-libcxx-include-dir was given.
3765 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3766 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3767 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3769 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3774 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3775 # check to see if the latter starts with the former and, upon success, compute
3776 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3777 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3779 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3781 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3784 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3787 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3788 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3789 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3790 gcc_gxx_libcxx_include_dir
='${libsubdir}/libc++_include/c++/v1'
3792 libcxx_incdir
='libc++_include/c++/$(version)/v1'
3793 if test x
$host != x
$target; then
3794 libcxx_incdir
="$target_alias/$libcxx_incdir"
3796 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3798 elif test "${with_sysroot+set}" = set; then
3799 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3800 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3801 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3802 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3807 # Check whether --with-cpp_install_dir was given.
3808 if test "${with_cpp_install_dir+set}" = set; then :
3809 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3810 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3811 elif test x
$withval != xno
; then
3812 cpp_install_dir
=$withval
3817 # We would like to our source tree to be readonly. However when releases or
3818 # pre-releases are generated, the flex/bison generated files as well as the
3819 # various formats of manuals need to be included along with the rest of the
3820 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3824 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3825 # Check whether --enable-generated-files-in-srcdir was given.
3826 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3827 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3829 generated_files_in_srcdir
=no
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3834 $as_echo "$generated_files_in_srcdir" >&6; }
3836 if test "$generated_files_in_srcdir" = "yes"; then
3843 # -------------------
3844 # Find default linker
3845 # -------------------
3849 # Check whether --with-gnu-ld was given.
3850 if test "${with_gnu_ld+set}" = set; then :
3851 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3859 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3860 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3868 # With pre-defined ld
3870 # Check whether --with-ld was given.
3871 if test "${with_ld+set}" = set; then :
3872 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3875 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3876 if test ! -x "$DEFAULT_LINKER"; then
3877 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3878 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3880 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3884 cat >>confdefs.h
<<_ACEOF
3885 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3891 $as_echo_n "checking whether a default linker was specified... " >&6; }
3892 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3893 if test x
"$gnu_ld_flag" = x
"no"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3895 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3898 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3905 # With demangler in GNU ld
3907 # Check whether --with-demangler-in-ld was given.
3908 if test "${with_demangler_in_ld+set}" = set; then :
3909 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3915 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3917 # Check whether --with-dsymutil was given.
3918 if test "${with_dsymutil+set}" = set; then :
3919 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3924 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3925 if test ! -x "$DEFAULT_DSYMUTIL"; then
3926 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3928 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3933 cat >>confdefs.h
<<_ACEOF
3934 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3940 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3941 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3943 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3949 # ----------------------
3950 # Find default assembler
3951 # ----------------------
3955 # Check whether --with-gnu-as was given.
3956 if test "${with_gnu_as+set}" = set; then :
3957 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3964 # Check whether --with-as was given.
3965 if test "${with_as+set}" = set; then :
3966 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3969 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3970 if test ! -x "$DEFAULT_ASSEMBLER"; then
3971 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3972 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3976 cat >>confdefs.h
<<_ACEOF
3977 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3983 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3984 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3985 if test x
"$gas_flag" = x
"no"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3987 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3990 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
4001 # If a non-executable a.out is present (e.g. created by GNU as above even if
4002 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4003 # file, even when creating an executable, so an execution test fails.
4004 # Remove possible default executable files to avoid this.
4006 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4007 # Autoconf includes it.
4008 rm -f a.out a.exe b.out
4010 # Find the native compiler
4012 ac_cpp
='$CPP $CPPFLAGS'
4013 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4016 if test -n "$ac_tool_prefix"; then
4017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4018 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if ${ac_cv_prog_CC+:} false
; then :
4022 $as_echo_n "(cached) " >&6
4024 if test -n "$CC"; then
4025 ac_cv_prog_CC
="$CC" # Let the user override the test.
4027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4031 test -z "$as_dir" && as_dir
=.
4032 for ac_exec_ext
in '' $ac_executable_extensions; do
4033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 if test -n "$CC"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4047 $as_echo "$CC" >&6; }
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4055 if test -z "$ac_cv_prog_CC"; then
4057 # Extract the first word of "gcc", so it can be a program name with args.
4058 set dummy gcc
; ac_word
=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4062 $as_echo_n "(cached) " >&6
4064 if test -n "$ac_ct_CC"; then
4065 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4071 test -z "$as_dir" && as_dir
=.
4072 for ac_exec_ext
in '' $ac_executable_extensions; do
4073 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_ac_ct_CC
="gcc"
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4085 if test -n "$ac_ct_CC"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4087 $as_echo "$ac_ct_CC" >&6; }
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4093 if test "x$ac_ct_CC" = x
; then
4096 case $cross_compiling:$ac_tool_warned in
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100 ac_tool_warned
=yes ;;
4108 if test -z "$CC"; then
4109 if test -n "$ac_tool_prefix"; then
4110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4111 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_CC+:} false
; then :
4115 $as_echo_n "(cached) " >&6
4117 if test -n "$CC"; then
4118 ac_cv_prog_CC
="$CC" # Let the user override the test.
4120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir
=.
4125 for ac_exec_ext
in '' $ac_executable_extensions; do
4126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 if test -n "$CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4140 $as_echo "$CC" >&6; }
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4149 if test -z "$CC"; then
4150 # Extract the first word of "cc", so it can be a program name with args.
4151 set dummy cc
; ac_word
=$2
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153 $as_echo_n "checking for $ac_word... " >&6; }
4154 if ${ac_cv_prog_CC+:} false
; then :
4155 $as_echo_n "(cached) " >&6
4157 if test -n "$CC"; then
4158 ac_cv_prog_CC
="$CC" # Let the user override the test.
4161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4165 test -z "$as_dir" && as_dir
=.
4166 for ac_exec_ext
in '' $ac_executable_extensions; do
4167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4169 ac_prog_rejected
=yes
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 if test $ac_prog_rejected = yes; then
4181 # We found a bogon in the path, so make sure we never use it.
4182 set dummy
$ac_cv_prog_CC
4184 if test $# != 0; then
4185 # We chose a different compiler from the bogus one.
4186 # However, it has the same basename, so the bogon will be chosen
4187 # first if we set CC to just the basename; use the full file name.
4189 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4205 if test -z "$CC"; then
4206 if test -n "$ac_tool_prefix"; then
4207 for ac_prog
in cl.exe
4209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4210 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_CC+:} false
; then :
4214 $as_echo_n "(cached) " >&6
4216 if test -n "$CC"; then
4217 ac_cv_prog_CC
="$CC" # Let the user override the test.
4219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir
=.
4224 for ac_exec_ext
in '' $ac_executable_extensions; do
4225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 if test -n "$CC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4239 $as_echo "$CC" >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4246 test -n "$CC" && break
4249 if test -z "$CC"; then
4251 for ac_prog
in cl.exe
4253 # Extract the first word of "$ac_prog", so it can be a program name with args.
4254 set dummy
$ac_prog; ac_word
=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4258 $as_echo_n "(cached) " >&6
4260 if test -n "$ac_ct_CC"; then
4261 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4267 test -z "$as_dir" && as_dir
=.
4268 for ac_exec_ext
in '' $ac_executable_extensions; do
4269 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4270 ac_cv_prog_ac_ct_CC
="$ac_prog"
4271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4281 if test -n "$ac_ct_CC"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4283 $as_echo "$ac_ct_CC" >&6; }
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4290 test -n "$ac_ct_CC" && break
4293 if test "x$ac_ct_CC" = x
; then
4296 case $cross_compiling:$ac_tool_warned in
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4300 ac_tool_warned
=yes ;;
4309 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4311 as_fn_error $?
"no acceptable C compiler found in \$PATH
4312 See \`config.log' for more details" "$LINENO" 5; }
4314 # Provide some information about the compiler.
4315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4318 for ac_option
in --version -v -V -qversion; do
4319 { { ac_try
="$ac_compiler $ac_option >&5"
4321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4328 if test -s conftest.err; then
4330 ... rest of stderr output deleted ...
4331 10q' conftest.err >conftest.er1
4332 cat conftest.er1 >&5
4334 rm -f conftest.er1 conftest.err
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; }
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4350 ac_clean_files_save=$ac_clean_files
4351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4352 # Try to create an executable without -o first, disregard a.out.
4353 # It will help us diagnose broken compilers, and finding out an intuition
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4356 $as_echo_n "checking whether the C compiler works... " >&6; }
4357 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4359 # The possible output files:
4360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4363 for ac_file in $ac_files
4366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4372 if { { ac_try="$ac_link_default"
4374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4375 *) ac_try_echo
=$ac_try;;
4377 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_link_default") 2>&5
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }; then :
4383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4386 # so that the user can short-circuit this test for compilers unknown to
4388 for ac_file
in $ac_files ''
4390 test -f "$ac_file" ||
continue
4392 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4395 # We found the default executable, but exeext='' is most
4399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4401 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4403 # We set ac_cv_exeext here because the later test for it is not
4404 # safe: cross compilers may not add the suffix if given an `-o'
4405 # argument, so we may need to know it at that point already.
4406 # Even if this section looks crufty: it has the advantage of
4413 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4418 if test -z "$ac_file"; then :
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.
$ac_ext >&5
4424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error
77 "C compiler cannot create executables
4427 See \`config.log' for more details" "$LINENO" 5; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4430 $as_echo "yes" >&6; }
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4433 $as_echo_n "checking for C compiler default output file name... " >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4435 $as_echo "$ac_file" >&6; }
4436 ac_exeext
=$ac_cv_exeext
4438 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4439 ac_clean_files
=$ac_clean_files_save
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4441 $as_echo_n "checking for suffix of executables... " >&6; }
4442 if { { ac_try
="$ac_link"
4444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449 (eval "$ac_link") 2>&5
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; }; then :
4453 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4454 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4455 # work properly (i.e., refer to `conftest.exe'), while it won't with
4457 for ac_file
in conftest.exe conftest conftest.
*; do
4458 test -f "$ac_file" ||
continue
4460 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4461 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4470 See \`config.log' for more details" "$LINENO" 5; }
4472 rm -f conftest conftest
$ac_cv_exeext
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4474 $as_echo "$ac_cv_exeext" >&6; }
4476 rm -f conftest.
$ac_ext
4477 EXEEXT
=$ac_cv_exeext
4479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4485 FILE *f = fopen ("conftest.out", "w");
4486 return ferror (f) || fclose (f) != 0;
4492 ac_clean_files
="$ac_clean_files conftest.out"
4493 # Check that the compiler produces executables we can run. If not, either
4494 # the compiler is broken, or we cross compile.
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4496 $as_echo_n "checking whether we are cross compiling... " >&6; }
4497 if test "$cross_compiling" != yes; then
4498 { { ac_try
="$ac_link"
4500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_link") 2>&5
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }
4509 if { ac_try='./conftest$ac_cv_exeext'
4510 { { case "(($ac_try" in
4511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4512 *) ac_try_echo
=$ac_try;;
4514 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_try") 2>&5
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; }; then
4522 if test "$cross_compiling" = maybe
; then
4525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4527 as_fn_error $?
"cannot run C compiled programs.
4528 If you meant to cross compile, use \`--host'.
4529 See \`config.log' for more details" "$LINENO" 5; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4534 $as_echo "$cross_compiling" >&6; }
4536 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4537 ac_clean_files
=$ac_clean_files_save
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4539 $as_echo_n "checking for suffix of object files... " >&6; }
4540 if ${ac_cv_objext+:} false
; then :
4541 $as_echo_n "(cached) " >&6
4543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4554 rm -f conftest.o conftest.obj
4555 if { { ac_try
="$ac_compile"
4557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4561 $as_echo "$ac_try_echo"; } >&5
4562 (eval "$ac_compile") 2>&5
4564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565 test $ac_status = 0; }; then :
4566 for ac_file in conftest.o conftest.obj conftest.*; do
4567 test -f "$ac_file" || continue;
4569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4575 $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4581 See \
`config.log' for more details" "$LINENO" 5; }
4583 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4586 $as_echo "$ac_cv_objext" >&6; }
4587 OBJEXT=$ac_cv_objext
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4590 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4591 if ${ac_cv_c_compiler_gnu+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4608 if ac_fn_c_try_compile "$LINENO"; then :
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4618 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4619 if test $ac_compiler_gnu = yes; then
4624 ac_test_CFLAGS=${CFLAGS+set}
4625 ac_save_CFLAGS=$CFLAGS
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4627 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4628 if ${ac_cv_prog_cc_g+:} false; then :
4629 $as_echo_n "(cached) " >&6
4631 ac_save_c_werror_flag=$ac_c_werror_flag
4632 ac_c_werror_flag=yes
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4646 if ac_fn_c_try_compile "$LINENO"; then :
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4661 if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_c_werror_flag=$ac_save_c_werror_flag
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4677 if ac_fn_c_try_compile "$LINENO"; then :
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 ac_c_werror_flag=$ac_save_c_werror_flag
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4688 $as_echo "$ac_cv_prog_cc_g" >&6; }
4689 if test "$ac_test_CFLAGS" = set; then
4690 CFLAGS=$ac_save_CFLAGS
4691 elif test $ac_cv_prog_cc_g = yes; then
4692 if test "$GCC" = yes; then
4698 if test "$GCC" = yes; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4705 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4706 if ${ac_cv_prog_cc_c89+:} false; then :
4707 $as_echo_n "(cached) " >&6
4709 ac_cv_prog_cc_c89=no
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4717 struct buf { int x; };
4718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4719 static char *e (p, i)
4725 static char *f (char * (*g) (char **, int), char **p, ...)
4730 s = g (p, va_arg (v,int));
4735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4736 function prototypes and stuff, but not '\xHH' hex character constants.
4737 These don't provoke an error unfortunately, instead are silently treated
4738 as 'x'. The following induces an error, until -std is added to get
4739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4740 array size at least. It's necessary to write '\x00'==0 to get something
4741 that's true only with -std. */
4742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4745 inside strings and character constants. */
4747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4749 int test (int i, double x);
4750 struct s1 {int (*f) (int a);};
4751 struct s2 {int (*f) (double a);};
4752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4766 CC="$ac_save_CC $ac_arg"
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_prog_cc_c89=$ac_arg
4770 rm -f core conftest.err conftest.$ac_objext
4771 test "x$ac_cv_prog_cc_c89" != "xno" && break
4773 rm -f conftest.$ac_ext
4778 case "x$ac_cv_prog_cc_c89" in
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4781 $as_echo "none needed" >&6; } ;;
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4784 $as_echo "unsupported" >&6; } ;;
4786 CC="$CC $ac_cv_prog_cc_c89"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4790 if test "x$ac_cv_prog_cc_c89" != xno; then :
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801 ac_cpp='$CXXCPP $CPPFLAGS'
4802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4805 if test -z "$CXX"; then
4806 if test -n "$CCC"; then
4809 if test -n "$ac_tool_prefix"; then
4810 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if ${ac_cv_prog_CXX+:} false; then :
4817 $as_echo_n "(cached) " >&6
4819 if test -n "$CXX"; then
4820 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 if test -n "$CXX"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4842 $as_echo "$CXX" >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4849 test -n "$CXX" && break
4852 if test -z "$CXX"; then
4854 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -n "$ac_ct_CXX"; then
4864 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_ac_ct_CXX="$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4884 if test -n "$ac_ct_CXX"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4886 $as_echo "$ac_ct_CXX" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 test -n "$ac_ct_CXX" && break
4896 if test "x$ac_ct_CXX" = x; then
4899 case $cross_compiling:$ac_tool_warned in
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4911 # Provide some information about the compiler.
4912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4915 for ac_option in --version -v -V -qversion; do
4916 { { ac_try="$ac_compiler $ac_option >&5"
4918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4919 *) ac_try_echo
=$ac_try;;
4921 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4922 $as_echo "$ac_try_echo"; } >&5
4923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4925 if test -s conftest.err
; then
4927 ... rest of stderr output deleted ...
4928 10q' conftest.err
>conftest.er1
4929 cat conftest.er1
>&5
4931 rm -f conftest.er1 conftest.err
4932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4933 test $ac_status = 0; }
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4937 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4938 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4939 $as_echo_n "(cached) " >&6
4941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4955 if ac_fn_cxx_try_compile
"$LINENO"; then :
4960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4961 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4965 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4966 if test $ac_compiler_gnu = yes; then
4971 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4972 ac_save_CXXFLAGS
=$CXXFLAGS
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4974 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4975 if ${ac_cv_prog_cxx_g+:} false
; then :
4976 $as_echo_n "(cached) " >&6
4978 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4979 ac_cxx_werror_flag
=yes
4982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4993 if ac_fn_cxx_try_compile
"$LINENO"; then :
4994 ac_cv_prog_cxx_g
=yes
4997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5008 if ac_fn_cxx_try_compile
"$LINENO"; then :
5011 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5024 if ac_fn_cxx_try_compile
"$LINENO"; then :
5025 ac_cv_prog_cxx_g
=yes
5027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5032 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5035 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5036 if test "$ac_test_CXXFLAGS" = set; then
5037 CXXFLAGS
=$ac_save_CXXFLAGS
5038 elif test $ac_cv_prog_cxx_g = yes; then
5039 if test "$GXX" = yes; then
5045 if test "$GXX" = yes; then
5052 ac_cpp
='$CPP $CPPFLAGS'
5053 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5060 if test -n "$ac_tool_prefix"; then
5061 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5062 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_GNATBIND+:} false
; then :
5066 $as_echo_n "(cached) " >&6
5068 if test -n "$GNATBIND"; then
5069 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir
=.
5076 for ac_exec_ext
in '' $ac_executable_extensions; do
5077 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 GNATBIND
=$ac_cv_prog_GNATBIND
5089 if test -n "$GNATBIND"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5091 $as_echo "$GNATBIND" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5099 if test -z "$ac_cv_prog_GNATBIND"; then
5100 ac_ct_GNATBIND
=$GNATBIND
5101 # Extract the first word of "gnatbind", so it can be a program name with args.
5102 set dummy gnatbind
; ac_word
=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5106 $as_echo_n "(cached) " >&6
5108 if test -n "$ac_ct_GNATBIND"; then
5109 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir
=.
5116 for ac_exec_ext
in '' $ac_executable_extensions; do
5117 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5129 if test -n "$ac_ct_GNATBIND"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5131 $as_echo "$ac_ct_GNATBIND" >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5137 if test "x$ac_ct_GNATBIND" = x
; then
5140 case $cross_compiling:$ac_tool_warned in
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144 ac_tool_warned
=yes ;;
5146 GNATBIND
=$ac_ct_GNATBIND
5149 GNATBIND
="$ac_cv_prog_GNATBIND"
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5154 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5158 $as_echo_n "(cached) " >&6
5160 if test -n "$GNATMAKE"; then
5161 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir
=.
5168 for ac_exec_ext
in '' $ac_executable_extensions; do
5169 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 GNATMAKE
=$ac_cv_prog_GNATMAKE
5181 if test -n "$GNATMAKE"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5183 $as_echo "$GNATMAKE" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5191 if test -z "$ac_cv_prog_GNATMAKE"; then
5192 ac_ct_GNATMAKE
=$GNATMAKE
5193 # Extract the first word of "gnatmake", so it can be a program name with args.
5194 set dummy gnatmake
; ac_word
=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5198 $as_echo_n "(cached) " >&6
5200 if test -n "$ac_ct_GNATMAKE"; then
5201 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir
=.
5208 for ac_exec_ext
in '' $ac_executable_extensions; do
5209 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5221 if test -n "$ac_ct_GNATMAKE"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5223 $as_echo "$ac_ct_GNATMAKE" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5229 if test "x$ac_ct_GNATMAKE" = x
; then
5232 case $cross_compiling:$ac_tool_warned in
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned
=yes ;;
5238 GNATMAKE
=$ac_ct_GNATMAKE
5241 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5245 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5246 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5247 $as_echo_n "(cached) " >&6
5249 cat >conftest.adb
<<EOF
5250 pragma Warnings (Off);
5252 pragma Warnings (On);
5253 use type System.CRTL.int64;
5254 procedure conftest is begin null; end conftest;
5256 acx_cv_cc_gcc_supports_ada
=no
5257 # There is a bug in old released versions of GCC which causes the
5258 # driver to exit successfully when the appropriate language module
5259 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5260 # Therefore we must check for the error message as well as an
5261 # unsuccessful exit.
5262 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5263 # given a .adb file, but produce no object file. So we must check
5264 # if an object file was really produced to guard against this.
5265 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5266 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5267 acx_cv_cc_gcc_supports_ada
=yes
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5272 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5274 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5284 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_GDC+:} false
; then :
5288 $as_echo_n "(cached) " >&6
5290 if test -n "$GDC"; then
5291 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir
=.
5298 for ac_exec_ext
in '' $ac_executable_extensions; do
5299 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 if test -n "$GDC"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5313 $as_echo "$GDC" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5321 if test -z "$ac_cv_prog_GDC"; then
5323 # Extract the first word of "gdc", so it can be a program name with args.
5324 set dummy gdc
; ac_word
=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5328 $as_echo_n "(cached) " >&6
5330 if test -n "$ac_ct_GDC"; then
5331 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5337 test -z "$as_dir" && as_dir
=.
5338 for ac_exec_ext
in '' $ac_executable_extensions; do
5339 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_ac_ct_GDC
="gdc"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5351 if test -n "$ac_ct_GDC"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5353 $as_echo "$ac_ct_GDC" >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5359 if test "x$ac_ct_GDC" = x
; then
5362 case $cross_compiling:$ac_tool_warned in
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned
=yes ;;
5371 GDC
="$ac_cv_prog_GDC"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5375 $as_echo_n "checking whether the D compiler works... " >&6; }
5376 if ${acx_cv_d_compiler_works+:} false
; then :
5377 $as_echo_n "(cached) " >&6
5379 cat >conftest.d
<<EOF
5380 module conftest; int main() { return 0; }
5382 acx_cv_d_compiler_works
=no
5383 if test "x$GDC" != xno
; then
5384 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5385 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5386 acx_cv_d_compiler_works
=yes
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5392 $as_echo "$acx_cv_d_compiler_works" >&6; }
5393 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5400 # Do configure tests with the C++ compiler, since that's what we build with.
5402 ac_cpp
='$CXXCPP $CPPFLAGS'
5403 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5408 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5409 # optimizations to be activated explicitly by the toplevel.
5411 */prev-gcc
/xgcc
*) ;;
5412 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5413 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5419 # Determine PICFLAG for target gnatlib.
5425 # PIC is the default on some targets or must not be used.
5427 # For darwin, common symbols are not allowed in MH_DYLIB files
5429 # If we are using a compiler supporting mdynamic-no-pic
5430 # and the option has been tested as safe to add, then cancel
5431 # it here, since the code generated is incompatible with shared
5433 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5434 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5438 # PIC is the default.
5441 # PIC is the default for 64-bit PA HP-UX.
5443 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5445 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5447 i
[34567]86-*-interix[3-9]*)
5448 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5449 # Instead, we relocate shared libraries at runtime.
5451 i
[34567]86-*-nto-qnx*)
5452 # QNX uses GNU C++, but need to define -shared option too, otherwise
5454 PICFLAG_FOR_TARGET
='-fPIC -shared'
5456 i
[34567]86-pc-msdosdjgpp*)
5457 # DJGPP does not support shared libraries at all.
5460 # On IA64 HP-UX, PIC is the default but the pic flag
5461 # sets the default TLS model and affects inlining.
5462 PICFLAG_FOR_TARGET
=-fPIC
5465 PICFLAG_FOR_TARGET
=-fpic
5468 # PIC is the default.
5470 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5471 # All AIX code is PIC.
5474 # Some targets support both -fPIC and -fpic, but prefer the latter.
5476 i
[34567]86-*-* | x86_64-
*-*)
5477 PICFLAG_FOR_TARGET
=-fpic
5479 # FIXME: Override -fPIC default in libgcc only?
5480 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5481 PICFLAG_FOR_TARGET
=-fpic
5483 # FIXME: Simplify to sh*-*-netbsd*?
5484 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5485 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5486 PICFLAG_FOR_TARGET
=-fpic
5488 # Default to -fPIC unless specified otherwise.
5490 PICFLAG_FOR_TARGET
=-fPIC
5494 # If the user explicitly uses -fpic/-fPIC, keep that.
5495 case "${CFLAGS_FOR_TARGET}" in
5497 PICFLAG_FOR_TARGET
=-fpic
5500 PICFLAG_FOR_TARGET
=-fPIC
5506 # -------------------------
5507 # Check C compiler features
5508 # -------------------------
5512 ac_cpp
='$CXXCPP $CPPFLAGS'
5513 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5517 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5518 if test -z "$CXXCPP"; then
5519 if ${ac_cv_prog_CXXCPP+:} false
; then :
5520 $as_echo_n "(cached) " >&6
5522 # Double quotes because CXXCPP needs to be expanded
5523 for CXXCPP
in "$CXX -E" "/lib/cpp"
5526 for ac_cxx_preproc_warn_flag
in '' yes
5528 # Use a header file that comes with gcc, so configuring glibc
5529 # with a fresh cross-compiler works.
5530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5531 # <limits.h> exists even on freestanding compilers.
5532 # On the NeXT, cc -E runs the code through the compiler's parser,
5533 # not just through cpp. "Syntax error" is here to catch this case.
5534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5537 # include <limits.h>
5539 # include <assert.h>
5543 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5546 # Broken: fails on valid input.
5549 rm -f conftest.err conftest.i conftest.
$ac_ext
5551 # OK, works on sane cases. Now check whether nonexistent headers
5552 # can be detected and how.
5553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555 #include <ac_nonexistent.h>
5557 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5558 # Broken: success on invalid input.
5561 # Passes both tests.
5565 rm -f conftest.err conftest.i conftest.
$ac_ext
5568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5569 rm -f conftest.i conftest.err conftest.
$ac_ext
5570 if $ac_preproc_ok; then :
5575 ac_cv_prog_CXXCPP
=$CXXCPP
5578 CXXCPP
=$ac_cv_prog_CXXCPP
5580 ac_cv_prog_CXXCPP
=$CXXCPP
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5583 $as_echo "$CXXCPP" >&6; }
5585 for ac_cxx_preproc_warn_flag
in '' yes
5587 # Use a header file that comes with gcc, so configuring glibc
5588 # with a fresh cross-compiler works.
5589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5590 # <limits.h> exists even on freestanding compilers.
5591 # On the NeXT, cc -E runs the code through the compiler's parser,
5592 # not just through cpp. "Syntax error" is here to catch this case.
5593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5596 # include <limits.h>
5598 # include <assert.h>
5602 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5605 # Broken: fails on valid input.
5608 rm -f conftest.err conftest.i conftest.
$ac_ext
5610 # OK, works on sane cases. Now check whether nonexistent headers
5611 # can be detected and how.
5612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 #include <ac_nonexistent.h>
5616 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5617 # Broken: success on invalid input.
5620 # Passes both tests.
5624 rm -f conftest.err conftest.i conftest.
$ac_ext
5627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5628 rm -f conftest.i conftest.err conftest.
$ac_ext
5629 if $ac_preproc_ok; then :
5632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5634 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5635 See \`config.log' for more details" "$LINENO" 5; }
5639 ac_cpp
='$CXXCPP $CPPFLAGS'
5640 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5641 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5642 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5646 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5647 if ${ac_cv_path_GREP+:} false
; then :
5648 $as_echo_n "(cached) " >&6
5650 if test -z "$GREP"; then
5651 ac_path_GREP_found
=false
5652 # Loop through the user's path and test for each of PROGNAME-LIST
5653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5654 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5657 test -z "$as_dir" && as_dir
=.
5658 for ac_prog
in grep ggrep
; do
5659 for ac_exec_ext
in '' $ac_executable_extensions; do
5660 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5661 as_fn_executable_p
"$ac_path_GREP" ||
continue
5662 # Check for GNU ac_path_GREP and select it if it is found.
5663 # Check for GNU $ac_path_GREP
5664 case `"$ac_path_GREP" --version 2>&1` in
5666 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5669 $as_echo_n 0123456789 >"conftest.in"
5672 cat "conftest.in" "conftest.in" >"conftest.tmp"
5673 mv "conftest.tmp" "conftest.in"
5674 cp "conftest.in" "conftest.nl"
5675 $as_echo 'GREP' >> "conftest.nl"
5676 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5677 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5678 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5679 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5680 # Best one so far, save it but keep looking for a better one
5681 ac_cv_path_GREP
="$ac_path_GREP"
5682 ac_path_GREP_max
=$ac_count
5684 # 10*(2^10) chars as input seems more than enough
5685 test $ac_count -gt 10 && break
5687 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5690 $ac_path_GREP_found && break 3
5695 if test -z "$ac_cv_path_GREP"; then
5696 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5699 ac_cv_path_GREP
=$GREP
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5704 $as_echo "$ac_cv_path_GREP" >&6; }
5705 GREP
="$ac_cv_path_GREP"
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5709 $as_echo_n "checking for egrep... " >&6; }
5710 if ${ac_cv_path_EGREP+:} false
; then :
5711 $as_echo_n "(cached) " >&6
5713 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5714 then ac_cv_path_EGREP
="$GREP -E"
5716 if test -z "$EGREP"; then
5717 ac_path_EGREP_found
=false
5718 # Loop through the user's path and test for each of PROGNAME-LIST
5719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5720 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5723 test -z "$as_dir" && as_dir
=.
5724 for ac_prog
in egrep; do
5725 for ac_exec_ext
in '' $ac_executable_extensions; do
5726 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5727 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5728 # Check for GNU ac_path_EGREP and select it if it is found.
5729 # Check for GNU $ac_path_EGREP
5730 case `"$ac_path_EGREP" --version 2>&1` in
5732 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5735 $as_echo_n 0123456789 >"conftest.in"
5738 cat "conftest.in" "conftest.in" >"conftest.tmp"
5739 mv "conftest.tmp" "conftest.in"
5740 cp "conftest.in" "conftest.nl"
5741 $as_echo 'EGREP' >> "conftest.nl"
5742 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5743 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5744 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5745 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5746 # Best one so far, save it but keep looking for a better one
5747 ac_cv_path_EGREP
="$ac_path_EGREP"
5748 ac_path_EGREP_max
=$ac_count
5750 # 10*(2^10) chars as input seems more than enough
5751 test $ac_count -gt 10 && break
5753 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5756 $ac_path_EGREP_found && break 3
5761 if test -z "$ac_cv_path_EGREP"; then
5762 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5765 ac_cv_path_EGREP
=$EGREP
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5771 $as_echo "$ac_cv_path_EGREP" >&6; }
5772 EGREP
="$ac_cv_path_EGREP"
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5776 $as_echo_n "checking for ANSI C header files... " >&6; }
5777 if ${ac_cv_header_stdc+:} false
; then :
5778 $as_echo_n "(cached) " >&6
5780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5795 if ac_fn_cxx_try_compile
"$LINENO"; then :
5796 ac_cv_header_stdc
=yes
5798 ac_cv_header_stdc
=no
5800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5802 if test $ac_cv_header_stdc = yes; then
5803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5810 $EGREP "memchr" >/dev
/null
2>&1; then :
5813 ac_cv_header_stdc
=no
5819 if test $ac_cv_header_stdc = yes; then
5820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5827 $EGREP "free" >/dev
/null
2>&1; then :
5830 ac_cv_header_stdc
=no
5836 if test $ac_cv_header_stdc = yes; then
5837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5838 if test "$cross_compiling" = yes; then :
5841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5845 #if ((' ' & 0x0FF) == 0x020)
5846 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5847 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5849 # define ISLOWER(c) \
5850 (('a' <= (c) && (c) <= 'i') \
5851 || ('j' <= (c) && (c) <= 'r') \
5852 || ('s' <= (c) && (c) <= 'z'))
5853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5861 for (i = 0; i < 256; i++)
5862 if (XOR (islower (i), ISLOWER (i))
5863 || toupper (i) != TOUPPER (i))
5868 if ac_fn_cxx_try_run
"$LINENO"; then :
5871 ac_cv_header_stdc
=no
5873 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5874 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5880 $as_echo "$ac_cv_header_stdc" >&6; }
5881 if test $ac_cv_header_stdc = yes; then
5883 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5887 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5888 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5889 inttypes.h stdint.h unistd.h
5891 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5892 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5894 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5895 cat >>confdefs.h
<<_ACEOF
5896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5905 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5906 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5913 if test "$MINIX" = yes; then
5915 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5918 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5921 $as_echo "#define _MINIX 1" >>confdefs.h
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5927 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5928 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5929 $as_echo_n "(cached) " >&6
5931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5934 # define __EXTENSIONS__ 1
5935 $ac_includes_default
5944 if ac_fn_cxx_try_compile
"$LINENO"; then :
5945 ac_cv_safe_to_define___extensions__
=yes
5947 ac_cv_safe_to_define___extensions__
=no
5949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5952 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5953 test $ac_cv_safe_to_define___extensions__ = yes &&
5954 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5956 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5958 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5960 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5962 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5967 ac_cpp
='$CPP $CPPFLAGS'
5968 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5969 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5970 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5972 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5973 # On Suns, sometimes $CPP names a directory.
5974 if test -n "$CPP" && test -d "$CPP"; then
5977 if test -z "$CPP"; then
5978 if ${ac_cv_prog_CPP+:} false
; then :
5979 $as_echo_n "(cached) " >&6
5981 # Double quotes because CPP needs to be expanded
5982 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5985 for ac_c_preproc_warn_flag
in '' yes
5987 # Use a header file that comes with gcc, so configuring glibc
5988 # with a fresh cross-compiler works.
5989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5990 # <limits.h> exists even on freestanding compilers.
5991 # On the NeXT, cc -E runs the code through the compiler's parser,
5992 # not just through cpp. "Syntax error" is here to catch this case.
5993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5996 # include <limits.h>
5998 # include <assert.h>
6002 if ac_fn_c_try_cpp
"$LINENO"; then :
6005 # Broken: fails on valid input.
6008 rm -f conftest.err conftest.i conftest.
$ac_ext
6010 # OK, works on sane cases. Now check whether nonexistent headers
6011 # can be detected and how.
6012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <ac_nonexistent.h>
6016 if ac_fn_c_try_cpp
"$LINENO"; then :
6017 # Broken: success on invalid input.
6020 # Passes both tests.
6024 rm -f conftest.err conftest.i conftest.
$ac_ext
6027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6028 rm -f conftest.i conftest.err conftest.
$ac_ext
6029 if $ac_preproc_ok; then :
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6042 $as_echo "$CPP" >&6; }
6044 for ac_c_preproc_warn_flag
in '' yes
6046 # Use a header file that comes with gcc, so configuring glibc
6047 # with a fresh cross-compiler works.
6048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6049 # <limits.h> exists even on freestanding compilers.
6050 # On the NeXT, cc -E runs the code through the compiler's parser,
6051 # not just through cpp. "Syntax error" is here to catch this case.
6052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6055 # include <limits.h>
6057 # include <assert.h>
6061 if ac_fn_c_try_cpp
"$LINENO"; then :
6064 # Broken: fails on valid input.
6067 rm -f conftest.err conftest.i conftest.
$ac_ext
6069 # OK, works on sane cases. Now check whether nonexistent headers
6070 # can be detected and how.
6071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #include <ac_nonexistent.h>
6075 if ac_fn_c_try_cpp
"$LINENO"; then :
6076 # Broken: success on invalid input.
6079 # Passes both tests.
6083 rm -f conftest.err conftest.i conftest.
$ac_ext
6086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6087 rm -f conftest.i conftest.err conftest.
$ac_ext
6088 if $ac_preproc_ok; then :
6091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6093 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6094 See \`config.log' for more details" "$LINENO" 5; }
6098 ac_cpp
='$CXXCPP $CPPFLAGS'
6099 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6100 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6101 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6104 $as_echo_n "checking for inline... " >&6; }
6105 if ${ac_cv_c_inline+:} false
; then :
6106 $as_echo_n "(cached) " >&6
6109 for ac_kw
in inline __inline__ __inline
; do
6110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6114 static $ac_kw foo_t static_foo () {return 0; }
6115 $ac_kw foo_t foo () {return 0; }
6119 if ac_fn_cxx_try_compile
"$LINENO"; then :
6120 ac_cv_c_inline
=$ac_kw
6122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6123 test "$ac_cv_c_inline" != no
&& break
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6128 $as_echo "$ac_cv_c_inline" >&6; }
6130 case $ac_cv_c_inline in
6133 case $ac_cv_c_inline in
6135 *) ac_val
=$ac_cv_c_inline;;
6137 cat >>confdefs.h
<<_ACEOF
6139 #define inline $ac_val
6146 # Check whether --enable-largefile was given.
6147 if test "${enable_largefile+set}" = set; then :
6148 enableval
=$enable_largefile;
6151 if test "$enable_largefile" != no
; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6154 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6155 if ${ac_cv_sys_largefile_CC+:} false
; then :
6156 $as_echo_n "(cached) " >&6
6158 ac_cv_sys_largefile_CC
=no
6159 if test "$GCC" != yes; then
6162 # IRIX 6.2 and later do not support large files by default,
6163 # so use the C compiler's -n32 option if that helps.
6164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 #include <sys/types.h>
6167 /* Check that off_t can represent 2**63 - 1 correctly.
6168 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6169 since some C++ compilers masquerading as C compilers
6170 incorrectly reject 9223372036854775807. */
6171 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6172 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6173 && LARGE_OFF_T % 2147483647 == 1)
6183 if ac_fn_cxx_try_compile
"$LINENO"; then :
6186 rm -f core conftest.err conftest.
$ac_objext
6188 if ac_fn_cxx_try_compile
"$LINENO"; then :
6189 ac_cv_sys_largefile_CC
=' -n32'; break
6191 rm -f core conftest.err conftest.
$ac_objext
6195 rm -f conftest.
$ac_ext
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6199 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6200 if test "$ac_cv_sys_largefile_CC" != no
; then
6201 CC
=$CC$ac_cv_sys_largefile_CC
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6205 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6206 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6207 $as_echo_n "(cached) " >&6
6210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 #include <sys/types.h>
6213 /* Check that off_t can represent 2**63 - 1 correctly.
6214 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6215 since some C++ compilers masquerading as C compilers
6216 incorrectly reject 9223372036854775807. */
6217 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6218 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6219 && LARGE_OFF_T % 2147483647 == 1)
6229 if ac_fn_cxx_try_compile
"$LINENO"; then :
6230 ac_cv_sys_file_offset_bits
=no
; break
6232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235 #define _FILE_OFFSET_BITS 64
6236 #include <sys/types.h>
6237 /* Check that off_t can represent 2**63 - 1 correctly.
6238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6239 since some C++ compilers masquerading as C compilers
6240 incorrectly reject 9223372036854775807. */
6241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6243 && LARGE_OFF_T % 2147483647 == 1)
6253 if ac_fn_cxx_try_compile
"$LINENO"; then :
6254 ac_cv_sys_file_offset_bits
=64; break
6256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6257 ac_cv_sys_file_offset_bits
=unknown
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6262 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6263 case $ac_cv_sys_file_offset_bits in #(
6266 cat >>confdefs.h
<<_ACEOF
6267 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6272 if test $ac_cv_sys_file_offset_bits = unknown
; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6274 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6275 if ${ac_cv_sys_large_files+:} false
; then :
6276 $as_echo_n "(cached) " >&6
6279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 #include <sys/types.h>
6282 /* Check that off_t can represent 2**63 - 1 correctly.
6283 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6284 since some C++ compilers masquerading as C compilers
6285 incorrectly reject 9223372036854775807. */
6286 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6287 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6288 && LARGE_OFF_T % 2147483647 == 1)
6298 if ac_fn_cxx_try_compile
"$LINENO"; then :
6299 ac_cv_sys_large_files
=no
; break
6301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 #define _LARGE_FILES 1
6305 #include <sys/types.h>
6306 /* Check that off_t can represent 2**63 - 1 correctly.
6307 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6308 since some C++ compilers masquerading as C compilers
6309 incorrectly reject 9223372036854775807. */
6310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6312 && LARGE_OFF_T % 2147483647 == 1)
6322 if ac_fn_cxx_try_compile
"$LINENO"; then :
6323 ac_cv_sys_large_files
=1; break
6325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6326 ac_cv_sys_large_files
=unknown
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6331 $as_echo "$ac_cv_sys_large_files" >&6; }
6332 case $ac_cv_sys_large_files in #(
6335 cat >>confdefs.h
<<_ACEOF
6336 #define _LARGE_FILES $ac_cv_sys_large_files
6346 # The cast to long int works around a bug in the HP C Compiler
6347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6349 # This bug is HP SR number 8606223364.
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6351 $as_echo_n "checking size of ino_t... " >&6; }
6352 if ${ac_cv_sizeof_ino_t+:} false
; then :
6353 $as_echo_n "(cached) " >&6
6355 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6358 if test "$ac_cv_type_ino_t" = yes; then
6359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6361 as_fn_error
77 "cannot compute sizeof (ino_t)
6362 See \`config.log' for more details" "$LINENO" 5; }
6364 ac_cv_sizeof_ino_t
=0
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6370 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6374 cat >>confdefs.h
<<_ACEOF
6375 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6379 # The cast to long int works around a bug in the HP C Compiler
6380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6382 # This bug is HP SR number 8606223364.
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6384 $as_echo_n "checking size of dev_t... " >&6; }
6385 if ${ac_cv_sizeof_dev_t+:} false
; then :
6386 $as_echo_n "(cached) " >&6
6388 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6391 if test "$ac_cv_type_dev_t" = yes; then
6392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6394 as_fn_error
77 "cannot compute sizeof (dev_t)
6395 See \`config.log' for more details" "$LINENO" 5; }
6397 ac_cv_sizeof_dev_t
=0
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6403 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6407 cat >>confdefs.h
<<_ACEOF
6408 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6413 # Select the right stat being able to handle 64bit inodes, if needed.
6414 if test "$enable_largefile" != no
; then
6415 case "$host, $build" in
6416 *-*-aix*,*|
*,*-*-aix*)
6417 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6419 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6426 # sizeof(char) is 1 by definition.
6427 # The cast to long int works around a bug in the HP C Compiler
6428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6430 # This bug is HP SR number 8606223364.
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6432 $as_echo_n "checking size of void *... " >&6; }
6433 if ${ac_cv_sizeof_void_p+:} false
; then :
6434 $as_echo_n "(cached) " >&6
6436 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6439 if test "$ac_cv_type_void_p" = yes; then
6440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6442 as_fn_error
77 "cannot compute sizeof (void *)
6443 See \`config.log' for more details" "$LINENO" 5; }
6445 ac_cv_sizeof_void_p
=0
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6451 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6455 cat >>confdefs.h
<<_ACEOF
6456 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6460 # The cast to long int works around a bug in the HP C Compiler
6461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6463 # This bug is HP SR number 8606223364.
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6465 $as_echo_n "checking size of short... " >&6; }
6466 if ${ac_cv_sizeof_short+:} false
; then :
6467 $as_echo_n "(cached) " >&6
6469 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6472 if test "$ac_cv_type_short" = yes; then
6473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6475 as_fn_error
77 "cannot compute sizeof (short)
6476 See \`config.log' for more details" "$LINENO" 5; }
6478 ac_cv_sizeof_short
=0
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6484 $as_echo "$ac_cv_sizeof_short" >&6; }
6488 cat >>confdefs.h
<<_ACEOF
6489 #define SIZEOF_SHORT $ac_cv_sizeof_short
6493 # The cast to long int works around a bug in the HP C Compiler
6494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6496 # This bug is HP SR number 8606223364.
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6498 $as_echo_n "checking size of int... " >&6; }
6499 if ${ac_cv_sizeof_int+:} false
; then :
6500 $as_echo_n "(cached) " >&6
6502 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6505 if test "$ac_cv_type_int" = yes; then
6506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6508 as_fn_error
77 "cannot compute sizeof (int)
6509 See \`config.log' for more details" "$LINENO" 5; }
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6517 $as_echo "$ac_cv_sizeof_int" >&6; }
6521 cat >>confdefs.h
<<_ACEOF
6522 #define SIZEOF_INT $ac_cv_sizeof_int
6526 # The cast to long int works around a bug in the HP C Compiler
6527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6529 # This bug is HP SR number 8606223364.
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6531 $as_echo_n "checking size of long... " >&6; }
6532 if ${ac_cv_sizeof_long+:} false
; then :
6533 $as_echo_n "(cached) " >&6
6535 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6538 if test "$ac_cv_type_long" = yes; then
6539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6541 as_fn_error
77 "cannot compute sizeof (long)
6542 See \`config.log' for more details" "$LINENO" 5; }
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6550 $as_echo "$ac_cv_sizeof_long" >&6; }
6554 cat >>confdefs.h
<<_ACEOF
6555 #define SIZEOF_LONG $ac_cv_sizeof_long
6559 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6560 if test "x$ac_cv_type_long_long" = xyes
; then :
6562 cat >>confdefs.h
<<_ACEOF
6563 #define HAVE_LONG_LONG 1
6566 # The cast to long int works around a bug in the HP C Compiler
6567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6569 # This bug is HP SR number 8606223364.
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6571 $as_echo_n "checking size of long long... " >&6; }
6572 if ${ac_cv_sizeof_long_long+:} false
; then :
6573 $as_echo_n "(cached) " >&6
6575 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6578 if test "$ac_cv_type_long_long" = yes; then
6579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6581 as_fn_error
77 "cannot compute sizeof (long long)
6582 See \`config.log' for more details" "$LINENO" 5; }
6584 ac_cv_sizeof_long_long
=0
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6590 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6594 cat >>confdefs.h
<<_ACEOF
6595 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6601 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6602 case $ac_cv_c_int8_t in #(
6606 cat >>confdefs.h
<<_ACEOF
6607 #define int8_t $ac_cv_c_int8_t
6612 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6613 case $ac_cv_c_int16_t in #(
6617 cat >>confdefs.h
<<_ACEOF
6618 #define int16_t $ac_cv_c_int16_t
6623 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6624 case $ac_cv_c_int32_t in #(
6628 cat >>confdefs.h
<<_ACEOF
6629 #define int32_t $ac_cv_c_int32_t
6634 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6635 case $ac_cv_c_int64_t in #(
6639 cat >>confdefs.h
<<_ACEOF
6640 #define int64_t $ac_cv_c_int64_t
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6647 $as_echo_n "checking for unsigned long long int... " >&6; }
6648 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6649 $as_echo_n "(cached) " >&6
6651 ac_cv_type_unsigned_long_long_int
=yes
6652 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6656 /* For now, do not test the preprocessor; as of 2007 there are too many
6657 implementations with broken preprocessors. Perhaps this can
6658 be revisited in 2012. In the meantime, code should not expect
6659 #if to work with literals wider than 32 bits. */
6660 /* Test literals. */
6661 long long int ll = 9223372036854775807ll;
6662 long long int nll = -9223372036854775807LL;
6663 unsigned long long int ull = 18446744073709551615ULL;
6664 /* Test constant expressions. */
6665 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6667 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6673 /* Test availability of runtime routines for shift and division. */
6674 long long int llmax = 9223372036854775807ll;
6675 unsigned long long int ullmax = 18446744073709551615ull;
6676 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6677 | (llmax / ll) | (llmax % ll)
6678 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6679 | (ullmax / ull) | (ullmax % ull));
6685 if ac_fn_cxx_try_link
"$LINENO"; then :
6688 ac_cv_type_unsigned_long_long_int
=no
6690 rm -f core conftest.err conftest.
$ac_objext \
6691 conftest
$ac_exeext conftest.
$ac_ext
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6695 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6696 if test $ac_cv_type_unsigned_long_long_int = yes; then
6698 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6705 $as_echo_n "checking for long long int... " >&6; }
6706 if ${ac_cv_type_long_long_int+:} false
; then :
6707 $as_echo_n "(cached) " >&6
6709 ac_cv_type_long_long_int
=yes
6710 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6711 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6712 if test $ac_cv_type_long_long_int = yes; then
6713 if test "$cross_compiling" = yes; then :
6716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6721 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6722 # define LLONG_MAX (HALF - 1 + HALF)
6727 long long int n = 1;
6731 long long int m = n << i;
6734 if (LLONG_MAX / 2 < m)
6742 if ac_fn_cxx_try_run
"$LINENO"; then :
6745 ac_cv_type_long_long_int
=no
6747 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6748 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6755 $as_echo "$ac_cv_type_long_long_int" >&6; }
6756 if test $ac_cv_type_long_long_int = yes; then
6758 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6764 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6765 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6767 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6770 test $ac_cv_type_long_long_int = yes \
6771 && ac_type
='long long int' \
6772 || ac_type
='long int'
6774 cat >>confdefs.h
<<_ACEOF
6775 #define intmax_t $ac_type
6782 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6783 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6785 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6788 for ac_type
in 'int' 'long int' 'long long int'; do
6789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 $ac_includes_default
6795 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6797 return test_array [0];
6803 if ac_fn_cxx_try_compile
"$LINENO"; then :
6805 cat >>confdefs.h
<<_ACEOF
6806 #define intptr_t $ac_type
6811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6812 test -z "$ac_type" && break
6817 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6818 case $ac_cv_c_uint8_t in #(
6822 $as_echo "#define _UINT8_T 1" >>confdefs.h
6825 cat >>confdefs.h
<<_ACEOF
6826 #define uint8_t $ac_cv_c_uint8_t
6831 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6832 case $ac_cv_c_uint16_t in #(
6837 cat >>confdefs.h
<<_ACEOF
6838 #define uint16_t $ac_cv_c_uint16_t
6843 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6844 case $ac_cv_c_uint32_t in #(
6848 $as_echo "#define _UINT32_T 1" >>confdefs.h
6851 cat >>confdefs.h
<<_ACEOF
6852 #define uint32_t $ac_cv_c_uint32_t
6857 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6858 case $ac_cv_c_uint64_t in #(
6862 $as_echo "#define _UINT64_T 1" >>confdefs.h
6865 cat >>confdefs.h
<<_ACEOF
6866 #define uint64_t $ac_cv_c_uint64_t
6873 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6874 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6876 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6879 test $ac_cv_type_unsigned_long_long_int = yes \
6880 && ac_type
='unsigned long long int' \
6881 || ac_type
='unsigned long int'
6883 cat >>confdefs.h
<<_ACEOF
6884 #define uintmax_t $ac_type
6891 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6892 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6894 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6897 for ac_type
in 'unsigned int' 'unsigned long int' \
6898 'unsigned long long int'; do
6899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901 $ac_includes_default
6905 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6907 return test_array [0];
6913 if ac_fn_cxx_try_compile
"$LINENO"; then :
6915 cat >>confdefs.h
<<_ACEOF
6916 #define uintptr_t $ac_type
6921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6922 test -z "$ac_type" && break
6939 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6940 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6943 # check what underlying integer type int64_t uses
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6945 $as_echo_n "checking for int64_t underlying type... " >&6; }
6946 if ${ac_cv_int64_t_type+:} false
; then :
6947 $as_echo_n "(cached) " >&6
6950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6953 #ifdef HAVE_STDINT_H
6956 template <typename T> struct X { };
6958 struct X<long> { typedef long t; };
6968 if ac_fn_cxx_try_compile
"$LINENO"; then :
6969 ac_cv_int64_t_type
=long
6971 ac_cv_int64_t_type
="long long"
6973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6976 $as_echo "$ac_cv_int64_t_type" >&6; }
6977 if test "$ac_cv_int64_t_type" = "long"; then
6979 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6985 #ifdef HAVE_STDINT_H
6988 template <typename T> struct X { };
6990 struct X<long long> { typedef long long t; };
7000 if ac_fn_cxx_try_compile
"$LINENO"; then :
7003 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
7005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7009 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7010 if ${ac_cv_std_swap_in_utility+:} false
; then :
7011 $as_echo_n "(cached) " >&6
7014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7022 int a, b; std::swap(a,b);
7027 if ac_fn_cxx_try_compile
"$LINENO"; then :
7028 ac_cv_std_swap_in_utility
=yes
7030 ac_cv_std_swap_in_utility
=no
7032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7035 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7036 if test $ac_cv_std_swap_in_utility = yes; then
7038 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7042 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7043 # If the host compiler is affected by the bug, and we build with optimization
7044 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7045 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7046 # Since there is no reliable feature check for the presence of this bug,
7047 # we simply use a GCC version number check. (This should never trigger for
7048 # stages 2 or 3 of a native bootstrap.)
7050 if test "$GCC" = yes; then
7051 saved_CXXFLAGS
="$CXXFLAGS"
7053 # The following test compilation will succeed if and only if $CXX accepts
7054 # -fno-strict-aliasing *and* is older than GCC 4.3.
7055 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7057 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7061 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7062 #error compiler not affected by placement new aliasing bug
7066 if ac_fn_cxx_try_compile
"$LINENO"; then :
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7068 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7075 CXXFLAGS
="$saved_CXXFLAGS"
7081 # ---------------------
7082 # Warnings and checking
7083 # ---------------------
7085 # Check $CC warning features (if it's GCC).
7086 # We want to use -pedantic, but we don't want warnings about
7089 # * overlong strings
7090 # * C++11 narrowing conversions in { }
7091 # So, we only use -pedantic if we can disable those warnings.
7093 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7094 # Check whether --enable-build-format-warnings was given.
7095 if test "${enable_build_format_warnings+set}" = set; then :
7096 enableval
=$enable_build_format_warnings;
7098 enable_build_format_warnings
=yes
7101 if test $enable_build_format_warnings = no
; then :
7107 ac_cpp
='$CXXCPP $CPPFLAGS'
7108 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7113 save_CXXFLAGS
="$CXXFLAGS"
7114 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7115 # Do the check with the no- prefix removed since gcc silently
7116 # accepts any -Wno-* option on purpose
7117 case $real_option in
7118 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7119 *) option
=$real_option ;;
7121 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7124 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7125 if eval \
${$as_acx_Woption+:} false
; then :
7126 $as_echo_n "(cached) " >&6
7129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7140 if ac_fn_cxx_try_compile
"$LINENO"; then :
7141 eval "$as_acx_Woption=yes"
7143 eval "$as_acx_Woption=no"
7145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7148 eval ac_res
=\$
$as_acx_Woption
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7150 $as_echo "$ac_res" >&6; }
7151 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7152 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7155 CXXFLAGS
="$save_CXXFLAGS"
7157 ac_cpp
='$CXXCPP $CPPFLAGS'
7158 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7165 ac_cpp
='$CPP $CPPFLAGS'
7166 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7171 save_CFLAGS
="$CFLAGS"
7172 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7173 # Do the check with the no- prefix removed since gcc silently
7174 # accepts any -Wno-* option on purpose
7175 case $real_option in
7176 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7177 *) option
=$real_option ;;
7179 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7182 $as_echo_n "checking whether $CC supports $option... " >&6; }
7183 if eval \
${$as_acx_Woption+:} false
; then :
7184 $as_echo_n "(cached) " >&6
7187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7198 if ac_fn_c_try_compile
"$LINENO"; then :
7199 eval "$as_acx_Woption=yes"
7201 eval "$as_acx_Woption=no"
7203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7206 eval ac_res
=\$
$as_acx_Woption
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7208 $as_echo "$ac_res" >&6; }
7209 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7210 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7213 CFLAGS
="$save_CFLAGS"
7215 ac_cpp
='$CXXCPP $CPPFLAGS'
7216 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7222 ac_cpp
='$CXXCPP $CPPFLAGS'
7223 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7228 save_CXXFLAGS
="$CXXFLAGS"
7229 for real_option
in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7230 # Do the check with the no- prefix removed since gcc silently
7231 # accepts any -Wno-* option on purpose
7232 case $real_option in
7233 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7234 *) option
=$real_option ;;
7236 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7239 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7240 if eval \
${$as_acx_Woption+:} false
; then :
7241 $as_echo_n "(cached) " >&6
7244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7255 if ac_fn_cxx_try_compile
"$LINENO"; then :
7256 eval "$as_acx_Woption=yes"
7258 eval "$as_acx_Woption=no"
7260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7263 eval ac_res
=\$
$as_acx_Woption
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7265 $as_echo "$ac_res" >&6; }
7266 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7267 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7270 CXXFLAGS
="$save_CXXFLAGS"
7272 ac_cpp
='$CXXCPP $CPPFLAGS'
7273 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7274 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7275 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7279 ac_cpp
='$CPP $CPPFLAGS'
7280 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7281 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7282 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7285 save_CFLAGS
="$CFLAGS"
7286 for real_option
in -Wold-style-definition -Wc++-compat; do
7287 # Do the check with the no- prefix removed since gcc silently
7288 # accepts any -Wno-* option on purpose
7289 case $real_option in
7290 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7291 *) option
=$real_option ;;
7293 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7296 $as_echo_n "checking whether $CC supports $option... " >&6; }
7297 if eval \
${$as_acx_Woption+:} false
; then :
7298 $as_echo_n "(cached) " >&6
7301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7312 if ac_fn_c_try_compile
"$LINENO"; then :
7313 eval "$as_acx_Woption=yes"
7315 eval "$as_acx_Woption=no"
7317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7320 eval ac_res
=\$
$as_acx_Woption
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7322 $as_echo "$ac_res" >&6; }
7323 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7324 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7327 CFLAGS
="$save_CFLAGS"
7329 ac_cpp
='$CXXCPP $CPPFLAGS'
7330 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7336 ac_cpp
='$CXXCPP $CPPFLAGS'
7337 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7338 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7339 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7341 # Do the check with the no- prefix removed from the warning options
7342 # since gcc silently accepts any -Wno-* option on purpose
7343 if test "$GXX" = yes; then :
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7345 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7346 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7347 $as_echo_n "(cached) " >&6
7349 save_CXXFLAGS
="$CXXFLAGS"
7350 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7362 if ac_fn_cxx_try_compile
"$LINENO"; then :
7363 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7365 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7368 CXXFLAGS
="$save_CXXFLAGS"
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7371 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7372 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7373 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7378 ac_cpp
='$CXXCPP $CPPFLAGS'
7379 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7380 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7381 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7385 ac_cpp
='$CXXCPP $CPPFLAGS'
7386 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7390 # Check whether --enable-werror-always was given.
7391 if test "${enable_werror_always+set}" = set; then :
7392 enableval
=$enable_werror_always;
7394 enable_werror_always
=no
7397 if test $enable_werror_always = yes; then :
7398 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7402 ac_cpp
='$CXXCPP $CPPFLAGS'
7403 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7409 # The above macros do nothing if the compiler is not GCC. However, the
7410 # Makefile has more goo to add other flags, so these variables are used
7411 # to enable warnings only for GCC.
7414 if test "x$GCC" = "xyes"; then
7415 warn_cflags
='$(GCC_WARN_CFLAGS)'
7416 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7421 # Disable exceptions and RTTI if building with g++
7423 ac_cpp
='$CPP $CPPFLAGS'
7424 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7425 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7426 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7429 save_CFLAGS
="$CFLAGS"
7430 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7431 # Do the check with the no- prefix removed since gcc silently
7432 # accepts any -Wno-* option on purpose
7433 case $real_option in
7434 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7435 *) option
=$real_option ;;
7437 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7440 $as_echo_n "checking whether $CC supports $option... " >&6; }
7441 if eval \
${$as_acx_Woption+:} false
; then :
7442 $as_echo_n "(cached) " >&6
7445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7456 if ac_fn_c_try_compile
"$LINENO"; then :
7457 eval "$as_acx_Woption=yes"
7459 eval "$as_acx_Woption=no"
7461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7464 eval ac_res
=\$
$as_acx_Woption
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7466 $as_echo "$ac_res" >&6; }
7467 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7468 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7471 CFLAGS
="$save_CFLAGS"
7473 ac_cpp
='$CXXCPP $CPPFLAGS'
7474 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7480 # Enable expensive internal checks
7482 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7486 # Check whether --enable-checking was given.
7487 if test "${enable_checking+set}" = set; then :
7488 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7491 # Determine the default checks.
7492 if test x
$is_release = x
; then
7493 ac_checking_flags
=yes,extra
7495 ac_checking_flags
=release
7499 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7500 for check
in release
$ac_checking_flags
7503 # these set all the flags to specific states
7504 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7505 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7506 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7507 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7508 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7509 ac_types_checking
=1 ;;
7510 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7511 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7512 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7513 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7514 ac_tree_checking
= ; ac_valgrind_checking
= ;
7515 ac_types_checking
= ;;
7516 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7517 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7518 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7519 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7520 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7521 ac_types_checking
=1 ;;
7522 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7523 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7524 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7525 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7526 ac_tree_checking
= ; ac_valgrind_checking
= ;
7527 ac_types_checking
= ;;
7528 # these enable particular checks
7529 assert
) ac_assert_checking
=1 ;;
7530 df
) ac_df_checking
=1 ;;
7531 extra
) ac_extra_checking
=1 ;;
7532 fold) ac_fold_checking
=1 ;;
7533 gc
) ac_gc_checking
=1 ;;
7534 gcac
) ac_gc_always_collect
=1 ;;
7535 gimple
) ac_gimple_checking
=1 ;;
7536 misc
) ac_checking
=1 ;;
7537 rtl
) ac_rtl_checking
=1 ;;
7538 rtlflag
) ac_rtlflag_checking
=1 ;;
7539 runtime
) ac_runtime_checking
=1 ;;
7540 tree
) ac_tree_checking
=1 ;;
7541 types
) ac_types_checking
=1 ;;
7542 valgrind
) ac_valgrind_checking
=1 ;;
7543 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7549 if test x
$ac_checking != x
; then
7551 $as_echo "#define CHECKING_P 1" >>confdefs.h
7553 nocommon_flag
=-fno-common
7555 $as_echo "#define CHECKING_P 0" >>confdefs.h
7559 if test x
$ac_extra_checking != x
; then
7561 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7564 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7567 if test x
$ac_df_checking != x
; then
7569 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7572 if test x
$ac_assert_checking != x
; then
7574 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7577 if test x
$ac_gimple_checking != x
; then
7579 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7583 if test x
$ac_runtime_checking != x
; then
7585 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7588 if test x
$ac_tree_checking != x
; then
7590 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7594 if test x
$ac_types_checking != x
; then
7596 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7600 if test x
$ac_rtl_checking != x
; then
7602 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7605 if test x
$ac_rtlflag_checking != x
; then
7607 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7610 if test x
$ac_gc_checking != x
; then
7612 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7615 if test x
$ac_gc_always_collect != x
; then
7617 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7620 if test x
$ac_fold_checking != x
; then
7622 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7625 valgrind_path_defines
=
7628 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7629 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7637 # It is certainly possible that there's valgrind but no valgrind.h.
7638 # GCC relies on making annotations so we must have both.
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7640 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7643 #include <valgrind/memcheck.h>
7644 #ifndef VALGRIND_DISCARD
7645 #error VALGRIND_DISCARD not defined
7648 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7649 gcc_cv_header_valgrind_memcheck_h
=yes
7651 gcc_cv_header_valgrind_memcheck_h
=no
7653 rm -f conftest.err conftest.i conftest.
$ac_ext
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7655 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7657 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7660 #include <memcheck.h>
7661 #ifndef VALGRIND_DISCARD
7662 #error VALGRIND_DISCARD not defined
7665 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7666 gcc_cv_header_memcheck_h
=yes
7668 gcc_cv_header_memcheck_h
=no
7670 rm -f conftest.err conftest.i conftest.
$ac_ext
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7672 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7673 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7675 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7678 if test $gcc_cv_header_memcheck_h = yes; then
7680 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7684 if test x
$ac_valgrind_checking != x
; then
7686 # Prepare PATH_SEPARATOR.
7687 # The user is always right.
7688 if test "${PATH_SEPARATOR+set}" != set; then
7689 echo "#! /bin/sh" >conf$$.sh
7690 echo "exit 0" >>conf$$.sh
7692 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7700 # Find out how to test for executable files. Don't use a zero-byte file,
7701 # as systems may use methods other than mode bits to determine executability.
7702 cat >conf$$.
file <<_ASEOF
7706 chmod +x conf$$.
file
7707 if test -x conf$$.
file >/dev
/null
2>&1; then
7708 ac_executable_p
="test -x"
7710 ac_executable_p
="test -f"
7714 # Extract the first word of "valgrind", so it can be a program name with args.
7715 set dummy valgrind
; ac_word
=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if ${ac_cv_path_valgrind_path+:} false
; then :
7719 $as_echo_n "(cached) " >&6
7721 case "$valgrind_path" in
7723 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7726 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7727 for ac_dir
in $PATH; do
7729 test -z "$ac_dir" && ac_dir
=.
7730 for ac_exec_ext
in '' $ac_executable_extensions; do
7731 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7732 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7733 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7743 valgrind_path
="$ac_cv_path_valgrind_path"
7744 if test -n "$valgrind_path"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7746 $as_echo "$valgrind_path" >&6; }
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7752 if test "x$valgrind_path" = "x" \
7753 ||
(test $have_valgrind_h = no \
7754 && test $gcc_cv_header_memcheck_h = no \
7755 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7756 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7758 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7759 valgrind_command
="$valgrind_path -q"
7761 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7767 # Enable code coverage collection
7768 # Check whether --enable-coverage was given.
7769 if test "${enable_coverage+set}" = set; then :
7770 enableval
=$enable_coverage; case "${enableval}" in
7772 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7775 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7778 # a.k.a. --disable-coverage
7782 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7791 # Check whether --enable-gather-detailed-mem-stats was given.
7792 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7793 enableval
=$enable_gather_detailed_mem_stats;
7795 enable_gather_detailed_mem_stats
=no
7798 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7800 cat >>confdefs.h
<<_ACEOF
7801 #define GATHER_STATISTICS $gather_stats
7805 # Check whether --enable-valgrind-annotations was given.
7806 if test "${enable_valgrind_annotations+set}" = set; then :
7807 enableval
=$enable_valgrind_annotations;
7809 enable_valgrind_annotations
=no
7812 if test x
$enable_valgrind_annotations != xno \
7813 ||
test x
$ac_valgrind_checking != x
; then
7814 if (test $have_valgrind_h = no \
7815 && test $gcc_cv_header_memcheck_h = no \
7816 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7817 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7820 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7824 # -------------------------------
7825 # Miscenalleous configure options
7826 # -------------------------------
7828 # Determine whether or not multilibs are enabled.
7829 # Check whether --enable-multilib was given.
7830 if test "${enable_multilib+set}" = set; then :
7831 enableval
=$enable_multilib;
7838 # Determine whether or not multiarch is enabled.
7839 # Check whether --enable-multiarch was given.
7840 if test "${enable_multiarch+set}" = set; then :
7841 enableval
=$enable_multiarch; case "${enableval}" in
7842 yes|no|auto
) enable_multiarch
=$enableval;;
7843 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7846 enable_multiarch
=auto
7849 if test x
${enable_multiarch} = xauto
; then
7850 if test x
${with_native_system_header_dir} != x
; then
7851 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7854 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7855 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7859 if test x
${enable_multiarch} = xyes
; then
7861 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7865 $as_echo_n "checking for multiarch configuration... " >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7868 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7870 # needed for setting the multiarch name for soft-float/hard-float ABIs
7874 # default stack clash protection guard size as power of twos in bytes.
7875 # Please keep these in sync with params.def.
7879 # Keep the default value when the option is not used to 0, this allows us to
7880 # distinguish between the cases where the user specifially set a value via
7881 # configure and when the normal default value is used.
7883 # Check whether --with-stack-clash-protection-guard-size was given.
7884 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7885 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7887 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7890 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7891 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7892 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7893 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
7897 cat >>confdefs.h
<<_ACEOF
7898 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7902 # Specify the number of splits of match.pd to generate.
7904 # Check whether --with-matchpd-partitions was given.
7905 if test "${with_matchpd_partitions+set}" = set; then :
7906 withval
=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS
="$with_matchpd_partitions"
7908 DEFAULT_MATCHPD_PARTITIONS
=10
7911 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7912 as_fn_error $?
"Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7917 # Enable __cxa_atexit for C++.
7918 # Check whether --enable-__cxa_atexit was given.
7919 if test "${enable___cxa_atexit+set}" = set; then :
7920 enableval
=$enable___cxa_atexit;
7924 # Enable C extension for decimal float if target supports it.
7926 # Check whether --enable-decimal-float was given.
7927 if test "${enable_decimal_float+set}" = set; then :
7928 enableval
=$enable_decimal_float;
7929 case $enable_decimal_float in
7930 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7931 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7932 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7939 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7940 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7941 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7942 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7943 enable_decimal_float
=yes
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7947 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7948 enable_decimal_float
=no
7955 # x86's use BID format instead of DPD
7956 case x
$enable_decimal_float in
7959 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
7960 enable_decimal_float
=bid
7963 enable_decimal_float
=dpd
7966 default_decimal_float
=$enable_decimal_float
7969 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7970 # dependency on libdecnumber.
7971 default_decimal_float
=dpd
7978 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7980 cat >>confdefs.h
<<_ACEOF
7981 #define ENABLE_DECIMAL_FLOAT $dfp
7985 # Use default_decimal_float for dependency.
7986 enable_decimal_float
=$default_decimal_float
7988 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7990 cat >>confdefs.h
<<_ACEOF
7991 #define ENABLE_DECIMAL_BID_FORMAT $bid
7995 # Enable C extension for fixed-point arithmetic.
7996 # Check whether --enable-fixed-point was given.
7997 if test "${enable_fixed_point+set}" = set; then :
7998 enableval
=$enable_fixed_point;
8003 enable_fixed_point
=yes
8007 enable_fixed_point
=yes
8010 enable_fixed_point
=yes
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8014 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8015 enable_fixed_point
=no
8023 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8025 cat >>confdefs.h
<<_ACEOF
8026 #define ENABLE_FIXED_POINT $fixedpoint
8031 # Pass with no value to take the default
8032 # Pass with a value to specify a thread package
8033 # Check whether --enable-threads was given.
8034 if test "${enable_threads+set}" = set; then :
8035 enableval
=$enable_threads;
8041 # Check whether --enable-tls was given.
8042 if test "${enable_tls+set}" = set; then :
8043 enableval
=$enable_tls;
8046 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8047 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8055 # Check whether --enable-vtable-verify was given.
8056 if test "${enable_vtable_verify+set}" = set; then :
8057 enableval
=$enable_vtable_verify;
8059 enable_vtable_verify
=no
8062 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8064 cat >>confdefs.h
<<_ACEOF
8065 #define ENABLE_VTABLE_VERIFY $vtable_verify
8069 # Check whether --enable-analyzer was given.
8070 if test "${enable_analyzer+set}" = set; then :
8071 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8081 cat >>confdefs.h
<<_ACEOF
8082 #define ENABLE_ANALYZER $analyzer
8086 # Check whether --enable-objc-gc was given.
8087 if test "${enable_objc_gc+set}" = set; then :
8088 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8099 # Check whether --with-dwarf2 was given.
8100 if test "${with_dwarf2+set}" = set; then :
8101 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8107 # Check whether --enable-shared was given.
8108 if test "${enable_shared+set}" = set; then :
8109 enableval
=$enable_shared;
8110 case $enable_shared in
8114 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8115 for pkg
in $enableval; do
8116 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8130 # Check whether --enable-gcov was given.
8131 if test "${enable_gcov+set}" = set; then :
8132 enableval
=$enable_gcov;
8148 # Check whether --with-specs was given.
8149 if test "${with_specs+set}" = set; then :
8150 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8160 # Check whether --with-pkgversion was given.
8161 if test "${with_pkgversion+set}" = set; then :
8162 withval
=$with_pkgversion; case "$withval" in
8163 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8165 *) PKGVERSION
="($withval) " ;;
8176 # Check whether --with-bugurl was given.
8177 if test "${with_bugurl+set}" = set; then :
8178 withval
=$with_bugurl; case "$withval" in
8179 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8182 *) BUGURL
="$withval"
8186 BUGURL
="https://gcc.gnu.org/bugs/"
8196 REPORT_BUGS_TO
="<$BUGURL>"
8197 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8204 # Allow overriding the default URL for documentation
8206 # Check whether --with-documentation-root-url was given.
8207 if test "${with_documentation_root_url+set}" = set; then :
8208 withval
=$with_documentation_root_url; case "$withval" in
8209 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8210 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8211 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8212 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8215 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8220 cat >>confdefs.h
<<_ACEOF
8221 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8225 # Allow overriding the default URL for GCC changes
8227 # Check whether --with-changes-root-url was given.
8228 if test "${with_changes_root_url+set}" = set; then :
8229 withval
=$with_changes_root_url; case "$withval" in
8230 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8231 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8232 */) CHANGES_ROOT_URL
="$withval" ;;
8233 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8236 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8241 cat >>confdefs.h
<<_ACEOF
8242 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8246 # Sanity check enable_languages in case someone does not run the toplevel
8247 # configure # script.
8248 # Check whether --enable-languages was given.
8249 if test "${enable_languages+set}" = set; then :
8250 enableval
=$enable_languages; case ,${enable_languages}, in
8252 # go safe -- we cannot be much sure without the toplevel
8254 # analysis of which target libs are present and usable
8258 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8263 enable_languages
=c
,${enable_languages}
8271 # If top-level libada has been disabled, then wire in install-gnatlib
8272 # invocation with `make install', so that one can build and install
8273 # the library manually with `make -C gcc all gnatlib gnattools install'.
8274 if test x
"$enable_libada" = xno
; then
8275 gnat_install_lib
=gnat-install-lib
8281 if test x
"$enable_as_accelerator_for" != x
; then
8283 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8285 enable_as_accelerator
=yes
8286 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8287 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8288 accel_dir_suffix
=/accel
/${target_noncanonical}
8289 real_target_noncanonical
=${enable_as_accelerator_for}
8295 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8296 tgt
=`echo $tgt | sed 's/=.*//'`
8301 omp_device_property
=omp-device-properties-gcn
8302 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8305 omp_device_property
=omp-device-properties-nvptx
8306 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8309 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8312 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8313 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8315 if test x
"$offload_targets" = x
; then
8316 offload_targets
=$tgt
8318 offload_targets
="$offload_targets,$tgt"
8325 cat >>confdefs.h
<<_ACEOF
8326 #define OFFLOAD_TARGETS "$offload_targets"
8329 if test x
"$enable_offloading" != x
; then
8331 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8335 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8339 if test "x$enable_offload_defaulted" = xyes
; then
8341 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8346 # Check whether --with-multilib-list was given.
8347 if test "${with_multilib_list+set}" = set; then :
8348 withval
=$with_multilib_list; :
8350 with_multilib_list
=default
8355 # Check whether --with-multilib-generator was given.
8356 if test "${with_multilib_generator+set}" = set; then :
8357 withval
=$with_multilib_generator; :
8359 with_multilib_generator
=default
8363 # -------------------------
8364 # Checks for other programs
8365 # -------------------------
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8368 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8370 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8371 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8372 $as_echo_n "(cached) " >&6
8374 cat >conftest.
make <<\_ACEOF
8377 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8379 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8380 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8382 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8384 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8388 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8390 $as_echo "yes" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 SET_MAKE
="MAKE=${MAKE-make}"
8399 # Find some useful tools
8400 for ac_prog
in gawk mawk nawk
awk
8402 # Extract the first word of "$ac_prog", so it can be a program name with args.
8403 set dummy
$ac_prog; ac_word
=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if ${ac_cv_prog_AWK+:} false
; then :
8407 $as_echo_n "(cached) " >&6
8409 if test -n "$AWK"; then
8410 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8416 test -z "$as_dir" && as_dir
=.
8417 for ac_exec_ext
in '' $ac_executable_extensions; do
8418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8419 ac_cv_prog_AWK
="$ac_prog"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430 if test -n "$AWK"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8432 $as_echo "$AWK" >&6; }
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8439 test -n "$AWK" && break
8442 # We need awk to create options.cc and options.h.
8443 # Bail out if it's missing.
8445 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8449 $as_echo_n "checking whether ln -s works... " >&6; }
8450 if ${gcc_cv_prog_LN_S+:} false
; then :
8451 $as_echo_n "(cached) " >&6
8453 rm -f conftestdata_t
8454 echo >conftestdata_f
8455 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8457 gcc_cv_prog_LN_S
="ln -s"
8459 if ln conftestdata_f conftestdata_t
2>/dev
/null
8463 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8465 gcc_cv_prog_LN_S
="cp -p"
8471 rm -f conftestdata_f conftestdata_t
8474 LN_S
="$gcc_cv_prog_LN_S"
8475 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8477 $as_echo "yes" >&6; }
8479 if test "$gcc_cv_prog_LN_S" = "ln"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8481 $as_echo "no, using ln" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8484 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8489 $as_echo_n "checking whether ln works... " >&6; }
8490 if ${acx_cv_prog_LN+:} false
; then :
8491 $as_echo_n "(cached) " >&6
8493 rm -f conftestdata_t
8494 echo >conftestdata_f
8495 if ln conftestdata_f conftestdata_t
2>/dev
/null
8501 rm -f conftestdata_f conftestdata_t
8504 if test $acx_cv_prog_LN = no
; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8507 $as_echo "no, using $LN" >&6; }
8509 LN
="$acx_cv_prog_LN"
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8511 $as_echo "yes" >&6; }
8514 if test -n "$ac_tool_prefix"; then
8515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8516 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_RANLIB+:} false
; then :
8520 $as_echo_n "(cached) " >&6
8522 if test -n "$RANLIB"; then
8523 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8529 test -z "$as_dir" && as_dir
=.
8530 for ac_exec_ext
in '' $ac_executable_extensions; do
8531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 RANLIB
=$ac_cv_prog_RANLIB
8543 if test -n "$RANLIB"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8545 $as_echo "$RANLIB" >&6; }
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8553 if test -z "$ac_cv_prog_RANLIB"; then
8554 ac_ct_RANLIB
=$RANLIB
8555 # Extract the first word of "ranlib", so it can be a program name with args.
8556 set dummy ranlib
; ac_word
=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8560 $as_echo_n "(cached) " >&6
8562 if test -n "$ac_ct_RANLIB"; then
8563 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8569 test -z "$as_dir" && as_dir
=.
8570 for ac_exec_ext
in '' $ac_executable_extensions; do
8571 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8572 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8583 if test -n "$ac_ct_RANLIB"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8585 $as_echo "$ac_ct_RANLIB" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8591 if test "x$ac_ct_RANLIB" = x
; then
8594 case $cross_compiling:$ac_tool_warned in
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8598 ac_tool_warned
=yes ;;
8600 RANLIB
=$ac_ct_RANLIB
8603 RANLIB
="$ac_cv_prog_RANLIB"
8609 # Find a good install program. We prefer a C program (faster),
8610 # so one script is as good as another. But avoid the broken or
8611 # incompatible versions:
8612 # SysV /etc/install, /usr/sbin/install
8613 # SunOS /usr/etc/install
8614 # IRIX /sbin/install
8616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8618 # ./install, which can be erroneously created by make from ./install.sh.
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8620 $as_echo_n "checking for a BSD compatible install... " >&6; }
8621 if test -z "$INSTALL"; then
8622 if ${ac_cv_path_install+:} false
; then :
8623 $as_echo_n "(cached) " >&6
8625 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8626 for ac_dir
in $PATH; do
8627 # Account for people who put trailing slashes in PATH elements.
8629 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8631 # OSF1 and SCO ODT 3.0 have their own names for install.
8632 for ac_prog
in ginstall scoinst
install; do
8633 if test -f $ac_dir/$ac_prog; then
8634 if test $ac_prog = install &&
8635 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8636 # AIX install. It has an incompatible calling convention.
8637 # OSF/1 installbsd also uses dspmsg, but is usable.
8640 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8651 if test "${ac_cv_path_install+set}" = set; then
8652 INSTALL
="$ac_cv_path_install"
8654 # As a last resort, use the slow shell script. We don't cache a
8655 # path for INSTALL within a source directory, because that will
8656 # break other packages using the cache if that directory is
8657 # removed, or if the path is relative.
8658 INSTALL
="$ac_install_sh"
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8662 $as_echo "$INSTALL" >&6; }
8664 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8665 # It thinks the first close brace ends the variable substitution.
8666 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8668 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8671 # See if cmp has --ignore-initial.
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8673 $as_echo_n "checking for cmp's capabilities... " >&6; }
8674 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8675 $as_echo_n "(cached) " >&6
8679 gcc_cv_prog_cmp_skip
=slowcompare
8680 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8681 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8684 gcc_cv_prog_cmp_skip
=gnucompare
8687 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8688 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8689 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8692 gcc_cv_prog_cmp_skip
=fastcompare
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8700 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8701 make_compare_target
=$gcc_cv_prog_cmp_skip
8705 # See if we have the mktemp command.
8706 # Extract the first word of "mktemp", so it can be a program name with args.
8707 set dummy mktemp
; ac_word
=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8711 $as_echo_n "(cached) " >&6
8713 if test -n "$have_mktemp_command"; then
8714 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8720 test -z "$as_dir" && as_dir
=.
8721 for ac_exec_ext
in '' $ac_executable_extensions; do
8722 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_have_mktemp_command
="yes"
8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8734 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8735 if test -n "$have_mktemp_command"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8737 $as_echo "$have_mktemp_command" >&6; }
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8745 # See if makeinfo has been installed and is modern enough
8746 # that we can use it.
8748 # Extract the first word of "makeinfo", so it can be a program name with args.
8749 set dummy makeinfo
; ac_word
=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8753 $as_echo_n "(cached) " >&6
8755 if test -n "$MAKEINFO"; then
8756 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8762 test -z "$as_dir" && as_dir
=.
8763 for ac_exec_ext
in '' $ac_executable_extensions; do
8764 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8765 ac_cv_prog_MAKEINFO
="makeinfo"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 MAKEINFO
=$ac_cv_prog_MAKEINFO
8776 if test -n "$MAKEINFO"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8778 $as_echo "$MAKEINFO" >&6; }
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8785 if test -n "$MAKEINFO"; then
8786 # Found it, now check the version.
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8788 $as_echo_n "checking for modern makeinfo... " >&6; }
8789 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8790 $as_echo_n "(cached) " >&6
8792 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8793 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8795 case $ac_prog_version in
8796 '') gcc_cv_prog_makeinfo_modern
=no
;;
8797 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8798 *) gcc_cv_prog_makeinfo_modern
=no
;;
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8803 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8805 gcc_cv_prog_makeinfo_modern
=no
8807 if test $gcc_cv_prog_makeinfo_modern = no
; then
8808 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8811 if test $gcc_cv_prog_makeinfo_modern = no
; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8813 *** Makeinfo is missing or too old.
8814 *** Info documentation will not be built." >&5
8815 $as_echo "$as_me: WARNING:
8816 *** Makeinfo is missing or too old.
8817 *** Info documentation will not be built." >&2;}
8824 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8825 # If it does, we want to pass it to makeinfo in order to restore the old
8826 # behavior of @{summary,}contents placement.
8827 MAKEINFO_TOC_INLINE_FLAG
=
8828 if test x
"$MAKEINFO" != x
; then :
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8831 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8832 if ${gcc_cv_texi_add_toc_inline_flags+:} false
; then :
8833 $as_echo_n "(cached) " >&6
8836 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8837 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION
=inline
</dev
/null
2>&1 \
8838 |
grep CONTENTS_OUTPUT_LOCATION
>/dev
/null
; then
8839 gcc_cv_texi_add_toc_inline_flags
=no
8841 gcc_cv_texi_add_toc_inline_flags
=yes
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8846 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8847 if test x
"$gcc_cv_texi_add_toc_inline_flags" = xyes
; then
8848 MAKEINFO_TOC_INLINE_FLAG
='-c CONTENTS_OUTPUT_LOCATION=inline'
8854 # Is pod2man recent enough to regenerate manpages?
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8856 $as_echo_n "checking for recent Pod::Man... " >&6; }
8857 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8859 $as_echo "yes" >&6; }
8860 GENERATED_MANPAGES
=generated-manpages
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863 $as_echo "no" >&6; }
8868 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8873 # Extract the first word of "$ac_prog", so it can be a program name with args.
8874 set dummy
$ac_prog; ac_word
=$2
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876 $as_echo_n "checking for $ac_word... " >&6; }
8877 if ${ac_cv_prog_FLEX+:} false
; then :
8878 $as_echo_n "(cached) " >&6
8880 if test -n "$FLEX"; then
8881 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8887 test -z "$as_dir" && as_dir
=.
8888 for ac_exec_ext
in '' $ac_executable_extensions; do
8889 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8890 ac_cv_prog_FLEX
="$ac_prog"
8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900 FLEX
=$ac_cv_prog_FLEX
8901 if test -n "$FLEX"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8903 $as_echo "$FLEX" >&6; }
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8910 test -n "$FLEX" && break
8912 test -n "$FLEX" || FLEX
="$MISSING flex"
8916 for ac_prog
in bison
8918 # Extract the first word of "$ac_prog", so it can be a program name with args.
8919 set dummy
$ac_prog; ac_word
=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_prog_BISON+:} false
; then :
8923 $as_echo_n "(cached) " >&6
8925 if test -n "$BISON"; then
8926 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8932 test -z "$as_dir" && as_dir
=.
8933 for ac_exec_ext
in '' $ac_executable_extensions; do
8934 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_BISON
="$ac_prog"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 BISON
=$ac_cv_prog_BISON
8946 if test -n "$BISON"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8948 $as_echo "$BISON" >&6; }
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8955 test -n "$BISON" && break
8957 test -n "$BISON" || BISON
="$MISSING bison"
8962 # Extract the first word of "python3", so it can be a program name with args.
8963 set dummy python3
; ac_word
=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if ${ac_cv_prog_PYTHON+:} false
; then :
8967 $as_echo_n "(cached) " >&6
8969 if test -n "$PYTHON"; then
8970 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
8972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8976 test -z "$as_dir" && as_dir
=.
8977 for ac_exec_ext
in '' $ac_executable_extensions; do
8978 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8979 ac_cv_prog_PYTHON
="python3"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 PYTHON
=$ac_cv_prog_PYTHON
8990 if test -n "$PYTHON"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8992 $as_echo "$PYTHON" >&6; }
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8999 if test -n "$PYTHON"; then
9000 # Found it, now check the version.
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9002 $as_echo_n "checking for modern python3... " >&6; }
9003 if ${gcc_cv_prog_python3_modern+:} false
; then :
9004 $as_echo_n "(cached) " >&6
9006 ac_prog_version
=`eval $PYTHON --version 2>&1 |
9007 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9009 case $ac_prog_version in
9010 '') gcc_cv_prog_python3_modern
=no
;;
9011 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*) gcc_cv_prog_python3_modern
=yes;;
9012 *) gcc_cv_prog_python3_modern
=no
;;
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9017 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9019 gcc_cv_prog_python3_modern
=no
9021 if test $gcc_cv_prog_python3_modern = no
; then
9022 PYTHON
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9025 if test $gcc_cv_prog_python3_modern = no
; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9027 *** Python3 is missing.
9028 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9029 $as_echo "$as_me: WARNING:
9030 *** Python3 is missing.
9031 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9038 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9039 # check for build == host before using them.
9042 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9043 && test -d ..
/binutils
; then
9044 NM
='${objdir}/../binutils/nm-new'
9046 # Extract the first word of "nm", so it can be a program name with args.
9047 set dummy nm
; ac_word
=$2
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049 $as_echo_n "checking for $ac_word... " >&6; }
9050 if ${ac_cv_prog_NM+:} false
; then :
9051 $as_echo_n "(cached) " >&6
9053 if test -n "$NM"; then
9054 ac_cv_prog_NM
="$NM" # Let the user override the test.
9056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9060 test -z "$as_dir" && as_dir
=.
9061 for ac_exec_ext
in '' $ac_executable_extensions; do
9062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9071 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9075 if test -n "$NM"; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9077 $as_echo "$NM" >&6; }
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080 $as_echo "no" >&6; }
9087 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9088 && test -d ..
/binutils
; then
9089 AR
='${objdir}/../binutils/ar'
9091 # Extract the first word of "ar", so it can be a program name with args.
9092 set dummy
ar; ac_word
=$2
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 $as_echo_n "checking for $ac_word... " >&6; }
9095 if ${ac_cv_prog_AR+:} false
; then :
9096 $as_echo_n "(cached) " >&6
9098 if test -n "$AR"; then
9099 ac_cv_prog_AR
="$AR" # Let the user override the test.
9101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9105 test -z "$as_dir" && as_dir
=.
9106 for ac_exec_ext
in '' $ac_executable_extensions; do
9107 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9120 if test -n "$AR"; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9122 $as_echo "$AR" >&6; }
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125 $as_echo "no" >&6; }
9131 # The jit documentation looks better if built with sphinx, but can be
9132 # built with texinfo if sphinx is not available.
9133 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9134 # Extract the first word of "sphinx-build", so it can be a program name with args.
9135 set dummy sphinx-build
; 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_doc_build_sys+:} false
; then :
9139 $as_echo_n "(cached) " >&6
9141 if test -n "$doc_build_sys"; then
9142 ac_cv_prog_doc_build_sys
="$doc_build_sys" # 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
9151 ac_cv_prog_doc_build_sys
="sphinx"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9162 doc_build_sys
=$ac_cv_prog_doc_build_sys
9163 if test -n "$doc_build_sys"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9165 $as_echo "$doc_build_sys" >&6; }
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9173 # --------------------
9174 # Checks for C headers
9175 # --------------------
9177 # Need to reject headers which give warnings, so that the -Werror bootstrap
9178 # works later. *sigh* This needs to come before all header checks.
9180 ac_c_preproc_warn_flag
=yes
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9183 $as_echo_n "checking for ANSI C header files... " >&6; }
9184 if ${ac_cv_header_stdc+:} false
; then :
9185 $as_echo_n "(cached) " >&6
9187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9202 if ac_fn_cxx_try_compile
"$LINENO"; then :
9203 ac_cv_header_stdc
=yes
9205 ac_cv_header_stdc
=no
9207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9209 if test $ac_cv_header_stdc = yes; then
9210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9217 $EGREP "memchr" >/dev
/null
2>&1; then :
9220 ac_cv_header_stdc
=no
9226 if test $ac_cv_header_stdc = yes; then
9227 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9234 $EGREP "free" >/dev
/null
2>&1; then :
9237 ac_cv_header_stdc
=no
9243 if test $ac_cv_header_stdc = yes; then
9244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9245 if test "$cross_compiling" = yes; then :
9248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9252 #if ((' ' & 0x0FF) == 0x020)
9253 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9254 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9256 # define ISLOWER(c) \
9257 (('a' <= (c) && (c) <= 'i') \
9258 || ('j' <= (c) && (c) <= 'r') \
9259 || ('s' <= (c) && (c) <= 'z'))
9260 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9268 for (i = 0; i < 256; i++)
9269 if (XOR (islower (i), ISLOWER (i))
9270 || toupper (i) != TOUPPER (i))
9275 if ac_fn_cxx_try_run
"$LINENO"; then :
9278 ac_cv_header_stdc
=no
9280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9287 $as_echo "$ac_cv_header_stdc" >&6; }
9288 if test $ac_cv_header_stdc = yes; then
9290 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9295 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9296 if ${ac_cv_header_time+:} false
; then :
9297 $as_echo_n "(cached) " >&6
9299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #include <sys/types.h>
9302 #include <sys/time.h>
9308 if ((struct tm *) 0)
9314 if ac_fn_cxx_try_compile
"$LINENO"; then :
9315 ac_cv_header_time
=yes
9317 ac_cv_header_time
=no
9319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9322 $as_echo "$ac_cv_header_time" >&6; }
9323 if test $ac_cv_header_time = yes; then
9325 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9330 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9331 if ${gcc_cv_header_string+:} false
; then :
9332 $as_echo_n "(cached) " >&6
9334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9337 #include <strings.h>
9346 if ac_fn_cxx_try_compile
"$LINENO"; then :
9347 gcc_cv_header_string
=yes
9349 gcc_cv_header_string
=no
9351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9354 $as_echo "$gcc_cv_header_string" >&6; }
9355 if test $gcc_cv_header_string = yes; then
9357 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9362 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9363 if ${ac_cv_header_sys_wait_h+:} false
; then :
9364 $as_echo_n "(cached) " >&6
9366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 #include <sys/types.h>
9369 #include <sys/wait.h>
9371 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9374 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9382 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9387 if ac_fn_cxx_try_compile
"$LINENO"; then :
9388 ac_cv_header_sys_wait_h
=yes
9390 ac_cv_header_sys_wait_h
=no
9392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9395 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9396 if test $ac_cv_header_sys_wait_h = yes; then
9398 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9403 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9404 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9405 $as_echo_n "(cached) " >&6
9407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 #include <sys/types.h>
9410 #include <termios.h>
9416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9417 $EGREP "yes" >/dev
/null
2>&1; then :
9418 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9420 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9426 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9428 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9430 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9431 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9432 $as_echo_n "(cached) " >&6
9434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 #include <sys/types.h>
9437 #include <sys/ioctl.h>
9443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9444 $EGREP "yes" >/dev
/null
2>&1; then :
9445 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9447 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9453 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9455 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9457 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9462 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9463 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9464 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9465 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9467 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9468 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9469 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9470 cat >>confdefs.h
<<_ACEOF
9471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9478 # Check for thread headers.
9479 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9480 if test "x$ac_cv_header_thread_h" = xyes
; then :
9486 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9487 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9494 # These tests can't be done till we know if we have limits.h.
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9496 $as_echo_n "checking for CHAR_BIT... " >&6; }
9497 if ${gcc_cv_decl_char_bit+:} false
; then :
9498 $as_echo_n "(cached) " >&6
9500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502 #ifdef HAVE_LIMITS_H
9509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9510 $EGREP "found" >/dev
/null
2>&1; then :
9511 gcc_cv_decl_char_bit
=yes
9513 gcc_cv_decl_char_bit
=no
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9520 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9521 if test $gcc_cv_decl_char_bit = no
; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9523 $as_echo_n "checking number of bits in a byte... " >&6; }
9524 if ${gcc_cv_c_nbby+:} false
; then :
9525 $as_echo_n "(cached) " >&6
9529 while test $i -lt 65; do
9530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9537 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9538 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9544 if ac_fn_cxx_try_compile
"$LINENO"; then :
9545 gcc_cv_c_nbby
=$i; break
9547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9550 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9554 $as_echo "$gcc_cv_c_nbby" >&6; }
9555 if test $gcc_cv_c_nbby = failed
; then
9556 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9559 cat >>confdefs.h
<<_ACEOF
9560 #define CHAR_BIT $gcc_cv_c_nbby
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9566 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9567 if ${ac_cv_c_bigendian+:} false
; then :
9568 $as_echo_n "(cached) " >&6
9570 ac_cv_c_bigendian
=unknown
9571 # See if we're dealing with a universal compiler.
9572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9574 #ifndef __APPLE_CC__
9575 not a universal capable compiler
9580 if ac_fn_cxx_try_compile
"$LINENO"; then :
9582 # Check for potential -arch flags. It is not universal unless
9583 # there are at least two -arch flags with different values.
9586 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9587 if test -n "$ac_prev"; then
9589 i?
86 | x86_64 | ppc | ppc64
)
9590 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9593 ac_cv_c_bigendian
=universal
9599 elif test "x$ac_word" = "x-arch"; then
9604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9605 if test $ac_cv_c_bigendian = unknown
; then
9606 # See if sys/param.h defines the BYTE_ORDER macro.
9607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 #include <sys/types.h>
9610 #include <sys/param.h>
9615 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9616 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9625 if ac_fn_cxx_try_compile
"$LINENO"; then :
9626 # It does; now see whether it defined to BIG_ENDIAN or not.
9627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 #include <sys/types.h>
9630 #include <sys/param.h>
9635 #if BYTE_ORDER != BIG_ENDIAN
9643 if ac_fn_cxx_try_compile
"$LINENO"; then :
9644 ac_cv_c_bigendian
=yes
9646 ac_cv_c_bigendian
=no
9648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9652 if test $ac_cv_c_bigendian = unknown
; then
9653 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9661 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9669 if ac_fn_cxx_try_compile
"$LINENO"; then :
9670 # It does; now see whether it defined to _BIG_ENDIAN or not.
9671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
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 # Compile a test program.
9697 if test "$cross_compiling" = yes; then :
9698 # Try to guess by grepping values from an object file.
9699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 short int ascii_mm[] =
9702 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9703 short int ascii_ii[] =
9704 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9705 int use_ascii (int i) {
9706 return ascii_mm[i] + ascii_ii[i];
9708 short int ebcdic_ii[] =
9709 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9710 short int ebcdic_mm[] =
9711 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9712 int use_ebcdic (int i) {
9713 return ebcdic_mm[i] + ebcdic_ii[i];
9720 return use_ascii (foo) == use_ebcdic (foo);
9725 if ac_fn_cxx_try_compile
"$LINENO"; then :
9726 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9727 ac_cv_c_bigendian
=yes
9729 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9730 if test "$ac_cv_c_bigendian" = unknown
; then
9731 ac_cv_c_bigendian
=no
9733 # finding both strings is unlikely to happen, but who knows?
9734 ac_cv_c_bigendian
=unknown
9738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9742 $ac_includes_default
9747 /* Are we little or big endian? From Harbison&Steele. */
9751 char c[sizeof (long int)];
9754 return u.c[sizeof (long int) - 1] == 1;
9760 if ac_fn_cxx_try_run
"$LINENO"; then :
9761 ac_cv_c_bigendian
=no
9763 ac_cv_c_bigendian
=yes
9765 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9766 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9772 $as_echo "$ac_cv_c_bigendian" >&6; }
9773 case $ac_cv_c_bigendian in #(
9775 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9781 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9785 as_fn_error $?
"unknown endianness
9786 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9790 # ----------------------
9791 # Checks for C++ headers
9792 # ----------------------
9795 ac_cpp
='$CXXCPP $CPPFLAGS'
9796 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9797 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9798 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9800 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9801 if test -z "$CXXCPP"; then
9802 if ${ac_cv_prog_CXXCPP+:} false
; then :
9803 $as_echo_n "(cached) " >&6
9805 # Double quotes because CXXCPP needs to be expanded
9806 for CXXCPP
in "$CXX -E" "/lib/cpp"
9809 for ac_cxx_preproc_warn_flag
in '' yes
9811 # Use a header file that comes with gcc, so configuring glibc
9812 # with a fresh cross-compiler works.
9813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9814 # <limits.h> exists even on freestanding compilers.
9815 # On the NeXT, cc -E runs the code through the compiler's parser,
9816 # not just through cpp. "Syntax error" is here to catch this case.
9817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9820 # include <limits.h>
9822 # include <assert.h>
9826 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9829 # Broken: fails on valid input.
9832 rm -f conftest.err conftest.i conftest.
$ac_ext
9834 # OK, works on sane cases. Now check whether nonexistent headers
9835 # can be detected and how.
9836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 #include <ac_nonexistent.h>
9840 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9841 # Broken: success on invalid input.
9844 # Passes both tests.
9848 rm -f conftest.err conftest.i conftest.
$ac_ext
9851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9852 rm -f conftest.i conftest.err conftest.
$ac_ext
9853 if $ac_preproc_ok; then :
9858 ac_cv_prog_CXXCPP
=$CXXCPP
9861 CXXCPP
=$ac_cv_prog_CXXCPP
9863 ac_cv_prog_CXXCPP
=$CXXCPP
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9866 $as_echo "$CXXCPP" >&6; }
9868 for ac_cxx_preproc_warn_flag
in '' yes
9870 # Use a header file that comes with gcc, so configuring glibc
9871 # with a fresh cross-compiler works.
9872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9873 # <limits.h> exists even on freestanding compilers.
9874 # On the NeXT, cc -E runs the code through the compiler's parser,
9875 # not just through cpp. "Syntax error" is here to catch this case.
9876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9879 # include <limits.h>
9881 # include <assert.h>
9885 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9888 # Broken: fails on valid input.
9891 rm -f conftest.err conftest.i conftest.
$ac_ext
9893 # OK, works on sane cases. Now check whether nonexistent headers
9894 # can be detected and how.
9895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9897 #include <ac_nonexistent.h>
9899 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9900 # Broken: success on invalid input.
9903 # Passes both tests.
9907 rm -f conftest.err conftest.i conftest.
$ac_ext
9910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9911 rm -f conftest.i conftest.err conftest.
$ac_ext
9912 if $ac_preproc_ok; then :
9915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9918 See \`config.log' for more details" >&5
9919 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9920 See \`config.log' for more details" >&2;}; }
9924 ac_cpp
='$CXXCPP $CPPFLAGS'
9925 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9926 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9927 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9930 for ac_header
in unordered_map
9932 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9933 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9934 cat >>confdefs.h
<<_ACEOF
9935 #define HAVE_UNORDERED_MAP 1
9941 for ac_header
in tr1/unordered_map
9943 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9944 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9945 cat >>confdefs.h
<<_ACEOF
9946 #define HAVE_TR1_UNORDERED_MAP 1
9952 for ac_header
in ext
/hash_map
9954 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9955 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9956 cat >>confdefs.h
<<_ACEOF
9957 #define HAVE_EXT_HASH_MAP 1
9965 # Dependency checking.
9968 rm -rf .tst
2>/dev
/null
9969 mkdir .tst
2>/dev
/null
9970 if test -d .tst
; then
9975 rmdir .tst
2>/dev
/null
9977 DEPDIR
="${am__leading_dot}deps"
9979 ac_config_commands
="$ac_config_commands depdir"
9982 ac_config_commands
="$ac_config_commands gccdepdir"
9985 depcc
="$CXX" am_compiler_list
=
9987 am_depcomp
=$ac_aux_dir/depcomp
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9989 $as_echo_n "checking dependency style of $depcc... " >&6; }
9990 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9991 $as_echo_n "(cached) " >&6
9993 if test -f "$am_depcomp"; then
9994 # We make a subdir and do the tests there. Otherwise we can end up
9995 # making bogus files that we don't know about and never remove. For
9996 # instance it was reported that on HP-UX the gcc test will end up
9997 # making a dummy file named `D' -- because `-MD' means `put the output
10000 # Copy depcomp to subdir because otherwise we won't find it if we're
10001 # using a relative directory.
10002 cp "$am_depcomp" conftest.dir
10004 # We will build objects and dependencies in a subdirectory because
10005 # it helps to detect inapplicable dependency modes. For instance
10006 # both Tru64's cc and ICC support -MD to output dependencies as a
10007 # side effect of compilation, but ICC will put the dependencies in
10008 # the current directory while Tru64 will put them in the object
10012 am_cv_CXX_dependencies_compiler_type
=none
10013 if test "$am_compiler_list" = ""; then
10014 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10016 for depmode
in $am_compiler_list; do
10017 if test $depmode = none
; then break; fi
10019 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10020 # Setup a source with many dependencies, because some compilers
10021 # like to wrap large dependency lists on column 80 (with \), and
10022 # we should not choose a depcomp mode which is confused by this.
10024 # We need to recreate these files for each test, as the compiler may
10025 # overwrite some of them when testing with obscure command lines.
10026 # This happens at least with the AIX C compiler.
10028 for i
in 1 2 3 4 5 6; do
10029 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10030 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10031 # Solaris 8's {/usr,}/bin/sh.
10032 touch sub
/conftst
$i.h
10034 echo "include sub/conftest.Po" > confmf
10036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10037 # mode. It turns out that the SunPro C++ compiler does not properly
10038 # handle `-M -o', and we need to detect this.
10039 depcmd
="depmode=$depmode \
10040 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10042 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10043 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
10044 if env
$depcmd > conftest.err
2>&1 &&
10045 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
10046 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
10047 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
10048 # icc doesn't choke on unknown options, it will just issue warnings
10049 # or remarks (even with -Werror). So we grep stderr for any message
10050 # that says an option was ignored or not supported.
10051 # When given -MP, icc 7.0 and 7.1 complain thusly:
10052 # icc: Command line warning: ignoring option '-M'; no argument required
10053 # The diagnosis changed in icc 8.0:
10054 # icc: Command line remark: option '-MP' not supported
10055 if (grep 'ignoring option' conftest.err ||
10056 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10057 am_cv_CXX_dependencies_compiler_type
=$depmode
10058 $as_echo "$as_me:$LINENO: success" >&5
10062 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10063 sed -e 's/^/| /' < conftest.err
>&5
10067 rm -rf conftest.dir
10069 am_cv_CXX_dependencies_compiler_type
=none
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10074 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10075 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10076 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10077 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10087 # These libraries may be used by collect2.
10088 # We may need a special search path to get them linked.
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10090 $as_echo_n "checking for collect2 libraries... " >&6; }
10091 if ${gcc_cv_collect2_libs+:} false
; then :
10092 $as_echo_n "(cached) " >&6
10095 for libs
in '' -lld -lmld \
10096 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10097 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10118 if ac_fn_cxx_try_link
"$LINENO"; then :
10119 gcc_cv_collect2_libs
="$libs"; break
10121 rm -f core conftest.err conftest.
$ac_objext \
10122 conftest
$ac_exeext conftest.
$ac_ext
10125 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10128 $as_echo "$gcc_cv_collect2_libs" >&6; }
10129 case $gcc_cv_collect2_libs in
10130 "none required") ;;
10131 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10135 # When building Ada code on Alpha, we need exc_resume which is usually in
10136 # -lexc. So test for it.
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10140 $as_echo_n "checking for library containing exc_resume... " >&6; }
10141 if ${ac_cv_search_exc_resume+:} false
; then :
10142 $as_echo_n "(cached) " >&6
10144 ac_func_search_save_LIBS
=$LIBS
10145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10148 /* Override any GCC internal prototype to avoid an error.
10149 Use char because int might match the return type of a GCC
10150 builtin and then its argument prototype would still apply. */
10154 char exc_resume ();
10158 return exc_resume ();
10163 for ac_lib
in '' exc
; do
10164 if test -z "$ac_lib"; then
10165 ac_res
="none required"
10168 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10170 if ac_fn_cxx_try_link
"$LINENO"; then :
10171 ac_cv_search_exc_resume
=$ac_res
10173 rm -f core conftest.err conftest.
$ac_objext \
10175 if ${ac_cv_search_exc_resume+:} false
; then :
10179 if ${ac_cv_search_exc_resume+:} false
; then :
10182 ac_cv_search_exc_resume
=no
10184 rm conftest.
$ac_ext
10185 LIBS
=$ac_func_search_save_LIBS
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10188 $as_echo "$ac_cv_search_exc_resume" >&6; }
10189 ac_res
=$ac_cv_search_exc_resume
10190 if test "$ac_res" != no
; then :
10191 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10195 GNAT_LIBEXC
="$LIBS"
10199 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10203 $as_echo_n "checking for library containing kstat_open... " >&6; }
10204 if ${ac_cv_search_kstat_open+:} false
; then :
10205 $as_echo_n "(cached) " >&6
10207 ac_func_search_save_LIBS
=$LIBS
10208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h. */
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10217 char kstat_open ();
10221 return kstat_open ();
10226 for ac_lib
in '' kstat
; do
10227 if test -z "$ac_lib"; then
10228 ac_res
="none required"
10231 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10233 if ac_fn_cxx_try_link
"$LINENO"; then :
10234 ac_cv_search_kstat_open
=$ac_res
10236 rm -f core conftest.err conftest.
$ac_objext \
10238 if ${ac_cv_search_kstat_open+:} false
; then :
10242 if ${ac_cv_search_kstat_open+:} false
; then :
10245 ac_cv_search_kstat_open
=no
10247 rm conftest.
$ac_ext
10248 LIBS
=$ac_func_search_save_LIBS
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10251 $as_echo "$ac_cv_search_kstat_open" >&6; }
10252 ac_res
=$ac_cv_search_kstat_open
10253 if test "$ac_res" != no
; then :
10254 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10258 EXTRA_GCC_LIBS
="$LIBS"
10262 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10263 # C++ needs those for libcody.
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10268 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10269 if ${ac_cv_search_gethostbyname+:} false
; then :
10270 $as_echo_n "(cached) " >&6
10272 ac_func_search_save_LIBS
=$LIBS
10273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10276 /* Override any GCC internal prototype to avoid an error.
10277 Use char because int might match the return type of a GCC
10278 builtin and then its argument prototype would still apply. */
10282 char gethostbyname ();
10286 return gethostbyname ();
10291 for ac_lib
in '' nsl
; do
10292 if test -z "$ac_lib"; then
10293 ac_res
="none required"
10296 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10298 if ac_fn_cxx_try_link
"$LINENO"; then :
10299 ac_cv_search_gethostbyname
=$ac_res
10301 rm -f core conftest.err conftest.
$ac_objext \
10303 if ${ac_cv_search_gethostbyname+:} false
; then :
10307 if ${ac_cv_search_gethostbyname+:} false
; then :
10310 ac_cv_search_gethostbyname
=no
10312 rm conftest.
$ac_ext
10313 LIBS
=$ac_func_search_save_LIBS
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10316 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10317 ac_res
=$ac_cv_search_gethostbyname
10318 if test "$ac_res" != no
; then :
10319 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10324 $as_echo_n "checking for library containing socket... " >&6; }
10325 if ${ac_cv_search_socket+:} false
; then :
10326 $as_echo_n "(cached) " >&6
10328 ac_func_search_save_LIBS
=$LIBS
10329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10330 /* end confdefs.h. */
10332 /* Override any GCC internal prototype to avoid an error.
10333 Use char because int might match the return type of a GCC
10334 builtin and then its argument prototype would still apply. */
10347 for ac_lib
in '' socket
; do
10348 if test -z "$ac_lib"; then
10349 ac_res
="none required"
10352 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10354 if ac_fn_cxx_try_link
"$LINENO"; then :
10355 ac_cv_search_socket
=$ac_res
10357 rm -f core conftest.err conftest.
$ac_objext \
10359 if ${ac_cv_search_socket+:} false
; then :
10363 if ${ac_cv_search_socket+:} false
; then :
10366 ac_cv_search_socket
=no
10368 rm conftest.
$ac_ext
10369 LIBS
=$ac_func_search_save_LIBS
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10372 $as_echo "$ac_cv_search_socket" >&6; }
10373 ac_res
=$ac_cv_search_socket
10374 if test "$ac_res" != no
; then :
10375 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10380 $as_echo_n "checking for socket in -lsocket... " >&6; }
10381 if ${ac_cv_lib_socket_socket+:} false
; then :
10382 $as_echo_n "(cached) " >&6
10384 ac_check_lib_save_LIBS
=$LIBS
10385 LIBS
="-lsocket -lnsl $LIBS"
10386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10389 /* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
10404 if ac_fn_cxx_try_link
"$LINENO"; then :
10405 ac_cv_lib_socket_socket
=yes
10407 ac_cv_lib_socket_socket
=no
10409 rm -f core conftest.err conftest.
$ac_objext \
10410 conftest
$ac_exeext conftest.
$ac_ext
10411 LIBS
=$ac_check_lib_save_LIBS
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10414 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10415 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10416 LIBS
="-lsocket -lnsl $LIBS"
10426 # Some systems put ldexp and frexp in libm instead of libc; assume
10427 # they're both in the same place. jcf-dump needs them.
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10431 $as_echo_n "checking for library containing ldexp... " >&6; }
10432 if ${ac_cv_search_ldexp+:} false
; then :
10433 $as_echo_n "(cached) " >&6
10435 ac_func_search_save_LIBS
=$LIBS
10436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10439 /* Override any GCC internal prototype to avoid an error.
10440 Use char because int might match the return type of a GCC
10441 builtin and then its argument prototype would still apply. */
10454 for ac_lib
in '' m
; do
10455 if test -z "$ac_lib"; then
10456 ac_res
="none required"
10459 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10461 if ac_fn_cxx_try_link
"$LINENO"; then :
10462 ac_cv_search_ldexp
=$ac_res
10464 rm -f core conftest.err conftest.
$ac_objext \
10466 if ${ac_cv_search_ldexp+:} false
; then :
10470 if ${ac_cv_search_ldexp+:} false
; then :
10473 ac_cv_search_ldexp
=no
10475 rm conftest.
$ac_ext
10476 LIBS
=$ac_func_search_save_LIBS
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10479 $as_echo "$ac_cv_search_ldexp" >&6; }
10480 ac_res
=$ac_cv_search_ldexp
10481 if test "$ac_res" != no
; then :
10482 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10490 # Some systems need dlopen
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10494 $as_echo_n "checking for library containing dlopen... " >&6; }
10495 if ${ac_cv_search_dlopen+:} false
; then :
10496 $as_echo_n "(cached) " >&6
10498 ac_func_search_save_LIBS
=$LIBS
10499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10502 /* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10517 for ac_lib
in '' dl
; do
10518 if test -z "$ac_lib"; then
10519 ac_res
="none required"
10522 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10524 if ac_fn_cxx_try_link
"$LINENO"; then :
10525 ac_cv_search_dlopen
=$ac_res
10527 rm -f core conftest.err conftest.
$ac_objext \
10529 if ${ac_cv_search_dlopen+:} false
; then :
10533 if ${ac_cv_search_dlopen+:} false
; then :
10536 ac_cv_search_dlopen
=no
10538 rm conftest.
$ac_ext
10539 LIBS
=$ac_func_search_save_LIBS
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10542 $as_echo "$ac_cv_search_dlopen" >&6; }
10543 ac_res
=$ac_cv_search_dlopen
10544 if test "$ac_res" != no
; then :
10545 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10553 # Use <inttypes.h> only if it exists,
10554 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10557 $as_echo_n "checking for inttypes.h... " >&6; }
10558 if ${gcc_cv_header_inttypes_h+:} false
; then :
10559 $as_echo_n "(cached) " >&6
10561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #define __STDC_FORMAT_MACROS
10564 #include <sys/types.h>
10565 #include <inttypes.h>
10577 if ac_fn_cxx_try_compile
"$LINENO"; then :
10578 gcc_cv_header_inttypes_h
=yes
10580 gcc_cv_header_inttypes_h
=no
10582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10586 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10587 if test $gcc_cv_header_inttypes_h = yes; then
10589 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10593 # Look for the ZSTD package.
10603 # Check whether --with-zstd was given.
10604 if test "${with_zstd+set}" = set; then :
10605 withval
=$with_zstd;
10609 # Check whether --with-zstd-include was given.
10610 if test "${with_zstd_include+set}" = set; then :
10611 withval
=$with_zstd_include;
10615 # Check whether --with-zstd-lib was given.
10616 if test "${with_zstd_lib+set}" = set; then :
10617 withval
=$with_zstd_lib;
10620 case "x$with_zstd" in
10626 *) ZSTD_INCLUDE
=$with_zstd/include
10627 ZSTD_LIB
=$with_zstd/lib
10631 if test "x$with_zstd" != xno
; then
10632 if test "x$with_zstd_include" != x
; then
10633 ZSTD_INCLUDE
=$with_zstd_include
10635 if test "x$with_zstd_lib" != x
; then
10636 ZSTD_LIB
=$with_zstd_lib
10638 if test "x$ZSTD_INCLUDE" != x \
10639 && test "x$ZSTD_INCLUDE" != xno
; then
10640 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10642 if test "x$ZSTD_LIB" != x \
10643 && test "x$ZSTD_LIB" != xno
; then
10644 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10647 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10648 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10650 # LTO can use zstd compression algorithm
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10654 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10655 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10656 $as_echo_n "(cached) " >&6
10658 ac_func_search_save_LIBS
=$LIBS
10659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10668 char ZSTD_compress ();
10672 return ZSTD_compress ();
10677 for ac_lib
in '' zstd
; do
10678 if test -z "$ac_lib"; then
10679 ac_res
="none required"
10682 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10684 if ac_fn_cxx_try_link
"$LINENO"; then :
10685 ac_cv_search_ZSTD_compress
=$ac_res
10687 rm -f core conftest.err conftest.
$ac_objext \
10689 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10693 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10696 ac_cv_search_ZSTD_compress
=no
10698 rm conftest.
$ac_ext
10699 LIBS
=$ac_func_search_save_LIBS
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10702 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10703 ac_res
=$ac_cv_search_ZSTD_compress
10704 if test "$ac_res" != no
; then :
10705 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10708 gcc_cv_header_zstd_h
=no
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10716 $as_echo_n "checking for zstd.h... " >&6; }
10717 if ${gcc_cv_header_zstd_h+:} false
; then :
10718 $as_echo_n "(cached) " >&6
10720 # We require version 1.3.0 or later. This is the first version that has
10721 # ZSTD_getFrameContentSize.
10722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10725 #if ZSTD_VERSION_NUMBER < 10300
10726 #error "need zstd 1.3.0 or better"
10736 if ac_fn_cxx_try_compile
"$LINENO"; then :
10737 gcc_cv_header_zstd_h
=yes
10739 gcc_cv_header_zstd_h
=no
10741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10745 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10746 if test $gcc_cv_header_zstd_h = yes; then
10748 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10750 elif test "x$with_zstd" != x
; then
10751 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10757 for ac_func
in times clock kill getrlimit setrlimit atoq \
10758 popen sysconf strsignal getrusage nl_langinfo \
10759 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10760 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
10762 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10763 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10764 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10765 cat >>confdefs.h
<<_ACEOF
10766 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10773 if test x
$ac_cv_func_mbstowcs = xyes
; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10775 $as_echo_n "checking whether mbstowcs works... " >&6; }
10776 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10777 $as_echo_n "(cached) " >&6
10779 if test "$cross_compiling" = yes; then :
10780 gcc_cv_func_mbstowcs_works
=yes
10782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #include <stdlib.h>
10787 mbstowcs(0, "", 0);
10791 if ac_fn_cxx_try_run
"$LINENO"; then :
10792 gcc_cv_func_mbstowcs_works
=yes
10794 gcc_cv_func_mbstowcs_works
=no
10796 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10797 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10802 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10803 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10805 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10810 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10811 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10815 cat >>confdefs.h
<<_ACEOF
10816 #define ssize_t int
10821 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10822 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10826 cat >>confdefs.h
<<_ACEOF
10827 #define caddr_t char *
10832 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10834 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10836 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10842 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10843 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10844 gcc_header_sys_mman_h
=yes
10846 gcc_header_sys_mman_h
=no
10849 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10850 if test "x$ac_cv_func_mmap" = xyes
; then :
10856 if test "$gcc_header_sys_mman_h" != yes \
10857 ||
test "$gcc_func_mmap" != yes; then
10858 gcc_cv_func_mmap_file
=no
10859 gcc_cv_func_mmap_dev_zero
=no
10860 gcc_cv_func_mmap_anon
=no
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10863 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10864 if ${gcc_cv_func_mmap_file+:} false
; then :
10865 $as_echo_n "(cached) " >&6
10867 # Add a system to this blacklist if
10868 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10869 # memory area containing the same data that you'd get if you applied
10870 # read() to the same fd. The only system known to have a problem here
10871 # is VMS, where text files have record structure.
10874 gcc_cv_func_mmap_file
=no
;;
10876 gcc_cv_func_mmap_file
=yes;;
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10880 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10882 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10883 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10884 $as_echo_n "(cached) " >&6
10886 # Add a system to this blacklist if it has mmap() but /dev/zero
10887 # does not exist, or if mmapping /dev/zero does not give anonymous
10888 # zeroed pages with both the following properties:
10889 # 1. If you map N consecutive pages in with one call, and then
10890 # unmap any subset of those pages, the pages that were not
10891 # explicitly unmapped remain accessible.
10892 # 2. If you map two adjacent blocks of memory and then unmap them
10893 # both at once, they must both go away.
10894 # Systems known to be in this category are Windows (all variants),
10897 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10898 gcc_cv_func_mmap_dev_zero
=no
;;
10900 gcc_cv_func_mmap_dev_zero
=yes;;
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10904 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10906 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10908 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10909 if ${gcc_cv_decl_map_anon+:} false
; then :
10910 $as_echo_n "(cached) " >&6
10912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914 #include <sys/types.h>
10915 #include <sys/mman.h>
10916 #include <unistd.h>
10918 #ifndef MAP_ANONYMOUS
10919 #define MAP_ANONYMOUS MAP_ANON
10925 int n = MAP_ANONYMOUS;
10930 if ac_fn_cxx_try_compile
"$LINENO"; then :
10931 gcc_cv_decl_map_anon
=yes
10933 gcc_cv_decl_map_anon
=no
10935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10938 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10940 if test $gcc_cv_decl_map_anon = no
; then
10941 gcc_cv_func_mmap_anon
=no
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10944 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10945 if ${gcc_cv_func_mmap_anon+:} false
; then :
10946 $as_echo_n "(cached) " >&6
10948 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10949 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10950 # doesn't give anonymous zeroed pages with the same properties listed
10951 # above for use of /dev/zero.
10952 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10954 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10955 gcc_cv_func_mmap_anon
=no
;;
10957 gcc_cv_func_mmap_anon
=yes;;
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10961 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10965 if test $gcc_cv_func_mmap_file = yes; then
10967 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10970 if test $gcc_cv_func_mmap_dev_zero = yes; then
10972 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10975 if test $gcc_cv_func_mmap_anon = yes; then
10977 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10984 # Under VMS, vfork works very differently than on Unix. The standard test
10985 # won't work, and it isn't easily adaptable. It makes more sense to
10987 ac_cv_func_vfork_works
=yes
10990 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10991 if test "x$ac_cv_type_pid_t" = xyes
; then :
10995 cat >>confdefs.h
<<_ACEOF
11001 for ac_header
in vfork.h
11003 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11004 if test "x$ac_cv_header_vfork_h" = xyes
; then :
11005 cat >>confdefs.h
<<_ACEOF
11006 #define HAVE_VFORK_H 1
11012 for ac_func
in fork vfork
11014 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11015 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11016 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11017 cat >>confdefs.h
<<_ACEOF
11018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11024 if test "x$ac_cv_func_fork" = xyes
; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11026 $as_echo_n "checking for working fork... " >&6; }
11027 if ${ac_cv_func_fork_works+:} false
; then :
11028 $as_echo_n "(cached) " >&6
11030 if test "$cross_compiling" = yes; then :
11031 ac_cv_func_fork_works
=cross
11033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035 $ac_includes_default
11040 /* By Ruediger Kuhlmann. */
11041 return fork () < 0;
11047 if ac_fn_cxx_try_run
"$LINENO"; then :
11048 ac_cv_func_fork_works
=yes
11050 ac_cv_func_fork_works
=no
11052 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11053 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11058 $as_echo "$ac_cv_func_fork_works" >&6; }
11061 ac_cv_func_fork_works
=$ac_cv_func_fork
11063 if test "x$ac_cv_func_fork_works" = xcross
; then
11065 *-*-amigaos* |
*-*-msdosdjgpp*)
11066 # Override, as these systems have only a dummy fork() stub
11067 ac_cv_func_fork_works
=no
11070 ac_cv_func_fork_works
=yes
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11074 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11076 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11077 if test "x$ac_cv_func_vfork" = xyes
; then
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11079 $as_echo_n "checking for working vfork... " >&6; }
11080 if ${ac_cv_func_vfork_works+:} false
; then :
11081 $as_echo_n "(cached) " >&6
11083 if test "$cross_compiling" = yes; then :
11084 ac_cv_func_vfork_works
=cross
11086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11088 /* Thanks to Paul Eggert for this test. */
11089 $ac_includes_default
11090 #include <sys/wait.h>
11091 #ifdef HAVE_VFORK_H
11092 # include <vfork.h>
11094 /* On some sparc systems, changes by the child to local and incoming
11095 argument registers are propagated back to the parent. The compiler
11096 is told about this with #include <vfork.h>, but some compilers
11097 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11098 static variable whose address is put into a register that is
11099 clobbered by the vfork. */
11102 sparc_address_test (int arg)
11104 sparc_address_test (arg) int arg;
11107 static pid_t child;
11125 pid_t parent = getpid ();
11128 sparc_address_test (0);
11133 /* Here is another test for sparc vfork register problems. This
11134 test uses lots of local variables, at least as many local
11135 variables as main has allocated so far including compiler
11136 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11137 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11138 reuse the register of parent for one of the local variables,
11139 since it will think that parent can't possibly be used any more
11140 in this routine. Assigning to the local variable will thus
11141 munge parent in the parent process. */
11143 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11144 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11145 /* Convince the compiler that p..p7 are live; otherwise, it might
11146 use the same hardware register for all 8 local variables. */
11147 if (p != p1 || p != p2 || p != p3 || p != p4
11148 || p != p5 || p != p6 || p != p7)
11151 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11152 from child file descriptors. If the child closes a descriptor
11153 before it execs or exits, this munges the parent's descriptor
11154 as well. Test for this by closing stdout in the child. */
11155 _exit(close(fileno(stdout)) != 0);
11160 while (wait(&status) != child)
11163 /* Was there some problem with vforking? */
11166 /* Did the child fail? (This shouldn't happen.) */
11169 /* Did the vfork/compiler bug occur? */
11170 || parent != getpid()
11172 /* Did the file descriptor bug occur? */
11173 || fstat(fileno(stdout), &st) != 0
11178 if ac_fn_cxx_try_run
"$LINENO"; then :
11179 ac_cv_func_vfork_works
=yes
11181 ac_cv_func_vfork_works
=no
11183 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11184 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11189 $as_echo "$ac_cv_func_vfork_works" >&6; }
11192 if test "x$ac_cv_func_fork_works" = xcross
; then
11193 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11195 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11198 if test "x$ac_cv_func_vfork_works" = xyes
; then
11200 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11204 $as_echo "#define vfork fork" >>confdefs.h
11207 if test "x$ac_cv_func_fork_works" = xyes
; then
11209 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11215 if test "X$prefix" = "XNONE"; then
11216 acl_final_prefix
="$ac_default_prefix"
11218 acl_final_prefix
="$prefix"
11220 if test "X$exec_prefix" = "XNONE"; then
11221 acl_final_exec_prefix
='${prefix}'
11223 acl_final_exec_prefix
="$exec_prefix"
11225 acl_save_prefix
="$prefix"
11226 prefix
="$acl_final_prefix"
11227 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11228 prefix
="$acl_save_prefix"
11231 # Check whether --with-gnu-ld was given.
11232 if test "${with_gnu_ld+set}" = set; then :
11233 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11238 # Prepare PATH_SEPARATOR.
11239 # The user is always right.
11240 if test "${PATH_SEPARATOR+set}" != set; then
11241 echo "#! /bin/sh" >conf$$.sh
11242 echo "exit 0" >>conf$$.sh
11244 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11252 if test "$GCC" = yes; then
11253 # Check if gcc -print-prog-name=ld gives a path.
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11255 $as_echo_n "checking for ld used by GCC... " >&6; }
11258 # gcc leaves a trailing carriage return which upsets mingw
11259 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11261 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11264 # Accept absolute paths.
11265 [\\/]* |
[A-Za-z
]:[\\/]*)
11266 re_direlt
='/[^/][^/]*/\.\./'
11267 # Canonicalize the path of ld
11268 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11269 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11270 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11272 test -z "$LD" && LD
="$ac_prog"
11275 # If it fails, then pretend we aren't using GCC.
11279 # If it is relative, then search for the first ld in PATH.
11280 with_gnu_ld
=unknown
11283 elif test "$with_gnu_ld" = yes; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11285 $as_echo_n "checking for GNU ld... " >&6; }
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11288 $as_echo_n "checking for non-GNU ld... " >&6; }
11290 if ${acl_cv_path_LD+:} false
; then :
11291 $as_echo_n "(cached) " >&6
11293 if test -z "$LD"; then
11294 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11295 for ac_dir
in $PATH; do
11296 test -z "$ac_dir" && ac_dir
=.
11297 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11298 acl_cv_path_LD
="$ac_dir/$ac_prog"
11299 # Check to see if the program is GNU ld. I'd rather use --version,
11300 # but apparently some GNU ld's only accept -v.
11301 # Break only if it was the GNU/non-GNU ld that we prefer.
11302 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11303 test "$with_gnu_ld" != no
&& break
11305 test "$with_gnu_ld" != yes && break
11311 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11315 LD
="$acl_cv_path_LD"
11316 if test -n "$LD"; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11318 $as_echo "$LD" >&6; }
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11323 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11325 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11326 if ${acl_cv_prog_gnu_ld+:} false
; then :
11327 $as_echo_n "(cached) " >&6
11329 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11330 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11331 acl_cv_prog_gnu_ld
=yes
11333 acl_cv_prog_gnu_ld
=no
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11337 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11338 with_gnu_ld
=$acl_cv_prog_gnu_ld
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11343 $as_echo_n "checking for shared library run path origin... " >&6; }
11344 if ${acl_cv_rpath+:} false
; then :
11345 $as_echo_n "(cached) " >&6
11348 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11349 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11351 rm -f .
/conftest.sh
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11356 $as_echo "$acl_cv_rpath" >&6; }
11358 libext
="$acl_cv_libext"
11359 shlibext
="$acl_cv_shlibext"
11360 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11361 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11362 hardcode_direct
="$acl_cv_hardcode_direct"
11363 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11364 # Check whether --enable-rpath was given.
11365 if test "${enable_rpath+set}" = set; then :
11366 enableval
=$enable_rpath; :
11380 acl_save_prefix
="$prefix"
11381 prefix
="$acl_final_prefix"
11382 acl_save_exec_prefix
="$exec_prefix"
11383 exec_prefix
="$acl_final_exec_prefix"
11385 eval additional_includedir
=\"$includedir\"
11386 eval additional_libdir
=\"$libdir\"
11388 exec_prefix
="$acl_save_exec_prefix"
11389 prefix
="$acl_save_prefix"
11392 # Check whether --with-libiconv-prefix was given.
11393 if test "${with_libiconv_prefix+set}" = set; then :
11394 withval
=$with_libiconv_prefix;
11395 if test "X$withval" = "Xno"; then
11398 if test "X$withval" = "X"; then
11400 acl_save_prefix
="$prefix"
11401 prefix
="$acl_final_prefix"
11402 acl_save_exec_prefix
="$exec_prefix"
11403 exec_prefix
="$acl_final_exec_prefix"
11405 eval additional_includedir
=\"$includedir\"
11406 eval additional_libdir
=\"$libdir\"
11408 exec_prefix
="$acl_save_exec_prefix"
11409 prefix
="$acl_save_prefix"
11412 additional_includedir
="$withval/include"
11413 additional_libdir
="$withval/lib"
11420 # Check whether --with-libiconv-type was given.
11421 if test "${with_libiconv_type+set}" = set; then :
11422 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11424 with_libiconv_type
=auto
11427 lib_type
=`eval echo \$with_libiconv_type`
11434 names_already_handled
=
11435 names_next_round
='iconv '
11436 while test -n "$names_next_round"; do
11437 names_this_round
="$names_next_round"
11439 for name
in $names_this_round; do
11441 for n
in $names_already_handled; do
11442 if test "$n" = "$name"; then
11443 already_handled
=yes
11447 if test -z "$already_handled"; then
11448 names_already_handled
="$names_already_handled $name"
11449 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11450 eval value
=\"\
$HAVE_LIB$uppername\"
11451 if test -n "$value"; then
11452 if test "$value" = yes; then
11453 eval value
=\"\
$LIB$uppername\"
11454 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11455 eval value
=\"\
$LTLIB$uppername\"
11456 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11465 if test $use_additional = yes; then
11466 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11467 found_dir
="$additional_libdir"
11468 found_so
="$additional_libdir/lib$name.$shlibext"
11469 if test -f "$additional_libdir/lib$name.la"; then
11470 found_la
="$additional_libdir/lib$name.la"
11472 elif test x
$lib_type != xshared
; then
11473 if test -f "$additional_libdir/lib$name.$libext"; then
11474 found_dir
="$additional_libdir"
11475 found_a
="$additional_libdir/lib$name.$libext"
11476 if test -f "$additional_libdir/lib$name.la"; then
11477 found_la
="$additional_libdir/lib$name.la"
11482 if test "X$found_dir" = "X"; then
11483 for x
in $LDFLAGS $LTLIBICONV; do
11485 acl_save_prefix
="$prefix"
11486 prefix
="$acl_final_prefix"
11487 acl_save_exec_prefix
="$exec_prefix"
11488 exec_prefix
="$acl_final_exec_prefix"
11490 exec_prefix
="$acl_save_exec_prefix"
11491 prefix
="$acl_save_prefix"
11495 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11496 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11498 found_so
="$dir/lib$name.$shlibext"
11499 if test -f "$dir/lib$name.la"; then
11500 found_la
="$dir/lib$name.la"
11502 elif test x
$lib_type != xshared
; then
11503 if test -f "$dir/lib$name.$libext"; then
11505 found_a
="$dir/lib$name.$libext"
11506 if test -f "$dir/lib$name.la"; then
11507 found_la
="$dir/lib$name.la"
11513 if test "X$found_dir" != "X"; then
11518 if test "X$found_dir" != "X"; then
11519 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11520 if test "X$found_so" != "X"; then
11521 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11522 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11525 for x
in $ltrpathdirs; do
11526 if test "X$x" = "X$found_dir"; then
11531 if test -z "$haveit"; then
11532 ltrpathdirs
="$ltrpathdirs $found_dir"
11534 if test "$hardcode_direct" = yes; then
11535 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11537 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11538 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11540 for x
in $rpathdirs; do
11541 if test "X$x" = "X$found_dir"; then
11546 if test -z "$haveit"; then
11547 rpathdirs
="$rpathdirs $found_dir"
11551 for x
in $LDFLAGS $LIBICONV; do
11553 acl_save_prefix
="$prefix"
11554 prefix
="$acl_final_prefix"
11555 acl_save_exec_prefix
="$exec_prefix"
11556 exec_prefix
="$acl_final_exec_prefix"
11558 exec_prefix
="$acl_save_exec_prefix"
11559 prefix
="$acl_save_prefix"
11561 if test "X$x" = "X-L$found_dir"; then
11566 if test -z "$haveit"; then
11567 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11569 if test "$hardcode_minus_L" != no
; then
11570 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11572 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11578 if test "X$found_a" != "X"; then
11579 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11581 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11584 additional_includedir
=
11585 case "$found_dir" in
11587 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11588 additional_includedir
="$basedir/include"
11591 if test "X$additional_includedir" != "X"; then
11592 if test "X$additional_includedir" != "X/usr/include"; then
11594 if test "X$additional_includedir" = "X/usr/local/include"; then
11595 if test -n "$GCC"; then
11597 linux
*) haveit
=yes;;
11601 if test -z "$haveit"; then
11602 for x
in $CPPFLAGS $INCICONV; do
11604 acl_save_prefix
="$prefix"
11605 prefix
="$acl_final_prefix"
11606 acl_save_exec_prefix
="$exec_prefix"
11607 exec_prefix
="$acl_final_exec_prefix"
11609 exec_prefix
="$acl_save_exec_prefix"
11610 prefix
="$acl_save_prefix"
11612 if test "X$x" = "X-I$additional_includedir"; then
11617 if test -z "$haveit"; then
11618 if test -d "$additional_includedir"; then
11619 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11625 if test -n "$found_la"; then
11626 save_libdir
="$libdir"
11627 case "$found_la" in
11628 */* |
*\\*) .
"$found_la" ;;
11629 *) .
"./$found_la" ;;
11631 libdir
="$save_libdir"
11632 for dep
in $dependency_libs; do
11635 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11636 if test "X$additional_libdir" != "X/usr/lib"; then
11638 if test "X$additional_libdir" = "X/usr/local/lib"; then
11639 if test -n "$GCC"; then
11641 linux
*) haveit
=yes;;
11645 if test -z "$haveit"; then
11647 for x
in $LDFLAGS $LIBICONV; do
11649 acl_save_prefix
="$prefix"
11650 prefix
="$acl_final_prefix"
11651 acl_save_exec_prefix
="$exec_prefix"
11652 exec_prefix
="$acl_final_exec_prefix"
11654 exec_prefix
="$acl_save_exec_prefix"
11655 prefix
="$acl_save_prefix"
11657 if test "X$x" = "X-L$additional_libdir"; then
11662 if test -z "$haveit"; then
11663 if test -d "$additional_libdir"; then
11664 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11668 for x
in $LDFLAGS $LTLIBICONV; do
11670 acl_save_prefix
="$prefix"
11671 prefix
="$acl_final_prefix"
11672 acl_save_exec_prefix
="$exec_prefix"
11673 exec_prefix
="$acl_final_exec_prefix"
11675 exec_prefix
="$acl_save_exec_prefix"
11676 prefix
="$acl_save_prefix"
11678 if test "X$x" = "X-L$additional_libdir"; then
11683 if test -z "$haveit"; then
11684 if test -d "$additional_libdir"; then
11685 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11692 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11693 if test "$enable_rpath" != no
; then
11695 for x
in $rpathdirs; do
11696 if test "X$x" = "X$dir"; then
11701 if test -z "$haveit"; then
11702 rpathdirs
="$rpathdirs $dir"
11705 for x
in $ltrpathdirs; do
11706 if test "X$x" = "X$dir"; then
11711 if test -z "$haveit"; then
11712 ltrpathdirs
="$ltrpathdirs $dir"
11717 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11720 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11723 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11724 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11730 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11731 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11732 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11734 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11735 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11742 if test "X$rpathdirs" != "X"; then
11743 if test -n "$hardcode_libdir_separator"; then
11745 for found_dir
in $rpathdirs; do
11746 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11748 acl_save_libdir
="$libdir"
11750 eval flag
=\"$hardcode_libdir_flag_spec\"
11751 libdir
="$acl_save_libdir"
11752 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11754 for found_dir
in $rpathdirs; do
11755 acl_save_libdir
="$libdir"
11756 libdir
="$found_dir"
11757 eval flag
=\"$hardcode_libdir_flag_spec\"
11758 libdir
="$acl_save_libdir"
11759 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11763 if test "X$ltrpathdirs" != "X"; then
11764 for found_dir
in $ltrpathdirs; do
11765 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11776 $as_echo_n "checking for iconv... " >&6; }
11777 if ${am_cv_func_iconv+:} false
; then :
11778 $as_echo_n "(cached) " >&6
11781 am_cv_func_iconv
="no, consider installing GNU libiconv"
11783 am_save_CPPFLAGS
="$CPPFLAGS"
11784 CPPFLAGS
="$CPPFLAGS $INCICONV"
11785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 #include <stdlib.h>
11792 iconv_t cd = iconv_open("","");
11793 iconv(cd,NULL,NULL,NULL,NULL);
11799 if ac_fn_cxx_try_link
"$LINENO"; then :
11800 am_cv_func_iconv
=yes
11802 rm -f core conftest.err conftest.
$ac_objext \
11803 conftest
$ac_exeext conftest.
$ac_ext
11804 CPPFLAGS
="$am_save_CPPFLAGS"
11806 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11807 for _libs
in .libs _libs
; do
11808 am_save_CPPFLAGS
="$CPPFLAGS"
11809 am_save_LIBS
="$LIBS"
11810 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11811 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 #include <stdlib.h>
11819 iconv_t cd = iconv_open("","");
11820 iconv(cd,NULL,NULL,NULL,NULL);
11826 if ac_fn_cxx_try_link
"$LINENO"; then :
11827 INCICONV
="-I../libiconv/include"
11828 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11829 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11830 am_cv_lib_iconv
=yes
11831 am_cv_func_iconv
=yes
11833 rm -f core conftest.err conftest.
$ac_objext \
11834 conftest
$ac_exeext conftest.
$ac_ext
11835 CPPFLAGS
="$am_save_CPPFLAGS"
11836 LIBS
="$am_save_LIBS"
11837 if test "$am_cv_func_iconv" = "yes"; then
11843 if test "$am_cv_func_iconv" != yes; then
11844 am_save_CPPFLAGS
="$CPPFLAGS"
11845 am_save_LIBS
="$LIBS"
11846 CPPFLAGS
="$CPPFLAGS $INCICONV"
11847 LIBS
="$LIBS $LIBICONV"
11848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11850 #include <stdlib.h>
11855 iconv_t cd = iconv_open("","");
11856 iconv(cd,NULL,NULL,NULL,NULL);
11862 if ac_fn_cxx_try_link
"$LINENO"; then :
11863 am_cv_lib_iconv
=yes
11864 am_cv_func_iconv
=yes
11866 rm -f core conftest.err conftest.
$ac_objext \
11867 conftest
$ac_exeext conftest.
$ac_ext
11868 CPPFLAGS
="$am_save_CPPFLAGS"
11869 LIBS
="$am_save_LIBS"
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11874 $as_echo "$am_cv_func_iconv" >&6; }
11875 if test "$am_cv_func_iconv" = yes; then
11877 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11880 if test "$am_cv_lib_iconv" = yes; then
11882 for element
in $INCICONV; do
11884 for x
in $CPPFLAGS; do
11886 acl_save_prefix
="$prefix"
11887 prefix
="$acl_final_prefix"
11888 acl_save_exec_prefix
="$exec_prefix"
11889 exec_prefix
="$acl_final_exec_prefix"
11891 exec_prefix
="$acl_save_exec_prefix"
11892 prefix
="$acl_save_prefix"
11894 if test "X$x" = "X$element"; then
11899 if test -z "$haveit"; then
11900 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11905 $as_echo_n "checking how to link with libiconv... " >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11907 $as_echo "$LIBICONV" >&6; }
11915 if test "$am_cv_func_iconv" = yes; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11917 $as_echo_n "checking for iconv declaration... " >&6; }
11918 if ${am_cv_proto_iconv+:} false
; then :
11919 $as_echo_n "(cached) " >&6
11922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11925 #include <stdlib.h>
11931 #if defined(__STDC__) || defined(__cplusplus)
11932 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11945 if ac_fn_cxx_try_compile
"$LINENO"; then :
11946 am_cv_proto_iconv_arg1
=""
11948 am_cv_proto_iconv_arg1
="const"
11950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11951 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11954 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11956 }$am_cv_proto_iconv" >&5
11958 }$am_cv_proto_iconv" >&6; }
11960 cat >>confdefs.h
<<_ACEOF
11961 #define ICONV_CONST $am_cv_proto_iconv_arg1
11967 # Until we have in-tree GNU iconv:
11969 if test -f "$LTLIBICONV"; then
11970 LIBICONV_DEP
=$LTLIBICONV
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11976 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11977 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11978 $as_echo_n "(cached) " >&6
11980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 #include <locale.h>
11991 if ac_fn_cxx_try_link
"$LINENO"; then :
11992 am_cv_val_LC_MESSAGES
=yes
11994 am_cv_val_LC_MESSAGES
=no
11996 rm -f core conftest.err conftest.
$ac_objext \
11997 conftest
$ac_exeext conftest.
$ac_ext
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12000 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12001 if test $am_cv_val_LC_MESSAGES = yes; then
12003 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12010 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12011 if ${am_cv_langinfo_codeset+:} false
; then :
12012 $as_echo_n "(cached) " >&6
12014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12016 #include <langinfo.h>
12020 char* cs = nl_langinfo(CODESET);
12025 if ac_fn_cxx_try_link
"$LINENO"; then :
12026 am_cv_langinfo_codeset
=yes
12028 am_cv_langinfo_codeset
=no
12030 rm -f core conftest.err conftest.
$ac_objext \
12031 conftest
$ac_exeext conftest.
$ac_ext
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12035 $as_echo "$am_cv_langinfo_codeset" >&6; }
12036 if test $am_cv_langinfo_codeset = yes; then
12038 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12043 # We will need to find libiberty.h and ansidecl.h
12044 saved_CFLAGS
="$CFLAGS"
12045 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12046 saved_CXXFLAGS
="$CXXFLAGS"
12047 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12049 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12050 # normal autoconf function for these. But force definition of
12051 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12052 # basename handling in libiberty.h.
12053 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12054 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12055 #undef HAVE_DECL_BASENAME
12056 #define HAVE_DECL_BASENAME 1
12057 #include \"ansidecl.h\"
12058 #include \"system.h\"
12060 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12066 cat >>confdefs.h
<<_ACEOF
12067 #define HAVE_DECL_BASENAME $ac_have_decl
12069 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12070 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12071 #undef HAVE_DECL_BASENAME
12072 #define HAVE_DECL_BASENAME 1
12073 #include \"ansidecl.h\"
12074 #include \"system.h\"
12076 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12082 cat >>confdefs.h
<<_ACEOF
12083 #define HAVE_DECL_STRSTR $ac_have_decl
12087 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12088 madvise stpcpy strnlen strsignal strverscmp \
12089 strtol strtoul strtoll strtoull setenv unsetenv \
12090 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12091 free getopt
clock getpagesize ffs 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
12093 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12095 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12096 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12097 $as_echo_n "(cached) " >&6
12099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12102 #define $ac_tr_decl 1
12104 #include "ansidecl.h"
12105 #include "system.h"
12111 char *(*pfn) = (char *(*)) $ac_func ;
12117 if ac_fn_cxx_try_compile
"$LINENO"; then :
12118 eval "gcc_cv_have_decl_$ac_func=yes"
12120 eval "gcc_cv_have_decl_$ac_func=no"
12122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12125 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12127 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12128 #define $ac_tr_decl 1
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12134 #define $ac_tr_decl 0
12142 for ac_func
in getrlimit setrlimit getrusage
12144 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12146 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12147 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12148 $as_echo_n "(cached) " >&6
12150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12153 #define $ac_tr_decl 1
12155 #include "ansidecl.h"
12156 #include "system.h"
12157 #ifdef HAVE_SYS_RESOURCE_H
12158 #include <sys/resource.h>
12166 char *(*pfn) = (char *(*)) $ac_func ;
12172 if ac_fn_cxx_try_compile
"$LINENO"; then :
12173 eval "gcc_cv_have_decl_$ac_func=yes"
12175 eval "gcc_cv_have_decl_$ac_func=no"
12177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12180 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12182 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12183 #define $ac_tr_decl 1
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12189 #define $ac_tr_decl 0
12197 for ac_func
in mallinfo mallinfo2
12199 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12201 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12202 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12203 $as_echo_n "(cached) " >&6
12205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12208 #define $ac_tr_decl 1
12210 #include "ansidecl.h"
12211 #include "system.h"
12212 #ifdef HAVE_MALLOC_H
12213 #include <malloc.h>
12221 char *(*pfn) = (char *(*)) $ac_func ;
12227 if ac_fn_cxx_try_compile
"$LINENO"; then :
12228 eval "gcc_cv_have_decl_$ac_func=yes"
12230 eval "gcc_cv_have_decl_$ac_func=no"
12232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12235 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12237 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12238 #define $ac_tr_decl 1
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12244 #define $ac_tr_decl 0
12252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12255 #include "ansidecl.h"
12256 #include "system.h"
12257 #ifdef HAVE_SYS_RESOURCE_H
12258 #include <sys/resource.h>
12269 if ac_fn_cxx_try_compile
"$LINENO"; then :
12273 $as_echo "#define rlim_t long" >>confdefs.h
12276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12278 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12279 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12280 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12281 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12282 for ac_func
in ldgetname
12284 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12286 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12287 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12288 $as_echo_n "(cached) " >&6
12290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12293 #define $ac_tr_decl 1
12295 #include "ansidecl.h"
12296 #include "system.h"
12297 #ifdef HAVE_LDFCN_H
12308 char *(*pfn) = (char *(*)) $ac_func ;
12314 if ac_fn_cxx_try_compile
"$LINENO"; then :
12315 eval "gcc_cv_have_decl_$ac_func=yes"
12317 eval "gcc_cv_have_decl_$ac_func=no"
12319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12322 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12324 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12325 #define $ac_tr_decl 1
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12331 #define $ac_tr_decl 0
12339 for ac_func
in times
12341 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12343 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12344 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12345 $as_echo_n "(cached) " >&6
12347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12350 #define $ac_tr_decl 1
12352 #include "ansidecl.h"
12353 #include "system.h"
12354 #ifdef HAVE_SYS_TIMES_H
12355 #include <sys/times.h>
12363 char *(*pfn) = (char *(*)) $ac_func ;
12369 if ac_fn_cxx_try_compile
"$LINENO"; then :
12370 eval "gcc_cv_have_decl_$ac_func=yes"
12372 eval "gcc_cv_have_decl_$ac_func=no"
12374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12377 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12379 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12380 #define $ac_tr_decl 1
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12386 #define $ac_tr_decl 0
12394 for ac_func
in sigaltstack
12396 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12398 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12399 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12400 $as_echo_n "(cached) " >&6
12402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12405 #define $ac_tr_decl 1
12407 #include "ansidecl.h"
12408 #include "system.h"
12409 #include <signal.h>
12416 char *(*pfn) = (char *(*)) $ac_func ;
12422 if ac_fn_cxx_try_compile
"$LINENO"; then :
12423 eval "gcc_cv_have_decl_$ac_func=yes"
12425 eval "gcc_cv_have_decl_$ac_func=no"
12427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12430 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12432 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12433 #define $ac_tr_decl 1
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12439 #define $ac_tr_decl 0
12447 # More time-related stuff.
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12449 $as_echo_n "checking for struct tms... " >&6; }
12450 if ${ac_cv_struct_tms+:} false
; then :
12451 $as_echo_n "(cached) " >&6
12454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12457 #include "ansidecl.h"
12458 #include "system.h"
12459 #ifdef HAVE_SYS_TIMES_H
12460 #include <sys/times.h>
12471 if ac_fn_cxx_try_compile
"$LINENO"; then :
12472 ac_cv_struct_tms
=yes
12474 ac_cv_struct_tms
=no
12476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12479 $as_echo "$ac_cv_struct_tms" >&6; }
12480 if test $ac_cv_struct_tms = yes; then
12482 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12486 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12487 # revisit after autoconf 2.50.
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12489 $as_echo_n "checking for clock_t... " >&6; }
12490 if ${gcc_cv_type_clock_t+:} false
; then :
12491 $as_echo_n "(cached) " >&6
12494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12497 #include "ansidecl.h"
12498 #include "system.h"
12508 if ac_fn_cxx_try_compile
"$LINENO"; then :
12509 gcc_cv_type_clock_t
=yes
12511 gcc_cv_type_clock_t
=no
12513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12516 $as_echo "$gcc_cv_type_clock_t" >&6; }
12517 if test $gcc_cv_type_clock_t = yes; then
12519 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12523 # Check if F_SETLKW is supported by fcntl.
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12525 $as_echo_n "checking for F_SETLKW... " >&6; }
12526 if ${ac_cv_f_setlkw+:} false
; then :
12527 $as_echo_n "(cached) " >&6
12530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12543 return fcntl (1, F_SETLKW, &fl);
12548 if ac_fn_cxx_try_compile
"$LINENO"; then :
12553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12556 $as_echo "$ac_cv_f_setlkw" >&6; }
12557 if test $ac_cv_f_setlkw = yes; then
12559 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12563 # Check if O_CLOEXEC is defined by fcntl
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12565 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12566 if ${ac_cv_o_cloexec+:} false
; then :
12567 $as_echo_n "(cached) " >&6
12570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12578 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12583 if ac_fn_cxx_try_compile
"$LINENO"; then :
12584 ac_cv_o_cloexec
=yes
12588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12591 $as_echo "$ac_cv_o_cloexec" >&6; }
12592 if test $ac_cv_o_cloexec = yes; then
12594 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12598 # Check if O_NONBLOCK is defined by fcntl
12599 for ac_header
in fcntl.h
12601 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12602 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12603 cat >>confdefs.h
<<_ACEOF
12604 #define HAVE_FCNTL_H 1
12610 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12612 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12616 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12618 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12623 # C++ Modules would like some networking features to provide the mapping
12624 # server. You can still use modules without them though.
12625 # The following network-related checks could probably do with some
12626 # Windows and other non-linux defenses and checking.
12628 # Local socket connectivity wants AF_UNIX networking
12629 # Check for AF_UNIX networking
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12631 $as_echo_n "checking for AF_UNIX... " >&6; }
12632 if ${ac_cv_af_unix+:} false
; then :
12633 $as_echo_n "(cached) " >&6
12636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12639 #include <sys/types.h>
12640 #include <sys/socket.h>
12641 #include <sys/un.h>
12642 #include <netinet/in.h>
12648 un.sun_family = AF_UNSPEC;
12649 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12650 connect (fd, (sockaddr *)&un, sizeof (un));
12655 if ac_fn_cxx_try_compile
"$LINENO"; then :
12660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12663 $as_echo "$ac_cv_af_unix" >&6; }
12664 if test $ac_cv_af_unix = yes; then
12666 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12670 # Remote socket connectivity wants AF_INET6 networking
12671 # Check for AF_INET6 networking
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12673 $as_echo_n "checking for AF_INET6... " >&6; }
12674 if ${ac_cv_af_inet6+:} false
; then :
12675 $as_echo_n "(cached) " >&6
12678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12681 #include <sys/types.h>
12682 #include <sys/socket.h>
12683 #include <netinet/in.h>
12690 in6.sin6_family = AF_UNSPEC;
12691 struct addrinfo *addrs = 0;
12692 struct addrinfo hints;
12693 hints.ai_flags = 0;
12694 hints.ai_family = AF_INET6;
12695 hints.ai_socktype = SOCK_STREAM;
12696 hints.ai_protocol = 0;
12697 hints.ai_canonname = 0;
12700 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12701 const char *str = gai_strerror (e);
12702 freeaddrinfo (addrs);
12703 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12704 connect (fd, (sockaddr *)&in6, sizeof (in6));
12709 if ac_fn_cxx_try_compile
"$LINENO"; then :
12714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12717 $as_echo "$ac_cv_af_inet6" >&6; }
12718 if test $ac_cv_af_inet6 = yes; then
12720 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12724 # Check if _LK_LOCK is supported by _locking
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12726 $as_echo_n "checking for _LK_LOCK... " >&6; }
12727 if ${ac_cv_lk_lock+:} false
; then :
12728 $as_echo_n "(cached) " >&6
12731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12735 #include <sys/locking.h>
12741 return _locking (fd, _LK_LOCK, 0);
12746 if ac_fn_cxx_try_compile
"$LINENO"; then :
12751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12754 $as_echo "$ac_cv_lk_lock" >&6; }
12755 if test $ac_cv_lk_lock = yes; then
12757 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12761 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12762 CFLAGS
="$saved_CFLAGS"
12763 CXXFLAGS
="$saved_CXXFLAGS"
12765 # mkdir takes a single argument on some systems.
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12767 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12768 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12769 $as_echo_n "(cached) " >&6
12771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12774 #include <sys/types.h>
12775 #ifdef HAVE_SYS_STAT_H
12776 # include <sys/stat.h>
12778 #ifdef HAVE_UNISTD_H
12779 # include <unistd.h>
12781 #ifdef HAVE_DIRECT_H
12782 # include <direct.h>
12792 if ac_fn_cxx_try_compile
"$LINENO"; then :
12793 gcc_cv_mkdir_takes_one_arg
=no
12795 gcc_cv_mkdir_takes_one_arg
=yes
12797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12800 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12801 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12803 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12814 # With Setjmp/Longjmp based exception handling.
12815 # Check whether --enable-sjlj-exceptions was given.
12816 if test "${enable_sjlj_exceptions+set}" = set; then :
12817 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
12821 force_sjlj_exceptions
=yes
12825 force_sjlj_exceptions
=no
12830 if test $force_sjlj_exceptions = yes; then
12831 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12833 cat >>confdefs.h
<<_ACEOF
12834 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12839 # --------------------------------------------------------
12840 # Build, host, and target specific configuration fragments
12841 # --------------------------------------------------------
12843 # Collect build-machine-specific information.
12844 .
${srcdir}/config.build ||
exit 1
12846 # Collect host-machine-specific information.
12847 .
${srcdir}/config.
host ||
exit 1
12851 # Collect target-machine-specific information.
12852 .
${srcdir}/config.gcc ||
exit 1
12854 extra_objs
="${host_extra_objs} ${extra_objs}"
12855 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12857 # Default the target-machine variables that were not explicitly set.
12858 if test x
"$tm_file" = x
12859 then tm_file
=$cpu_type/$cpu_type.h
; fi
12861 if test x
"$extra_headers" = x
12862 then extra_headers
=; fi
12864 if test x
$md_file = x
12865 then md_file
=$cpu_type/$cpu_type.md
; fi
12867 if test x
$out_file = x
12868 then out_file
=$cpu_type/$cpu_type.cc
; fi
12870 if test x
"$tmake_file" = x
12871 then tmake_file
=$cpu_type/t-
$cpu_type
12874 # Support --enable-initfini-array.
12875 if test x
$enable_initfini_array != xno
; then
12876 tm_file
="${tm_file} initfini-array.h"
12879 if test x
"$dwarf2" = xyes
12880 then tm_file
="$tm_file tm-dwarf2.h"
12883 # Say what files are being used for the output code and MD file.
12884 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12885 echo "Using \`$srcdir/config/$md_file' as machine description file."
12887 # If any of the xm_file variables contain nonexistent files, warn
12888 # about them and drop them.
12891 for x
in $build_xm_file; do
12892 if test -f $srcdir/config
/$x
12894 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12895 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12898 build_xm_file
="$bx"
12901 for x
in $host_xm_file; do
12902 if test -f $srcdir/config
/$x
12904 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12905 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12911 for x
in $xm_file; do
12912 if test -f $srcdir/config
/$x
12914 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12915 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12921 for f
in $tm_file; do
12924 if test $count = ax
; then
12925 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12927 echo "Using the following target machine macro files:"
12928 for f
in $tm_file; do
12929 echo " $srcdir/config/$f"
12933 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12935 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12939 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12941 cat >>confdefs.h
<<_ACEOF
12942 #define HAVE_GNU_LD $gnu_ld_bool
12946 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12948 cat >>confdefs.h
<<_ACEOF
12949 #define HAVE_GNU_AS $gnu_as_bool
12954 for f
in $host_xm_file; do
12957 if test $count = a
; then
12959 elif test $count = ax
; then
12960 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12962 echo "Using the following host machine macro files:"
12963 for f
in $host_xm_file; do
12964 echo " $srcdir/config/$f"
12967 echo "Using ${out_host_hook_obj} for host machine hooks."
12969 if test "$host_xm_file" != "$build_xm_file"; then
12971 for f
in $build_xm_file; do
12974 if test $count = a
; then
12976 elif test $count = ax
; then
12977 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12979 echo "Using the following build machine macro files:"
12980 for f
in $build_xm_file; do
12981 echo " $srcdir/config/$f"
12986 if test -n "$configured_native_system_header_dir"; then
12987 native_system_header_dir
=$configured_native_system_header_dir
12989 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12993 powerpc
*-*-darwin*)
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12995 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12996 if ${gcc_cv_mcontext_underscores+:} false
; then :
12997 $as_echo_n "(cached) " >&6
12999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13002 #include <sys/cdefs.h>
13003 #include <sys/signal.h>
13004 #include <ucontext.h>
13005 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13008 if ac_fn_cxx_try_compile
"$LINENO"; then :
13009 gcc_cv_mcontext_underscores
=no
13011 gcc_cv_mcontext_underscores
=yes
13013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13016 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13017 if test $gcc_cv_mcontext_underscores = yes; then
13019 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13029 # Check if a valid thread package
13030 case ${enable_threads} in
13033 target_thread_file
='single'
13037 target_thread_file
='single'
13039 aix | dce | lynx | mipssde | posix | rtems | \
13040 single | tpf | vxworks | win32 | mcf
)
13041 target_thread_file
=${enable_threads}
13044 echo "${enable_threads} is an unknown thread package" 1>&2
13049 if test x
${thread_file} = x
; then
13050 # No thread file set by target-specific clauses in config.gcc,
13051 # so use file chosen by default logic above
13052 thread_file
=${target_thread_file}
13060 if test x
$enable___cxa_atexit = xyes || \
13061 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13062 if test x
$host = x
$target; then
13064 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13065 # keyed to flag_use_cxa_atexit
13073 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13074 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13077 echo "__cxa_atexit can't be enabled on this target"
13083 # We can't check for __cxa_atexit when building a cross, so assume
13087 if test x
$use_cxa_atexit = xyes
; then
13089 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13094 # Look for a file containing extra machine modes.
13095 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13096 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13099 cat >>confdefs.h
<<_ACEOF
13100 #define EXTRA_MODES_FILE "config/$extra_modes"
13105 # Convert extra_options into a form suitable for Makefile use.
13108 for f
in $extra_options; do
13109 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13110 all_opt_files
="$all_opt_files $srcdir/config/$f"
13114 # auto-host.h is the file containing items generated by autoconf and is
13115 # the first file included by config.h.
13116 # If host=build, it is correct to have bconfig include auto-host.h
13117 # as well. If host!=build, we are in error and need to do more
13118 # work to find out the build config parameters.
13119 if test x
$host = x
$build
13121 build_auto
=auto-host.h
13122 HAVE_AUTO_BUILD
='# '
13124 # We create a subdir, then run autoconf in the subdir.
13125 # To prevent recursion we set host and build for the new
13126 # invocation of configure to the build for this invocation
13133 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13134 *) realsrcdir
=..
/${srcdir};;
13136 # Clearing GMPINC is necessary to prevent host headers being
13137 # used by the build compiler. Defining GENERATOR_FILE stops
13138 # system.h from including gmp.h.
13139 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13140 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13141 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13142 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13143 ${realsrcdir}/configure \
13144 --enable-languages=${enable_languages-all} \
13145 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13146 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13147 --target=$target_alias --host=$build_alias \
13148 --build=$build_alias ||
exit # retaining $tempdir
13150 # We just finished tests for the build machine, so rename
13151 # the file auto-build.h in the gcc directory.
13152 mv auto-host.h ..
/auto-build.h
13155 build_auto
=auto-build.h
13161 tm_file
="${tm_file} defaults.h"
13162 tm_p_file
="${tm_p_file} tm-preds.h"
13163 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13164 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13165 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13166 # put this back in temporarily.
13167 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13173 # Compile in configure arguments.
13174 if test -f configargs.h
; then
13175 # Being re-configured.
13176 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13177 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13178 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13179 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13182 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13185 # Double all backslashes and backslash all quotes to turn
13186 # gcc_config_arguments into a C string.
13187 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13188 $gcc_config_arguments
13190 gcc_config_arguments_str
=`cat conftest.out`
13193 cat > configargs.h
<<EOF
13194 /* Generated automatically. */
13195 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13196 static const char thread_model[] = "$thread_file";
13198 static const struct {
13199 const char *name, *value;
13200 } configure_default_options[] = $configure_default_options;
13203 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13204 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13205 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13206 if test -f $srcdir/REVISION
; then
13207 gcc_REVISION
=`cat $srcdir/REVISION`
13211 cat > plugin-version.h
<<EOF
13212 #include "configargs.h"
13214 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13215 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13216 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13217 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13219 static char basever[] = "$gcc_BASEVER";
13220 static char datestamp[] = "$gcc_DATESTAMP";
13221 static char devphase[] = "$gcc_DEVPHASE";
13222 static char revision[] = "$gcc_REVISION";
13224 /* FIXME plugins: We should make the version information more precise.
13225 One way to do is to add a checksum. */
13227 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13228 devphase, revision,
13229 configuration_arguments};
13232 # Determine what GCC version number to use in filesystem paths.
13234 get_gcc_base_ver
="cat"
13236 # Check whether --with-gcc-major-version-only was given.
13237 if test "${with_gcc_major_version_only+set}" = set; then :
13238 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13239 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13247 # Internationalization
13248 # If we haven't got the data from the intl directory,
13249 # assume NLS is disabled.
13258 if test -f ..
/intl
/config.intl
; then
13259 . ..
/intl
/config.intl
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13262 $as_echo_n "checking whether NLS is requested... " >&6; }
13263 if test x
"$USE_NLS" != xyes
; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13268 $as_echo "yes" >&6; }
13270 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13274 $as_echo_n "checking for catalogs to be installed... " >&6; }
13275 # Look for .po and .gmo files in the source directory.
13278 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13279 # If there aren't any .gmo files the shell will give us the
13280 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13282 case "$cat" in *\
**)
13285 # The quadruple backslash is collapsed to a double backslash
13286 # by the backticks, then collapsed again by the double quotes,
13287 # leaving us with one backslash in the sed expression (right
13288 # before the dot that mustn't act as a wildcard).
13289 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13290 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13291 # The user is allowed to set LINGUAS to a list of languages to
13292 # install catalogs for. If it's empty that means "all of them."
13293 if test "x$LINGUAS" = x
; then
13294 CATALOGS
="$CATALOGS $cat"
13295 XLINGUAS
="$XLINGUAS $lang"
13297 case "$LINGUAS" in *$lang*)
13298 CATALOGS
="$CATALOGS $cat"
13299 XLINGUAS
="$XLINGUAS $lang"
13304 LINGUAS
="$XLINGUAS"
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13306 $as_echo "$LINGUAS" >&6; }
13319 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13320 # -liconv on the link line twice.
13321 case "$LIBINTL" in *$LIBICONV*)
13325 # Check whether --enable-secureplt was given.
13326 if test "${enable_secureplt+set}" = set; then :
13327 enableval
=$enable_secureplt;
13331 # Check whether --enable-mingw-wildcard was given.
13332 if test "${enable_mingw_wildcard+set}" = set; then :
13333 enableval
=$enable_mingw_wildcard;
13335 enable_mingw_wildcard
=platform
13338 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13340 cat >>confdefs.h
<<_ACEOF
13341 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13346 # Check whether --enable-large-address-aware was given.
13347 if test "${enable_large_address_aware+set}" = set; then :
13348 enableval
=$enable_large_address_aware;
13351 if test x
"$enable_large_address_aware" = xyes
; then :
13353 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13357 # Check whether --enable-leading-mingw64-underscores was given.
13358 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13359 enableval
=$enable_leading_mingw64_underscores;
13362 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13364 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13368 # Check whether --enable-cld was given.
13369 if test "${enable_cld+set}" = set; then :
13370 enableval
=$enable_cld;
13376 # Check whether --enable-frame-pointer was given.
13377 if test "${enable_frame_pointer+set}" = set; then :
13378 enableval
=$enable_frame_pointer;
13382 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13383 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13384 enable_frame_pointer
=no
13387 enable_frame_pointer
=yes
13395 i
[34567]86-*-* | x86_64-
*-*)
13396 if test "x$enable_cld" = xyes
; then
13397 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13399 if test "x$enable_frame_pointer" = xyes
; then
13400 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13405 # Windows32 Registry support for specifying GCC installation paths.
13406 # Check whether --enable-win32-registry was given.
13407 if test "${enable_win32_registry+set}" = set; then :
13408 enableval
=$enable_win32_registry;
13413 win32 | pe | cygwin
* | mingw32
*)
13414 if test "x$enable_win32_registry" != xno
; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13416 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13417 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13418 $as_echo_n "(cached) " >&6
13420 ac_func_search_save_LIBS
=$LIBS
13421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13424 /* Override any GCC internal prototype to avoid an error.
13425 Use char because int might match the return type of a GCC
13426 builtin and then its argument prototype would still apply. */
13430 char RegOpenKeyExA ();
13434 return RegOpenKeyExA ();
13439 for ac_lib
in '' advapi32
; do
13440 if test -z "$ac_lib"; then
13441 ac_res
="none required"
13444 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13446 if ac_fn_cxx_try_link
"$LINENO"; then :
13447 ac_cv_search_RegOpenKeyExA
=$ac_res
13449 rm -f core conftest.err conftest.
$ac_objext \
13451 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13455 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13458 ac_cv_search_RegOpenKeyExA
=no
13460 rm conftest.
$ac_ext
13461 LIBS
=$ac_func_search_save_LIBS
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13464 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13465 ac_res
=$ac_cv_search_RegOpenKeyExA
13466 if test "$ac_res" != no
; then :
13467 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13470 enable_win32_registry
=no
13475 if test "x$enable_win32_registry" != xno
; then
13477 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13480 if test "x$enable_win32_registry" != xyes \
13481 && test "x$enable_win32_registry" != x
; then
13483 cat >>confdefs.h
<<_ACEOF
13484 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13492 # Get an absolute path to the GCC top-level source directory
13493 holddir
=`${PWDCMD-pwd}`
13495 topdir
=`${PWDCMD-pwd}`
13498 # Conditionalize the makefile for this host machine.
13500 for f
in ${host_xmake_file}
13502 if test -f ${srcdir}/config
/$f
13504 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13508 # Conditionalize the makefile for this target machine.
13510 for f
in ${tmake_file}
13512 if test -f ${srcdir}/config
/$f
13514 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13517 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13519 out_object_file
=`basename $out_file .cc`.o
13520 common_out_object_file
=`basename $common_out_file .cc`.o
13522 tm_file_list
="options.h"
13523 tm_include_list
="options.h insn-constants.h"
13524 for f
in $tm_file; do
13527 f
=`echo $f | sed 's/^..//'`
13528 tm_file_list
="${tm_file_list} $f"
13529 tm_include_list
="${tm_include_list} $f"
13532 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13533 tm_include_list
="${tm_include_list} $f"
13536 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13537 tm_include_list
="${tm_include_list} config/$f"
13544 for f
in $tm_p_file; do
13547 tm_p_file_list
="${tm_p_file_list} $f"
13548 tm_p_include_list
="${tm_p_include_list} $f"
13551 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13552 tm_p_include_list
="${tm_p_include_list} config/$f"
13558 for f
in $tm_d_file; do
13561 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13562 tm_d_include_list
="${tm_d_include_list} config/$f"
13569 for f
in $xm_file; do
13572 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13573 xm_include_list
="${xm_include_list} $f"
13576 xm_file_list
="${xm_file_list} $f"
13577 xm_include_list
="${xm_include_list} $f"
13580 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13581 xm_include_list
="${xm_include_list} config/$f"
13587 host_xm_include_list
=
13588 for f
in $host_xm_file; do
13591 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13592 host_xm_include_list
="${host_xm_include_list} $f"
13595 host_xm_file_list
="${host_xm_file_list} $f"
13596 host_xm_include_list
="${host_xm_include_list} $f"
13599 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13600 host_xm_include_list
="${host_xm_include_list} config/$f"
13605 build_xm_file_list
=
13606 for f
in $build_xm_file; do
13609 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13610 build_xm_include_list
="${build_xm_include_list} $f"
13612 auto-build.h | auto-host.h
)
13613 build_xm_file_list
="${build_xm_file_list} $f"
13614 build_xm_include_list
="${build_xm_include_list} $f"
13617 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13618 build_xm_include_list
="${build_xm_include_list} config/$f"
13623 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13624 # cross-compiler which does not use the native headers and libraries.
13625 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13628 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13629 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13631 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13632 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13633 if test "x$with_build_sysroot" != x
; then
13634 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13636 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13639 if test x
$host != x
$target
13641 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13643 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13644 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13645 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13648 if test "x$with_build_sysroot" != "x"; then
13649 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13650 elif test "x$with_sysroot" = x
; then
13651 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13652 elif test "x$with_sysroot" = xyes
; then
13653 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13655 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13658 target_header_dir
=${native_system_header_dir}
13661 # If this is a cross-compiler that does not
13662 # have its own set of headers then define
13665 # If this is using newlib, without having the headers available now,
13666 # then define inhibit_libc in LIBGCC2_CFLAGS.
13667 # This prevents libgcc2 from containing any code which requires libc
13669 : ${inhibit_libc=false}
13670 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13671 test x
$with_newlib = xyes
; } &&
13672 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13677 # When building gcc with a cross-compiler, we need to adjust things so
13678 # that the generator programs are still built with the native compiler.
13679 # Also, we cannot run fixincludes.
13681 # These are the normal (build=host) settings:
13682 CC_FOR_BUILD
='$(CC)'
13683 CXX_FOR_BUILD
='$(CXX)'
13684 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13685 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13686 BUILD_LDFLAGS
='$(LDFLAGS)'
13687 STMP_FIXINC
=stmp-fixinc
13689 # And these apply if build != host, or we are generating coverage data
13690 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13692 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13693 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13694 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13698 if test x
$enable_fixincludes = xno
;
13703 # Expand extra_headers to include complete path.
13704 # This substitutes for lots of t-* files.
13705 extra_headers_list
=
13706 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13707 for file in ${extra_headers} ; do
13708 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13711 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13712 if test x
"$use_gcc_tgmath" = xyes
13713 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13716 # Define collect2 in Makefile.
13717 case $host_can_use_collect2 in
13719 *) collect2
='collect2$(exeext)' ;;
13723 # Add a definition of USE_COLLECT2 if system wants one.
13724 case $use_collect2 in
13725 no
) use_collect2
= ;;
13728 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13729 xm_defines
="${xm_defines} USE_COLLECT2"
13730 case $host_can_use_collect2 in
13732 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13739 cat >>confdefs.h
<<_ACEOF
13740 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13744 # ---------------------------
13745 # Assembler & linker features
13746 # ---------------------------
13748 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13749 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13750 # However when ld-new is first executed from the build tree, libtool will
13751 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13752 # to the build tree. While doing this we need to use the previous-stage
13753 # linker, or we have an infinite loop. The presence of a shell script as
13754 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13755 # the gcc/collect-ld script. So we need to know how libtool works, or
13756 # exec-tool will fail.
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13762 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13767 macro_version
='2.2.7a'
13768 macro_revision
='1.3134'
13782 ltmain
="$ac_aux_dir/ltmain.sh"
13784 # Backslashify metacharacters that are still active within
13785 # double-quoted strings.
13786 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13788 # Same as above, but do not quote variable references.
13789 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13791 # Sed substitution to delay expansion of an escaped shell variable in a
13792 # double_quote_subst'ed string.
13793 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13795 # Sed substitution to delay expansion of an escaped single quote.
13796 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13798 # Sed substitution to avoid accidental globbing in evaled expressions
13799 no_glob_subst
='s/\*/\\\*/g'
13801 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13802 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13803 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13806 $as_echo_n "checking how to print strings... " >&6; }
13807 # Test print first, because it will be a builtin if present.
13808 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13809 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13811 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13814 # Use this function as a fallback that always works.
13815 func_fallback_echo ()
13817 eval 'cat <<_LTECHO_EOF
13821 ECHO='func_fallback_echo
'
13824 # func_echo_all arg...
13825 # Invoke $ECHO with all args, space-separated.
13832 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13833 $as_echo "printf" >&6; } ;;
13834 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13835 $as_echo "print -r" >&6; } ;;
13836 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13837 $as_echo "cat" >&6; } ;;
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13854 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13855 if ${ac_cv_path_SED+:} false; then :
13856 $as_echo_n "(cached) " >&6
13858 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13859 for ac_i in 1 2 3 4 5 6 7; do
13860 ac_script="$ac_script$as_nl$ac_script"
13862 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13863 { ac_script=; unset ac_script;}
13864 if test -z "$SED"; then
13865 ac_path_SED_found=false
13866 # Loop through the user's path and
test for each of PROGNAME-LIST
13867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13868 for as_dir
in $PATH
13871 test -z "$as_dir" && as_dir
=.
13872 for ac_prog
in sed gsed
; do
13873 for ac_exec_ext
in '' $ac_executable_extensions; do
13874 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13875 as_fn_executable_p
"$ac_path_SED" ||
continue
13876 # Check for GNU ac_path_SED and select it if it is found.
13877 # Check for GNU $ac_path_SED
13878 case `"$ac_path_SED" --version 2>&1` in
13880 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13883 $as_echo_n 0123456789 >"conftest.in"
13886 cat "conftest.in" "conftest.in" >"conftest.tmp"
13887 mv "conftest.tmp" "conftest.in"
13888 cp "conftest.in" "conftest.nl"
13889 $as_echo '' >> "conftest.nl"
13890 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13891 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13892 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13893 if test $ac_count -gt ${ac_path_SED_max-0}; then
13894 # Best one so far, save it but keep looking for a better one
13895 ac_cv_path_SED
="$ac_path_SED"
13896 ac_path_SED_max
=$ac_count
13898 # 10*(2^10) chars as input seems more than enough
13899 test $ac_count -gt 10 && break
13901 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13904 $ac_path_SED_found && break 3
13909 if test -z "$ac_cv_path_SED"; then
13910 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13913 ac_cv_path_SED
=$SED
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13918 $as_echo "$ac_cv_path_SED" >&6; }
13919 SED
="$ac_cv_path_SED"
13922 test -z "$SED" && SED
=sed
13923 Xsed
="$SED -e 1s/^X//"
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13936 $as_echo_n "checking for fgrep... " >&6; }
13937 if ${ac_cv_path_FGREP+:} false
; then :
13938 $as_echo_n "(cached) " >&6
13940 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13941 then ac_cv_path_FGREP
="$GREP -F"
13943 if test -z "$FGREP"; then
13944 ac_path_FGREP_found
=false
13945 # Loop through the user's path and test for each of PROGNAME-LIST
13946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13947 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13950 test -z "$as_dir" && as_dir
=.
13951 for ac_prog
in fgrep
; do
13952 for ac_exec_ext
in '' $ac_executable_extensions; do
13953 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13954 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13955 # Check for GNU ac_path_FGREP and select it if it is found.
13956 # Check for GNU $ac_path_FGREP
13957 case `"$ac_path_FGREP" --version 2>&1` in
13959 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13962 $as_echo_n 0123456789 >"conftest.in"
13965 cat "conftest.in" "conftest.in" >"conftest.tmp"
13966 mv "conftest.tmp" "conftest.in"
13967 cp "conftest.in" "conftest.nl"
13968 $as_echo 'FGREP' >> "conftest.nl"
13969 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13970 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13971 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13972 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13973 # Best one so far, save it but keep looking for a better one
13974 ac_cv_path_FGREP
="$ac_path_FGREP"
13975 ac_path_FGREP_max
=$ac_count
13977 # 10*(2^10) chars as input seems more than enough
13978 test $ac_count -gt 10 && break
13980 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13983 $ac_path_FGREP_found && break 3
13988 if test -z "$ac_cv_path_FGREP"; then
13989 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13992 ac_cv_path_FGREP
=$FGREP
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13998 $as_echo "$ac_cv_path_FGREP" >&6; }
13999 FGREP
="$ac_cv_path_FGREP"
14002 test -z "$GREP" && GREP
=grep
14022 # Check whether --with-gnu-ld was given.
14023 if test "${with_gnu_ld+set}" = set; then :
14024 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
14030 if test "$GCC" = yes; then
14031 # Check if gcc -print-prog-name=ld gives a path.
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14033 $as_echo_n "checking for ld used by $CC... " >&6; }
14036 # gcc leaves a trailing carriage return which upsets mingw
14037 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14039 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14042 # Accept absolute paths.
14044 re_direlt
='/[^/][^/]*/\.\./'
14045 # Canonicalize the pathname of ld
14046 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14047 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14048 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14050 test -z "$LD" && LD
="$ac_prog"
14053 # If it fails, then pretend we aren't using GCC.
14057 # If it is relative, then search for the first ld in PATH.
14058 with_gnu_ld
=unknown
14061 elif test "$with_gnu_ld" = yes; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14063 $as_echo_n "checking for GNU ld... " >&6; }
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14066 $as_echo_n "checking for non-GNU ld... " >&6; }
14068 if ${lt_cv_path_LD+:} false
; then :
14069 $as_echo_n "(cached) " >&6
14071 if test -z "$LD"; then
14072 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14073 for ac_dir
in $PATH; do
14075 test -z "$ac_dir" && ac_dir
=.
14076 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14077 lt_cv_path_LD
="$ac_dir/$ac_prog"
14078 # Check to see if the program is GNU ld. I'd rather use --version,
14079 # but apparently some variants of GNU ld only accept -v.
14080 # Break only if it was the GNU/non-GNU ld that we prefer.
14081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14082 *GNU
* |
*'with BFD'*)
14083 test "$with_gnu_ld" != no
&& break
14086 test "$with_gnu_ld" != yes && break
14093 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14097 LD
="$lt_cv_path_LD"
14098 if test -n "$LD"; then
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14100 $as_echo "$LD" >&6; }
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103 $as_echo "no" >&6; }
14105 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14107 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14108 if ${lt_cv_prog_gnu_ld+:} false
; then :
14109 $as_echo_n "(cached) " >&6
14111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14112 case `$LD -v 2>&1 </dev/null` in
14113 *GNU
* |
*'with BFD'*)
14114 lt_cv_prog_gnu_ld
=yes
14117 lt_cv_prog_gnu_ld
=no
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14122 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14123 with_gnu_ld
=$lt_cv_prog_gnu_ld
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14134 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14135 if ${lt_cv_path_NM+:} false
; then :
14136 $as_echo_n "(cached) " >&6
14138 if test -n "$NM"; then
14139 # Let the user override the test.
14140 lt_cv_path_NM
="$NM"
14142 lt_nm_to_check
="${ac_tool_prefix}nm"
14143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14144 lt_nm_to_check
="$lt_nm_to_check nm"
14146 for lt_tmp_nm
in $lt_nm_to_check; do
14147 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14148 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14150 test -z "$ac_dir" && ac_dir
=.
14151 tmp_nm
="$ac_dir/$lt_tmp_nm"
14152 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14153 # Check to see if the nm accepts a BSD-compat flag.
14154 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14155 # nm: unknown option "B" ignored
14156 # Tru64's nm complains that /dev/null is an invalid object file
14157 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14158 */dev
/null
* |
*'Invalid file or object type'*)
14159 lt_cv_path_NM
="$tmp_nm -B"
14163 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14165 lt_cv_path_NM
="$tmp_nm -p"
14169 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14170 continue # so that we can try to find one that supports BSD flags
14179 : ${lt_cv_path_NM=no}
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14183 $as_echo "$lt_cv_path_NM" >&6; }
14184 if test "$lt_cv_path_NM" != "no"; then
14185 NM
="$lt_cv_path_NM"
14187 # Didn't find any BSD compatible name lister, look for dumpbin.
14188 if test -n "$DUMPBIN"; then :
14189 # Let the user override the test.
14191 if test -n "$ac_tool_prefix"; then
14192 for ac_prog
in dumpbin
"link -dump"
14194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14195 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197 $as_echo_n "checking for $ac_word... " >&6; }
14198 if ${ac_cv_prog_DUMPBIN+:} false
; then :
14199 $as_echo_n "(cached) " >&6
14201 if test -n "$DUMPBIN"; then
14202 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14205 for as_dir
in $PATH
14208 test -z "$as_dir" && as_dir
=.
14209 for ac_exec_ext
in '' $ac_executable_extensions; do
14210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14211 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14221 DUMPBIN
=$ac_cv_prog_DUMPBIN
14222 if test -n "$DUMPBIN"; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14224 $as_echo "$DUMPBIN" >&6; }
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227 $as_echo "no" >&6; }
14231 test -n "$DUMPBIN" && break
14234 if test -z "$DUMPBIN"; then
14235 ac_ct_DUMPBIN
=$DUMPBIN
14236 for ac_prog
in dumpbin
"link -dump"
14238 # Extract the first word of "$ac_prog", so it can be a program name with args.
14239 set dummy
$ac_prog; ac_word
=$2
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14241 $as_echo_n "checking for $ac_word... " >&6; }
14242 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
14243 $as_echo_n "(cached) " >&6
14245 if test -n "$ac_ct_DUMPBIN"; then
14246 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14249 for as_dir
in $PATH
14252 test -z "$as_dir" && as_dir
=.
14253 for ac_exec_ext
in '' $ac_executable_extensions; do
14254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14255 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14265 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14266 if test -n "$ac_ct_DUMPBIN"; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14268 $as_echo "$ac_ct_DUMPBIN" >&6; }
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271 $as_echo "no" >&6; }
14275 test -n "$ac_ct_DUMPBIN" && break
14278 if test "x$ac_ct_DUMPBIN" = x
; then
14281 case $cross_compiling:$ac_tool_warned in
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14285 ac_tool_warned
=yes ;;
14287 DUMPBIN
=$ac_ct_DUMPBIN
14291 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14293 DUMPBIN
="$DUMPBIN -symbols"
14301 if test "$DUMPBIN" != ":"; then
14305 test -z "$NM" && NM
=nm
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14313 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14314 if ${lt_cv_nm_interface+:} false
; then :
14315 $as_echo_n "(cached) " >&6
14317 lt_cv_nm_interface
="BSD nm"
14318 echo "int some_variable = 0;" > conftest.
$ac_ext
14319 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14320 (eval "$ac_compile" 2>conftest.err
)
14321 cat conftest.err
>&5
14322 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14323 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14324 cat conftest.err
>&5
14325 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14326 cat conftest.out
>&5
14327 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14328 lt_cv_nm_interface
="MS dumpbin"
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14333 $as_echo "$lt_cv_nm_interface" >&6; }
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14336 $as_echo_n "checking whether ln -s works... " >&6; }
14338 if test "$LN_S" = "ln -s"; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14340 $as_echo "yes" >&6; }
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14343 $as_echo "no, using $LN_S" >&6; }
14346 # find the maximum length of command line arguments
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14348 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14349 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14350 $as_echo_n "(cached) " >&6
14357 # On DJGPP, this test can blow up pretty badly due to problems in libc
14358 # (any single argument exceeding 2000 bytes causes a buffer overrun
14359 # during glob expansion). Even if it were fixed, the result of this
14360 # check would be larger than it should be.
14361 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14365 # Under GNU Hurd, this test is not required because there is
14366 # no limit to the length of command line arguments.
14367 # Libtool will interpret -1 as no limit whatsoever
14368 lt_cv_sys_max_cmd_len
=-1;
14371 cygwin
* | mingw
* | cegcc
*)
14372 # On Win9x/ME, this test blows up -- it succeeds, but takes
14373 # about 5 minutes as the teststring grows exponentially.
14374 # Worse, since 9x/ME are not pre-emptively multitasking,
14375 # you end up with a "frozen" computer, even though with patience
14376 # the test eventually succeeds (with a max line length of 256k).
14377 # Instead, let's just punt: use the minimum linelength reported by
14378 # all of the supported platforms: 8192 (on NT/2K/XP).
14379 lt_cv_sys_max_cmd_len
=8192;
14383 # On MiNT this can take a long time and run out of memory.
14384 lt_cv_sys_max_cmd_len
=8192;
14388 # On AmigaOS with pdksh, this test takes hours, literally.
14389 # So we just punt and use a minimum line length of 8192.
14390 lt_cv_sys_max_cmd_len
=8192;
14393 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14394 # This has been around since 386BSD, at least. Likely further.
14395 if test -x /sbin
/sysctl
; then
14396 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14397 elif test -x /usr
/sbin
/sysctl
; then
14398 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14400 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14402 # And add a safety zone
14403 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14404 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14408 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14409 lt_cv_sys_max_cmd_len
=196608
14413 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14414 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14415 # nice to cause kernel panics so lets avoid the loop below.
14416 # First set a reasonable default.
14417 lt_cv_sys_max_cmd_len
=16384
14419 if test -x /sbin
/sysconfig
; then
14420 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14421 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14426 lt_cv_sys_max_cmd_len
=102400
14428 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14429 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14430 if test -n "$kargmax"; then
14431 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14433 lt_cv_sys_max_cmd_len
=32768
14437 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14438 if test -n "$lt_cv_sys_max_cmd_len"; then
14439 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14440 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14442 # Make teststring a little bigger before we do anything with it.
14443 # a 1K string should be a reasonable start.
14444 for i
in 1 2 3 4 5 6 7 8 ; do
14445 teststring
=$teststring$teststring
14447 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14448 # If test is not a shell built-in, we'll probably end up computing a
14449 # maximum length that is only half of the actual maximum length, but
14451 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14452 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14453 test $i != 17 # 1/2 MB should be enough
14456 teststring
=$teststring$teststring
14458 # Only check the string length outside the loop.
14459 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14461 # Add a significant safety factor because C++ compilers can tack on
14462 # massive amounts of additional arguments before passing them to the
14463 # linker. It appears as though 1/2 is a usable value.
14464 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14471 if test -n $lt_cv_sys_max_cmd_len ; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14473 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14476 $as_echo "none" >&6; }
14478 max_cmd_len
=$lt_cv_sys_max_cmd_len
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14490 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14491 # Try some XSI features
14493 ( _lt_dummy
="a/b/c"
14494 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14496 && eval 'test $(( 1 + 1 )) -eq 2 \
14497 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14500 $as_echo "$xsi_shell" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14504 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14506 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14508 && lt_shell_append=yes
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14510 $as_echo "$lt_shell_append" >&6; }
14513 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14523 # test EBCDIC or ASCII
14524 case `echo X|tr X '\101'` in
14525 A) # ASCII based system
14526 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14527 lt_SP2NL='tr \040 \012'
14528 lt_NL2SP='tr \015\012 \040\040'
14530 *) # EBCDIC based system
14531 lt_SP2NL='tr \100 \n'
14532 lt_NL2SP='tr \r\n \100\100'
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14545 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14546 if ${lt_cv_ld_reload_flag+:} false; then :
14547 $as_echo_n "(cached
) " >&6
14549 lt_cv_ld_reload_flag='-r'
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14552 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14553 reload_flag=$lt_cv_ld_reload_flag
14554 case $reload_flag in
14556 *) reload_flag=" $reload_flag" ;;
14558 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14561 if test "$GCC" = yes; then
14562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14577 if test -n "$ac_tool_prefix"; then
14578 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14579 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14581 $as_echo_n "checking
for $ac_word...
" >&6; }
14582 if ${ac_cv_prog_OBJDUMP+:} false; then :
14583 $as_echo_n "(cached
) " >&6
14585 if test -n "$OBJDUMP"; then
14586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14589 for as_dir in $PATH
14592 test -z "$as_dir" && as_dir=.
14593 for ac_exec_ext in '' $ac_executable_extensions; do
14594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14595 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14596 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14605 OBJDUMP=$ac_cv_prog_OBJDUMP
14606 if test -n "$OBJDUMP"; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14608 $as_echo "$OBJDUMP" >&6; }
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14611 $as_echo "no
" >&6; }
14616 if test -z "$ac_cv_prog_OBJDUMP"; then
14617 ac_ct_OBJDUMP=$OBJDUMP
14618 # Extract the first word of "objdump
", so it can be a program name with args.
14619 set dummy objdump; ac_word=$2
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14621 $as_echo_n "checking
for $ac_word...
" >&6; }
14622 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14623 $as_echo_n "(cached
) " >&6
14625 if test -n "$ac_ct_OBJDUMP"; then
14626 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14629 for as_dir in $PATH
14632 test -z "$as_dir" && as_dir=.
14633 for ac_exec_ext in '' $ac_executable_extensions; do
14634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14635 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14636 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14645 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14646 if test -n "$ac_ct_OBJDUMP"; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14648 $as_echo "$ac_ct_OBJDUMP" >&6; }
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14651 $as_echo "no
" >&6; }
14654 if test "x
$ac_ct_OBJDUMP" = x; then
14657 case $cross_compiling:$ac_tool_warned in
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14660 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14661 ac_tool_warned=yes ;;
14663 OBJDUMP=$ac_ct_OBJDUMP
14666 OBJDUMP="$ac_cv_prog_OBJDUMP"
14669 test -z "$OBJDUMP" && OBJDUMP=objdump
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14680 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14681 if ${lt_cv_deplibs_check_method+:} false; then :
14682 $as_echo_n "(cached
) " >&6
14684 lt_cv_file_magic_cmd='$MAGIC_CMD'
14685 lt_cv_file_magic_test_file=
14686 lt_cv_deplibs_check_method='unknown'
14687 # Need to set the preceding variable on all platforms that support
14688 # interlibrary dependencies.
14689 # 'none' -- dependencies not supported.
14690 # `unknown' -- same as none, but documents that we really don't know.
14691 # 'pass_all' -- all dependencies passed with no checks.
14692 # 'test_compile' -- check by making test program.
14693 # 'file_magic [[regex]]' -- check by looking for files in library path
14694 # which responds to the $file_magic_cmd with a given extended regex.
14695 # If you have `file' or equivalent on your system and you're not sure
14696 # whether `pass_all' will *always* work, you probably want this one.
14700 lt_cv_deplibs_check_method=pass_all
14704 lt_cv_deplibs_check_method=pass_all
14708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14709 lt_cv_file_magic_cmd='/usr/bin/file -L'
14710 lt_cv_file_magic_test_file=/shlib/libc.so
14714 # func_win32_libid is a shell function defined in ltmain.sh
14715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14716 lt_cv_file_magic_cmd='func_win32_libid'
14720 # Base MSYS/MinGW do not provide the 'file' command needed by
14721 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14722 # unless we find 'file', for example because we are cross-compiling.
14723 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14724 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14726 lt_cv_file_magic_cmd='func_win32_libid'
14728 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14729 lt_cv_file_magic_cmd='$OBJDUMP -f'
14734 # use the weaker test based on 'objdump'. See mingw*.
14735 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14736 lt_cv_file_magic_cmd='$OBJDUMP -f'
14739 darwin* | rhapsody*)
14740 lt_cv_deplibs_check_method=pass_all
14743 freebsd* | dragonfly*)
14744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14747 # Not sure whether the presence of OpenBSD here was a mistake.
14748 # Let's accept both of them until this is cleared up.
14749 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14750 lt_cv_file_magic_cmd=/usr/bin/file
14751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14755 lt_cv_deplibs_check_method=pass_all
14760 lt_cv_deplibs_check_method=pass_all
14764 lt_cv_deplibs_check_method=pass_all
14767 hpux10.20* | hpux11*)
14768 lt_cv_file_magic_cmd=/usr/bin/file
14771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14772 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14775 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]'
14776 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14780 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14786 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14790 irix5* | irix6* | nonstopux*)
14792 *-32|*"-32 ") libmagic=32-bit;;
14793 *-n32|*"-n32 ") libmagic=N32;;
14794 *-64|*"-64 ") libmagic=64-bit;;
14795 *) libmagic=never-match;;
14797 lt_cv_deplibs_check_method=pass_all
14800 # This must be Linux ELF.
14801 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14802 lt_cv_deplibs_check_method=pass_all
14806 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14815 lt_cv_file_magic_cmd=/usr/bin/file
14816 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14820 lt_cv_deplibs_check_method=pass_all
14824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14831 osf3* | osf4* | osf5*)
14832 lt_cv_deplibs_check_method=pass_all
14836 lt_cv_deplibs_check_method=pass_all
14840 lt_cv_deplibs_check_method=pass_all
14843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14844 lt_cv_deplibs_check_method=pass_all
14848 case $host_vendor in
14850 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]'
14851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14854 lt_cv_deplibs_check_method=pass_all
14857 lt_cv_file_magic_cmd='/bin/file'
14858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14861 lt_cv_file_magic_cmd='/bin/file'
14862 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14863 lt_cv_file_magic_test_file=/lib/libc.so
14866 lt_cv_deplibs_check_method=pass_all
14869 lt_cv_deplibs_check_method=pass_all
14875 lt_cv_deplibs_check_method=pass_all
14878 # Assume VxWorks cross toolchains are built on Linux, possibly
14879 # as canadian for Windows hosts.
14880 lt_cv_deplibs_check_method=pass_all
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14886 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14887 file_magic_cmd=$lt_cv_file_magic_cmd
14888 deplibs_check_method=$lt_cv_deplibs_check_method
14889 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14902 if test -n "$ac_tool_prefix"; then
14903 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14904 set dummy ${ac_tool_prefix}ar; ac_word=$2
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14906 $as_echo_n "checking
for $ac_word...
" >&6; }
14907 if ${ac_cv_prog_AR+:} false; then :
14908 $as_echo_n "(cached
) " >&6
14910 if test -n "$AR"; then
14911 ac_cv_prog_AR="$AR" # Let the user override the test.
14913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14914 for as_dir in $PATH
14917 test -z "$as_dir" && as_dir=.
14918 for ac_exec_ext in '' $ac_executable_extensions; do
14919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14920 ac_cv_prog_AR="${ac_tool_prefix}ar"
14921 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14931 if test -n "$AR"; then
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14933 $as_echo "$AR" >&6; }
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14936 $as_echo "no
" >&6; }
14941 if test -z "$ac_cv_prog_AR"; then
14943 # Extract the first word of "ar", so it can be a program name with args.
14944 set dummy ar; ac_word=$2
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14946 $as_echo_n "checking
for $ac_word...
" >&6; }
14947 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14948 $as_echo_n "(cached
) " >&6
14950 if test -n "$ac_ct_AR"; then
14951 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14954 for as_dir in $PATH
14957 test -z "$as_dir" && as_dir=.
14958 for ac_exec_ext in '' $ac_executable_extensions; do
14959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14960 ac_cv_prog_ac_ct_AR="ar"
14961 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14970 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14971 if test -n "$ac_ct_AR"; then
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14973 $as_echo "$ac_ct_AR" >&6; }
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14976 $as_echo "no
" >&6; }
14979 if test "x
$ac_ct_AR" = x; then
14982 case $cross_compiling:$ac_tool_warned in
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14985 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14986 ac_tool_warned=yes ;;
14991 AR="$ac_cv_prog_AR"
14994 test -z "$AR" && AR=ar
14995 test -z "$AR_FLAGS" && AR_FLAGS=cru
15007 if test -n "$ac_tool_prefix"; then
15008 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15009 set dummy ${ac_tool_prefix}strip; ac_word=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15011 $as_echo_n "checking
for $ac_word...
" >&6; }
15012 if ${ac_cv_prog_STRIP+:} false; then :
15013 $as_echo_n "(cached
) " >&6
15015 if test -n "$STRIP"; then
15016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019 for as_dir in $PATH
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
15024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15035 STRIP=$ac_cv_prog_STRIP
15036 if test -n "$STRIP"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
15038 $as_echo "$STRIP" >&6; }
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15041 $as_echo "no
" >&6; }
15046 if test -z "$ac_cv_prog_STRIP"; then
15048 # Extract the first word of "strip
", so it can be a program name with args.
15049 set dummy strip; ac_word=$2
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15051 $as_echo_n "checking
for $ac_word...
" >&6; }
15052 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15053 $as_echo_n "(cached
) " >&6
15055 if test -n "$ac_ct_STRIP"; then
15056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15059 for as_dir in $PATH
15062 test -z "$as_dir" && as_dir=.
15063 for ac_exec_ext in '' $ac_executable_extensions; do
15064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15065 ac_cv_prog_ac_ct_STRIP="strip
"
15066 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15076 if test -n "$ac_ct_STRIP"; then
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
15078 $as_echo "$ac_ct_STRIP" >&6; }
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15081 $as_echo "no
" >&6; }
15084 if test "x
$ac_ct_STRIP" = x; then
15087 case $cross_compiling:$ac_tool_warned in
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15090 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15091 ac_tool_warned=yes ;;
15096 STRIP="$ac_cv_prog_STRIP"
15099 test -z "$STRIP" && STRIP=:
15106 if test -n "$ac_tool_prefix"; then
15107 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15110 $as_echo_n "checking
for $ac_word...
" >&6; }
15111 if ${ac_cv_prog_RANLIB+:} false; then :
15112 $as_echo_n "(cached
) " >&6
15114 if test -n "$RANLIB"; then
15115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15118 for as_dir in $PATH
15121 test -z "$as_dir" && as_dir=.
15122 for ac_exec_ext in '' $ac_executable_extensions; do
15123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15125 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15134 RANLIB=$ac_cv_prog_RANLIB
15135 if test -n "$RANLIB"; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
15137 $as_echo "$RANLIB" >&6; }
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15140 $as_echo "no
" >&6; }
15145 if test -z "$ac_cv_prog_RANLIB"; then
15146 ac_ct_RANLIB=$RANLIB
15147 # Extract the first word of "ranlib
", so it can be a program name with args.
15148 set dummy ranlib; ac_word=$2
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15150 $as_echo_n "checking
for $ac_word...
" >&6; }
15151 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15152 $as_echo_n "(cached
) " >&6
15154 if test -n "$ac_ct_RANLIB"; then
15155 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158 for as_dir in $PATH
15161 test -z "$as_dir" && as_dir=.
15162 for ac_exec_ext in '' $ac_executable_extensions; do
15163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15164 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15165 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15174 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15175 if test -n "$ac_ct_RANLIB"; then
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
15177 $as_echo "$ac_ct_RANLIB" >&6; }
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15180 $as_echo "no
" >&6; }
15183 if test "x
$ac_ct_RANLIB" = x; then
15186 case $cross_compiling:$ac_tool_warned in
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15189 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15190 ac_tool_warned=yes ;;
15192 RANLIB=$ac_ct_RANLIB
15195 RANLIB="$ac_cv_prog_RANLIB"
15198 test -z "$RANLIB" && RANLIB=:
15205 # Determine commands to create old-style static archives.
15206 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15207 old_postinstall_cmds='chmod 644 $oldlib'
15208 old_postuninstall_cmds=
15210 if test -n "$RANLIB"; then
15213 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15216 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15219 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15224 lock_old_archive_extraction=yes ;;
15226 lock_old_archive_extraction=no ;;
15267 # If no C compiler was specified, use CC.
15270 # If no C compiler flags were specified, use CFLAGS.
15271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15273 # Allow CC to be a program name with arguments.
15277 # Check for command to grab the raw symbol name followed by C symbol from nm.
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15279 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15280 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15281 $as_echo_n "(cached
) " >&6
15284 # These are sane defaults that work on at least a few old systems.
15285 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15287 # Character class describing NM global symbol codes.
15288 symcode='[BCDEGRST]'
15290 # Regexp to match symbols that can be accessed directly from C.
15291 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15293 # Define system-specific variables.
15298 cygwin* | mingw* | pw32* | cegcc*)
15299 symcode='[ABCDGISTW]'
15302 if test "$host_cpu" = ia64; then
15303 symcode='[ABCDEGRST]'
15306 irix* | nonstopux*)
15307 symcode='[BCDEGRST]'
15310 symcode='[BCDEGQRST]'
15321 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15329 # If we're using GNU nm, then use its standard symbol codes.
15330 case `$NM -V 2>&1` in
15331 *GNU* | *'with BFD'*)
15332 symcode='[ABCDGIRSTW]' ;;
15335 # Transform an extracted symbol line into a proper C declaration.
15336 # Some systems (esp. on ia64) link data and code symbols differently,
15337 # so use this general approach.
15338 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15340 # Transform an extracted symbol line into symbol name and symbol address
15341 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15342 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'"
15344 # Handle CRLF in mingw tool chain
15348 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15352 # Try without a prefix underscore, then with it.
15353 for ac_symprfx in "" "_
"; do
15355 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15356 symxfrm="\\1 $ac_symprfx\\2 \\2"
15358 # Write the raw and C identifiers.
15359 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15360 # Fake it for dumpbin and say T for any non-static function
15361 # and D for any global variable.
15362 # Also find C++ and __fastcall symbols from MSVC++,
15363 # which start with @ or ?.
15364 lt_cv_sys_global_symbol_pipe="$AWK '"\
15365 " {last_section=section; section=\$ 3};"\
15366 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15367 " \$ 0!~/External *\|/{next};"\
15368 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15369 " {if(hide[section]) next};"\
15370 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15371 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15372 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15373 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15374 " ' prfx
=^
$ac_symprfx"
15376 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15379 # Check to see that the pipe works correctly.
15383 cat > conftest.$ac_ext <<_LT_EOF
15388 void nm_test_func(void);
15389 void nm_test_func(void){}
15393 int main(){nm_test_var='a';nm_test_func();return(0);}
15396 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15397 (eval $ac_compile) 2>&5
15399 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15400 test $ac_status = 0; }; then
15401 # Now try to grab the symbols.
15403 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15404 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15406 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15407 test $ac_status = 0; } && test -s "$nlist"; then
15408 # Try sorting and uniquifying the output.
15409 if sort "$nlist" | uniq > "$nlist"T; then
15410 mv -f "$nlist"T "$nlist"
15415 # Make sure that we snagged all the symbols we need.
15416 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15417 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15418 cat <<_LT_EOF > conftest.$ac_ext
15424 # Now generate the symbol file.
15425 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15427 cat <<_LT_EOF >> conftest.$ac_ext
15429 /* The mapping between symbol names and symbols. */
15434 lt__PROGRAM__LTX_preloaded_symbols[] =
15436 { "@PROGRAM@
", (void *) 0 },
15438 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15439 cat <<\_LT_EOF >> conftest.$ac_ext
15443 /* This works around a problem in FreeBSD linker */
15444 #ifdef FREEBSD_WORKAROUND
15445 static const void *lt_preloaded_setup() {
15446 return lt__PROGRAM__LTX_preloaded_symbols;
15454 # Now try linking the two files.
15455 mv conftest.$ac_objext conftstm.$ac_objext
15456 lt_save_LIBS="$LIBS"
15457 lt_save_CFLAGS="$CFLAGS"
15458 LIBS="conftstm.
$ac_objext"
15459 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15460 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15461 (eval $ac_link) 2>&5
15463 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15464 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15467 LIBS="$lt_save_LIBS"
15468 CFLAGS="$lt_save_CFLAGS"
15470 echo "cannot
find nm_test_func
in $nlist" >&5
15473 echo "cannot
find nm_test_var
in $nlist" >&5
15476 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15479 echo "$progname: failed program was
:" >&5
15480 cat conftest.$ac_ext >&5
15482 rm -rf conftest* conftst*
15484 # Do not use the global_symbol_pipe unless it works.
15485 if test "$pipe_works" = yes; then
15488 lt_cv_sys_global_symbol_pipe=
15494 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15495 lt_cv_sys_global_symbol_to_cdecl=
15497 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15499 $as_echo "failed
" >&6; }
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15502 $as_echo "ok
" >&6; }
15526 # Check whether --enable-libtool-lock was given.
15527 if test "${enable_libtool_lock+set}" = set; then :
15528 enableval=$enable_libtool_lock;
15531 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15533 # Some flags need to be propagated to the compiler or linker for good
15537 # Find out which ABI we are using.
15538 echo 'int i;' > conftest.$ac_ext
15539 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15540 (eval $ac_compile) 2>&5
15542 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15543 test $ac_status = 0; }; then
15544 case `/usr/bin/file conftest.$ac_objext` in
15546 HPUX_IA64_MODE="32"
15549 HPUX_IA64_MODE="64"
15556 # Find out which ABI we are using.
15557 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15558 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15559 (eval $ac_compile) 2>&5
15561 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15562 test $ac_status = 0; }; then
15563 if test "$lt_cv_prog_gnu_ld" = yes; then
15564 case `/usr/bin/file conftest.$ac_objext` in
15566 LD="${LD-ld} -melf32bsmip"
15569 LD="${LD-ld} -melf32bmipn32"
15572 LD="${LD-ld} -melf64bmip"
15576 case `/usr/bin/file conftest.$ac_objext` in
15592 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15593 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15594 # Find out which ABI we are using.
15595 echo 'int i;' > conftest.$ac_ext
15596 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15597 (eval $ac_compile) 2>&5
15599 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15600 test $ac_status = 0; }; then
15601 case `/usr/bin/file conftest.o` in
15604 x86_64-*kfreebsd*-gnu)
15605 LD="${LD-ld} -m elf_i386_fbsd
"
15608 case `/usr/bin/file conftest.o` in
15610 LD="${LD-ld} -m elf32_x86_64
"
15613 LD="${LD-ld} -m elf_i386
"
15617 powerpc64le-*linux*)
15618 LD="${LD-ld} -m elf32lppclinux
"
15621 LD="${LD-ld} -m elf32ppclinux
"
15624 LD="${LD-ld} -m elf_s390
"
15627 LD="${LD-ld} -m elf32_sparc
"
15633 x86_64-*kfreebsd*-gnu)
15634 LD="${LD-ld} -m elf_x86_64_fbsd
"
15637 LD="${LD-ld} -m elf_x86_64
"
15640 LD="${LD-ld} -m elf64lppc
"
15643 LD="${LD-ld} -m elf64ppc
"
15645 s390*-*linux*|s390*-*tpf*)
15646 LD="${LD-ld} -m elf64_s390
"
15649 LD="${LD-ld} -m elf64_sparc
"
15659 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15660 SAVE_CFLAGS="$CFLAGS"
15661 CFLAGS="$CFLAGS -belf"
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15663 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15664 if ${lt_cv_cc_needs_belf+:} false; then :
15665 $as_echo_n "(cached
) " >&6
15668 ac_cpp='$CPP $CPPFLAGS'
15669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15684 if ac_fn_c_try_link "$LINENO"; then :
15685 lt_cv_cc_needs_belf=yes
15687 lt_cv_cc_needs_belf=no
15689 rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
15692 ac_cpp='$CPP $CPPFLAGS'
15693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15699 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15700 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15701 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15702 CFLAGS="$SAVE_CFLAGS"
15706 # Find out which ABI we are using.
15707 echo 'int i;' > conftest.$ac_ext
15708 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15709 (eval $ac_compile) 2>&5
15711 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15712 test $ac_status = 0; }; then
15713 case `/usr/bin/file conftest.o` in
15715 case $lt_cv_prog_gnu_ld in
15716 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15718 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15730 need_locks="$enable_libtool_lock"
15734 rhapsody* | darwin*)
15735 if test -n "$ac_tool_prefix"; then
15736 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15737 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15739 $as_echo_n "checking
for $ac_word...
" >&6; }
15740 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15741 $as_echo_n "(cached
) " >&6
15743 if test -n "$DSYMUTIL"; then
15744 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15747 for as_dir in $PATH
15750 test -z "$as_dir" && as_dir=.
15751 for ac_exec_ext in '' $ac_executable_extensions; do
15752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15753 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15754 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15763 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15764 if test -n "$DSYMUTIL"; then
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15766 $as_echo "$DSYMUTIL" >&6; }
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15769 $as_echo "no
" >&6; }
15774 if test -z "$ac_cv_prog_DSYMUTIL"; then
15775 ac_ct_DSYMUTIL=$DSYMUTIL
15776 # Extract the first word of "dsymutil
", so it can be a program name with args.
15777 set dummy dsymutil; ac_word=$2
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15779 $as_echo_n "checking
for $ac_word...
" >&6; }
15780 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15781 $as_echo_n "(cached
) " >&6
15783 if test -n "$ac_ct_DSYMUTIL"; then
15784 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15787 for as_dir in $PATH
15790 test -z "$as_dir" && as_dir=.
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15793 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15794 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15803 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15804 if test -n "$ac_ct_DSYMUTIL"; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15806 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15809 $as_echo "no
" >&6; }
15812 if test "x
$ac_ct_DSYMUTIL" = x; then
15815 case $cross_compiling:$ac_tool_warned in
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15818 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15819 ac_tool_warned=yes ;;
15821 DSYMUTIL=$ac_ct_DSYMUTIL
15824 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15827 if test -n "$ac_tool_prefix"; then
15828 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15829 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15831 $as_echo_n "checking
for $ac_word...
" >&6; }
15832 if ${ac_cv_prog_NMEDIT+:} false; then :
15833 $as_echo_n "(cached
) " >&6
15835 if test -n "$NMEDIT"; then
15836 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15839 for as_dir in $PATH
15842 test -z "$as_dir" && as_dir=.
15843 for ac_exec_ext in '' $ac_executable_extensions; do
15844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15845 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15846 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15855 NMEDIT=$ac_cv_prog_NMEDIT
15856 if test -n "$NMEDIT"; then
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15858 $as_echo "$NMEDIT" >&6; }
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15861 $as_echo "no
" >&6; }
15866 if test -z "$ac_cv_prog_NMEDIT"; then
15867 ac_ct_NMEDIT=$NMEDIT
15868 # Extract the first word of "nmedit
", so it can be a program name with args.
15869 set dummy nmedit; ac_word=$2
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15871 $as_echo_n "checking
for $ac_word...
" >&6; }
15872 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15873 $as_echo_n "(cached
) " >&6
15875 if test -n "$ac_ct_NMEDIT"; then
15876 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15879 for as_dir in $PATH
15882 test -z "$as_dir" && as_dir=.
15883 for ac_exec_ext in '' $ac_executable_extensions; do
15884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15885 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15886 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15895 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15896 if test -n "$ac_ct_NMEDIT"; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15898 $as_echo "$ac_ct_NMEDIT" >&6; }
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15901 $as_echo "no
" >&6; }
15904 if test "x
$ac_ct_NMEDIT" = x; then
15907 case $cross_compiling:$ac_tool_warned in
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15910 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15911 ac_tool_warned=yes ;;
15913 NMEDIT=$ac_ct_NMEDIT
15916 NMEDIT="$ac_cv_prog_NMEDIT"
15919 if test -n "$ac_tool_prefix"; then
15920 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15921 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15923 $as_echo_n "checking
for $ac_word...
" >&6; }
15924 if ${ac_cv_prog_LIPO+:} false; then :
15925 $as_echo_n "(cached
) " >&6
15927 if test -n "$LIPO"; then
15928 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15931 for as_dir in $PATH
15934 test -z "$as_dir" && as_dir=.
15935 for ac_exec_ext in '' $ac_executable_extensions; do
15936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15937 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15938 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15947 LIPO=$ac_cv_prog_LIPO
15948 if test -n "$LIPO"; then
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15950 $as_echo "$LIPO" >&6; }
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15953 $as_echo "no
" >&6; }
15958 if test -z "$ac_cv_prog_LIPO"; then
15960 # Extract the first word of "lipo
", so it can be a program name with args.
15961 set dummy lipo; ac_word=$2
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15963 $as_echo_n "checking
for $ac_word...
" >&6; }
15964 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15965 $as_echo_n "(cached
) " >&6
15967 if test -n "$ac_ct_LIPO"; then
15968 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15971 for as_dir in $PATH
15974 test -z "$as_dir" && as_dir=.
15975 for ac_exec_ext in '' $ac_executable_extensions; do
15976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15977 ac_cv_prog_ac_ct_LIPO="lipo
"
15978 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15987 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15988 if test -n "$ac_ct_LIPO"; then
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15990 $as_echo "$ac_ct_LIPO" >&6; }
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15993 $as_echo "no
" >&6; }
15996 if test "x
$ac_ct_LIPO" = x; then
15999 case $cross_compiling:$ac_tool_warned in
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16002 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16003 ac_tool_warned=yes ;;
16008 LIPO="$ac_cv_prog_LIPO"
16011 if test -n "$ac_tool_prefix"; then
16012 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
16013 set dummy ${ac_tool_prefix}otool; ac_word=$2
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16015 $as_echo_n "checking
for $ac_word...
" >&6; }
16016 if ${ac_cv_prog_OTOOL+:} false; then :
16017 $as_echo_n "(cached
) " >&6
16019 if test -n "$OTOOL"; then
16020 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16023 for as_dir in $PATH
16026 test -z "$as_dir" && as_dir=.
16027 for ac_exec_ext in '' $ac_executable_extensions; do
16028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16029 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
16030 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16039 OTOOL=$ac_cv_prog_OTOOL
16040 if test -n "$OTOOL"; then
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
16042 $as_echo "$OTOOL" >&6; }
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16045 $as_echo "no
" >&6; }
16050 if test -z "$ac_cv_prog_OTOOL"; then
16052 # Extract the first word of "otool
", so it can be a program name with args.
16053 set dummy otool; ac_word=$2
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16055 $as_echo_n "checking
for $ac_word...
" >&6; }
16056 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16057 $as_echo_n "(cached
) " >&6
16059 if test -n "$ac_ct_OTOOL"; then
16060 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16063 for as_dir in $PATH
16066 test -z "$as_dir" && as_dir=.
16067 for ac_exec_ext in '' $ac_executable_extensions; do
16068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16069 ac_cv_prog_ac_ct_OTOOL="otool
"
16070 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16079 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16080 if test -n "$ac_ct_OTOOL"; then
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
16082 $as_echo "$ac_ct_OTOOL" >&6; }
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16085 $as_echo "no
" >&6; }
16088 if test "x
$ac_ct_OTOOL" = x; then
16091 case $cross_compiling:$ac_tool_warned in
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16094 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16095 ac_tool_warned=yes ;;
16100 OTOOL="$ac_cv_prog_OTOOL"
16103 if test -n "$ac_tool_prefix"; then
16104 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16105 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16107 $as_echo_n "checking
for $ac_word...
" >&6; }
16108 if ${ac_cv_prog_OTOOL64+:} false; then :
16109 $as_echo_n "(cached
) " >&6
16111 if test -n "$OTOOL64"; then
16112 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16115 for as_dir in $PATH
16118 test -z "$as_dir" && as_dir=.
16119 for ac_exec_ext in '' $ac_executable_extensions; do
16120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16121 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16122 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16131 OTOOL64=$ac_cv_prog_OTOOL64
16132 if test -n "$OTOOL64"; then
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
16134 $as_echo "$OTOOL64" >&6; }
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16137 $as_echo "no
" >&6; }
16142 if test -z "$ac_cv_prog_OTOOL64"; then
16143 ac_ct_OTOOL64=$OTOOL64
16144 # Extract the first word of "otool64
", so it can be a program name with args.
16145 set dummy otool64; ac_word=$2
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16147 $as_echo_n "checking
for $ac_word...
" >&6; }
16148 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16149 $as_echo_n "(cached
) " >&6
16151 if test -n "$ac_ct_OTOOL64"; then
16152 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16155 for as_dir in $PATH
16158 test -z "$as_dir" && as_dir=.
16159 for ac_exec_ext in '' $ac_executable_extensions; do
16160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16161 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16162 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16171 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16172 if test -n "$ac_ct_OTOOL64"; then
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
16174 $as_echo "$ac_ct_OTOOL64" >&6; }
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16177 $as_echo "no
" >&6; }
16180 if test "x
$ac_ct_OTOOL64" = x; then
16183 case $cross_compiling:$ac_tool_warned in
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16186 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16187 ac_tool_warned=yes ;;
16189 OTOOL64=$ac_ct_OTOOL64
16192 OTOOL64="$ac_cv_prog_OTOOL64"
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
16222 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
16223 if ${lt_cv_apple_cc_single_mod+:} false; then :
16224 $as_echo_n "(cached
) " >&6
16226 lt_cv_apple_cc_single_mod=no
16227 if test -z "${LT_MULTI_MODULE}"; then
16228 # By default we will add the -single_module flag. You can override
16229 # by either setting the environment variable LT_MULTI_MODULE
16230 # non-empty at configure time, or by adding -multi_module to the
16232 rm -rf libconftest.dylib*
16233 echo "int foo
(void
){return 1;}" > conftest.c
16234 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16235 -dynamiclib -Wl,-single_module conftest.c
" >&5
16236 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16237 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16239 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16240 lt_cv_apple_cc_single_mod=yes
16242 cat conftest.err >&5
16244 rm -rf libconftest.dylib*
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
16249 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
16251 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
16252 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16253 $as_echo_n "(cached
) " >&6
16255 lt_cv_ld_exported_symbols_list=no
16256 save_LDFLAGS=$LDFLAGS
16257 echo "_main
" > conftest.sym
16258 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16270 if ac_fn_c_try_link "$LINENO"; then :
16271 lt_cv_ld_exported_symbols_list=yes
16273 lt_cv_ld_exported_symbols_list=no
16275 rm -f core conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
16277 LDFLAGS="$save_LDFLAGS"
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16281 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16283 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16284 if ${lt_cv_ld_force_load+:} false; then :
16285 $as_echo_n "(cached
) " >&6
16287 lt_cv_ld_force_load=no
16288 cat > conftest.c << _LT_EOF
16289 int forced_loaded() { return 2;}
16291 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16292 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16293 echo "$AR cru libconftest.a conftest.o
" >&5
16294 $AR cru libconftest.a conftest.o 2>&5
16295 cat > conftest.c << _LT_EOF
16296 int main() { return 0;}
16298 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16299 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16301 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16302 lt_cv_ld_force_load=yes
16304 cat conftest.err >&5
16306 rm -f conftest.err libconftest.a conftest conftest.c
16307 rm -rf conftest.dSYM
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16311 $as_echo "$lt_cv_ld_force_load" >&6; }
16312 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16313 # build without first building modern cctools / linker.
16314 case $host_cpu-$host_os in
16315 *-rhapsody* | *-darwin1.[012])
16316 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16318 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16320 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16321 # deployment target is forced to an earlier version.
16322 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16323 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16326 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16333 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16334 _lt_dar_single_mod='$single_module'
16336 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16337 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16339 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16341 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16342 _lt_dsymutil='~$DSYMUTIL $lib || :'
16350 for ac_header in dlfcn.h
16352 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16353 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16354 cat >>confdefs.h <<_ACEOF
16355 #define HAVE_DLFCN_H 1
16372 enable_win32_dll=no
16375 # Check whether --enable-shared was given.
16376 if test "${enable_shared+set}" = set; then :
16377 enableval=$enable_shared; p=${PACKAGE-default}
16379 yes) enable_shared=yes ;;
16380 no) enable_shared=no ;;
16383 # Look at the argument we got. We use all the common list separators.
16384 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16385 for pkg in $enableval; do
16387 if test "X
$pkg" = "X
$p"; then
16406 # Check whether --enable-static was given.
16407 if test "${enable_static+set}" = set; then :
16408 enableval=$enable_static; p=${PACKAGE-default}
16410 yes) enable_static=yes ;;
16411 no) enable_static=no ;;
16414 # Look at the argument we got. We use all the common list separators.
16415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16416 for pkg in $enableval; do
16418 if test "X
$pkg" = "X
$p"; then
16438 # Check whether --with-pic was given.
16439 if test "${with_pic+set}" = set; then :
16440 withval=$with_pic; pic_mode="$withval"
16446 test -z "$pic_mode" && pic_mode=default
16454 # Check whether --enable-fast-install was given.
16455 if test "${enable_fast_install+set}" = set; then :
16456 enableval=$enable_fast_install; p=${PACKAGE-default}
16458 yes) enable_fast_install=yes ;;
16459 no) enable_fast_install=no ;;
16461 enable_fast_install=no
16462 # Look at the argument we got. We use all the common list separators.
16463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16464 for pkg in $enableval; do
16466 if test "X
$pkg" = "X
$p"; then
16467 enable_fast_install=yes
16474 enable_fast_install=yes
16487 # This can be used to rebuild libtool when needed
16488 LIBTOOL_DEPS="$ltmain"
16490 # Always use our own libtool.
16491 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16518 test -z "$LN_S" && LN_S="ln -s"
16533 if test -n "${ZSH_VERSION+set}" ; then
16534 setopt NO_GLOB_SUBST
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16538 $as_echo_n "checking
for objdir...
" >&6; }
16539 if ${lt_cv_objdir+:} false; then :
16540 $as_echo_n "(cached
) " >&6
16542 rm -f .libs 2>/dev/null
16543 mkdir .libs 2>/dev/null
16544 if test -d .libs; then
16547 # MS-DOS does not allow filenames that begin with a dot.
16550 rmdir .libs 2>/dev/null
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16553 $as_echo "$lt_cv_objdir" >&6; }
16554 objdir=$lt_cv_objdir
16560 cat >>confdefs.h <<_ACEOF
16561 #define LT_OBJDIR "$lt_cv_objdir/"
16569 # AIX sometimes has problems with the GCC collect2 program. For some
16570 # reason, if we set the COLLECT_NAMES environment variable, the problems
16571 # vanish in a puff of smoke.
16572 if test "X
${COLLECT_NAMES+set}" != Xset; then
16574 export COLLECT_NAMES
16579 # Global variables:
16581 can_build_shared=yes
16583 # All known linkers require a `.a' archive for static linking (except MSVC,
16584 # which needs '.lib').
16587 with_gnu_ld="$lt_cv_prog_gnu_ld"
16590 old_CFLAGS="$CFLAGS"
16592 # Set sane defaults for various variables
16593 test -z "$CC" && CC=cc
16594 test -z "$LTCC" && LTCC=$CC
16595 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16596 test -z "$LD" && LD=ld
16597 test -z "$ac_objext" && ac_objext=o
16599 for cc_temp in $compiler""; do
16601 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16602 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16607 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16610 # Only perform the check for file, if the check method requires it
16611 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16612 case $deplibs_check_method in
16614 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16616 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16617 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16618 $as_echo_n "(cached
) " >&6
16622 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16625 lt_save_MAGIC_CMD="$MAGIC_CMD"
16626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16627 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16628 for ac_dir in $ac_dummy; do
16630 test -z "$ac_dir" && ac_dir=.
16631 if test -f $ac_dir/${ac_tool_prefix}file; then
16632 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16633 if test -n "$file_magic_test_file"; then
16634 case $deplibs_check_method in
16636 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16638 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16639 $EGREP "$file_magic_regex" > /dev/null; then
16644 *** Warning: the command libtool uses to detect shared libraries,
16645 *** $file_magic_cmd, produces output that libtool cannot recognize.
16646 *** The result is that libtool may fail to recognize shared libraries
16647 *** as such. This will affect the creation of libtool libraries that
16648 *** depend on shared libraries, but programs linked with such libtool
16649 *** libraries will work regardless of this problem. Nevertheless, you
16650 *** may want to report the problem to your system manager and/or to
16651 *** bug-libtool@gnu.org
16661 MAGIC_CMD="$lt_save_MAGIC_CMD"
16666 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16667 if test -n "$MAGIC_CMD"; then
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16669 $as_echo "$MAGIC_CMD" >&6; }
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16672 $as_echo "no
" >&6; }
16679 if test -z "$lt_cv_path_MAGIC_CMD"; then
16680 if test -n "$ac_tool_prefix"; then
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16682 $as_echo_n "checking
for file...
" >&6; }
16683 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16684 $as_echo_n "(cached
) " >&6
16688 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16691 lt_save_MAGIC_CMD="$MAGIC_CMD"
16692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16693 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16694 for ac_dir in $ac_dummy; do
16696 test -z "$ac_dir" && ac_dir=.
16697 if test -f $ac_dir/file; then
16698 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16699 if test -n "$file_magic_test_file"; then
16700 case $deplibs_check_method in
16702 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16705 $EGREP "$file_magic_regex" > /dev/null; then
16710 *** Warning: the command libtool uses to detect shared libraries,
16711 *** $file_magic_cmd, produces output that libtool cannot recognize.
16712 *** The result is that libtool may fail to recognize shared libraries
16713 *** as such. This will affect the creation of libtool libraries that
16714 *** depend on shared libraries, but programs linked with such libtool
16715 *** libraries will work regardless of this problem. Nevertheless, you
16716 *** may want to report the problem to your system manager and/or to
16717 *** bug-libtool@gnu.org
16727 MAGIC_CMD="$lt_save_MAGIC_CMD"
16732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16733 if test -n "$MAGIC_CMD"; then
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16735 $as_echo "$MAGIC_CMD" >&6; }
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16738 $as_echo "no
" >&6; }
16751 # Use C for the default configuration in the libtool script
16755 ac_cpp='$CPP $CPPFLAGS'
16756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16761 # Source file extension for C test sources.
16764 # Object file extension for compiled C test sources.
16768 # Code to be used in simple compile tests
16769 lt_simple_compile_test_code="int some_variable
= 0;"
16771 # Code to be used in simple link tests
16772 lt_simple_link_test_code='int main(){return(0);}'
16780 # If no C compiler was specified, use CC.
16783 # If no C compiler flags were specified, use CFLAGS.
16784 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16786 # Allow CC to be a program name with arguments.
16789 # Save the default compiler, since it gets overwritten when the other
16790 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16791 compiler_DEFAULT=$CC
16793 # save warnings/boilerplate of simple test code
16794 ac_outfile=conftest.$ac_objext
16795 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16796 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16797 _lt_compiler_boilerplate=`cat conftest.err`
16800 ac_outfile=conftest.$ac_objext
16801 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16802 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16803 _lt_linker_boilerplate=`cat conftest.err`
16808 ## There is no encapsulation within the following macros, do not change
16809 ## the running order or otherwise move them around unless you know exactly
16810 ## what you are doing...
16811 if test -n "$compiler"; then
16813 lt_prog_compiler_no_builtin_flag=
16815 if test "$GCC" = yes; then
16816 case $cc_basename in
16818 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16820 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16824 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16825 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16826 $as_echo_n "(cached
) " >&6
16828 lt_cv_prog_compiler_rtti_exceptions=no
16829 ac_outfile=conftest.$ac_objext
16830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16831 lt_compiler_flag="-fno-rtti -fno-exceptions"
16832 # Insert the option either (1) after the last *FLAGS variable, or
16833 # (2) before a word containing "conftest.
", or (3) at the end.
16834 # Note that $ac_compile itself does not contain backslashes and begins
16835 # with a dollar sign (not a hyphen), so the echo should work correctly.
16836 # The option is referenced via a variable to avoid confusing sed.
16837 lt_compile=`echo "$ac_compile" | $SED \
16838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16840 -e 's:$: $lt_compiler_flag:'`
16841 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16842 (eval "$lt_compile" 2>conftest.err)
16844 cat conftest.err >&5
16845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16846 if (exit $ac_status) && test -s "$ac_outfile"; then
16847 # The compiler can only warn and ignore the option if not recognized
16848 # So say no if there are warnings other than the usual output.
16849 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16852 lt_cv_prog_compiler_rtti_exceptions=yes
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16859 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16861 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16862 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16874 lt_prog_compiler_wl=
16875 lt_prog_compiler_pic=
16876 lt_prog_compiler_static=
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16879 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16881 if test "$GCC" = yes; then
16882 lt_prog_compiler_wl='-Wl,'
16883 lt_prog_compiler_static='-static'
16887 # All AIX code is PIC.
16888 if test "$host_cpu" = ia64; then
16889 # AIX 5 now supports IA64 processor
16890 lt_prog_compiler_static='-Bstatic'
16892 lt_prog_compiler_pic='-fPIC'
16898 # see comment about AmigaOS4 .so support
16899 lt_prog_compiler_pic='-fPIC'
16902 # FIXME: we need at least 68020 code to build shared libraries, but
16903 # adding the `-m68020' flag to GCC prevents building anything better,
16905 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16910 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16911 # PIC is the default for these OSes.
16914 mingw* | cygwin* | pw32* | os2* | cegcc*)
16915 # This hack is so that the source file can tell whether it is being
16916 # built for inclusion in a dll (and should export symbols for example).
16917 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16918 # (--disable-auto-import) libraries
16919 lt_prog_compiler_pic='-DDLL_EXPORT'
16922 darwin* | rhapsody*)
16923 # PIC is the default on this platform
16924 # Common symbols not allowed in MH_DYLIB files
16925 lt_prog_compiler_pic='-fno-common'
16929 # PIC is the default for Haiku.
16930 # The "-static" flag exists, but is broken.
16931 lt_prog_compiler_static=
16935 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16936 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16937 # sets the default TLS model and affects inlining.
16943 lt_prog_compiler_pic='-fPIC'
16949 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16950 # Instead, we relocate shared libraries at runtime.
16954 # Just because we use GCC doesn't mean we suddenly get shared libraries
16955 # on systems that don't support them.
16956 lt_prog_compiler_can_build_shared=no
16961 # QNX uses GNU C++, but need to define -shared option too, otherwise
16962 # it will coredump.
16963 lt_prog_compiler_pic='-fPIC -shared'
16967 if test -d /usr/nec; then
16968 lt_prog_compiler_pic=-Kconform_pic
16973 lt_prog_compiler_pic='-fPIC'
16977 case $cc_basename in
16978 nvcc*) # Cuda Compiler Driver 2.2
16979 lt_prog_compiler_wl='-Xlinker '
16980 lt_prog_compiler_pic='-Xcompiler -fPIC'
16984 # PORTME Check for flag to pass linker flags through the system compiler.
16987 lt_prog_compiler_wl='-Wl,'
16988 if test "$host_cpu" = ia64; then
16989 # AIX 5 now supports IA64 processor
16990 lt_prog_compiler_static='-Bstatic'
16992 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16996 mingw* | cygwin* | pw32* | os2* | cegcc*)
16997 # This hack is so that the source file can tell whether it is being
16998 # built for inclusion in a dll (and should export symbols for example).
16999 lt_prog_compiler_pic='-DDLL_EXPORT'
17002 hpux9* | hpux10* | hpux11*)
17003 lt_prog_compiler_wl='-Wl,'
17004 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17005 # not for PA HP-UX.
17011 lt_prog_compiler_pic='+Z'
17014 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17015 lt_prog_compiler_static='${wl}-a ${wl}archive'
17018 irix5* | irix6* | nonstopux*)
17019 lt_prog_compiler_wl='-Wl,'
17020 # PIC (with -KPIC) is the default.
17021 lt_prog_compiler_static='-non_shared'
17024 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17025 case $cc_basename in
17026 # old Intel for x86_64 which still supported -KPIC.
17028 lt_prog_compiler_wl='-Wl,'
17029 lt_prog_compiler_pic='-KPIC'
17030 lt_prog_compiler_static='-static'
17032 # icc used to be incompatible with GCC.
17033 # ICC 10 doesn't accept -KPIC any more.
17035 lt_prog_compiler_wl='-Wl,'
17036 lt_prog_compiler_pic='-fPIC'
17037 lt_prog_compiler_static='-static'
17039 # Lahey Fortran 8.1.
17041 lt_prog_compiler_wl='-Wl,'
17042 lt_prog_compiler_pic='--shared'
17043 lt_prog_compiler_static='--static'
17045 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17046 # Portland Group compilers (*not* the Pentium gcc compiler,
17047 # which looks to be a dead project)
17048 lt_prog_compiler_wl='-Wl,'
17049 lt_prog_compiler_pic='-fpic'
17050 lt_prog_compiler_static='-Bstatic'
17053 lt_prog_compiler_wl='-Wl,'
17054 # All Alpha code is PIC.
17055 lt_prog_compiler_static='-non_shared'
17057 xl* | bgxl* | bgf* | mpixl*)
17058 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17059 lt_prog_compiler_wl='-Wl,'
17060 lt_prog_compiler_pic='-qpic'
17061 lt_prog_compiler_static='-qstaticlink'
17064 case `$CC -V 2>&1 | sed 5q` in
17065 *Sun\ F* | *Sun*Fortran*)
17066 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17067 lt_prog_compiler_pic='-KPIC'
17068 lt_prog_compiler_static='-Bstatic'
17069 lt_prog_compiler_wl=''
17073 lt_prog_compiler_pic='-KPIC'
17074 lt_prog_compiler_static='-Bstatic'
17075 lt_prog_compiler_wl='-Wl,'
17083 lt_prog_compiler_pic='-KPIC'
17084 lt_prog_compiler_static='-Bstatic'
17088 # QNX uses GNU C++, but need to define -shared option too, otherwise
17089 # it will coredump.
17090 lt_prog_compiler_pic='-fPIC -shared'
17093 osf3* | osf4* | osf5*)
17094 lt_prog_compiler_wl='-Wl,'
17095 # All OSF/1 code is PIC.
17096 lt_prog_compiler_static='-non_shared'
17100 lt_prog_compiler_static='-non_shared'
17104 lt_prog_compiler_pic='-KPIC'
17105 lt_prog_compiler_static='-Bstatic'
17106 case $cc_basename in
17107 f77* | f90* | f95*)
17108 lt_prog_compiler_wl='-Qoption ld ';;
17110 lt_prog_compiler_wl='-Wl,';;
17115 lt_prog_compiler_wl='-Qoption ld '
17116 lt_prog_compiler_pic='-PIC'
17117 lt_prog_compiler_static='-Bstatic'
17120 sysv4 | sysv4.2uw2* | sysv4.3*)
17121 lt_prog_compiler_wl='-Wl,'
17122 lt_prog_compiler_pic='-KPIC'
17123 lt_prog_compiler_static='-Bstatic'
17127 if test -d /usr/nec ;then
17128 lt_prog_compiler_pic='-Kconform_pic'
17129 lt_prog_compiler_static='-Bstatic'
17133 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17134 lt_prog_compiler_wl='-Wl,'
17135 lt_prog_compiler_pic='-KPIC'
17136 lt_prog_compiler_static='-Bstatic'
17140 lt_prog_compiler_wl='-Wl,'
17141 lt_prog_compiler_can_build_shared=no
17145 lt_prog_compiler_pic='-pic'
17146 lt_prog_compiler_static='-Bstatic'
17150 lt_prog_compiler_can_build_shared=no
17156 # For platforms which do not support PIC, -DPIC is meaningless:
17158 lt_prog_compiler_pic=
17161 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
17165 $as_echo "$lt_prog_compiler_pic" >&6; }
17173 # Check to make sure the PIC flag actually works.
17175 if test -n "$lt_prog_compiler_pic"; then
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
17177 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
17178 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17179 $as_echo_n "(cached
) " >&6
17181 lt_cv_prog_compiler_pic_works=no
17182 ac_outfile=conftest.$ac_objext
17183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17184 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17185 # Insert the option either (1) after the last *FLAGS variable, or
17186 # (2) before a word containing "conftest.
", or (3) at the end.
17187 # Note that $ac_compile itself does not contain backslashes and begins
17188 # with a dollar sign (not a hyphen), so the echo should work correctly.
17189 # The option is referenced via a variable to avoid confusing sed.
17190 lt_compile=`echo "$ac_compile" | $SED \
17191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17193 -e 's:$: $lt_compiler_flag:'`
17194 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17195 (eval "$lt_compile" 2>conftest.err)
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17199 if (exit $ac_status) && test -s "$ac_outfile"; then
17200 # The compiler can only warn and ignore the option if not recognized
17201 # So say no if there are warnings other than the usual output.
17202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17205 lt_cv_prog_compiler_pic_works=yes
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
17212 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17214 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17215 case $lt_prog_compiler_pic in
17217 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17220 lt_prog_compiler_pic=
17221 lt_prog_compiler_can_build_shared=no
17232 # Check to make sure the static flag actually works.
17234 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
17236 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
17237 if ${lt_cv_prog_compiler_static_works+:} false; then :
17238 $as_echo_n "(cached
) " >&6
17240 lt_cv_prog_compiler_static_works=no
17241 save_LDFLAGS="$LDFLAGS"
17242 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17243 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17245 # The linker can only warn and ignore the option if not recognized
17246 # So say no if there are warnings
17247 if test -s conftest.err; then
17248 # Append any errors to the config.log.
17249 cat conftest.err 1>&5
17250 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17252 if diff conftest.exp conftest.er2 >/dev/null; then
17253 lt_cv_prog_compiler_static_works=yes
17256 lt_cv_prog_compiler_static_works=yes
17260 LDFLAGS="$save_LDFLAGS"
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
17264 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17266 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17269 lt_prog_compiler_static=
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17279 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17280 if ${lt_cv_prog_compiler_c_o+:} false; then :
17281 $as_echo_n "(cached
) " >&6
17283 lt_cv_prog_compiler_c_o=no
17284 $RM -r conftest 2>/dev/null
17288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17290 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17291 # Insert the option either (1) after the last *FLAGS variable, or
17292 # (2) before a word containing "conftest.
", or (3) at the end.
17293 # Note that $ac_compile itself does not contain backslashes and begins
17294 # with a dollar sign (not a hyphen), so the echo should work correctly.
17295 lt_compile=`echo "$ac_compile" | $SED \
17296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17298 -e 's:$: $lt_compiler_flag:'`
17299 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17300 (eval "$lt_compile" 2>out/conftest.err)
17302 cat out/conftest.err >&5
17303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17306 # The compiler can only warn and ignore the option if not recognized
17307 # So say no if there are warnings
17308 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17309 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17310 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17311 lt_cv_prog_compiler_c_o=yes
17316 # SGI C++ compiler will create directory out/ii_files/ for
17317 # template instantiation
17318 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17319 $RM out/* && rmdir out
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17326 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17334 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17335 if ${lt_cv_prog_compiler_c_o+:} false; then :
17336 $as_echo_n "(cached
) " >&6
17338 lt_cv_prog_compiler_c_o=no
17339 $RM -r conftest 2>/dev/null
17343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17345 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17346 # Insert the option either (1) after the last *FLAGS variable, or
17347 # (2) before a word containing "conftest.
", or (3) at the end.
17348 # Note that $ac_compile itself does not contain backslashes and begins
17349 # with a dollar sign (not a hyphen), so the echo should work correctly.
17350 lt_compile=`echo "$ac_compile" | $SED \
17351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17353 -e 's:$: $lt_compiler_flag:'`
17354 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17355 (eval "$lt_compile" 2>out/conftest.err)
17357 cat out/conftest.err >&5
17358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17361 # The compiler can only warn and ignore the option if not recognized
17362 # So say no if there are warnings
17363 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17366 lt_cv_prog_compiler_c_o=yes
17371 # SGI C++ compiler will create directory out/ii_files/ for
17372 # template instantiation
17373 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17374 $RM out/* && rmdir out
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17381 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17386 hard_links="nottested
"
17387 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17388 # do not overwrite the value of need_locks provided by the user
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17390 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17395 ln conftest.a conftest.b 2>&5 || hard_links=no
17396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17398 $as_echo "$hard_links" >&6; }
17399 if test "$hard_links" = no; then
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17401 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17414 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17417 allow_undefined_flag=
17418 always_export_symbols=no
17420 archive_expsym_cmds=
17421 compiler_needs_object=no
17422 enable_shared_with_static_runtimes=no
17423 export_dynamic_flag_spec=
17424 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17425 hardcode_automatic=no
17427 hardcode_direct_absolute=no
17428 hardcode_libdir_flag_spec=
17429 hardcode_libdir_flag_spec_ld=
17430 hardcode_libdir_separator=
17431 hardcode_minus_L=no
17432 hardcode_shlibpath_var=unsupported
17434 link_all_deplibs=unknown
17436 module_expsym_cmds=
17437 old_archive_from_new_cmds=
17438 old_archive_from_expsyms_cmds=
17439 thread_safe_flag_spec=
17440 whole_archive_flag_spec=
17441 # include_expsyms should be a list of space-separated symbols to be *always*
17442 # included in the symbol list
17444 # exclude_expsyms can be an extended regexp of symbols to exclude
17445 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17446 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17447 # as well as any symbol that contains `d'.
17448 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17449 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17450 # platforms (ab)use it in PIC code, but their linkers get confused if
17451 # the symbol is explicitly referenced. Since portable code cannot
17452 # rely on this symbol name, it's probably fine to never include it in
17453 # preloaded symbol tables.
17454 # Exclude shared library initialization/finalization symbols.
17455 extract_expsyms_cmds=
17458 cygwin* | mingw* | pw32* | cegcc*)
17459 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17460 # When not using gcc, we currently assume that we are using
17461 # Microsoft Visual C++.
17462 if test "$GCC" != yes; then
17467 # we just hope/assume this is gcc and not c89 (= MSVC++)
17477 # On some targets, GNU ld is compatible enough with the native linker
17478 # that we're better off using the native interface for both.
17479 lt_use_gnu_ld_interface=no
17480 if test "$with_gnu_ld" = yes; then
17483 # The AIX port of GNU ld has always aspired to compatibility
17484 # with the native linker. However, as the warning in the GNU ld
17485 # block says, versions before 2.19.5* couldn't really create working
17486 # shared libraries, regardless of the interface used.
17487 case `$LD -v 2>&1` in
17488 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17489 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17490 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17492 lt_use_gnu_ld_interface=yes
17497 lt_use_gnu_ld_interface=yes
17502 if test "$lt_use_gnu_ld_interface" = yes; then
17503 # If archive_cmds runs LD, not CC, wlarc should be empty
17506 # Set some defaults for GNU ld with shared library support. These
17507 # are reset later if shared libraries are not supported. Putting them
17508 # here allows them to be overridden if necessary.
17509 runpath_var=LD_RUN_PATH
17510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17511 export_dynamic_flag_spec='${wl}--export-dynamic'
17512 # ancient GNU ld didn't support --whole-archive et. al.
17513 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17514 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17516 whole_archive_flag_spec=
17518 supports_anon_versioning=no
17519 case `$LD -v 2>&1` in
17520 *GNU\ gold*) supports_anon_versioning=yes ;;
17521 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17522 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17523 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17524 *\ 2.11.*) ;; # other 2.11 versions
17525 *) supports_anon_versioning=yes ;;
17528 # See if GNU ld supports shared libraries.
17531 # On AIX/PPC, the GNU linker is very broken
17532 if test "$host_cpu" != ia64; then
17536 *** Warning: the GNU linker, at least up to release 2.19, is reported
17537 *** to be unable to reliably create shared libraries on AIX.
17538 *** Therefore, libtool is disabling shared libraries support. If you
17539 *** really care for shared libraries, you may want to install binutils
17540 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17541 *** You will then need to restart the configuration process.
17550 # see comment about AmigaOS4 .so support
17551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17552 archive_expsym_cmds=''
17555 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)'
17556 hardcode_libdir_flag_spec
='-L$libdir'
17557 hardcode_minus_L
=yes
17563 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17564 allow_undefined_flag
=unsupported
17565 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17566 # support --undefined. This deserves some investigation. FIXME
17567 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17573 cygwin
* | mingw
* | pw32
* | cegcc
*)
17574 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17575 # as there is no search path for DLLs.
17576 hardcode_libdir_flag_spec
='-L$libdir'
17577 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17578 allow_undefined_flag
=unsupported
17579 always_export_symbols
=no
17580 enable_shared_with_static_runtimes
=yes
17581 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17583 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17584 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17585 # If the export-symbols file already is a .def file (1st line
17586 # is EXPORTS), use it as is; otherwise, prepend...
17587 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17588 cp $export_symbols $output_objdir/$soname.def;
17590 echo EXPORTS > $output_objdir/$soname.def;
17591 cat $export_symbols >> $output_objdir/$soname.def;
17593 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17600 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17601 link_all_deplibs
=yes
17606 hardcode_shlibpath_var
=no
17607 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17608 export_dynamic_flag_spec
='${wl}-E'
17609 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17610 # Instead, shared libraries are loaded at an image base (0x10000000 by
17611 # default) and relocated if they conflict, which is a slow very memory
17612 # consuming and fragmenting process. To avoid this, we pick a random,
17613 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17614 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17615 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17616 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'
17619 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17621 if test "$host_os" = linux-dietlibc
; then
17622 case $cc_basename in
17623 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17626 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17627 && test "$tmp_diet" = no
17629 tmp_addflag
=' $pic_flag'
17630 tmp_sharedflag
='-shared'
17631 case $cc_basename,$host_cpu in
17632 pgcc
*) # Portland Group C compiler
17633 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'
17634 tmp_addflag
=' $pic_flag'
17636 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17637 # Portland Group f77 and f90 compilers
17638 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'
17639 tmp_addflag
=' $pic_flag -Mnomain' ;;
17640 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17641 tmp_addflag
=' -i_dynamic' ;;
17642 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17643 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17644 ifc
* | ifort
*) # Intel Fortran compiler
17645 tmp_addflag
=' -nofor_main' ;;
17646 lf95
*) # Lahey Fortran 8.1
17647 whole_archive_flag_spec
=
17648 tmp_sharedflag
='--shared' ;;
17649 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17650 tmp_sharedflag
='-qmkshrobj'
17652 nvcc
*) # Cuda Compiler Driver 2.2
17653 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'
17654 compiler_needs_object
=yes
17657 case `$CC -V 2>&1 | sed 5q` in
17658 *Sun\ C
*) # Sun C 5.9
17659 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'
17660 compiler_needs_object
=yes
17661 tmp_sharedflag
='-G' ;;
17662 *Sun\ F
*) # Sun Fortran 8.3
17663 tmp_sharedflag
='-G' ;;
17665 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17667 if test "x$supports_anon_versioning" = xyes
; then
17668 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17670 echo "local: *; };" >> $output_objdir/$libname.ver~
17671 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17674 case $cc_basename in
17675 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17676 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17677 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17678 hardcode_libdir_flag_spec
=
17679 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17680 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17681 if test "x$supports_anon_versioning" = xyes
; then
17682 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17683 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17684 echo "local: *; };" >> $output_objdir/$libname.ver~
17685 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17695 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17696 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17699 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17700 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17705 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17709 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17710 *** create shared libraries on Solaris systems. Therefore, libtool
17711 *** is disabling shared libraries support. We urge you to upgrade GNU
17712 *** binutils to release 2.9.1 or newer. Another option is to modify
17713 *** your PATH or compiler configuration so that the native linker is
17714 *** used, and then restart.
17717 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17718 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17719 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17725 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17726 case `$LD -v 2>&1` in
17727 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17731 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17732 *** reliably create shared libraries on SCO systems. Therefore, libtool
17733 *** is disabling shared libraries support. We urge you to upgrade GNU
17734 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17735 *** your PATH or compiler configuration so that the native linker is
17736 *** used, and then restart.
17741 # For security reasons, it is highly recommended that you always
17742 # use absolute paths for naming shared libraries, and exclude the
17743 # DT_RUNPATH tag from executables and libraries. But doing so
17744 # requires that you compile everything twice, which is a pain.
17745 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17746 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17747 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17748 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17757 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17759 hardcode_direct
=yes
17760 hardcode_shlibpath_var
=no
17764 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17765 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17766 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17773 if test "$ld_shlibs" = no
; then
17775 hardcode_libdir_flag_spec
=
17776 export_dynamic_flag_spec
=
17777 whole_archive_flag_spec
=
17780 # PORTME fill in a description of your system's linker (not GNU ld)
17783 allow_undefined_flag
=unsupported
17784 always_export_symbols
=yes
17785 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'
17786 # Note: this linker hardcodes the directories in LIBPATH if there
17787 # are no directories specified by -L.
17788 hardcode_minus_L
=yes
17789 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17790 # Neither direct hardcoding nor static linking is supported with a
17792 hardcode_direct
=unsupported
17797 if test "$host_cpu" = ia64
; then
17798 # On IA64, the linker does run time linking by default, so we don't
17799 # have to do anything special.
17800 aix_use_runtimelinking
=no
17801 exp_sym_flag
='-Bexport'
17804 # If we're using GNU nm, then we don't want the "-C" option.
17805 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17806 # Also, AIX nm treats weak defined symbols like other global
17807 # defined symbols, whereas GNU nm marks them as "W".
17808 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17809 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'
17811 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'
17813 aix_use_runtimelinking
=no
17815 # Test if we are trying to use run time linking or normal
17816 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17817 # need to do runtime linking.
17818 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17819 for ld_flag
in $LDFLAGS; do
17820 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17821 aix_use_runtimelinking
=yes
17828 exp_sym_flag
='-bexport'
17829 no_entry_flag
='-bnoentry'
17832 # When large executables or shared objects are built, AIX ld can
17833 # have problems creating the table of contents. If linking a library
17834 # or program results in "error TOC overflow" add -mminimal-toc to
17835 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17836 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17839 hardcode_direct
=yes
17840 hardcode_direct_absolute
=yes
17841 hardcode_libdir_separator
=':'
17842 link_all_deplibs
=yes
17843 file_list_spec
='${wl}-f,'
17845 if test "$GCC" = yes; then
17846 case $host_os in aix4.
[012]|aix4.
[012].
*)
17847 # We only want to do this on AIX 4.2 and lower, the check
17848 # below for broken collect2 doesn't work under 4.3+
17849 collect2name
=`${CC} -print-prog-name=collect2`
17850 if test -f "$collect2name" &&
17851 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17853 # We have reworked collect2
17856 # We have old collect2
17857 hardcode_direct
=unsupported
17858 # It fails to find uninstalled libraries when the uninstalled
17859 # path is not listed in the libpath. Setting hardcode_minus_L
17860 # to unsupported forces relinking
17861 hardcode_minus_L
=yes
17862 hardcode_libdir_flag_spec
='-L$libdir'
17863 hardcode_libdir_separator
=
17867 shared_flag
='-shared'
17868 if test "$aix_use_runtimelinking" = yes; then
17869 shared_flag
="$shared_flag "'${wl}-G'
17873 if test "$host_cpu" = ia64
; then
17874 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17875 # chokes on -Wl,-G. The following line is correct:
17878 if test "$aix_use_runtimelinking" = yes; then
17879 shared_flag
='${wl}-G'
17881 shared_flag
='${wl}-bM:SRE'
17886 export_dynamic_flag_spec
='${wl}-bexpall'
17887 # It seems that -bexpall does not export symbols beginning with
17888 # underscore (_), so it is better to generate a list of symbols to export.
17889 always_export_symbols
=yes
17890 if test "$aix_use_runtimelinking" = yes; then
17891 # Warning - without using the other runtime loading flags (-brtl),
17892 # -berok will link without error, but may produce a broken library.
17893 allow_undefined_flag
='-berok'
17894 # Determine the default libpath from the value encoded in an
17895 # empty executable.
17896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17907 if ac_fn_c_try_link
"$LINENO"; then :
17909 lt_aix_libpath_sed
='
17910 /Import File Strings/,/^$/ {
17916 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17917 # Check for a 64-bit object if we didn't find anything.
17918 if test -z "$aix_libpath"; then
17919 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17922 rm -f core conftest.err conftest.
$ac_objext \
17923 conftest
$ac_exeext conftest.
$ac_ext
17924 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17926 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17927 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"
17929 if test "$host_cpu" = ia64
; then
17930 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17931 allow_undefined_flag
="-z nodefs"
17932 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"
17934 # Determine the default libpath from the value encoded in an
17935 # empty executable.
17936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17947 if ac_fn_c_try_link
"$LINENO"; then :
17949 lt_aix_libpath_sed
='
17950 /Import File Strings/,/^$/ {
17956 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17957 # Check for a 64-bit object if we didn't find anything.
17958 if test -z "$aix_libpath"; then
17959 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17962 rm -f core conftest.err conftest.
$ac_objext \
17963 conftest
$ac_exeext conftest.
$ac_ext
17964 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17966 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17967 # Warning - without using the other run time loading flags,
17968 # -berok will link without error, but may produce a broken library.
17969 no_undefined_flag
=' ${wl}-bernotok'
17970 allow_undefined_flag
=' ${wl}-berok'
17971 if test "$with_gnu_ld" = yes; then
17972 # We only use this code for GNU lds that support --whole-archive.
17973 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17975 # Exported symbols can be pulled into shared objects from archives
17976 whole_archive_flag_spec
='$convenience'
17978 archive_cmds_need_lc
=yes
17979 # This is similar to how AIX traditionally builds its shared libraries.
17980 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'
17988 # see comment about AmigaOS4 .so support
17989 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990 archive_expsym_cmds
=''
17993 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)'
17994 hardcode_libdir_flag_spec
='-L$libdir'
17995 hardcode_minus_L
=yes
18001 export_dynamic_flag_spec
=-rdynamic
18004 cygwin
* | mingw
* | pw32
* | cegcc
*)
18005 # When not using gcc, we currently assume that we are using
18006 # Microsoft Visual C++.
18007 # hardcode_libdir_flag_spec is actually meaningless, as there is
18008 # no search path for DLLs.
18009 hardcode_libdir_flag_spec
=' '
18010 allow_undefined_flag
=unsupported
18011 # Tell ltmain to make .lib files, not .a files.
18013 # Tell ltmain to make .dll files, not .so files.
18015 # FIXME: Setting linknames here is a bad hack.
18016 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18017 # The linker will automatically build a .lib file if we build a DLL.
18018 old_archive_from_new_cmds
='true'
18019 # FIXME: Should let the user specify the lib program.
18020 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18021 fix_srcfile_path
='`cygpath -w "$srcfile"`'
18022 enable_shared_with_static_runtimes
=yes
18025 darwin
* | rhapsody
*)
18028 archive_cmds_need_lc
=no
18030 hardcode_automatic
=yes
18031 hardcode_shlibpath_var
=unsupported
18032 if test "$lt_cv_ld_force_load" = "yes"; then
18033 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\"`'
18035 whole_archive_flag_spec
=''
18037 link_all_deplibs
=yes
18038 allow_undefined_flag
="$_lt_dar_allow_undefined"
18039 case $cc_basename in
18040 ifort
*) _lt_dar_can_shared
=yes ;;
18041 *) _lt_dar_can_shared
=$GCC ;;
18043 if test "$_lt_dar_can_shared" = "yes"; then
18044 output_verbose_link_cmd
=func_echo_all
18045 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18046 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18047 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18048 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}"
18057 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058 hardcode_libdir_flag_spec
='-L$libdir'
18059 hardcode_shlibpath_var
=no
18062 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18063 # support. Future versions do this automatically, but an explicit c++rt0.o
18064 # does not break anything, and helps significantly (at the cost of a little
18067 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18068 hardcode_libdir_flag_spec
='-R$libdir'
18069 hardcode_direct
=yes
18070 hardcode_shlibpath_var
=no
18073 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18075 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18076 hardcode_direct
=yes
18077 hardcode_minus_L
=yes
18078 hardcode_shlibpath_var
=no
18081 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18082 freebsd
* | dragonfly
*)
18083 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18084 hardcode_libdir_flag_spec
='-R$libdir'
18085 hardcode_direct
=yes
18086 hardcode_shlibpath_var
=no
18090 if test "$GCC" = yes; then
18091 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'
18093 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'
18095 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18096 hardcode_libdir_separator
=:
18097 hardcode_direct
=yes
18099 # hardcode_minus_L: Not really in the search PATH,
18100 # but as the default location of the library.
18101 hardcode_minus_L
=yes
18102 export_dynamic_flag_spec
='${wl}-E'
18106 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18107 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18109 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18111 if test "$with_gnu_ld" = no
; then
18112 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18113 hardcode_libdir_flag_spec_ld
='+b $libdir'
18114 hardcode_libdir_separator
=:
18115 hardcode_direct
=yes
18116 hardcode_direct_absolute
=yes
18117 export_dynamic_flag_spec
='${wl}-E'
18118 # hardcode_minus_L: Not really in the search PATH,
18119 # but as the default location of the library.
18120 hardcode_minus_L
=yes
18125 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18128 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18131 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18134 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18140 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18143 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18147 # Older versions of the 11.00 compiler do not understand -b yet
18148 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18150 $as_echo_n "checking if $CC understands -b... " >&6; }
18151 if ${lt_cv_prog_compiler__b+:} false
; then :
18152 $as_echo_n "(cached) " >&6
18154 lt_cv_prog_compiler__b
=no
18155 save_LDFLAGS
="$LDFLAGS"
18156 LDFLAGS
="$LDFLAGS -b"
18157 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18158 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18159 # The linker can only warn and ignore the option if not recognized
18160 # So say no if there are warnings
18161 if test -s conftest.err
; then
18162 # Append any errors to the config.log.
18163 cat conftest.err
1>&5
18164 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
18165 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18166 if diff conftest.exp conftest.er2
>/dev
/null
; then
18167 lt_cv_prog_compiler__b
=yes
18170 lt_cv_prog_compiler__b
=yes
18174 LDFLAGS
="$save_LDFLAGS"
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18178 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18180 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
18181 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18183 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18189 if test "$with_gnu_ld" = no
; then
18190 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18191 hardcode_libdir_separator
=:
18196 hardcode_shlibpath_var
=no
18199 hardcode_direct
=yes
18200 hardcode_direct_absolute
=yes
18201 export_dynamic_flag_spec
='${wl}-E'
18203 # hardcode_minus_L: Not really in the search PATH,
18204 # but as the default location of the library.
18205 hardcode_minus_L
=yes
18211 irix5
* | irix6
* | nonstopux
*)
18212 if test "$GCC" = yes; then
18213 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'
18214 # Try to use the -exported_symbol ld option, if it does not
18215 # work, assume that -exports_file does not work either and
18216 # implicitly export all symbols.
18217 save_LDFLAGS
="$LDFLAGS"
18218 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h. */
18223 if ac_fn_c_try_link
"$LINENO"; then :
18224 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'
18227 rm -f core conftest.err conftest.
$ac_objext \
18228 conftest
$ac_exeext conftest.
$ac_ext
18229 LDFLAGS
="$save_LDFLAGS"
18231 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'
18232 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'
18234 archive_cmds_need_lc
='no'
18235 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18236 hardcode_libdir_separator
=:
18238 link_all_deplibs
=yes
18242 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18243 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18245 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18247 hardcode_libdir_flag_spec
='-R$libdir'
18248 hardcode_direct
=yes
18249 hardcode_shlibpath_var
=no
18253 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18254 hardcode_direct
=yes
18255 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18256 hardcode_libdir_separator
=:
18257 hardcode_shlibpath_var
=no
18264 if test -f /usr
/libexec
/ld.so
; then
18265 hardcode_direct
=yes
18266 hardcode_shlibpath_var
=no
18267 hardcode_direct_absolute
=yes
18268 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18269 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18270 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18271 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18272 export_dynamic_flag_spec
='${wl}-E'
18275 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18276 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18277 hardcode_libdir_flag_spec
='-R$libdir'
18280 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18281 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18291 hardcode_libdir_flag_spec
='-L$libdir'
18292 hardcode_minus_L
=yes
18293 allow_undefined_flag
=unsupported
18294 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'
18295 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18299 if test "$GCC" = yes; then
18300 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18301 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'
18303 allow_undefined_flag
=' -expect_unresolved \*'
18304 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'
18306 archive_cmds_need_lc
='no'
18307 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18308 hardcode_libdir_separator
=:
18311 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18312 if test "$GCC" = yes; then
18313 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18314 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'
18315 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18317 allow_undefined_flag
=' -expect_unresolved \*'
18318 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'
18319 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~
18320 $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'
18322 # Both c and cxx compiler support -rpath directly
18323 hardcode_libdir_flag_spec
='-rpath $libdir'
18325 archive_cmds_need_lc
='no'
18326 hardcode_libdir_separator
=:
18330 no_undefined_flag
=' -z defs'
18331 if test "$GCC" = yes; then
18333 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18334 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18335 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18337 case `$CC -V 2>&1` in
18340 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18341 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18342 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18346 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18347 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18348 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18352 hardcode_libdir_flag_spec
='-R$libdir'
18353 hardcode_shlibpath_var
=no
18355 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18357 # The compiler driver will combine and reorder linker options,
18358 # but understands `-z linker_flag'. GCC discards it without `$wl',
18359 # but is careful enough not to reorder.
18360 # Supported since Solaris 2.6 (maybe 2.5.1?)
18361 if test "$GCC" = yes; then
18362 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18364 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18368 link_all_deplibs
=yes
18372 if test "x$host_vendor" = xsequent
; then
18373 # Use $CC to link under sequent, because it throws in some extra .o
18374 # files that make .init and .fini sections work.
18375 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18377 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18379 hardcode_libdir_flag_spec
='-L$libdir'
18380 hardcode_direct
=yes
18381 hardcode_minus_L
=yes
18382 hardcode_shlibpath_var
=no
18386 case $host_vendor in
18388 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18389 hardcode_direct
=yes # is this really true???
18392 ## LD is ld it makes a PLAMLIB
18393 ## CC just makes a GrossModule.
18394 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18395 reload_cmds
='$CC -r -o $output$reload_objs'
18399 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18400 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18403 runpath_var
='LD_RUN_PATH'
18404 hardcode_shlibpath_var
=no
18408 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18409 hardcode_shlibpath_var
=no
18410 export_dynamic_flag_spec
='-Bexport'
18414 if test -d /usr
/nec
; then
18415 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18416 hardcode_shlibpath_var
=no
18417 runpath_var
=LD_RUN_PATH
18418 hardcode_runpath_var
=yes
18423 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18424 no_undefined_flag
='${wl}-z,text'
18425 archive_cmds_need_lc
=no
18426 hardcode_shlibpath_var
=no
18427 runpath_var
='LD_RUN_PATH'
18429 if test "$GCC" = yes; then
18430 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18431 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18433 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18434 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18438 sysv5
* | sco3.2v5
* | sco5v6
*)
18439 # Note: We can NOT use -z defs as we might desire, because we do not
18440 # link with -lc, and that would cause any symbols used from libc to
18441 # always be unresolved, which means just about no library would
18442 # ever link correctly. If we're not using GNU ld we use -z text
18443 # though, which does catch some bad symbols but isn't as heavy-handed
18445 no_undefined_flag
='${wl}-z,text'
18446 allow_undefined_flag
='${wl}-z,nodefs'
18447 archive_cmds_need_lc
=no
18448 hardcode_shlibpath_var
=no
18449 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18450 hardcode_libdir_separator
=':'
18451 link_all_deplibs
=yes
18452 export_dynamic_flag_spec
='${wl}-Bexport'
18453 runpath_var
='LD_RUN_PATH'
18455 if test "$GCC" = yes; then
18456 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18457 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18459 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18460 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18465 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18466 hardcode_libdir_flag_spec
='-L$libdir'
18467 hardcode_shlibpath_var
=no
18475 if test x
$host_vendor = xsni
; then
18477 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18478 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18485 $as_echo "$ld_shlibs" >&6; }
18486 test "$ld_shlibs" = no
&& can_build_shared
=no
18488 with_gnu_ld
=$with_gnu_ld
18505 # Do we need to explicitly link libc?
18507 case "x$archive_cmds_need_lc" in
18509 # Assume -lc should be added
18510 archive_cmds_need_lc
=yes
18512 if test "$enable_shared" = yes && test "$GCC" = yes; then
18513 case $archive_cmds in
18515 # FIXME: we may have to deal with multi-command sequences.
18518 # Test whether the compiler implicitly links with -lc since on some
18519 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18520 # to ld, don't add -lc before -lgcc.
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18522 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18523 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18524 $as_echo_n "(cached) " >&6
18527 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18530 (eval $ac_compile) 2>&5
18532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18533 test $ac_status = 0; } 2>conftest.err
; then
18536 libobjs
=conftest.
$ac_objext
18538 wl
=$lt_prog_compiler_wl
18539 pic_flag
=$lt_prog_compiler_pic
18545 lt_save_allow_undefined_flag
=$allow_undefined_flag
18546 allow_undefined_flag
=
18547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18548 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18551 test $ac_status = 0; }
18553 lt_cv_archive_cmds_need_lc
=no
18555 lt_cv_archive_cmds_need_lc
=yes
18557 allow_undefined_flag
=$lt_save_allow_undefined_flag
18559 cat conftest.err
1>&5
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18565 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18566 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18730 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18732 if test "$GCC" = yes; then
18734 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18735 *) lt_awk_arg
="/^libraries:/" ;;
18738 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18739 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18741 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18742 case $lt_search_path_spec in
18744 # if the path contains ";" then we assume it to be the separator
18745 # otherwise default to the standard path separator (i.e. ":") - it is
18746 # assumed that no part of a normal pathname contains ";" but that should
18747 # okay in the real world where ";" in dirpaths is itself problematic.
18748 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18751 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18754 # Ok, now we have the path, separated by spaces, we can step through it
18755 # and add multilib dir if necessary.
18756 lt_tmp_lt_search_path_spec
=
18757 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18758 for lt_sys_path
in $lt_search_path_spec; do
18759 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18760 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18762 test -d "$lt_sys_path" && \
18763 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18766 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18767 BEGIN {RS=" "; FS="/|\n";} {
18770 for (lt_i = NF; lt_i > 0; lt_i--) {
18771 if ($lt_i != "" && $lt_i != ".") {
18772 if ($lt_i == "..") {
18775 if (lt_count == 0) {
18776 lt_foo="/" $lt_i lt_foo;
18783 if (lt_foo != "") { lt_freq[lt_foo]++; }
18784 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18786 # AWK program above erroneously prepends '/' to C:/dos/paths
18789 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18790 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18792 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18794 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18796 library_names_spec
=
18797 libname_spec
='lib$name'
18801 postuninstall_cmds
=
18805 shlibpath_overrides_runpath
=unknown
18807 dynamic_linker
="$host_os ld.so"
18808 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18809 need_lib_prefix
=unknown
18810 hardcode_into_libs
=no
18812 # when you set need_version to no, make sure it does not cause -set_version
18813 # flags to be left without arguments
18814 need_version
=unknown
18819 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18820 shlibpath_var
=LIBPATH
18822 # AIX 3 has no versioning support, so we append a major version to the name.
18823 soname_spec
='${libname}${release}${shared_ext}$major'
18830 hardcode_into_libs
=yes
18831 if test "$host_cpu" = ia64
; then
18832 # AIX 5 supports IA64
18833 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18834 shlibpath_var
=LD_LIBRARY_PATH
18836 # With GCC up to 2.95.x, collect2 would create an import file
18837 # for dependence libraries. The import file would start with
18838 # the line `#! .'. This would cause the generated library to
18839 # depend on `.', always an invalid library. This was fixed in
18840 # development snapshots of GCC prior to 3.0.
18842 aix4 | aix4.
[01] | aix4.
[01].
*)
18843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18845 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18848 can_build_shared
=no
18852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18853 # soname into executable. Probably we can add versioning support to
18854 # collect2, so additional links can be useful in future.
18855 if test "$aix_use_runtimelinking" = yes; then
18856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18857 # instead of lib<name>.a to let people know that these are not
18858 # typical AIX shared libraries.
18859 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18861 # We preserve .a as extension for shared libraries through AIX4.2
18862 # and later when we are not doing run time linking.
18863 library_names_spec
='${libname}${release}.a $libname.a'
18864 soname_spec
='${libname}${release}${shared_ext}$major'
18866 shlibpath_var
=LIBPATH
18873 # Since July 2007 AmigaOS4 officially supports .so libraries.
18874 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18878 library_names_spec
='$libname.ixlibrary $libname.a'
18879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18880 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'
18886 library_names_spec
='${libname}${shared_ext}'
18887 dynamic_linker
="$host_os ld.so"
18888 shlibpath_var
=LIBRARY_PATH
18894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895 soname_spec
='${libname}${release}${shared_ext}$major'
18896 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18897 shlibpath_var
=LD_LIBRARY_PATH
18898 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18899 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18900 # the default ld.so.conf also contains /usr/contrib/lib and
18901 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18902 # libtool to hard-code these into programs
18905 cygwin
* | mingw
* | pw32
* | cegcc
*)
18906 version_type
=windows
18911 case $GCC,$host_os in
18912 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18913 library_names_spec
='$libname.dll.a'
18914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18915 postinstall_cmds
='base_file=`basename \${file}`~
18916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18917 dldir=$destdir/`dirname \$dlpath`~
18918 test -d \$dldir || mkdir -p \$dldir~
18919 $install_prog $dir/$dlname \$dldir/$dlname~
18920 chmod a+x \$dldir/$dlname~
18921 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18922 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18924 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18925 dlpath=$dir/\$dldll~
18927 shlibpath_overrides_runpath
=yes
18931 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18932 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18934 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18937 # MinGW DLLs use traditional 'lib' prefix
18938 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18941 # pw32 DLLs use 'pw' prefix rather than 'lib'
18942 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18948 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18951 dynamic_linker
='Win32 ld.exe'
18952 # FIXME: first we should search . and the directory the executable is in
18956 darwin
* | rhapsody
*)
18957 dynamic_linker
="$host_os dyld"
18958 version_type
=darwin
18961 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18962 soname_spec
='${libname}${release}${major}$shared_ext'
18963 shlibpath_overrides_runpath
=yes
18964 shlibpath_var
=DYLD_LIBRARY_PATH
18965 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18967 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18968 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18976 soname_spec
='${libname}${release}${shared_ext}$major'
18977 shlibpath_var
=LD_LIBRARY_PATH
18980 freebsd
* | dragonfly
*)
18981 # DragonFly does not have aout. When/if they implement a new
18982 # versioning mechanism, adjust this.
18983 if test -x /usr
/bin
/objformat
; then
18984 objformat
=`/usr/bin/objformat`
18987 freebsd
[23].
*) objformat
=aout
;;
18988 *) objformat
=elf
;;
18991 version_type
=freebsd-
$objformat
18992 case $version_type in
18994 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18999 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19003 shlibpath_var
=LD_LIBRARY_PATH
19006 shlibpath_overrides_runpath
=yes
19008 freebsd3.
[01]* | freebsdelf3.
[01]*)
19009 shlibpath_overrides_runpath
=yes
19010 hardcode_into_libs
=yes
19012 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19013 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19014 shlibpath_overrides_runpath
=no
19015 hardcode_into_libs
=yes
19017 *) # from 4.6 on, and DragonFly
19018 shlibpath_overrides_runpath
=yes
19019 hardcode_into_libs
=yes
19028 dynamic_linker
="$host_os runtime_loader"
19029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19030 soname_spec
='${libname}${release}${shared_ext}$major'
19031 shlibpath_var
=LIBRARY_PATH
19032 shlibpath_overrides_runpath
=yes
19033 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19034 hardcode_into_libs
=yes
19037 hpux9
* | hpux10
* | hpux11
*)
19038 # Give a soname corresponding to the major version so that dld.sl refuses to
19039 # link against other versions.
19046 hardcode_into_libs
=yes
19047 dynamic_linker
="$host_os dld.so"
19048 shlibpath_var
=LD_LIBRARY_PATH
19049 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19050 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19051 soname_spec
='${libname}${release}${shared_ext}$major'
19052 if test "X$HPUX_IA64_MODE" = X32
; then
19053 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19055 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19057 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19061 hardcode_into_libs
=yes
19062 dynamic_linker
="$host_os dld.sl"
19063 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19064 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19066 soname_spec
='${libname}${release}${shared_ext}$major'
19067 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19068 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19072 dynamic_linker
="$host_os dld.sl"
19073 shlibpath_var
=SHLIB_PATH
19074 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19076 soname_spec
='${libname}${release}${shared_ext}$major'
19079 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19080 postinstall_cmds
='chmod 555 $lib'
19081 # or fails outright, so override atomically:
19082 install_override_mode
=555
19089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19090 soname_spec
='${libname}${release}${shared_ext}$major'
19091 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19092 shlibpath_var
=LD_LIBRARY_PATH
19093 shlibpath_overrides_runpath
=no
19094 hardcode_into_libs
=yes
19097 irix5
* | irix6
* | nonstopux
*)
19099 nonstopux
*) version_type
=nonstopux
;;
19101 if test "$lt_cv_prog_gnu_ld" = yes; then
19109 soname_spec
='${libname}${release}${shared_ext}$major'
19110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19112 irix5
* | nonstopux
*)
19113 libsuff
= shlibsuff
=
19116 case $LD in # libtool.m4 will add one of these switches to LD
19117 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19118 libsuff
= shlibsuff
= libmagic
=32-bit;;
19119 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19120 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19121 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19122 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19123 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19127 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19128 shlibpath_overrides_runpath
=no
19129 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19130 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19131 hardcode_into_libs
=yes
19134 # No shared lib support for Linux oldld, aout, or coff.
19135 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19139 # This must be Linux ELF.
19141 # uclinux* changes (here and below) have been submitted to the libtool
19142 # project, but have not yet been accepted: they are GCC-local changes
19143 # for the time being. (See
19144 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19145 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
19149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19150 soname_spec
='${libname}${release}${shared_ext}$major'
19151 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19152 shlibpath_var
=LD_LIBRARY_PATH
19153 shlibpath_overrides_runpath
=no
19155 # Some binutils ld are patched to set DT_RUNPATH
19156 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
19157 $as_echo_n "(cached) " >&6
19159 lt_cv_shlibpath_overrides_runpath
=no
19160 save_LDFLAGS
=$LDFLAGS
19161 save_libdir
=$libdir
19162 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19163 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19175 if ac_fn_c_try_link
"$LINENO"; then :
19176 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19177 lt_cv_shlibpath_overrides_runpath
=yes
19180 rm -f core conftest.err conftest.
$ac_objext \
19181 conftest
$ac_exeext conftest.
$ac_ext
19182 LDFLAGS
=$save_LDFLAGS
19183 libdir
=$save_libdir
19187 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19189 # This implies no fast_install, which is unacceptable.
19190 # Some rework will be needed to allow for fast_install
19191 # before this can be enabled.
19192 hardcode_into_libs
=yes
19194 # Append ld.so.conf contents to the search path
19195 if test -f /etc
/ld.so.conf
; then
19196 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' ' '`
19197 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19200 # We used to test for /lib/ld.so.1 and disable shared libraries on
19201 # powerpc, because MkLinux only supported shared libraries with the
19202 # GNU dynamic linker. Since this was broken with cross compilers,
19203 # most powerpc-linux boxes support dynamic linking these days and
19204 # people can always --disable-shared, the test was removed, and we
19205 # assume the GNU/Linux dynamic linker is in use.
19206 dynamic_linker
='GNU/Linux ld.so'
19213 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19214 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19215 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19216 dynamic_linker
='NetBSD (a.out) ld.so'
19218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19219 soname_spec
='${libname}${release}${shared_ext}$major'
19220 dynamic_linker
='NetBSD ld.elf_so'
19222 shlibpath_var
=LD_LIBRARY_PATH
19223 shlibpath_overrides_runpath
=yes
19224 hardcode_into_libs
=yes
19229 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230 shlibpath_var
=LD_LIBRARY_PATH
19231 shlibpath_overrides_runpath
=yes
19238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19239 soname_spec
='${libname}${release}${shared_ext}$major'
19240 shlibpath_var
=LD_LIBRARY_PATH
19241 shlibpath_overrides_runpath
=no
19242 hardcode_into_libs
=yes
19243 dynamic_linker
='ldqnx.so'
19248 sys_lib_dlsearch_path_spec
="/usr/lib"
19250 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19252 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19253 *) need_version
=no
;;
19255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19256 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19257 shlibpath_var
=LD_LIBRARY_PATH
19258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19260 openbsd2.
[89] | openbsd2.
[89].
*)
19261 shlibpath_overrides_runpath
=no
19264 shlibpath_overrides_runpath
=yes
19268 shlibpath_overrides_runpath
=yes
19273 libname_spec
='$name'
19276 library_names_spec
='$libname${shared_ext} $libname.a'
19277 dynamic_linker
='OS/2 ld.exe'
19278 shlibpath_var
=LIBPATH
19281 osf3
* | osf4
* | osf5
*)
19285 soname_spec
='${libname}${release}${shared_ext}$major'
19286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19287 shlibpath_var
=LD_LIBRARY_PATH
19288 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19289 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19301 soname_spec
='${libname}${release}${shared_ext}$major'
19302 shlibpath_var
=LD_LIBRARY_PATH
19303 shlibpath_overrides_runpath
=yes
19304 hardcode_into_libs
=yes
19305 # ldd complains unless libraries are executable
19306 postinstall_cmds
='chmod +x $lib'
19311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19312 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19313 shlibpath_var
=LD_LIBRARY_PATH
19314 shlibpath_overrides_runpath
=yes
19315 if test "$with_gnu_ld" = yes; then
19323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19324 soname_spec
='${libname}${release}${shared_ext}$major'
19325 shlibpath_var
=LD_LIBRARY_PATH
19326 case $host_vendor in
19328 shlibpath_overrides_runpath
=no
19330 runpath_var
=LD_RUN_PATH
19338 shlibpath_overrides_runpath
=no
19339 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19345 if test -d /usr
/nec
;then
19347 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19348 soname_spec
='$libname${shared_ext}.$major'
19349 shlibpath_var
=LD_LIBRARY_PATH
19353 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19354 version_type
=freebsd-elf
19357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19358 soname_spec
='${libname}${release}${shared_ext}$major'
19359 shlibpath_var
=LD_LIBRARY_PATH
19360 shlibpath_overrides_runpath
=yes
19361 hardcode_into_libs
=yes
19362 if test "$with_gnu_ld" = yes; then
19363 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19365 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19368 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19372 sys_lib_dlsearch_path_spec
='/usr/lib'
19376 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19380 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19381 shlibpath_var
=LD_LIBRARY_PATH
19382 shlibpath_overrides_runpath
=no
19383 hardcode_into_libs
=yes
19388 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19389 soname_spec
='${libname}${release}${shared_ext}$major'
19390 shlibpath_var
=LD_LIBRARY_PATH
19393 # Shared libraries for VwWorks, >= 7 only at this stage
19394 # and (fpic) still incompatible with "large" code models
19395 # in a few configurations. Only for RTP mode in any case,
19396 # and upon explicit request at configure time.
19399 case ${with_multisubdir}-${enable_shared} in
19406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19407 soname_spec
='${libname}${release}${shared_ext}$major'
19408 dynamic_linker
="$host_os module_loader"
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19417 $as_echo "$dynamic_linker" >&6; }
19418 test "$dynamic_linker" = no
&& can_build_shared
=no
19420 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19421 if test "$GCC" = yes; then
19422 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19425 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19426 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19428 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19429 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19524 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19526 if test -n "$hardcode_libdir_flag_spec" ||
19527 test -n "$runpath_var" ||
19528 test "X$hardcode_automatic" = "Xyes" ; then
19530 # We can hardcode non-existent directories.
19531 if test "$hardcode_direct" != no
&&
19532 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19533 # have to relink, otherwise we might link with an installed library
19534 # when we should be linking with a yet-to-be-installed one
19535 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19536 test "$hardcode_minus_L" != no
; then
19537 # Linking always hardcodes the temporary library directory.
19538 hardcode_action
=relink
19540 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19541 hardcode_action
=immediate
19544 # We cannot hardcode anything, or else we can only hardcode existing
19546 hardcode_action
=unsupported
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19549 $as_echo "$hardcode_action" >&6; }
19551 if test "$hardcode_action" = relink ||
19552 test "$inherit_rpath" = yes; then
19553 # Fast installation is not supported
19554 enable_fast_install
=no
19555 elif test "$shlibpath_overrides_runpath" = yes ||
19556 test "$enable_shared" = no
; then
19557 # Fast installation is not necessary
19558 enable_fast_install
=needless
19566 if test "x$enable_dlopen" != xyes
; then
19567 enable_dlopen
=unknown
19568 enable_dlopen_self
=unknown
19569 enable_dlopen_self_static
=unknown
19576 lt_cv_dlopen
="load_add_on"
19578 lt_cv_dlopen_self
=yes
19581 mingw
* | pw32
* | cegcc
*)
19582 lt_cv_dlopen
="LoadLibrary"
19587 lt_cv_dlopen
="dlopen"
19592 # if libdl is installed we need to link against it
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19594 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19595 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19596 $as_echo_n "(cached) " >&6
19598 ac_check_lib_save_LIBS
=$LIBS
19600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h. */
19603 /* Override any GCC internal prototype to avoid an error.
19604 Use char because int might match the return type of a GCC
19605 builtin and then its argument prototype would still apply. */
19618 if ac_fn_c_try_link
"$LINENO"; then :
19619 ac_cv_lib_dl_dlopen
=yes
19621 ac_cv_lib_dl_dlopen
=no
19623 rm -f core conftest.err conftest.
$ac_objext \
19624 conftest
$ac_exeext conftest.
$ac_ext
19625 LIBS
=$ac_check_lib_save_LIBS
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19628 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19629 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19630 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19633 lt_cv_dlopen
="dyld"
19635 lt_cv_dlopen_self
=yes
19642 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19643 if test "x$ac_cv_func_shl_load" = xyes
; then :
19644 lt_cv_dlopen
="shl_load"
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19647 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19648 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19649 $as_echo_n "(cached) " >&6
19651 ac_check_lib_save_LIBS
=$LIBS
19653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h. */
19656 /* Override any GCC internal prototype to avoid an error.
19657 Use char because int might match the return type of a GCC
19658 builtin and then its argument prototype would still apply. */
19666 return shl_load ();
19671 if ac_fn_c_try_link
"$LINENO"; then :
19672 ac_cv_lib_dld_shl_load
=yes
19674 ac_cv_lib_dld_shl_load
=no
19676 rm -f core conftest.err conftest.
$ac_objext \
19677 conftest
$ac_exeext conftest.
$ac_ext
19678 LIBS
=$ac_check_lib_save_LIBS
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19681 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19682 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19683 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19685 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19686 if test "x$ac_cv_func_dlopen" = xyes
; then :
19687 lt_cv_dlopen
="dlopen"
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19690 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19691 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19692 $as_echo_n "(cached) " >&6
19694 ac_check_lib_save_LIBS
=$LIBS
19696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19697 /* end confdefs.h. */
19699 /* Override any GCC internal prototype to avoid an error.
19700 Use char because int might match the return type of a GCC
19701 builtin and then its argument prototype would still apply. */
19714 if ac_fn_c_try_link
"$LINENO"; then :
19715 ac_cv_lib_dl_dlopen
=yes
19717 ac_cv_lib_dl_dlopen
=no
19719 rm -f core conftest.err conftest.
$ac_objext \
19720 conftest
$ac_exeext conftest.
$ac_ext
19721 LIBS
=$ac_check_lib_save_LIBS
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19724 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19725 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19726 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19729 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19730 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19731 $as_echo_n "(cached) " >&6
19733 ac_check_lib_save_LIBS
=$LIBS
19734 LIBS
="-lsvld $LIBS"
19735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19736 /* end confdefs.h. */
19738 /* Override any GCC internal prototype to avoid an error.
19739 Use char because int might match the return type of a GCC
19740 builtin and then its argument prototype would still apply. */
19753 if ac_fn_c_try_link
"$LINENO"; then :
19754 ac_cv_lib_svld_dlopen
=yes
19756 ac_cv_lib_svld_dlopen
=no
19758 rm -f core conftest.err conftest.
$ac_objext \
19759 conftest
$ac_exeext conftest.
$ac_ext
19760 LIBS
=$ac_check_lib_save_LIBS
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19763 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19764 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19765 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19768 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19769 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19770 $as_echo_n "(cached) " >&6
19772 ac_check_lib_save_LIBS
=$LIBS
19774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19775 /* end confdefs.h. */
19777 /* Override any GCC internal prototype to avoid an error.
19778 Use char because int might match the return type of a GCC
19779 builtin and then its argument prototype would still apply. */
19787 return dld_link ();
19792 if ac_fn_c_try_link
"$LINENO"; then :
19793 ac_cv_lib_dld_dld_link
=yes
19795 ac_cv_lib_dld_dld_link
=no
19797 rm -f core conftest.err conftest.
$ac_objext \
19798 conftest
$ac_exeext conftest.
$ac_ext
19799 LIBS
=$ac_check_lib_save_LIBS
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19802 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19803 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19804 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19825 if test "x$lt_cv_dlopen" != xno
; then
19831 case $lt_cv_dlopen in
19833 save_CPPFLAGS
="$CPPFLAGS"
19834 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19836 save_LDFLAGS
="$LDFLAGS"
19837 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19840 LIBS
="$lt_cv_dlopen_libs $LIBS"
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19843 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19844 if ${lt_cv_dlopen_self+:} false
; then :
19845 $as_echo_n "(cached) " >&6
19847 if test "$cross_compiling" = yes; then :
19848 lt_cv_dlopen_self
=cross
19850 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19851 lt_status
=$lt_dlunknown
19852 cat > conftest.
$ac_ext <<_LT_EOF
19853 #line 19853 "configure"
19854 #include "confdefs.h"
19863 # define LT_DLGLOBAL RTLD_GLOBAL
19866 # define LT_DLGLOBAL DL_GLOBAL
19868 # define LT_DLGLOBAL 0
19872 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19873 find out it does not work in some platform. */
19874 #ifndef LT_DLLAZY_OR_NOW
19876 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19879 # define LT_DLLAZY_OR_NOW DL_LAZY
19882 # define LT_DLLAZY_OR_NOW RTLD_NOW
19885 # define LT_DLLAZY_OR_NOW DL_NOW
19887 # define LT_DLLAZY_OR_NOW 0
19894 /* When -fvisbility=hidden is used, assume the code has been annotated
19895 correspondingly for the symbols needed. */
19896 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19897 void fnord () __attribute__((visibility("default")));
19900 void fnord () { int i=42; }
19903 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19904 int status = $lt_dlunknown;
19908 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19911 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19912 else puts (dlerror ());
19914 /* dlclose (self); */
19922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19923 (eval $ac_link) 2>&5
19925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19926 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19927 (.
/conftest
; exit; ) >&5 2>/dev
/null
19929 case x
$lt_status in
19930 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19931 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19932 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19935 # compilation failed
19936 lt_cv_dlopen_self
=no
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19944 $as_echo "$lt_cv_dlopen_self" >&6; }
19946 if test "x$lt_cv_dlopen_self" = xyes
; then
19947 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19949 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19950 if ${lt_cv_dlopen_self_static+:} false
; then :
19951 $as_echo_n "(cached) " >&6
19953 if test "$cross_compiling" = yes; then :
19954 lt_cv_dlopen_self_static
=cross
19956 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19957 lt_status
=$lt_dlunknown
19958 cat > conftest.
$ac_ext <<_LT_EOF
19959 #line 19959 "configure"
19960 #include "confdefs.h"
19969 # define LT_DLGLOBAL RTLD_GLOBAL
19972 # define LT_DLGLOBAL DL_GLOBAL
19974 # define LT_DLGLOBAL 0
19978 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19979 find out it does not work in some platform. */
19980 #ifndef LT_DLLAZY_OR_NOW
19982 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19985 # define LT_DLLAZY_OR_NOW DL_LAZY
19988 # define LT_DLLAZY_OR_NOW RTLD_NOW
19991 # define LT_DLLAZY_OR_NOW DL_NOW
19993 # define LT_DLLAZY_OR_NOW 0
20000 /* When -fvisbility=hidden is used, assume the code has been annotated
20001 correspondingly for the symbols needed. */
20002 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20003 void fnord () __attribute__((visibility("default")));
20006 void fnord () { int i=42; }
20009 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20010 int status = $lt_dlunknown;
20014 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20017 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20018 else puts (dlerror ());
20020 /* dlclose (self); */
20028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20029 (eval $ac_link) 2>&5
20031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20032 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20033 (.
/conftest
; exit; ) >&5 2>/dev
/null
20035 case x
$lt_status in
20036 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
20037 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
20038 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
20041 # compilation failed
20042 lt_cv_dlopen_self_static
=no
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20050 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20053 CPPFLAGS
="$save_CPPFLAGS"
20054 LDFLAGS
="$save_LDFLAGS"
20059 case $lt_cv_dlopen_self in
20060 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
20061 *) enable_dlopen_self
=unknown
;;
20064 case $lt_cv_dlopen_self_static in
20065 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
20066 *) enable_dlopen_self_static
=unknown
;;
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20089 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20090 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
20091 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
20092 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20094 $as_echo "yes" >&6; }
20096 # FIXME - insert some real tests, host_os isn't really good enough
20099 if test -n "$STRIP" ; then
20100 striplib
="$STRIP -x"
20101 old_striplib
="$STRIP -S"
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20103 $as_echo "yes" >&6; }
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20106 $as_echo "no" >&6; }
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20111 $as_echo "no" >&6; }
20127 # Report which library types will actually be built
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20129 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20131 $as_echo "$can_build_shared" >&6; }
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20134 $as_echo_n "checking whether to build shared libraries... " >&6; }
20135 test "$can_build_shared" = "no" && enable_shared
=no
20137 # On AIX, shared libraries and static libraries use the same namespace, and
20138 # are all built from PIC.
20141 test "$enable_shared" = yes && enable_static
=no
20142 if test -n "$RANLIB"; then
20143 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20144 postinstall_cmds
='$RANLIB $lib'
20149 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20150 test "$enable_shared" = yes && enable_static
=no
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20155 $as_echo "$enable_shared" >&6; }
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20158 $as_echo_n "checking whether to build static libraries... " >&6; }
20159 # Make sure either enable_shared or enable_static is yes.
20160 test "$enable_shared" = yes || enable_static
=yes
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20162 $as_echo "$enable_static" >&6; }
20169 ac_cpp
='$CXXCPP $CPPFLAGS'
20170 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20176 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20177 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20178 (test "X$CXX" != "Xg++"))) ; then
20180 ac_cpp
='$CXXCPP $CPPFLAGS'
20181 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20182 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20183 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20185 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20186 if test -z "$CXXCPP"; then
20187 if ${ac_cv_prog_CXXCPP+:} false
; then :
20188 $as_echo_n "(cached) " >&6
20190 # Double quotes because CXXCPP needs to be expanded
20191 for CXXCPP
in "$CXX -E" "/lib/cpp"
20193 ac_preproc_ok
=false
20194 for ac_cxx_preproc_warn_flag
in '' yes
20196 # Use a header file that comes with gcc, so configuring glibc
20197 # with a fresh cross-compiler works.
20198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20199 # <limits.h> exists even on freestanding compilers.
20200 # On the NeXT, cc -E runs the code through the compiler's parser,
20201 # not just through cpp. "Syntax error" is here to catch this case.
20202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h. */
20205 # include <limits.h>
20207 # include <assert.h>
20211 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20214 # Broken: fails on valid input.
20217 rm -f conftest.err conftest.i conftest.
$ac_ext
20219 # OK, works on sane cases. Now check whether nonexistent headers
20220 # can be detected and how.
20221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20222 /* end confdefs.h. */
20223 #include <ac_nonexistent.h>
20225 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20226 # Broken: success on invalid input.
20229 # Passes both tests.
20233 rm -f conftest.err conftest.i conftest.
$ac_ext
20236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20237 rm -f conftest.i conftest.err conftest.
$ac_ext
20238 if $ac_preproc_ok; then :
20243 ac_cv_prog_CXXCPP
=$CXXCPP
20246 CXXCPP
=$ac_cv_prog_CXXCPP
20248 ac_cv_prog_CXXCPP
=$CXXCPP
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20251 $as_echo "$CXXCPP" >&6; }
20252 ac_preproc_ok
=false
20253 for ac_cxx_preproc_warn_flag
in '' yes
20255 # Use a header file that comes with gcc, so configuring glibc
20256 # with a fresh cross-compiler works.
20257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20258 # <limits.h> exists even on freestanding compilers.
20259 # On the NeXT, cc -E runs the code through the compiler's parser,
20260 # not just through cpp. "Syntax error" is here to catch this case.
20261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h. */
20264 # include <limits.h>
20266 # include <assert.h>
20270 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20273 # Broken: fails on valid input.
20276 rm -f conftest.err conftest.i conftest.
$ac_ext
20278 # OK, works on sane cases. Now check whether nonexistent headers
20279 # can be detected and how.
20280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20281 /* end confdefs.h. */
20282 #include <ac_nonexistent.h>
20284 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20285 # Broken: success on invalid input.
20288 # Passes both tests.
20292 rm -f conftest.err conftest.i conftest.
$ac_ext
20295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20296 rm -f conftest.i conftest.err conftest.
$ac_ext
20297 if $ac_preproc_ok; then :
20300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20302 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20303 See \`config.log' for more details" "$LINENO" 5; }
20307 ac_cpp
='$CXXCPP $CPPFLAGS'
20308 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20309 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20310 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20313 _lt_caught_CXX_error
=yes
20317 ac_cpp
='$CXXCPP $CPPFLAGS'
20318 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20322 archive_cmds_need_lc_CXX
=no
20323 allow_undefined_flag_CXX
=
20324 always_export_symbols_CXX
=no
20325 archive_expsym_cmds_CXX
=
20326 compiler_needs_object_CXX
=no
20327 export_dynamic_flag_spec_CXX
=
20328 hardcode_direct_CXX
=no
20329 hardcode_direct_absolute_CXX
=no
20330 hardcode_libdir_flag_spec_CXX
=
20331 hardcode_libdir_flag_spec_ld_CXX
=
20332 hardcode_libdir_separator_CXX
=
20333 hardcode_minus_L_CXX
=no
20334 hardcode_shlibpath_var_CXX
=unsupported
20335 hardcode_automatic_CXX
=no
20336 inherit_rpath_CXX
=no
20338 module_expsym_cmds_CXX
=
20339 link_all_deplibs_CXX
=unknown
20340 old_archive_cmds_CXX
=$old_archive_cmds
20341 reload_flag_CXX
=$reload_flag
20342 reload_cmds_CXX
=$reload_cmds
20343 no_undefined_flag_CXX
=
20344 whole_archive_flag_spec_CXX
=
20345 enable_shared_with_static_runtimes_CXX
=no
20347 # Source file extension for C++ test sources.
20350 # Object file extension for compiled C++ test sources.
20354 # No sense in running all these tests if we already determined that
20355 # the CXX compiler isn't working. Some variables (like enable_shared)
20356 # are currently assumed to apply to all compilers on this platform,
20357 # and will be corrupted by setting them based on a non-working compiler.
20358 if test "$_lt_caught_CXX_error" != yes; then
20359 # Code to be used in simple compile tests
20360 lt_simple_compile_test_code
="int some_variable = 0;"
20362 # Code to be used in simple link tests
20363 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20365 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20372 # If no C compiler was specified, use CC.
20375 # If no C compiler flags were specified, use CFLAGS.
20376 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20378 # Allow CC to be a program name with arguments.
20382 # save warnings/boilerplate of simple test code
20383 ac_outfile
=conftest.
$ac_objext
20384 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20385 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20386 _lt_compiler_boilerplate
=`cat conftest.err`
20389 ac_outfile
=conftest.
$ac_objext
20390 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20391 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20392 _lt_linker_boilerplate
=`cat conftest.err`
20396 # Allow CC to be a program name with arguments.
20401 lt_save_with_gnu_ld
=$with_gnu_ld
20402 lt_save_path_LD
=$lt_cv_path_LD
20403 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20404 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20406 $as_unset lt_cv_prog_gnu_ld
20408 if test -n "${lt_cv_path_LDCXX+set}"; then
20409 lt_cv_path_LD
=$lt_cv_path_LDCXX
20411 $as_unset lt_cv_path_LD
20413 test -z "${LDCXX+set}" || LD
=$LDCXX
20417 for cc_temp
in $compiler""; do
20419 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20420 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20425 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20428 if test -n "$compiler"; then
20429 # We don't want -fno-exception when compiling C++ code, so set the
20430 # no_builtin_flag separately
20431 if test "$GXX" = yes; then
20432 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20434 lt_prog_compiler_no_builtin_flag_CXX
=
20437 if test "$GXX" = yes; then
20438 # Set up default GNU C++ configuration
20442 # Check whether --with-gnu-ld was given.
20443 if test "${with_gnu_ld+set}" = set; then :
20444 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20450 if test "$GCC" = yes; then
20451 # Check if gcc -print-prog-name=ld gives a path.
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20453 $as_echo_n "checking for ld used by $CC... " >&6; }
20456 # gcc leaves a trailing carriage return which upsets mingw
20457 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20459 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20462 # Accept absolute paths.
20464 re_direlt
='/[^/][^/]*/\.\./'
20465 # Canonicalize the pathname of ld
20466 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20467 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20468 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20470 test -z "$LD" && LD
="$ac_prog"
20473 # If it fails, then pretend we aren't using GCC.
20477 # If it is relative, then search for the first ld in PATH.
20478 with_gnu_ld
=unknown
20481 elif test "$with_gnu_ld" = yes; then
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20483 $as_echo_n "checking for GNU ld... " >&6; }
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20486 $as_echo_n "checking for non-GNU ld... " >&6; }
20488 if ${lt_cv_path_LD+:} false
; then :
20489 $as_echo_n "(cached) " >&6
20491 if test -z "$LD"; then
20492 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20493 for ac_dir
in $PATH; do
20495 test -z "$ac_dir" && ac_dir
=.
20496 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20497 lt_cv_path_LD
="$ac_dir/$ac_prog"
20498 # Check to see if the program is GNU ld. I'd rather use --version,
20499 # but apparently some variants of GNU ld only accept -v.
20500 # Break only if it was the GNU/non-GNU ld that we prefer.
20501 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20502 *GNU
* |
*'with BFD'*)
20503 test "$with_gnu_ld" != no
&& break
20506 test "$with_gnu_ld" != yes && break
20513 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20517 LD
="$lt_cv_path_LD"
20518 if test -n "$LD"; then
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20520 $as_echo "$LD" >&6; }
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20523 $as_echo "no" >&6; }
20525 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20527 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20528 if ${lt_cv_prog_gnu_ld+:} false
; then :
20529 $as_echo_n "(cached) " >&6
20531 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20532 case `$LD -v 2>&1 </dev/null` in
20533 *GNU
* |
*'with BFD'*)
20534 lt_cv_prog_gnu_ld
=yes
20537 lt_cv_prog_gnu_ld
=no
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20542 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20543 with_gnu_ld
=$lt_cv_prog_gnu_ld
20551 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20552 # archiving commands below assume that GNU ld is being used.
20553 if test "$with_gnu_ld" = yes; then
20554 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20555 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'
20557 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20558 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20560 # If archive_cmds runs LD, not CC, wlarc should be empty
20561 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20562 # investigate it a little bit more. (MM)
20565 # ancient GNU ld didn't support --whole-archive et. al.
20566 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20567 $GREP 'no-whole-archive' > /dev
/null
; then
20568 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20570 whole_archive_flag_spec_CXX
=
20576 # A generic and very simple default shared library creation
20577 # command for GNU C++ for the case where it uses the native
20578 # linker, instead of GNU ld. If possible, this setting should
20579 # overridden to take advantage of the native linker features on
20580 # the platform it is being used on.
20581 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20584 # Commands to make compiler produce verbose output that lists
20585 # what "hidden" libraries, object files and flags are used when
20586 # linking a shared library.
20587 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20595 # PORTME: fill in a description of your system's C++ link characteristics
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20597 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20601 # FIXME: insert proper C++ library support
20605 if test "$host_cpu" = ia64
; then
20606 # On IA64, the linker does run time linking by default, so we don't
20607 # have to do anything special.
20608 aix_use_runtimelinking
=no
20609 exp_sym_flag
='-Bexport'
20612 aix_use_runtimelinking
=no
20614 # Test if we are trying to use run time linking or normal
20615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20616 # need to do runtime linking.
20617 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20618 for ld_flag
in $LDFLAGS; do
20621 aix_use_runtimelinking
=yes
20629 exp_sym_flag
='-bexport'
20630 no_entry_flag
='-bnoentry'
20633 # When large executables or shared objects are built, AIX ld can
20634 # have problems creating the table of contents. If linking a library
20635 # or program results in "error TOC overflow" add -mminimal-toc to
20636 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20637 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20639 archive_cmds_CXX
=''
20640 hardcode_direct_CXX
=yes
20641 hardcode_direct_absolute_CXX
=yes
20642 hardcode_libdir_separator_CXX
=':'
20643 link_all_deplibs_CXX
=yes
20644 file_list_spec_CXX
='${wl}-f,'
20646 if test "$GXX" = yes; then
20647 case $host_os in aix4.
[012]|aix4.
[012].
*)
20648 # We only want to do this on AIX 4.2 and lower, the check
20649 # below for broken collect2 doesn't work under 4.3+
20650 collect2name
=`${CC} -print-prog-name=collect2`
20651 if test -f "$collect2name" &&
20652 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20654 # We have reworked collect2
20657 # We have old collect2
20658 hardcode_direct_CXX
=unsupported
20659 # It fails to find uninstalled libraries when the uninstalled
20660 # path is not listed in the libpath. Setting hardcode_minus_L
20661 # to unsupported forces relinking
20662 hardcode_minus_L_CXX
=yes
20663 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20664 hardcode_libdir_separator_CXX
=
20667 shared_flag
='-shared'
20668 if test "$aix_use_runtimelinking" = yes; then
20669 shared_flag
="$shared_flag "'${wl}-G'
20673 if test "$host_cpu" = ia64
; then
20674 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20675 # chokes on -Wl,-G. The following line is correct:
20678 if test "$aix_use_runtimelinking" = yes; then
20679 shared_flag
='${wl}-G'
20681 shared_flag
='${wl}-bM:SRE'
20686 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20687 # It seems that -bexpall does not export symbols beginning with
20688 # underscore (_), so it is better to generate a list of symbols to
20690 always_export_symbols_CXX
=yes
20691 if test "$aix_use_runtimelinking" = yes; then
20692 # Warning - without using the other runtime loading flags (-brtl),
20693 # -berok will link without error, but may produce a broken library.
20694 allow_undefined_flag_CXX
='-berok'
20695 # Determine the default libpath from the value encoded in an empty
20697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20698 /* end confdefs.h. */
20708 if ac_fn_cxx_try_link
"$LINENO"; then :
20710 lt_aix_libpath_sed
='
20711 /Import File Strings/,/^$/ {
20717 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20718 # Check for a 64-bit object if we didn't find anything.
20719 if test -z "$aix_libpath"; then
20720 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20723 rm -f core conftest.err conftest.
$ac_objext \
20724 conftest
$ac_exeext conftest.
$ac_ext
20725 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20727 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20729 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"
20731 if test "$host_cpu" = ia64
; then
20732 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20733 allow_undefined_flag_CXX
="-z nodefs"
20734 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"
20736 # Determine the default libpath from the value encoded in an
20737 # empty executable.
20738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h. */
20749 if ac_fn_cxx_try_link
"$LINENO"; then :
20751 lt_aix_libpath_sed
='
20752 /Import File Strings/,/^$/ {
20758 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20759 # Check for a 64-bit object if we didn't find anything.
20760 if test -z "$aix_libpath"; then
20761 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20764 rm -f core conftest.err conftest.
$ac_objext \
20765 conftest
$ac_exeext conftest.
$ac_ext
20766 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20768 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20769 # Warning - without using the other run time loading flags,
20770 # -berok will link without error, but may produce a broken library.
20771 no_undefined_flag_CXX
=' ${wl}-bernotok'
20772 allow_undefined_flag_CXX
=' ${wl}-berok'
20773 if test "$with_gnu_ld" = yes; then
20774 # We only use this code for GNU lds that support --whole-archive.
20775 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20777 # Exported symbols can be pulled into shared objects from archives
20778 whole_archive_flag_spec_CXX
='$convenience'
20780 archive_cmds_need_lc_CXX
=yes
20781 # This is similar to how AIX traditionally builds its shared
20783 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'
20789 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20790 allow_undefined_flag_CXX
=unsupported
20791 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20792 # support --undefined. This deserves some investigation. FIXME
20793 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20800 case $cc_basename in
20802 # FIXME: insert proper C++ library support
20808 cygwin
* | mingw
* | pw32
* | cegcc
*)
20809 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20810 # as there is no search path for DLLs.
20811 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20812 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20813 allow_undefined_flag_CXX
=unsupported
20814 always_export_symbols_CXX
=no
20815 enable_shared_with_static_runtimes_CXX
=yes
20817 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20818 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'
20819 # If the export-symbols file already is a .def file (1st line
20820 # is EXPORTS), use it as is; otherwise, prepend...
20821 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20822 cp $export_symbols $output_objdir/$soname.def;
20824 echo EXPORTS > $output_objdir/$soname.def;
20825 cat $export_symbols >> $output_objdir/$soname.def;
20827 $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'
20832 darwin
* | rhapsody
*)
20835 archive_cmds_need_lc_CXX
=no
20836 hardcode_direct_CXX
=no
20837 hardcode_automatic_CXX
=yes
20838 hardcode_shlibpath_var_CXX
=unsupported
20839 if test "$lt_cv_ld_force_load" = "yes"; then
20840 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\"`'
20842 whole_archive_flag_spec_CXX
=''
20844 link_all_deplibs_CXX
=yes
20845 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20846 case $cc_basename in
20847 ifort
*) _lt_dar_can_shared
=yes ;;
20848 *) _lt_dar_can_shared
=$GCC ;;
20850 if test "$_lt_dar_can_shared" = "yes"; then
20851 output_verbose_link_cmd
=func_echo_all
20852 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20853 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20854 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20855 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}"
20856 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20857 archive_cmds_CXX
="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
20858 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}"
20868 case $cc_basename in
20870 # FIXME: insert proper C++ library support
20874 # Green Hills C++ Compiler
20875 # FIXME: insert proper C++ library support
20879 # FIXME: insert proper C++ library support
20886 # C++ shared libraries reported to be fairly broken before
20892 archive_cmds_need_lc_CXX
=no
20895 freebsd
* | dragonfly
*)
20896 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20905 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20906 link_all_deplibs_CXX
=yes
20910 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20911 hardcode_libdir_separator_CXX
=:
20912 export_dynamic_flag_spec_CXX
='${wl}-E'
20913 hardcode_direct_CXX
=yes
20914 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20915 # but as the default
20916 # location of the library.
20918 case $cc_basename in
20920 # FIXME: insert proper C++ library support
20924 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'
20925 # Commands to make compiler produce verbose output that lists
20926 # what "hidden" libraries, object files and flags are used when
20927 # linking a shared library.
20929 # There doesn't appear to be a way to prevent this compiler from
20930 # explicitly linking system object files so we need to strip them
20931 # from the output so that they don't get included in the library
20933 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"'
20936 if test "$GXX" = yes; then
20937 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'
20939 # FIXME: insert proper C++ library support
20947 if test $with_gnu_ld = no
; then
20948 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20949 hardcode_libdir_separator_CXX
=:
20955 export_dynamic_flag_spec_CXX
='${wl}-E'
20961 hardcode_direct_CXX
=no
20962 hardcode_shlibpath_var_CXX
=no
20965 hardcode_direct_CXX
=yes
20966 hardcode_direct_absolute_CXX
=yes
20967 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20968 # but as the default
20969 # location of the library.
20973 case $cc_basename in
20975 # FIXME: insert proper C++ library support
20981 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20984 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20987 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20990 # Commands to make compiler produce verbose output that lists
20991 # what "hidden" libraries, object files and flags are used when
20992 # linking a shared library.
20994 # There doesn't appear to be a way to prevent this compiler from
20995 # explicitly linking system object files so we need to strip them
20996 # from the output so that they don't get included in the library
20998 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"'
21001 if test "$GXX" = yes; then
21002 if test $with_gnu_ld = no
; then
21005 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21008 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21011 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'
21016 # FIXME: insert proper C++ library support
21024 hardcode_direct_CXX
=no
21025 hardcode_shlibpath_var_CXX
=no
21026 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21027 export_dynamic_flag_spec_CXX
='${wl}-E'
21028 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21029 # Instead, shared libraries are loaded at an image base (0x10000000 by
21030 # default) and relocated if they conflict, which is a slow very memory
21031 # consuming and fragmenting process. To avoid this, we pick a random,
21032 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21033 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21034 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'
21035 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'
21038 case $cc_basename in
21041 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'
21043 # Archives containing C++ object files must be created using
21044 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21045 # necessary to make sure instantiated templates are included
21047 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
21050 if test "$GXX" = yes; then
21051 if test "$with_gnu_ld" = no
; then
21052 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'
21054 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'
21057 link_all_deplibs_CXX
=yes
21060 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21061 hardcode_libdir_separator_CXX
=:
21062 inherit_rpath_CXX
=yes
21065 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21066 case $cc_basename in
21068 # Kuck and Associates, Inc. (KAI) C++ Compiler
21070 # KCC will only create a shared library if the output file
21071 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21072 # to its proper name (with version) after linking.
21073 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'
21074 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'
21075 # Commands to make compiler produce verbose output that lists
21076 # what "hidden" libraries, object files and flags are used when
21077 # linking a shared library.
21079 # There doesn't appear to be a way to prevent this compiler from
21080 # explicitly linking system object files so we need to strip them
21081 # from the output so that they don't get included in the library
21083 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"'
21085 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21086 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21088 # Archives containing C++ object files must be created using
21089 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21090 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
21095 # version 8.0 and above of icpc choke on multiply defined symbols
21096 # if we add $predep_objects and $postdep_objects, however 7.1 and
21097 # earlier do not add the objects themselves.
21098 case `$CC -V 2>&1` in
21100 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21101 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'
21103 *) # Version 8.0 or newer
21106 ia64
*) tmp_idyn
=' -i_dynamic';;
21108 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21109 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'
21112 archive_cmds_need_lc_CXX
=no
21113 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21114 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21115 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21118 # Portland Group C++ compiler
21120 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
21121 prelink_cmds_CXX
='tpldir=Template.dir~
21123 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21124 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21125 old_archive_cmds_CXX
='tpldir=Template.dir~
21127 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21128 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21130 archive_cmds_CXX
='tpldir=Template.dir~
21132 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21133 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21134 archive_expsym_cmds_CXX
='tpldir=Template.dir~
21136 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21137 $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'
21139 *) # Version 6 and above use weak symbols
21140 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21141 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'
21145 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
21146 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21147 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'
21151 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21152 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'
21154 runpath_var
=LD_RUN_PATH
21155 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21156 hardcode_libdir_separator_CXX
=:
21158 # Commands to make compiler produce verbose output that lists
21159 # what "hidden" libraries, object files and flags are used when
21160 # linking a shared library.
21162 # There doesn't appear to be a way to prevent this compiler from
21163 # explicitly linking system object files so we need to strip them
21164 # from the output so that they don't get included in the library
21166 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'
21168 xl
* | mpixl
* | bgxl
*)
21169 # IBM XL 8.0 on PPC, with GNU ld
21170 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21171 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21172 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21173 if test "x$supports_anon_versioning" = xyes
; then
21174 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
21175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21176 echo "local: *; };" >> $output_objdir/$libname.ver~
21177 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21181 case `$CC -V 2>&1 | sed 5q` in
21184 no_undefined_flag_CXX
=' -zdefs'
21185 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21186 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'
21187 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21188 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'
21189 compiler_needs_object_CXX
=yes
21191 # Not sure whether something based on
21192 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21194 output_verbose_link_cmd
='func_echo_all'
21196 # Archives containing C++ object files must be created using
21197 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21198 # necessary to make sure instantiated templates are included
21200 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21208 # FIXME: insert proper C++ library support
21213 # FIXME: insert proper C++ library support
21218 case $cc_basename in
21220 # FIXME: insert proper C++ library support
21224 # FIXME: insert proper C++ library support
21231 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21232 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21234 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21235 hardcode_direct_CXX
=yes
21236 hardcode_shlibpath_var_CXX
=no
21238 # Workaround some broken pre-1.5 toolchains
21239 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21247 # C++ shared libraries are fairly broken
21252 if test -f /usr
/libexec
/ld.so
; then
21253 hardcode_direct_CXX
=yes
21254 hardcode_shlibpath_var_CXX
=no
21255 hardcode_direct_absolute_CXX
=yes
21256 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21257 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21258 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21259 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21260 export_dynamic_flag_spec_CXX
='${wl}-E'
21261 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21263 output_verbose_link_cmd
=func_echo_all
21269 osf3
* | osf4
* | osf5
*)
21270 case $cc_basename in
21272 # Kuck and Associates, Inc. (KAI) C++ Compiler
21274 # KCC will only create a shared library if the output file
21275 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21276 # to its proper name (with version) after linking.
21277 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'
21279 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21280 hardcode_libdir_separator_CXX
=:
21282 # Archives containing C++ object files must be created using
21283 # the KAI C++ compiler.
21285 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
21286 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21290 # Rational C++ 2.4.1
21291 # FIXME: insert proper C++ library support
21297 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21298 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'
21299 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21302 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21303 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'
21304 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21305 echo "-hidden">> $lib.exp~
21306 $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~
21308 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21312 hardcode_libdir_separator_CXX
=:
21314 # Commands to make compiler produce verbose output that lists
21315 # what "hidden" libraries, object files and flags are used when
21316 # linking a shared library.
21318 # There doesn't appear to be a way to prevent this compiler from
21319 # explicitly linking system object files so we need to strip them
21320 # from the output so that they don't get included in the library
21322 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"'
21325 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21326 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21329 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'
21332 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'
21336 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21337 hardcode_libdir_separator_CXX
=:
21339 # Commands to make compiler produce verbose output that lists
21340 # what "hidden" libraries, object files and flags are used when
21341 # linking a shared library.
21342 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21345 # FIXME: insert proper C++ library support
21353 # FIXME: insert proper C++ library support
21358 case $cc_basename in
21361 # FIXME: insert proper C++ library support
21366 # FIXME: insert proper C++ library support
21370 # FIXME: insert proper C++ library support
21377 case $cc_basename in
21379 # Sun C++ 4.2, 5.x and Centerline C++
21380 archive_cmds_need_lc_CXX
=yes
21381 no_undefined_flag_CXX
=' -zdefs'
21382 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21383 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21384 $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'
21386 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21387 hardcode_shlibpath_var_CXX
=no
21389 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21391 # The compiler driver will combine and reorder linker options,
21392 # but understands `-z linker_flag'.
21393 # Supported since Solaris 2.6 (maybe 2.5.1?)
21394 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21397 link_all_deplibs_CXX
=yes
21399 output_verbose_link_cmd
='func_echo_all'
21401 # Archives containing C++ object files must be created using
21402 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21403 # necessary to make sure instantiated templates are included
21405 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21408 # Green Hills C++ Compiler
21409 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21411 # The C++ compiler must be used to create the archive.
21412 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21415 # GNU C++ compiler with Solaris linker
21416 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21417 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21418 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21419 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21420 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21421 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21423 # Commands to make compiler produce verbose output that lists
21424 # what "hidden" libraries, object files and flags are used when
21425 # linking a shared library.
21426 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21428 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21430 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21431 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21432 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21434 # Commands to make compiler produce verbose output that lists
21435 # what "hidden" libraries, object files and flags are used when
21436 # linking a shared library.
21437 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21440 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21442 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21444 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21452 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21453 no_undefined_flag_CXX
='${wl}-z,text'
21454 archive_cmds_need_lc_CXX
=no
21455 hardcode_shlibpath_var_CXX
=no
21456 runpath_var
='LD_RUN_PATH'
21458 case $cc_basename in
21460 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21461 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21464 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21465 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21470 sysv5
* | sco3.2v5
* | sco5v6
*)
21471 # Note: We can NOT use -z defs as we might desire, because we do not
21472 # link with -lc, and that would cause any symbols used from libc to
21473 # always be unresolved, which means just about no library would
21474 # ever link correctly. If we're not using GNU ld we use -z text
21475 # though, which does catch some bad symbols but isn't as heavy-handed
21477 no_undefined_flag_CXX
='${wl}-z,text'
21478 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21479 archive_cmds_need_lc_CXX
=no
21480 hardcode_shlibpath_var_CXX
=no
21481 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21482 hardcode_libdir_separator_CXX
=':'
21483 link_all_deplibs_CXX
=yes
21484 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21485 runpath_var
='LD_RUN_PATH'
21487 case $cc_basename in
21489 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21490 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21491 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21492 '"$old_archive_cmds_CXX"
21493 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21494 '"$reload_cmds_CXX"
21497 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21498 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21504 case $cc_basename in
21506 # NonStop-UX NCC 3.20
21507 # FIXME: insert proper C++ library support
21511 # FIXME: insert proper C++ library support
21518 # For VxWorks ports, we assume the use of a GNU linker with
21519 # standard elf conventions.
21524 # FIXME: insert proper C++ library support
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21530 $as_echo "$ld_shlibs_CXX" >&6; }
21531 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21537 ## There is no encapsulation within the following macros, do not change
21538 ## the running order or otherwise move them around unless you know exactly
21539 ## what you are doing...
21540 # Dependencies to place before and after the object being linked:
21541 predep_objects_CXX
=
21542 postdep_objects_CXX
=
21545 compiler_lib_search_path_CXX
=
21547 cat > conftest.
$ac_ext <<_LT_EOF
21551 Foo (void) { a = 0; }
21557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21558 (eval $ac_compile) 2>&5
21560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21561 test $ac_status = 0; }; then
21562 # Parse the compiler output and extract the necessary
21563 # objects, libraries and library flags.
21565 # Sentinel used to keep track of whether or not we are before
21566 # the conftest object file.
21567 pre_test_object_deps_done
=no
21569 for p
in `eval "$output_verbose_link_cmd"`; do
21573 # Some compilers place space between "-{L,R}" and the path.
21574 # Remove the space.
21575 if test $p = "-L" ||
21576 test $p = "-R"; then
21583 if test "$pre_test_object_deps_done" = no
; then
21586 # Internal compiler library paths should come after those
21587 # provided the user. The postdeps already come after the
21588 # user supplied libs so there is no need to process them.
21589 if test -z "$compiler_lib_search_path_CXX"; then
21590 compiler_lib_search_path_CXX
="${prev}${p}"
21592 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21595 # The "-l" case would never come before the object being
21596 # linked, so don't bother handling this case.
21599 if test -z "$postdeps_CXX"; then
21600 postdeps_CXX
="${prev}${p}"
21602 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21608 # This assumes that the test object file only shows up
21609 # once in the compiler output.
21610 if test "$p" = "conftest.$objext"; then
21611 pre_test_object_deps_done
=yes
21615 if test "$pre_test_object_deps_done" = no
; then
21616 if test -z "$predep_objects_CXX"; then
21617 predep_objects_CXX
="$p"
21619 predep_objects_CXX
="$predep_objects_CXX $p"
21622 if test -z "$postdep_objects_CXX"; then
21623 postdep_objects_CXX
="$p"
21625 postdep_objects_CXX
="$postdep_objects_CXX $p"
21630 *) ;; # Ignore the rest.
21638 echo "libtool.m4: error: problem compiling CXX test program"
21641 $RM -f confest.
$objext
21643 # PORTME: override above test on systems where it is broken
21646 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21647 # hack all around it, let's just trust "g++" to DTRT.
21648 predep_objects_CXX
=
21649 postdep_objects_CXX
=
21654 case `$CC -V 2>&1 | sed 5q` in
21658 # The more standards-conforming stlport4 library is
21659 # incompatible with the Cstd library. Avoid specifying
21660 # it if it's in CXXFLAGS. Ignore libCrun as
21661 # -library=stlport4 depends on it.
21662 case " $CXX $CXXFLAGS " in
21663 *" -library=stlport4 "*)
21664 solaris_use_stlport4
=yes
21668 if test "$solaris_use_stlport4" != yes; then
21669 postdeps_CXX
='-library=Cstd -library=Crun'
21676 case $cc_basename in
21678 # The more standards-conforming stlport4 library is
21679 # incompatible with the Cstd library. Avoid specifying
21680 # it if it's in CXXFLAGS. Ignore libCrun as
21681 # -library=stlport4 depends on it.
21682 case " $CXX $CXXFLAGS " in
21683 *" -library=stlport4 "*)
21684 solaris_use_stlport4
=yes
21688 # Adding this requires a known-good setup of shared libraries for
21689 # Sun compiler versions before 5.6, else PIC objects from an old
21690 # archive will be linked into the output, leading to subtle bugs.
21691 if test "$solaris_use_stlport4" != yes; then
21692 postdeps_CXX
='-library=Cstd -library=Crun'
21700 case " $postdeps_CXX " in
21701 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21703 compiler_lib_search_dirs_CXX
=
21704 if test -n "${compiler_lib_search_path_CXX}"; then
21705 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21738 lt_prog_compiler_wl_CXX
=
21739 lt_prog_compiler_pic_CXX
=
21740 lt_prog_compiler_static_CXX
=
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21743 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21745 # C++ specific cases for pic, static, wl, etc.
21746 if test "$GXX" = yes; then
21747 lt_prog_compiler_wl_CXX
='-Wl,'
21748 lt_prog_compiler_static_CXX
='-static'
21752 # All AIX code is PIC.
21753 if test "$host_cpu" = ia64
; then
21754 # AIX 5 now supports IA64 processor
21755 lt_prog_compiler_static_CXX
='-Bstatic'
21757 lt_prog_compiler_pic_CXX
='-fPIC'
21763 # see comment about AmigaOS4 .so support
21764 lt_prog_compiler_pic_CXX
='-fPIC'
21767 # FIXME: we need at least 68020 code to build shared libraries, but
21768 # adding the `-m68020' flag to GCC prevents building anything better,
21770 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21775 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21776 # PIC is the default for these OSes.
21778 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21779 # This hack is so that the source file can tell whether it is being
21780 # built for inclusion in a dll (and should export symbols for example).
21781 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21782 # (--disable-auto-import) libraries
21783 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21785 darwin
* | rhapsody
*)
21786 # PIC is the default on this platform
21787 # Common symbols not allowed in MH_DYLIB files
21788 lt_prog_compiler_pic_CXX
='-fno-common'
21791 # DJGPP does not support shared libraries at all
21792 lt_prog_compiler_pic_CXX
=
21795 # PIC is the default for Haiku.
21796 # The "-static" flag exists, but is broken.
21797 lt_prog_compiler_static_CXX
=
21800 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21801 # Instead, we relocate shared libraries at runtime.
21804 if test -d /usr
/nec
; then
21805 lt_prog_compiler_pic_CXX
=-Kconform_pic
21809 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21810 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21811 # sets the default TLS model and affects inlining.
21816 lt_prog_compiler_pic_CXX
='-fPIC'
21821 # QNX uses GNU C++, but need to define -shared option too, otherwise
21822 # it will coredump.
21823 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21826 lt_prog_compiler_pic_CXX
='-fPIC'
21832 # All AIX code is PIC.
21833 if test "$host_cpu" = ia64
; then
21834 # AIX 5 now supports IA64 processor
21835 lt_prog_compiler_static_CXX
='-Bstatic'
21837 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21841 case $cc_basename in
21843 # Green Hills C++ Compiler
21844 # _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"
21849 case $cc_basename in
21851 lt_prog_compiler_pic_CXX
='-KPIC'
21854 # Green Hills C++ Compiler
21855 lt_prog_compiler_pic_CXX
='-pic'
21861 freebsd
* | dragonfly
*)
21862 # FreeBSD uses GNU C++
21864 hpux9
* | hpux10
* | hpux11
*)
21865 case $cc_basename in
21867 lt_prog_compiler_wl_CXX
='-Wl,'
21868 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21869 if test "$host_cpu" != ia64
; then
21870 lt_prog_compiler_pic_CXX
='+Z'
21874 lt_prog_compiler_wl_CXX
='-Wl,'
21875 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21881 lt_prog_compiler_pic_CXX
='+Z'
21890 # This is c89, which is MS Visual C++ (no shared libs)
21891 # Anyone wants to do a port?
21893 irix5
* | irix6
* | nonstopux
*)
21894 case $cc_basename in
21896 lt_prog_compiler_wl_CXX
='-Wl,'
21897 lt_prog_compiler_static_CXX
='-non_shared'
21898 # CC pic flag -KPIC is the default.
21904 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21905 case $cc_basename in
21908 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21909 lt_prog_compiler_pic_CXX
='-fPIC'
21912 # old Intel C++ for x86_64 which still supported -KPIC.
21913 lt_prog_compiler_wl_CXX
='-Wl,'
21914 lt_prog_compiler_pic_CXX
='-KPIC'
21915 lt_prog_compiler_static_CXX
='-static'
21918 # Intel C++, used to be incompatible with GCC.
21919 # ICC 10 doesn't accept -KPIC any more.
21920 lt_prog_compiler_wl_CXX
='-Wl,'
21921 lt_prog_compiler_pic_CXX
='-fPIC'
21922 lt_prog_compiler_static_CXX
='-static'
21925 # Portland Group C++ compiler
21926 lt_prog_compiler_wl_CXX
='-Wl,'
21927 lt_prog_compiler_pic_CXX
='-fpic'
21928 lt_prog_compiler_static_CXX
='-Bstatic'
21932 # Make sure the PIC flag is empty. It appears that all Alpha
21933 # Linux and Compaq Tru64 Unix objects are PIC.
21934 lt_prog_compiler_pic_CXX
=
21935 lt_prog_compiler_static_CXX
='-non_shared'
21937 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21938 # IBM XL 8.0, 9.0 on PPC and BlueGene
21939 lt_prog_compiler_wl_CXX
='-Wl,'
21940 lt_prog_compiler_pic_CXX
='-qpic'
21941 lt_prog_compiler_static_CXX
='-qstaticlink'
21944 case `$CC -V 2>&1 | sed 5q` in
21947 lt_prog_compiler_pic_CXX
='-KPIC'
21948 lt_prog_compiler_static_CXX
='-Bstatic'
21949 lt_prog_compiler_wl_CXX
='-Qoption ld '
21960 case $cc_basename in
21962 lt_prog_compiler_pic_CXX
='-W c,exportall'
21971 # QNX uses GNU C++, but need to define -shared option too, otherwise
21972 # it will coredump.
21973 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21975 osf3
* | osf4
* | osf5
*)
21976 case $cc_basename in
21978 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21981 # Rational C++ 2.4.1
21982 lt_prog_compiler_pic_CXX
='-pic'
21985 # Digital/Compaq C++
21986 lt_prog_compiler_wl_CXX
='-Wl,'
21987 # Make sure the PIC flag is empty. It appears that all Alpha
21988 # Linux and Compaq Tru64 Unix objects are PIC.
21989 lt_prog_compiler_pic_CXX
=
21990 lt_prog_compiler_static_CXX
='-non_shared'
21999 case $cc_basename in
22001 # Sun C++ 4.2, 5.x and Centerline C++
22002 lt_prog_compiler_pic_CXX
='-KPIC'
22003 lt_prog_compiler_static_CXX
='-Bstatic'
22004 lt_prog_compiler_wl_CXX
='-Qoption ld '
22007 # Green Hills C++ Compiler
22008 lt_prog_compiler_pic_CXX
='-PIC'
22015 case $cc_basename in
22018 lt_prog_compiler_pic_CXX
='-pic'
22019 lt_prog_compiler_static_CXX
='-Bstatic'
22023 lt_prog_compiler_pic_CXX
='-pic'
22029 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
22030 case $cc_basename in
22032 lt_prog_compiler_wl_CXX
='-Wl,'
22033 lt_prog_compiler_pic_CXX
='-KPIC'
22034 lt_prog_compiler_static_CXX
='-Bstatic'
22039 case $cc_basename in
22041 # NonStop-UX NCC 3.20
22042 lt_prog_compiler_pic_CXX
='-KPIC'
22051 lt_prog_compiler_can_build_shared_CXX
=no
22057 # For platforms which do not support PIC, -DPIC is meaningless:
22059 lt_prog_compiler_pic_CXX
=
22062 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22066 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22071 # Check to make sure the PIC flag actually works.
22073 if test -n "$lt_prog_compiler_pic_CXX"; then
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22075 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22076 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
22077 $as_echo_n "(cached) " >&6
22079 lt_cv_prog_compiler_pic_works_CXX
=no
22080 ac_outfile
=conftest.
$ac_objext
22081 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22082 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
22083 # Insert the option either (1) after the last *FLAGS variable, or
22084 # (2) before a word containing "conftest.", or (3) at the end.
22085 # Note that $ac_compile itself does not contain backslashes and begins
22086 # with a dollar sign (not a hyphen), so the echo should work correctly.
22087 # The option is referenced via a variable to avoid confusing sed.
22088 lt_compile
=`echo "$ac_compile" | $SED \
22089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22091 -e 's:$: $lt_compiler_flag:'`
22092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22093 (eval "$lt_compile" 2>conftest.err
)
22095 cat conftest.err
>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 if (exit $ac_status) && test -s "$ac_outfile"; then
22098 # The compiler can only warn and ignore the option if not recognized
22099 # So say no if there are warnings other than the usual output.
22100 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
22101 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22102 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
22103 lt_cv_prog_compiler_pic_works_CXX
=yes
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22110 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22112 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
22113 case $lt_prog_compiler_pic_CXX in
22115 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
22118 lt_prog_compiler_pic_CXX
=
22119 lt_prog_compiler_can_build_shared_CXX
=no
22127 # Check to make sure the static flag actually works.
22129 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22131 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22132 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
22133 $as_echo_n "(cached) " >&6
22135 lt_cv_prog_compiler_static_works_CXX
=no
22136 save_LDFLAGS
="$LDFLAGS"
22137 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
22138 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
22139 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
22140 # The linker can only warn and ignore the option if not recognized
22141 # So say no if there are warnings
22142 if test -s conftest.err
; then
22143 # Append any errors to the config.log.
22144 cat conftest.err
1>&5
22145 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
22146 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22147 if diff conftest.exp conftest.er2
>/dev
/null
; then
22148 lt_cv_prog_compiler_static_works_CXX
=yes
22151 lt_cv_prog_compiler_static_works_CXX
=yes
22155 LDFLAGS
="$save_LDFLAGS"
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22159 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22161 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
22164 lt_prog_compiler_static_CXX
=
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22171 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22172 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22173 $as_echo_n "(cached) " >&6
22175 lt_cv_prog_compiler_c_o_CXX
=no
22176 $RM -r conftest
2>/dev
/null
22180 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22182 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22183 # Insert the option either (1) after the last *FLAGS variable, or
22184 # (2) before a word containing "conftest.", or (3) at the end.
22185 # Note that $ac_compile itself does not contain backslashes and begins
22186 # with a dollar sign (not a hyphen), so the echo should work correctly.
22187 lt_compile
=`echo "$ac_compile" | $SED \
22188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22190 -e 's:$: $lt_compiler_flag:'`
22191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22192 (eval "$lt_compile" 2>out
/conftest.err
)
22194 cat out
/conftest.err
>&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22198 # The compiler can only warn and ignore the option if not recognized
22199 # So say no if there are warnings
22200 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22201 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22202 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22203 lt_cv_prog_compiler_c_o_CXX
=yes
22208 # SGI C++ compiler will create directory out/ii_files/ for
22209 # template instantiation
22210 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22211 $RM out
/* && rmdir out
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22218 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22223 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22224 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22225 $as_echo_n "(cached) " >&6
22227 lt_cv_prog_compiler_c_o_CXX
=no
22228 $RM -r conftest
2>/dev
/null
22232 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22234 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22235 # Insert the option either (1) after the last *FLAGS variable, or
22236 # (2) before a word containing "conftest.", or (3) at the end.
22237 # Note that $ac_compile itself does not contain backslashes and begins
22238 # with a dollar sign (not a hyphen), so the echo should work correctly.
22239 lt_compile
=`echo "$ac_compile" | $SED \
22240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22242 -e 's:$: $lt_compiler_flag:'`
22243 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22244 (eval "$lt_compile" 2>out
/conftest.err
)
22246 cat out
/conftest.err
>&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22250 # The compiler can only warn and ignore the option if not recognized
22251 # So say no if there are warnings
22252 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22253 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22254 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22255 lt_cv_prog_compiler_c_o_CXX
=yes
22260 # SGI C++ compiler will create directory out/ii_files/ for
22261 # template instantiation
22262 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22263 $RM out
/* && rmdir out
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22270 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22275 hard_links
="nottested"
22276 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
22277 # do not overwrite the value of need_locks provided by the user
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22279 $as_echo_n "checking if we can lock with hard links... " >&6; }
22282 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22284 ln conftest.a conftest.b
2>&5 || hard_links
=no
22285 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22287 $as_echo "$hard_links" >&6; }
22288 if test "$hard_links" = no
; then
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22290 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22300 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22302 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22305 # If we're using GNU nm, then we don't want the "-C" option.
22306 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22307 # Also, AIX nm treats weak defined symbols like other global defined
22308 # symbols, whereas GNU nm marks them as "W".
22309 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22310 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'
22312 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'
22316 export_symbols_cmds_CXX
="$ltdll_cmds"
22318 cygwin
* | mingw
* | cegcc
*)
22319 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'
22322 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22325 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22328 $as_echo "$ld_shlibs_CXX" >&6; }
22329 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22331 with_gnu_ld_CXX
=$with_gnu_ld
22339 # Do we need to explicitly link libc?
22341 case "x$archive_cmds_need_lc_CXX" in
22343 # Assume -lc should be added
22344 archive_cmds_need_lc_CXX
=yes
22346 if test "$enable_shared" = yes && test "$GCC" = yes; then
22347 case $archive_cmds_CXX in
22349 # FIXME: we may have to deal with multi-command sequences.
22352 # Test whether the compiler implicitly links with -lc since on some
22353 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22354 # to ld, don't add -lc before -lgcc.
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22356 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22357 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22358 $as_echo_n "(cached) " >&6
22361 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22364 (eval $ac_compile) 2>&5
22366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22367 test $ac_status = 0; } 2>conftest.err
; then
22370 libobjs
=conftest.
$ac_objext
22372 wl
=$lt_prog_compiler_wl_CXX
22373 pic_flag
=$lt_prog_compiler_pic_CXX
22379 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22380 allow_undefined_flag_CXX
=
22381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22382 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22385 test $ac_status = 0; }
22387 lt_cv_archive_cmds_need_lc_CXX
=no
22389 lt_cv_archive_cmds_need_lc_CXX
=yes
22391 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22393 cat conftest.err
1>&5
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22399 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22400 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22471 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22473 library_names_spec
=
22474 libname_spec
='lib$name'
22478 postuninstall_cmds
=
22482 shlibpath_overrides_runpath
=unknown
22484 dynamic_linker
="$host_os ld.so"
22485 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22486 need_lib_prefix
=unknown
22487 hardcode_into_libs
=no
22489 # when you set need_version to no, make sure it does not cause -set_version
22490 # flags to be left without arguments
22491 need_version
=unknown
22496 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22497 shlibpath_var
=LIBPATH
22499 # AIX 3 has no versioning support, so we append a major version to the name.
22500 soname_spec
='${libname}${release}${shared_ext}$major'
22507 hardcode_into_libs
=yes
22508 if test "$host_cpu" = ia64
; then
22509 # AIX 5 supports IA64
22510 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22511 shlibpath_var
=LD_LIBRARY_PATH
22513 # With GCC up to 2.95.x, collect2 would create an import file
22514 # for dependence libraries. The import file would start with
22515 # the line `#! .'. This would cause the generated library to
22516 # depend on `.', always an invalid library. This was fixed in
22517 # development snapshots of GCC prior to 3.0.
22519 aix4 | aix4.
[01] | aix4.
[01].
*)
22520 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22522 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22525 can_build_shared
=no
22529 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22530 # soname into executable. Probably we can add versioning support to
22531 # collect2, so additional links can be useful in future.
22532 if test "$aix_use_runtimelinking" = yes; then
22533 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22534 # instead of lib<name>.a to let people know that these are not
22535 # typical AIX shared libraries.
22536 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22538 # We preserve .a as extension for shared libraries through AIX4.2
22539 # and later when we are not doing run time linking.
22540 library_names_spec
='${libname}${release}.a $libname.a'
22541 soname_spec
='${libname}${release}${shared_ext}$major'
22543 shlibpath_var
=LIBPATH
22550 # Since July 2007 AmigaOS4 officially supports .so libraries.
22551 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22552 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22555 library_names_spec
='$libname.ixlibrary $libname.a'
22556 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22557 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'
22563 library_names_spec
='${libname}${shared_ext}'
22564 dynamic_linker
="$host_os ld.so"
22565 shlibpath_var
=LIBRARY_PATH
22571 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22572 soname_spec
='${libname}${release}${shared_ext}$major'
22573 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22574 shlibpath_var
=LD_LIBRARY_PATH
22575 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22576 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22577 # the default ld.so.conf also contains /usr/contrib/lib and
22578 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22579 # libtool to hard-code these into programs
22582 cygwin
* | mingw
* | pw32
* | cegcc
*)
22583 version_type
=windows
22588 case $GCC,$host_os in
22589 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22590 library_names_spec
='$libname.dll.a'
22591 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22592 postinstall_cmds
='base_file=`basename \${file}`~
22593 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22594 dldir=$destdir/`dirname \$dlpath`~
22595 test -d \$dldir || mkdir -p \$dldir~
22596 $install_prog $dir/$dlname \$dldir/$dlname~
22597 chmod a+x \$dldir/$dlname~
22598 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22599 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22601 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22602 dlpath=$dir/\$dldll~
22604 shlibpath_overrides_runpath
=yes
22608 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22609 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22613 # MinGW DLLs use traditional 'lib' prefix
22614 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22617 # pw32 DLLs use 'pw' prefix rather than 'lib'
22618 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22624 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22627 dynamic_linker
='Win32 ld.exe'
22628 # FIXME: first we should search . and the directory the executable is in
22632 darwin
* | rhapsody
*)
22633 dynamic_linker
="$host_os dyld"
22634 version_type
=darwin
22637 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22638 soname_spec
='${libname}${release}${major}$shared_ext'
22639 shlibpath_overrides_runpath
=yes
22640 shlibpath_var
=DYLD_LIBRARY_PATH
22641 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22643 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22651 soname_spec
='${libname}${release}${shared_ext}$major'
22652 shlibpath_var
=LD_LIBRARY_PATH
22655 freebsd
* | dragonfly
*)
22656 # DragonFly does not have aout. When/if they implement a new
22657 # versioning mechanism, adjust this.
22658 if test -x /usr
/bin
/objformat
; then
22659 objformat
=`/usr/bin/objformat`
22662 freebsd
[23].
*) objformat
=aout
;;
22663 *) objformat
=elf
;;
22666 version_type
=freebsd-
$objformat
22667 case $version_type in
22669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22674 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22678 shlibpath_var
=LD_LIBRARY_PATH
22681 shlibpath_overrides_runpath
=yes
22683 freebsd3.
[01]* | freebsdelf3.
[01]*)
22684 shlibpath_overrides_runpath
=yes
22685 hardcode_into_libs
=yes
22687 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22688 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22689 shlibpath_overrides_runpath
=no
22690 hardcode_into_libs
=yes
22692 *) # from 4.6 on, and DragonFly
22693 shlibpath_overrides_runpath
=yes
22694 hardcode_into_libs
=yes
22703 dynamic_linker
="$host_os runtime_loader"
22704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22705 soname_spec
='${libname}${release}${shared_ext}$major'
22706 shlibpath_var
=LIBRARY_PATH
22707 shlibpath_overrides_runpath
=yes
22708 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22709 hardcode_into_libs
=yes
22712 hpux9
* | hpux10
* | hpux11
*)
22713 # Give a soname corresponding to the major version so that dld.sl refuses to
22714 # link against other versions.
22721 hardcode_into_libs
=yes
22722 dynamic_linker
="$host_os dld.so"
22723 shlibpath_var
=LD_LIBRARY_PATH
22724 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22726 soname_spec
='${libname}${release}${shared_ext}$major'
22727 if test "X$HPUX_IA64_MODE" = X32
; then
22728 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22730 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22732 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22736 hardcode_into_libs
=yes
22737 dynamic_linker
="$host_os dld.sl"
22738 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22739 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22740 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22741 soname_spec
='${libname}${release}${shared_ext}$major'
22742 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22743 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22747 dynamic_linker
="$host_os dld.sl"
22748 shlibpath_var
=SHLIB_PATH
22749 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22751 soname_spec
='${libname}${release}${shared_ext}$major'
22754 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22755 postinstall_cmds
='chmod 555 $lib'
22756 # or fails outright, so override atomically:
22757 install_override_mode
=555
22764 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22765 soname_spec
='${libname}${release}${shared_ext}$major'
22766 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22767 shlibpath_var
=LD_LIBRARY_PATH
22768 shlibpath_overrides_runpath
=no
22769 hardcode_into_libs
=yes
22772 irix5
* | irix6
* | nonstopux
*)
22774 nonstopux
*) version_type
=nonstopux
;;
22776 if test "$lt_cv_prog_gnu_ld" = yes; then
22784 soname_spec
='${libname}${release}${shared_ext}$major'
22785 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22787 irix5
* | nonstopux
*)
22788 libsuff
= shlibsuff
=
22791 case $LD in # libtool.m4 will add one of these switches to LD
22792 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22793 libsuff
= shlibsuff
= libmagic
=32-bit;;
22794 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22795 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22796 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22797 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22798 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22802 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22803 shlibpath_overrides_runpath
=no
22804 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22805 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22806 hardcode_into_libs
=yes
22809 # No shared lib support for Linux oldld, aout, or coff.
22810 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22814 # This must be Linux ELF.
22816 # uclinux* changes (here and below) have been submitted to the libtool
22817 # project, but have not yet been accepted: they are GCC-local changes
22818 # for the time being. (See
22819 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22820 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22824 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825 soname_spec
='${libname}${release}${shared_ext}$major'
22826 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22827 shlibpath_var
=LD_LIBRARY_PATH
22828 shlibpath_overrides_runpath
=no
22830 # Some binutils ld are patched to set DT_RUNPATH
22831 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22832 $as_echo_n "(cached) " >&6
22834 lt_cv_shlibpath_overrides_runpath
=no
22835 save_LDFLAGS
=$LDFLAGS
22836 save_libdir
=$libdir
22837 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22838 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22840 /* end confdefs.h. */
22850 if ac_fn_cxx_try_link
"$LINENO"; then :
22851 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22852 lt_cv_shlibpath_overrides_runpath
=yes
22855 rm -f core conftest.err conftest.
$ac_objext \
22856 conftest
$ac_exeext conftest.
$ac_ext
22857 LDFLAGS
=$save_LDFLAGS
22858 libdir
=$save_libdir
22862 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22864 # This implies no fast_install, which is unacceptable.
22865 # Some rework will be needed to allow for fast_install
22866 # before this can be enabled.
22867 hardcode_into_libs
=yes
22869 # Append ld.so.conf contents to the search path
22870 if test -f /etc
/ld.so.conf
; then
22871 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' ' '`
22872 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22875 # We used to test for /lib/ld.so.1 and disable shared libraries on
22876 # powerpc, because MkLinux only supported shared libraries with the
22877 # GNU dynamic linker. Since this was broken with cross compilers,
22878 # most powerpc-linux boxes support dynamic linking these days and
22879 # people can always --disable-shared, the test was removed, and we
22880 # assume the GNU/Linux dynamic linker is in use.
22881 dynamic_linker
='GNU/Linux ld.so'
22888 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22890 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22891 dynamic_linker
='NetBSD (a.out) ld.so'
22893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22894 soname_spec
='${libname}${release}${shared_ext}$major'
22895 dynamic_linker
='NetBSD ld.elf_so'
22897 shlibpath_var
=LD_LIBRARY_PATH
22898 shlibpath_overrides_runpath
=yes
22899 hardcode_into_libs
=yes
22904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22905 shlibpath_var
=LD_LIBRARY_PATH
22906 shlibpath_overrides_runpath
=yes
22913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22914 soname_spec
='${libname}${release}${shared_ext}$major'
22915 shlibpath_var
=LD_LIBRARY_PATH
22916 shlibpath_overrides_runpath
=no
22917 hardcode_into_libs
=yes
22918 dynamic_linker
='ldqnx.so'
22923 sys_lib_dlsearch_path_spec
="/usr/lib"
22925 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22927 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22928 *) need_version
=no
;;
22930 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22931 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22932 shlibpath_var
=LD_LIBRARY_PATH
22933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22935 openbsd2.
[89] | openbsd2.
[89].
*)
22936 shlibpath_overrides_runpath
=no
22939 shlibpath_overrides_runpath
=yes
22943 shlibpath_overrides_runpath
=yes
22948 libname_spec
='$name'
22951 library_names_spec
='$libname${shared_ext} $libname.a'
22952 dynamic_linker
='OS/2 ld.exe'
22953 shlibpath_var
=LIBPATH
22956 osf3
* | osf4
* | osf5
*)
22960 soname_spec
='${libname}${release}${shared_ext}$major'
22961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962 shlibpath_var
=LD_LIBRARY_PATH
22963 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22964 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22976 soname_spec
='${libname}${release}${shared_ext}$major'
22977 shlibpath_var
=LD_LIBRARY_PATH
22978 shlibpath_overrides_runpath
=yes
22979 hardcode_into_libs
=yes
22980 # ldd complains unless libraries are executable
22981 postinstall_cmds
='chmod +x $lib'
22986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22987 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22988 shlibpath_var
=LD_LIBRARY_PATH
22989 shlibpath_overrides_runpath
=yes
22990 if test "$with_gnu_ld" = yes; then
22998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22999 soname_spec
='${libname}${release}${shared_ext}$major'
23000 shlibpath_var
=LD_LIBRARY_PATH
23001 case $host_vendor in
23003 shlibpath_overrides_runpath
=no
23005 runpath_var
=LD_RUN_PATH
23013 shlibpath_overrides_runpath
=no
23014 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23020 if test -d /usr
/nec
;then
23022 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23023 soname_spec
='$libname${shared_ext}.$major'
23024 shlibpath_var
=LD_LIBRARY_PATH
23028 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23029 version_type
=freebsd-elf
23032 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23033 soname_spec
='${libname}${release}${shared_ext}$major'
23034 shlibpath_var
=LD_LIBRARY_PATH
23035 shlibpath_overrides_runpath
=yes
23036 hardcode_into_libs
=yes
23037 if test "$with_gnu_ld" = yes; then
23038 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23040 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23043 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23047 sys_lib_dlsearch_path_spec
='/usr/lib'
23051 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23056 shlibpath_var
=LD_LIBRARY_PATH
23057 shlibpath_overrides_runpath
=no
23058 hardcode_into_libs
=yes
23063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23064 soname_spec
='${libname}${release}${shared_ext}$major'
23065 shlibpath_var
=LD_LIBRARY_PATH
23068 # Shared libraries for VwWorks, >= 7 only at this stage
23069 # and (fpic) still incompatible with "large" code models
23070 # in a few configurations. Only for RTP mode in any case,
23071 # and upon explicit request at configure time.
23074 case ${with_multisubdir}-${enable_shared} in
23081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23082 soname_spec
='${libname}${release}${shared_ext}$major'
23083 dynamic_linker
="$host_os module_loader"
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23092 $as_echo "$dynamic_linker" >&6; }
23093 test "$dynamic_linker" = no
&& can_build_shared
=no
23095 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23096 if test "$GCC" = yes; then
23097 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23100 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23101 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
23103 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23104 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23145 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23146 hardcode_action_CXX
=
23147 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23148 test -n "$runpath_var_CXX" ||
23149 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23151 # We can hardcode non-existent directories.
23152 if test "$hardcode_direct_CXX" != no
&&
23153 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23154 # have to relink, otherwise we might link with an installed library
23155 # when we should be linking with a yet-to-be-installed one
23156 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23157 test "$hardcode_minus_L_CXX" != no
; then
23158 # Linking always hardcodes the temporary library directory.
23159 hardcode_action_CXX
=relink
23161 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23162 hardcode_action_CXX
=immediate
23165 # We cannot hardcode anything, or else we can only hardcode existing
23167 hardcode_action_CXX
=unsupported
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23170 $as_echo "$hardcode_action_CXX" >&6; }
23172 if test "$hardcode_action_CXX" = relink ||
23173 test "$inherit_rpath_CXX" = yes; then
23174 # Fast installation is not supported
23175 enable_fast_install
=no
23176 elif test "$shlibpath_overrides_runpath" = yes ||
23177 test "$enable_shared" = no
; then
23178 # Fast installation is not necessary
23179 enable_fast_install
=needless
23188 fi # test -n "$compiler"
23194 with_gnu_ld
=$lt_save_with_gnu_ld
23195 lt_cv_path_LDCXX
=$lt_cv_path_LD
23196 lt_cv_path_LD
=$lt_save_path_LD
23197 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
23198 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
23199 fi # test "$_lt_caught_CXX_error" != yes
23202 ac_cpp
='$CXXCPP $CPPFLAGS'
23203 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23204 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23205 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23222 # Only expand once:
23228 # Identify the assembler which will work hand-in-glove with the newly
23229 # built GCC, so that we can examine its features. This is the assembler
23230 # which will be driven by the driver program.
23232 # If build != host, and we aren't building gas in-tree, we identify a
23233 # build->target assembler and hope that it will have the same features
23234 # as the host->target assembler we'll be using.
23235 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23237 if ${gcc_cv_as+:} false
; then :
23241 if test -x "$DEFAULT_ASSEMBLER"; then
23242 gcc_cv_as
="$DEFAULT_ASSEMBLER"
23243 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23244 && test -f ..
/gas
/Makefile \
23245 && test x
$build = x
$host; then
23246 gcc_cv_as
=..
/gas
/as-new
$build_exeext
23247 elif test -x as
$build_exeext; then
23248 # Build using assembler in the current directory.
23249 gcc_cv_as
=.
/as
$build_exeext
23250 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
23251 gcc_cv_as
="$AS_FOR_TARGET"
23253 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23254 set dummy
$AS_FOR_TARGET; ac_word
=$2
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23256 $as_echo_n "checking for $ac_word... " >&6; }
23257 if ${ac_cv_path_gcc_cv_as+:} false
; then :
23258 $as_echo_n "(cached) " >&6
23262 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
23265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23266 for as_dir
in $PATH
23269 test -z "$as_dir" && as_dir
=.
23270 for ac_exec_ext
in '' $ac_executable_extensions; do
23271 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23272 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
23273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23283 gcc_cv_as
=$ac_cv_path_gcc_cv_as
23284 if test -n "$gcc_cv_as"; then
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23286 $as_echo "$gcc_cv_as" >&6; }
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23289 $as_echo "no" >&6; }
23296 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
23298 case "$ORIGINAL_AS_FOR_TARGET" in
23299 .
/as | .
/as
$build_exeext) ;;
23300 *) ac_config_files
="$ac_config_files as:exec-tool.in"
23305 # Check whether --enable-ld was given.
23306 if test "${enable_ld+set}" = set; then :
23307 enableval
=$enable_ld; case "${enableval}" in
23315 install_gold_as_default
=no
23316 # Check whether --enable-gold was given.
23317 if test "${enable_gold+set}" = set; then :
23318 enableval
=$enable_gold; case "${enableval}" in
23320 install_gold_as_default
=yes
23323 if test x
${default_ld} != x
; then
23324 install_gold_as_default
=yes
23330 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23336 # Identify the linker which will work hand-in-glove with the newly
23337 # built GCC, so that we can examine its features. This is the linker
23338 # which will be driven by the driver program.
23340 # If build != host, and we aren't building gas in-tree, we identify a
23341 # build->target linker and hope that it will have the same features
23342 # as the host->target linker we'll be using.
23343 gcc_cv_gld_major_version
=
23344 gcc_cv_gld_minor_version
=
23345 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23346 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23347 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23349 if ${gcc_cv_ld+:} false
; then :
23353 if test -x "$DEFAULT_LINKER"; then
23354 gcc_cv_ld
="$DEFAULT_LINKER"
23355 elif test $install_gold_as_default = yes \
23356 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23357 && test -f ..
/gold
/Makefile \
23358 && test x
$build = x
$host; then
23359 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23360 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23361 && test -f ..
/ld
/Makefile \
23362 && test x
$build = x
$host; then
23363 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23364 elif test -x collect-ld
$build_exeext; then
23365 # Build using linker in the current directory.
23366 gcc_cv_ld
=.
/collect-ld
$build_exeext
23367 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23368 gcc_cv_ld
="$LD_FOR_TARGET"
23370 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23371 set dummy
$LD_FOR_TARGET; ac_word
=$2
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23373 $as_echo_n "checking for $ac_word... " >&6; }
23374 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23375 $as_echo_n "(cached) " >&6
23379 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23383 for as_dir
in $PATH
23386 test -z "$as_dir" && as_dir
=.
23387 for ac_exec_ext
in '' $ac_executable_extensions; do
23388 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23389 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23400 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23401 if test -n "$gcc_cv_ld"; then
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23403 $as_echo "$gcc_cv_ld" >&6; }
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23406 $as_echo "no" >&6; }
23413 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23414 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23415 # if the PLUGIN_LD is set ld-new, just have it as ld
23416 # as that is the installed named.
23417 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23418 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23419 PLUGIN_LD_SUFFIX
=ld
23422 # Check whether --with-plugin-ld was given.
23423 if test "${with_plugin_ld+set}" = set; then :
23424 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23425 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23426 PLUGIN_LD_SUFFIX
="$withval"
23432 cat >>confdefs.h
<<_ACEOF
23433 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23437 # Check to see if we are using gold instead of ld
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23439 $as_echo_n "checking whether we are using gold... " >&6; }
23441 if test x
$gcc_cv_ld != x
; then
23442 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23443 |
grep "GNU gold" > /dev
/null
; then
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23448 $as_echo "$ld_is_gold" >&6; }
23450 # Check to see if we are using mold instead of ld
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23452 $as_echo_n "checking whether we are using mold... " >&6; }
23454 if test x
$gcc_cv_ld != x
; then
23455 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23456 |
grep "mold" > /dev
/null
; then
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23461 $as_echo "$ld_is_mold" >&6; }
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23465 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23466 # Check to see if default ld is not gold, but gold is
23467 # available and has support for split stack. If gcc was configured
23468 # with gold then no checking is done.
23470 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23472 # For platforms other than powerpc64*, enable as appropriate.
23474 gold_non_default
=no
23475 ld_gold
=`which ${gcc_cv_ld}.gold`
23476 # Make sure this gold has minimal split stack support
23477 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23478 ld_vers
=`$ld_gold --version | sed 1q`
23479 gold_vers
=`echo $ld_vers | sed -n \
23480 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23482 # check that the gold version contains the complete split stack support
23483 # on powerpc64 big and little endian
23485 case "$gold_vers" in
23486 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23488 *) gold_non_default
=no
23494 if test $gold_non_default = yes; then
23496 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23501 $as_echo "$gold_non_default" >&6; }
23503 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23505 case "$ORIGINAL_LD_FOR_TARGET" in
23506 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23507 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23512 $as_echo_n "checking what linker to use... " >&6; }
23513 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23514 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23515 # Single tree build which includes ld. We want to prefer it
23516 # over whatever linker top-level may have detected, since
23517 # we'll use what we're building after installation anyway.
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23519 $as_echo "newly built ld" >&6; }
23521 in_tree_ld_is_elf
=no
23522 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23523 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23524 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23525 in_tree_ld_is_elf
=yes
23526 elif test "$ld_is_gold" = yes; then
23527 in_tree_ld_is_elf
=yes
23529 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
23531 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23532 if test x
$gcc_cv_gld_version != x
; then
23536 case $gcc_cv_gld_version in
23538 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23540 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23541 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23542 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23543 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23546 $as_echo "$gcc_cv_ld" >&6; }
23548 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23549 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23550 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23556 # Figure out what nm we will be using.
23557 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23558 if ${gcc_cv_nm+:} false
; then :
23562 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23563 && test -f ..
/binutils
/Makefile \
23564 && test x
$build = x
$host; then
23565 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23566 elif test -x nm
$build_exeext; then
23567 gcc_cv_nm
=.
/nm
$build_exeext
23568 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23569 gcc_cv_nm
="$NM_FOR_TARGET"
23571 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23572 set dummy
$NM_FOR_TARGET; ac_word
=$2
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23574 $as_echo_n "checking for $ac_word... " >&6; }
23575 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23576 $as_echo_n "(cached) " >&6
23580 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23584 for as_dir
in $PATH
23587 test -z "$as_dir" && as_dir
=.
23588 for ac_exec_ext
in '' $ac_executable_extensions; do
23589 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23590 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23601 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23602 if test -n "$gcc_cv_nm"; then
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23604 $as_echo "$gcc_cv_nm" >&6; }
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23607 $as_echo "no" >&6; }
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23615 $as_echo_n "checking what nm to use... " >&6; }
23616 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23617 # Single tree build which includes binutils.
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23619 $as_echo "newly built nm" >&6; }
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23623 $as_echo "$gcc_cv_nm" >&6; }
23627 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23629 case "$ORIGINAL_NM_FOR_TARGET" in
23630 .
/nm | .
/nm
$build_exeext) ;;
23631 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23636 # Figure out what objdump we will be using.
23637 if ${gcc_cv_objdump+:} false
; then :
23641 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23642 && test -f ..
/binutils
/Makefile \
23643 && test x
$build = x
$host; then
23644 # Single tree build which includes binutils.
23645 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23646 elif test -x objdump
$build_exeext; then
23647 gcc_cv_objdump
=.
/objdump
$build_exeext
23648 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23649 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23651 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23652 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23654 $as_echo_n "checking for $ac_word... " >&6; }
23655 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23656 $as_echo_n "(cached) " >&6
23658 case $gcc_cv_objdump in
23660 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23664 for as_dir
in $PATH
23667 test -z "$as_dir" && as_dir
=.
23668 for ac_exec_ext
in '' $ac_executable_extensions; do
23669 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23670 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23681 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23682 if test -n "$gcc_cv_objdump"; then
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23684 $as_echo "$gcc_cv_objdump" >&6; }
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23687 $as_echo "no" >&6; }
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23695 $as_echo_n "checking what objdump to use... " >&6; }
23696 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23697 # Single tree build which includes binutils.
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23699 $as_echo "newly built objdump" >&6; }
23700 elif test x
$gcc_cv_objdump = x
; then
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23702 $as_echo "not found" >&6; }
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23705 $as_echo "$gcc_cv_objdump" >&6; }
23708 # Figure out what readelf we will be using.
23709 if ${gcc_cv_readelf+:} false
; then :
23713 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23714 && test -f ..
/binutils
/Makefile \
23715 && test x
$build = x
$host; then
23716 # Single tree build which includes binutils.
23717 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23718 elif test -x readelf
$build_exeext; then
23719 gcc_cv_readelf
=.
/readelf
$build_exeext
23720 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23721 gcc_cv_readelf
="$READELF_FOR_TARGET"
23723 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23724 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23726 $as_echo_n "checking for $ac_word... " >&6; }
23727 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23728 $as_echo_n "(cached) " >&6
23730 case $gcc_cv_readelf in
23732 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23736 for as_dir
in $PATH
23739 test -z "$as_dir" && as_dir
=.
23740 for ac_exec_ext
in '' $ac_executable_extensions; do
23741 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23742 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23753 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23754 if test -n "$gcc_cv_readelf"; then
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23756 $as_echo "$gcc_cv_readelf" >&6; }
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23759 $as_echo "no" >&6; }
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23767 $as_echo_n "checking what readelf to use... " >&6; }
23768 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23769 # Single tree build which includes binutils.
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23771 $as_echo "newly built readelf" >&6; }
23772 elif test x
$gcc_cv_readelf = x
; then
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23774 $as_echo "not found" >&6; }
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23777 $as_echo "$gcc_cv_readelf" >&6; }
23780 # Figure out what otool we will be using.
23781 if ${gcc_cv_otool+:} false
; then :
23785 if test -x otool
$build_exeext; then
23786 gcc_cv_otool
=.
/otool
$build_exeext
23787 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23788 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23790 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23791 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23793 $as_echo_n "checking for $ac_word... " >&6; }
23794 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23795 $as_echo_n "(cached) " >&6
23797 case $gcc_cv_otool in
23799 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23803 for as_dir
in $PATH
23806 test -z "$as_dir" && as_dir
=.
23807 for ac_exec_ext
in '' $ac_executable_extensions; do
23808 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23809 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23820 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23821 if test -n "$gcc_cv_otool"; then
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23823 $as_echo "$gcc_cv_otool" >&6; }
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23826 $as_echo "no" >&6; }
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23834 $as_echo_n "checking what otool to use... " >&6; }
23835 if test x
$gcc_cv_otool = x
; then
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23837 $as_echo "not found" >&6; }
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23840 $as_echo "$gcc_cv_otool" >&6; }
23843 # Figure out the dsymutil we will use.
23844 if ${gcc_cv_dsymutil+:} false
; then :
23848 if test -x "$DEFAULT_DSYMUTIL"; then
23849 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
23850 elif test -x dsymutil
$build_exeext; then
23851 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
23852 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
23853 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
23854 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
23855 gcc_cv_dsymutil
=$DSYMUTIL
23857 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23858 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23860 $as_echo_n "checking for $ac_word... " >&6; }
23861 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
23862 $as_echo_n "(cached) " >&6
23864 case $gcc_cv_dsymutil in
23866 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
23869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23870 for as_dir
in $PATH
23873 test -z "$as_dir" && as_dir
=.
23874 for ac_exec_ext
in '' $ac_executable_extensions; do
23875 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23876 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
23877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23887 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
23888 if test -n "$gcc_cv_dsymutil"; then
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23890 $as_echo "$gcc_cv_dsymutil" >&6; }
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23893 $as_echo "no" >&6; }
23900 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
23902 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23903 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
23904 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
23908 # Figure out what assembler alignment features are present.
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23910 $as_echo_n "checking assembler flags... " >&6; }
23911 if ${gcc_cv_as_flags+:} false
; then :
23912 $as_echo_n "(cached) " >&6
23915 i
[34567]86-*-linux*)
23916 gcc_cv_as_flags
=--32
23918 x86_64-
*-linux-gnux32)
23919 gcc_cv_as_flags
=--x32
23922 gcc_cv_as_flags
=--64
23924 powerpc
*-*-darwin*)
23925 gcc_cv_as_flags
="-arch ppc"
23928 gcc_cv_as_flags
=" "
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23933 $as_echo "$gcc_cv_as_flags" >&6; }
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23936 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23937 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23938 $as_echo_n "(cached) " >&6
23940 gcc_cv_as_balign_and_p2align
=no
23941 if test x
$gcc_cv_as != x
; then
23942 $as_echo '.balign 4
23943 .p2align 2' > conftest.s
23944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23946 (eval $ac_try) 2>&5
23948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23949 test $ac_status = 0; }; }
23951 gcc_cv_as_balign_and_p2align
=yes
23953 echo "configure: failed program was" >&5
23956 rm -f conftest.o conftest.s
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23960 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23961 if test $gcc_cv_as_balign_and_p2align = yes; then
23963 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23969 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23970 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23971 $as_echo_n "(cached) " >&6
23973 gcc_cv_as_max_skip_p2align
=no
23974 if test x
$gcc_cv_as != x
; then
23975 $as_echo '.p2align 4,,7' > conftest.s
23976 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23978 (eval $ac_try) 2>&5
23980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23981 test $ac_status = 0; }; }
23983 gcc_cv_as_max_skip_p2align
=yes
23985 echo "configure: failed program was" >&5
23988 rm -f conftest.o conftest.s
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23992 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23993 if test $gcc_cv_as_max_skip_p2align = yes; then
23995 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24001 $as_echo_n "checking assembler for .literal16... " >&6; }
24002 if ${gcc_cv_as_literal16+:} false
; then :
24003 $as_echo_n "(cached) " >&6
24005 gcc_cv_as_literal16
=no
24006 if test x
$gcc_cv_as != x
; then
24007 $as_echo '.literal16' > conftest.s
24008 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24010 (eval $ac_try) 2>&5
24012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013 test $ac_status = 0; }; }
24015 gcc_cv_as_literal16
=yes
24017 echo "configure: failed program was" >&5
24020 rm -f conftest.o conftest.s
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24024 $as_echo "$gcc_cv_as_literal16" >&6; }
24025 if test $gcc_cv_as_literal16 = yes; then
24027 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24033 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24034 if ${gcc_cv_as_subsection_m1+:} false
; then :
24035 $as_echo_n "(cached) " >&6
24037 gcc_cv_as_subsection_m1
=no
24038 if test x
$gcc_cv_as != x
; then
24039 $as_echo 'conftest_label1: .word 0
24041 conftest_label2: .word 0
24042 .previous' > conftest.s
24043 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24045 (eval $ac_try) 2>&5
24047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24048 test $ac_status = 0; }; }
24050 if test x
$gcc_cv_nm != x
; then
24051 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
24052 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
24053 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
24055 else gcc_cv_as_subsection_m1
=yes
24057 rm -f conftest.nm1 conftest.nm2
24060 echo "configure: failed program was" >&5
24063 rm -f conftest.o conftest.s
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24067 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24068 if test $gcc_cv_as_subsection_m1 = yes; then
24070 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24076 $as_echo_n "checking assembler for .weak... " >&6; }
24077 if ${gcc_cv_as_weak+:} false
; then :
24078 $as_echo_n "(cached) " >&6
24081 if test x
$gcc_cv_as != x
; then
24082 $as_echo ' .weak foobar' > conftest.s
24083 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24085 (eval $ac_try) 2>&5
24087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24088 test $ac_status = 0; }; }
24092 echo "configure: failed program was" >&5
24095 rm -f conftest.o conftest.s
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24099 $as_echo "$gcc_cv_as_weak" >&6; }
24100 if test $gcc_cv_as_weak = yes; then
24102 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24108 $as_echo_n "checking assembler for .weakref... " >&6; }
24109 if ${gcc_cv_as_weakref+:} false
; then :
24110 $as_echo_n "(cached) " >&6
24112 gcc_cv_as_weakref
=no
24113 if test x
$gcc_cv_as != x
; then
24114 $as_echo ' .weakref foobar, barfnot' > conftest.s
24115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24117 (eval $ac_try) 2>&5
24119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24120 test $ac_status = 0; }; }
24122 gcc_cv_as_weakref
=yes
24124 echo "configure: failed program was" >&5
24127 rm -f conftest.o conftest.s
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24131 $as_echo "$gcc_cv_as_weakref" >&6; }
24132 if test $gcc_cv_as_weakref = yes; then
24134 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24140 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24141 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
24142 $as_echo_n "(cached) " >&6
24144 gcc_cv_as_nsubspa_comdat
=no
24145 if test x
$gcc_cv_as != x
; then
24146 $as_echo ' .SPACE $TEXT$
24147 .NSUBSPA $CODE$,COMDAT' > conftest.s
24148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24150 (eval $ac_try) 2>&5
24152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24153 test $ac_status = 0; }; }
24155 gcc_cv_as_nsubspa_comdat
=yes
24157 echo "configure: failed program was" >&5
24160 rm -f conftest.o conftest.s
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24164 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24165 if test $gcc_cv_as_nsubspa_comdat = yes; then
24167 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24172 # .hidden needs to be supported in both the assembler and the linker,
24173 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24174 # This is irritatingly difficult to feature test for; we have to check the
24175 # date string after the version number. If we've got an in-tree
24176 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24178 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24179 case "${target}" in
24181 conftest_s
=' .globl foobar,hidden'
24184 conftest_s
=' .hidden foobar
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24189 $as_echo_n "checking assembler for .hidden... " >&6; }
24190 if ${gcc_cv_as_hidden+:} false
; then :
24191 $as_echo_n "(cached) " >&6
24193 gcc_cv_as_hidden
=no
24194 if test x
$gcc_cv_as != x
; then
24195 $as_echo "$conftest_s" > conftest.s
24196 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24198 (eval $ac_try) 2>&5
24200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24201 test $ac_status = 0; }; }
24203 gcc_cv_as_hidden
=yes
24205 echo "configure: failed program was" >&5
24208 rm -f conftest.o conftest.s
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24212 $as_echo "$gcc_cv_as_hidden" >&6; }
24215 case "${target}" in
24217 # Darwin as has some visibility support, though with a different syntax.
24218 gcc_cv_as_hidden
=yes
24222 # gnu_indirect_function type is an extension proposed at
24223 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24224 # selection of function implementation
24225 # Check whether --enable-gnu-indirect-function was given.
24226 if test "${enable_gnu_indirect_function+set}" = set; then :
24227 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24229 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24230 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24233 enable_gnu_indirect_function
="$default_gnu_indirect_function"
24237 case "${target}" in
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24240 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24241 cat > conftest.s
<<EOF
24243 .type foo_resolver, @function
24246 .size foo_resolver, .-foo_resolver
24249 .type foo, %gnu_indirect_function
24250 .set foo, foo_resolver
24253 .type bar, @function
24259 if test x
$gcc_cv_as != x \
24260 && test x
$gcc_cv_ld != x \
24261 && test x
$gcc_cv_readelf != x \
24262 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24263 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24264 && $gcc_cv_readelf --relocs --wide conftest \
24265 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
24266 enable_gnu_indirect_function
=yes
24268 rm -f conftest conftest.o conftest.s
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24270 $as_echo "$enable_gnu_indirect_function" >&6; }
24274 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24276 cat >>confdefs.h
<<_ACEOF
24277 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24282 if test $in_tree_ld != yes ; then
24283 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24284 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24285 if test x
"$ld_is_gold" = xyes
; then
24286 # GNU gold --version looks like this:
24288 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24290 # We extract the binutils version which is more familiar and specific
24291 # than the gold version.
24292 ld_vers
=`echo $ld_ver | sed -n \
24293 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24295 # GNU ld --version looks like this:
24297 # GNU ld (GNU Binutils) 2.21.51.20110225
24298 ld_vers
=`echo $ld_ver | sed -n \
24299 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24301 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'`
24302 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24303 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24304 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24306 case "${target}" in
24308 # Solaris 2 ld -V output looks like this for a regular version:
24310 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24312 # but test versions add stuff at the end:
24314 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24316 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24317 # numbers can be used in ld.so.1 feature checks even if a different
24318 # linker is configured.
24319 ld_ver
=`$gcc_cv_ld -V 2>&1`
24320 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
24321 ld_vers
=`echo $ld_ver | sed -n \
24322 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24323 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24324 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24332 $as_echo_n "checking linker for .hidden support... " >&6; }
24333 if ${gcc_cv_ld_hidden+:} false
; then :
24334 $as_echo_n "(cached) " >&6
24336 if test $in_tree_ld = yes ; then
24337 gcc_cv_ld_hidden
=no
24338 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 \
24339 && test $in_tree_ld_is_elf = yes; then
24340 gcc_cv_ld_hidden
=yes
24343 gcc_cv_ld_hidden
=yes
24344 if test x
"$ld_is_gold" = xyes
; then
24346 elif test x
"$ld_is_mold" = xyes
; then
24348 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24349 if test 0"$ld_date" -lt 20020404; then
24350 if test -n "$ld_date"; then
24351 # If there was date string, but was earlier than 2002-04-04, fail
24352 gcc_cv_ld_hidden
=no
24353 elif test -z "$ld_vers"; then
24354 # If there was no date string nor ld version number, something is wrong
24355 gcc_cv_ld_hidden
=no
24357 test -z "$ld_vers_patch" && ld_vers_patch
=0
24358 if test "$ld_vers_major" -lt 2; then
24359 gcc_cv_ld_hidden
=no
24360 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24361 gcc_cv_ld_hidden
="no"
24362 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24363 gcc_cv_ld_hidden
=no
24368 case "${target}" in
24370 gcc_cv_ld_hidden
=yes
24373 # Darwin ld has some visibility support.
24374 gcc_cv_ld_hidden
=yes
24376 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24377 gcc_cv_ld_hidden
=yes
24380 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24381 # .symbolic was only added in Solaris 9 12/02.
24382 gcc_cv_ld_hidden
=yes
24385 gcc_cv_ld_hidden
=no
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24392 $as_echo "$gcc_cv_ld_hidden" >&6; }
24393 libgcc_visibility
=no
24396 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24397 libgcc_visibility
=yes
24399 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24404 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24405 gcc_cv_ld_ro_rw_mix
=unknown
24406 if test $in_tree_ld = yes ; then
24407 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 \
24408 && test $in_tree_ld_is_elf = yes; then
24409 gcc_cv_ld_ro_rw_mix
=read-write
24411 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24412 echo '.section myfoosect, "a"' > conftest1.s
24413 echo '.section myfoosect, "aw"' > conftest2.s
24414 echo '.byte 1' >> conftest2.s
24415 echo '.section myfoosect, "a"' > conftest3.s
24416 echo '.byte 0' >> conftest3.s
24417 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24418 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24419 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1; then
24420 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24421 conftest2.o conftest3.o
> /dev
/null
2>&1 \
24422 ||
$gcc_cv_ld -r -o conftest1.so conftest1.o \
24423 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24424 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24425 | sed -e '/myfoosect/!d' -e N`
24426 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24427 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24428 gcc_cv_ld_ro_rw_mix
=read-only
24430 gcc_cv_ld_ro_rw_mix
=read-write
24435 rm -f conftest.
* conftest
[123].
*
24437 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24439 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24443 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24445 # Check whether --enable-initfini-array was given.
24446 if test "${enable_initfini_array+set}" = set; then :
24447 enableval
=$enable_initfini_array;
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24451 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24452 if ${gcc_cv_initfini_array+:} false
; then :
24453 $as_echo_n "(cached) " >&6
24455 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24456 case "${target}" in
24458 if test "$cross_compiling" = yes; then :
24459 gcc_cv_initfini_array
=no
24461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24462 /* end confdefs.h. */
24465 #error Not an ELF OS
24467 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24468 if it can be used. */
24470 int main (void) { return x; }
24471 int foo (void) { x = 0; }
24472 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24475 if ac_fn_cxx_try_run
"$LINENO"; then :
24476 gcc_cv_initfini_array
=yes
24478 gcc_cv_initfini_array
=no
24480 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24481 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24485 gcc_cv_initfini_array
=no
24486 if test $in_tree_ld = yes ; then
24487 if test "$gcc_cv_gld_major_version" -eq 2 \
24488 -a "$gcc_cv_gld_minor_version" -ge 22 \
24489 -o "$gcc_cv_gld_major_version" -gt 2 \
24490 && test $in_tree_ld_is_elf = yes; then
24491 gcc_cv_initfini_array
=yes
24493 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24494 case $target:$gas in
24497 sh_type
='%progbits'
24499 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24501 sh_type
='@progbits'
24503 sparc
*-*-solaris2*:no
)
24505 sh_type
='#progbits'
24509 case "$target:$gnu_ld" in
24511 cat > conftest.s
<<EOF
24512 .section .dtors,$sh_flags,$sh_type
24514 .byte 'A', 'A', 'A', 'A'
24515 .section .ctors,$sh_flags,$sh_type
24517 .byte 'B', 'B', 'B', 'B'
24518 .section .fini_array.65530,$sh_flags,$sh_type
24520 .byte 'C', 'C', 'C', 'C'
24521 .section .init_array.65530,$sh_flags,$sh_type
24523 .byte 'D', 'D', 'D', 'D'
24524 .section .dtors.64528,$sh_flags,$sh_type
24526 .byte 'E', 'E', 'E', 'E'
24527 .section .ctors.64528,$sh_flags,$sh_type
24529 .byte 'F', 'F', 'F', 'F'
24530 .section .fini_array.01005,$sh_flags,$sh_type
24532 .byte 'G', 'G', 'G', 'G'
24533 .section .init_array.01005,$sh_flags,$sh_type
24535 .byte 'H', 'H', 'H', 'H'
24540 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24541 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24542 && $gcc_cv_objdump -s -j .init_array conftest \
24543 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24544 && $gcc_cv_objdump -s -j .fini_array conftest \
24545 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24546 gcc_cv_initfini_array
=yes
24550 # When Solaris ld added constructor priority support, it was
24551 # decided to only handle .init_array.N/.fini_array.N since
24552 # there was no need for backwards compatibility with
24553 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24554 # sections with correct execution order resp. to
24555 # .init_array/.fini_array, while gld merges them into
24556 # .init_array/.fini_array.
24557 cat > conftest.s
<<EOF
24558 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24560 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24561 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24563 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24564 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24566 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24567 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24569 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24574 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24575 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24576 && $gcc_cv_objdump -s -j .init_array conftest \
24577 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24578 && $gcc_cv_objdump -s -j .fini_array conftest \
24579 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24580 gcc_cv_initfini_array
=yes
24584 rm -f conftest conftest.
*
24586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24587 /* end confdefs.h. */
24590 # error Not an ELF OS
24592 #include <stdlib.h>
24593 #if defined __GLIBC_PREREQ
24594 # if __GLIBC_PREREQ (2, 4)
24596 # error GLIBC 2.4 required
24599 # if defined __sun__ && defined __svr4__
24600 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24602 # error The C library not known to support .init_array/.fini_array
24607 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24610 gcc_cv_initfini_array
=no
24612 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24615 case "${target}" in
24616 aarch64
*-linux-gnu*)
24617 # AArch64 postdates glibc support for .init_array/.fini_array,
24618 # so we don't need the preprocessor test above.
24619 gcc_cv_initfini_array
=yes
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24624 $as_echo_n "checking cross compile... guessing... " >&6; }
24625 gcc_cv_initfini_array
=no
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24631 $as_echo "$gcc_cv_initfini_array" >&6; }
24632 enable_initfini_array
=$gcc_cv_initfini_array
24637 cat >>confdefs.h
<<_ACEOF
24638 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24643 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24644 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24645 # these directives, even when they appear to accept them.
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24647 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24648 if ${gcc_cv_as_leb128+:} false
; then :
24649 $as_echo_n "(cached) " >&6
24651 gcc_cv_as_leb128
=no
24652 if test x
$gcc_cv_as != x
; then
24659 .uleb128 0x8000000000000000
24661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; }
24669 if test "x$gcc_cv_objdump" != x
; then
24670 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24671 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24672 gcc_cv_as_leb128
=yes
24674 elif test "x$gcc_cv_otool" != x
; then
24675 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24676 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24677 gcc_cv_as_leb128
=yes
24680 # play safe, assume the assembler is broken.
24685 echo "configure: failed program was" >&5
24688 rm -f conftest.o conftest.s
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24692 $as_echo "$gcc_cv_as_leb128" >&6; }
24693 if test $gcc_cv_as_leb128 = yes; then
24695 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24698 if test $gcc_cv_as_leb128 != yes; then
24700 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24704 # Determine if an .eh_frame section is read-only.
24705 gcc_fn_eh_frame_ro
() {
24706 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24707 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24708 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24711 # Check if we have assembler support for unwind directives.
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24713 $as_echo_n "checking assembler for cfi directives... " >&6; }
24714 if ${gcc_cv_as_cfi_directive+:} false
; then :
24715 $as_echo_n "(cached) " >&6
24717 gcc_cv_as_cfi_directive
=no
24718 if test x
$gcc_cv_as != x
; then
24724 .cfi_escape 1, 2, 3, 4, 5
24725 .cfi_endproc' > conftest.s
24726 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }
24735 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24736 # read-only and read-write sections, we need to make sure that the
24737 # assembler used emits read-write .eh_frame sections.
24738 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24739 gcc_cv_as_cfi_directive
=yes
24740 elif test "x$gcc_cv_objdump" = x
; then
24741 # No objdump, err on the side of caution.
24742 gcc_cv_as_cfi_directive
=no
24744 if test x
$gas = xyes
; then
24752 sparc
*-*-solaris2.
*)
24753 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24754 if gcc_fn_eh_frame_ro
$as_32_opt \
24755 || gcc_fn_eh_frame_ro
$as_64_opt; then
24756 gcc_cv_as_cfi_directive
=no
24758 gcc_cv_as_cfi_directive
=yes
24761 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24762 # On Solaris/x86, make sure that GCC and assembler agree on using
24763 # read-only .eh_frame sections for 64-bit.
24764 if gcc_fn_eh_frame_ro
$as_32_opt; then
24765 gcc_cv_as_cfi_directive
=no
24766 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24767 gcc_cv_as_cfi_directive
=yes
24769 gcc_cv_as_cfi_directive
=no
24776 gcc_cv_as_cfi_directive
=yes
24780 echo "configure: failed program was" >&5
24783 rm -f conftest.o conftest.s
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24787 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24790 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24792 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24793 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24794 $as_echo_n "(cached) " >&6
24796 gcc_cv_as_cfi_advance_working
=no
24797 if test x
$gcc_cv_as != x
; then
24800 .cfi_adjust_cfa_offset 64
24802 .cfi_adjust_cfa_offset 128
24803 .cfi_endproc' > conftest.s
24804 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24806 (eval $ac_try) 2>&5
24808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24809 test $ac_status = 0; }; }
24812 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24813 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24814 gcc_cv_as_cfi_advance_working
=yes
24818 echo "configure: failed program was" >&5
24821 rm -f conftest.o conftest.s
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24825 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24829 # no objdump, err on the side of caution
24830 gcc_cv_as_cfi_advance_working
=no
24834 cat >>confdefs.h
<<_ACEOF
24835 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24836 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24842 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24843 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24844 $as_echo_n "(cached) " >&6
24846 gcc_cv_as_cfi_personality_directive
=no
24847 if test x
$gcc_cv_as != x
; then
24850 .cfi_personality 0, symbol
24851 .cfi_endproc' > conftest.s
24852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854 (eval $ac_try) 2>&5
24856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857 test $ac_status = 0; }; }
24859 gcc_cv_as_cfi_personality_directive
=yes
24861 echo "configure: failed program was" >&5
24864 rm -f conftest.o conftest.s
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24868 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24872 cat >>confdefs.h
<<_ACEOF
24873 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24878 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24879 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24880 $as_echo_n "(cached) " >&6
24882 gcc_cv_as_cfi_sections_directive
=no
24883 if test x
$gcc_cv_as != x
; then
24885 .cfi_sections .debug_frame, .eh_frame
24887 .cfi_endproc' > conftest.s
24888 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24890 (eval $ac_try) 2>&5
24892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24893 test $ac_status = 0; }; }
24896 win32 | pe | cygwin
* | mingw32
*)
24897 # Need to check that we generated the correct relocation for the
24898 # .debug_frame section. This was fixed for binutils 2.21.
24899 gcc_cv_as_cfi_sections_directive
=no
24900 if test "x$gcc_cv_objdump" != x
; then
24901 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24902 grep -i secrel
> /dev
/null
; then
24903 gcc_cv_as_cfi_sections_directive
=yes
24908 gcc_cv_as_cfi_sections_directive
=yes
24912 echo "configure: failed program was" >&5
24915 rm -f conftest.o conftest.s
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24919 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24924 cat >>confdefs.h
<<_ACEOF
24925 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24929 # GAS versions up to and including 2.11.0 may mis-optimize
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24932 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24933 if ${gcc_cv_as_eh_frame+:} false
; then :
24934 $as_echo_n "(cached) " >&6
24936 gcc_cv_as_eh_frame
=no
24937 if test x
$gcc_cv_as != x
; then
24944 .section .eh_frame,"aw",@progbits
24946 .4byte .LECIE1-.LSCIE1
24960 .4byte .LEFDE1-.LASFDE1
24962 .4byte .LASFDE1-__FRAME_BEGIN__
24969 .LEFDE1:' > conftest.s
24970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; }
24977 cat > conftest.lit
<<EOF
24978 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24979 0010 01000000 12000000 18000000 00000000 ................
24980 0020 08000000 04080000 0044 .........D
24982 cat > conftest.big
<<EOF
24983 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24984 0010 00000001 00000012 00000018 00000000 ................
24985 0020 00000008 04000000 0844 .........D
24987 # If the assembler didn't choke, and we can objdump,
24988 # and we got the correct data, then succeed.
24989 # The text in the here-document typically retains its unix-style line
24990 # endings, while the output of objdump will use host line endings.
24991 # Therefore, use diff -b for the comparisons.
24992 if test x
$gcc_cv_objdump != x \
24993 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24994 |
tail -3 > conftest.got \
24995 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24996 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24998 gcc_cv_as_eh_frame
=yes
24999 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25001 (eval $ac_try) 2>&5
25003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25004 test $ac_status = 0; }; }; then
25005 gcc_cv_as_eh_frame
=buggy
25007 # Uh oh, what do we do now?
25008 gcc_cv_as_eh_frame
=no
25011 echo "configure: failed program was" >&5
25014 rm -f conftest.o conftest.s
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25018 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25022 if test $gcc_cv_as_eh_frame = buggy
; then
25024 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25028 # Test if the assembler supports the section flag 'e' or #exclude for
25029 # specifying an excluded section.
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25031 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25032 if ${gcc_cv_as_section_exclude_e+:} false
; then :
25033 $as_echo_n "(cached) " >&6
25035 gcc_cv_as_section_exclude_e
=no
25036 if test x
$gcc_cv_as != x
; then
25037 $as_echo '.section foo1,"e"
25038 .byte 0,0,0,0' > conftest.s
25039 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25041 (eval $ac_try) 2>&5
25043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25044 test $ac_status = 0; }; }
25046 gcc_cv_as_section_exclude_e
=yes
25048 echo "configure: failed program was" >&5
25051 rm -f conftest.o conftest.s
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25055 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25058 if test $gcc_cv_as_section_exclude_e = no
; then
25059 case "${target}" in
25060 # Solaris as uses #exclude instead.
25062 case "${target}" in
25063 sparc
*-*-solaris2*)
25064 conftest_s
='.section "foo1", #exclude'
25066 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25067 conftest_s
='.section foo1, #exclude'
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25073 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25074 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
25075 $as_echo_n "(cached) " >&6
25077 gcc_cv_as_section_exclude_hash
=no
25078 if test x
$gcc_cv_as != x
; then
25079 $as_echo "$conftest_s
25080 .byte 0,0,0,0" > conftest.s
25081 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25083 (eval $ac_try) 2>&5
25085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25086 test $ac_status = 0; }; }
25088 gcc_cv_as_section_exclude_hash
=yes
25090 echo "configure: failed program was" >&5
25093 rm -f conftest.o conftest.s
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25097 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25102 cat >>confdefs.h
<<_ACEOF
25103 #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`
25107 # Test if the assembler supports the section flag 'R' for specifying
25108 # section with SHF_GNU_RETAIN.
25109 case "${target}" in
25110 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25111 # assembler supports the section flag 'R', it doesn't mean that
25112 # Solairs ld supports it.
25114 gcc_cv_as_shf_gnu_retain
=no
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25118 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25119 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
25120 $as_echo_n "(cached) " >&6
25122 gcc_cv_as_shf_gnu_retain
=no
25123 if test x
$gcc_cv_as != x
; then
25124 $as_echo '.section .foo,"awR",%progbits
25125 .byte 0' > conftest.s
25126 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25128 (eval $ac_try) 2>&5
25130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25131 test $ac_status = 0; }; }
25133 gcc_cv_as_shf_gnu_retain
=yes
25135 echo "configure: failed program was" >&5
25138 rm -f conftest.o conftest.s
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25142 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25148 cat >>confdefs.h
<<_ACEOF
25149 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25153 # Test if the assembler supports the section flag 'o' for specifying
25154 # section with link-order.
25155 case "${target}" in
25156 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25157 # assembler supports the section flag 'o', it doesn't mean that
25158 # Solairs ld supports it.
25160 gcc_cv_as_section_link_order
=no
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25164 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25165 if ${gcc_cv_as_section_link_order+:} false
; then :
25166 $as_echo_n "(cached) " >&6
25168 gcc_cv_as_section_link_order
=no
25169 if test x
$gcc_cv_as != x
; then
25170 $as_echo '.section .foo,"a"
25172 .section __patchable_function_entries,"awo",%progbits,.foo
25173 .byte 0' > conftest.s
25174 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25176 (eval $ac_try) 2>&5
25178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25179 test $ac_status = 0; }; }
25181 gcc_cv_as_section_link_order
=yes
25183 echo "configure: failed program was" >&5
25186 rm -f conftest.o conftest.s
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25190 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25196 cat >>confdefs.h
<<_ACEOF
25197 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25202 $as_echo_n "checking assembler for section merging support... " >&6; }
25203 if ${gcc_cv_as_shf_merge+:} false
; then :
25204 $as_echo_n "(cached) " >&6
25206 gcc_cv_as_shf_merge
=no
25207 if test x
$gcc_cv_as != x
; then
25208 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25211 (eval $ac_try) 2>&5
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; }
25216 gcc_cv_as_shf_merge
=yes
25218 echo "configure: failed program was" >&5
25221 rm -f conftest.o conftest.s
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25225 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25228 if test $gcc_cv_as_shf_merge = no
; then
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25230 $as_echo_n "checking assembler for section merging support... " >&6; }
25231 if ${gcc_cv_as_shf_merge+:} false
; then :
25232 $as_echo_n "(cached) " >&6
25234 gcc_cv_as_shf_merge
=no
25235 if test x
$gcc_cv_as != x
; then
25236 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25237 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25239 (eval $ac_try) 2>&5
25241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25242 test $ac_status = 0; }; }
25244 gcc_cv_as_shf_merge
=yes
25246 echo "configure: failed program was" >&5
25249 rm -f conftest.o conftest.s
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25253 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25258 cat >>confdefs.h
<<_ACEOF
25259 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25263 gcc_cv_ld_aligned_shf_merge
=yes
25265 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25267 sparc
*-*-solaris2.11
*)
25268 if test x
"$gnu_ld" = xno \
25269 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25270 gcc_cv_ld_aligned_shf_merge
=no
25275 cat >>confdefs.h
<<_ACEOF
25276 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25281 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25282 if ${gcc_cv_as_comdat_group+:} false
; then :
25283 $as_echo_n "(cached) " >&6
25285 gcc_cv_as_comdat_group
=no
25286 if test x
$gcc_cv_as != x
; then
25287 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25288 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25290 (eval $ac_try) 2>&5
25292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25293 test $ac_status = 0; }; }
25295 gcc_cv_as_comdat_group
=yes
25297 echo "configure: failed program was" >&5
25300 rm -f conftest.o conftest.s
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25304 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25307 if test $gcc_cv_as_comdat_group = yes; then
25308 gcc_cv_as_comdat_group_percent
=no
25309 gcc_cv_as_comdat_group_group
=no
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25312 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25313 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25314 $as_echo_n "(cached) " >&6
25316 gcc_cv_as_comdat_group_percent
=no
25317 if test x
$gcc_cv_as != x
; then
25318 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25321 (eval $ac_try) 2>&5
25323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25324 test $ac_status = 0; }; }
25326 gcc_cv_as_comdat_group_percent
=yes
25328 echo "configure: failed program was" >&5
25331 rm -f conftest.o conftest.s
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25335 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25338 if test $gcc_cv_as_comdat_group_percent = yes; then
25339 gcc_cv_as_comdat_group_group
=no
25341 case "${target}" in
25342 # Sun as uses a completely different syntax.
25344 case "${target}" in
25345 sparc
*-*-solaris2*)
25347 .group foo,".text%foo",#comdat
25348 .section ".text%foo", #alloc,#execinstr,#progbits
25353 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25355 .group foo,.text%foo,#comdat
25356 .section .text%foo, "ax", @progbits
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25363 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25364 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25365 $as_echo_n "(cached) " >&6
25367 gcc_cv_as_comdat_group_group
=no
25368 if test x
$gcc_cv_as != x
; then
25369 $as_echo "$conftest_s" > conftest.s
25370 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25372 (eval $ac_try) 2>&5
25374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375 test $ac_status = 0; }; }
25377 gcc_cv_as_comdat_group_group
=yes
25379 echo "configure: failed program was" >&5
25382 rm -f conftest.o conftest.s
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25386 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25391 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25392 gcc_cv_as_comdat_group_group
=no
25396 if test x
"$ld_is_gold" = xyes
; then
25398 elif test x
"$ld_is_mold" = xyes
; then
25400 elif test $in_tree_ld = yes ; then
25402 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 \
25403 && test $in_tree_ld_is_elf = yes; then
25406 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25408 if test 0"$ld_date" -lt 20050308; then
25409 if test -n "$ld_date"; then
25410 # If there was date string, but was earlier than 2005-03-08, fail
25412 elif test "$ld_vers_major" -lt 2; then
25414 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25419 case "${target}" in
25420 *-*-solaris2.1
[1-9]*)
25422 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25423 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25426 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25427 # least ld version 1.2267.
25428 if test "$ld_vers_major" -gt 1; then
25430 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25432 elif test "$ld_vers_minor" -ge 2267; then
25437 # Assume linkers other than GNU ld don't support COMDAT group.
25442 # Allow overriding the automatic COMDAT group tests above.
25443 # Check whether --enable-comdat was given.
25444 if test "${enable_comdat+set}" = set; then :
25445 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25448 if test $comdat_group = no
; then
25449 gcc_cv_as_comdat_group
=no
25450 gcc_cv_as_comdat_group_percent
=no
25451 gcc_cv_as_comdat_group_group
=no
25454 cat >>confdefs.h
<<_ACEOF
25455 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25456 || test $gcc_cv_as_comdat_group_percent = yes \
25457 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25461 # Restrict this test to Solaris/x86: other targets define this statically.
25462 case "${target}" in
25463 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25465 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25466 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25467 hidden_linkonce
=yes
25469 case "${target}" in
25470 # Full support for hidden thunks in linkonce sections only appeared in
25471 # Solaris 11/OpenSolaris.
25472 *-*-solaris2.1
[1-9]*)
25473 hidden_linkonce
=yes
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25481 $as_echo "$hidden_linkonce" >&6; }
25483 cat >>confdefs.h
<<_ACEOF
25484 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25491 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25492 if ${gcc_cv_as_is_stmt+:} false
; then :
25493 $as_echo_n "(cached) " >&6
25495 gcc_cv_as_is_stmt
=no
25496 if test x
$gcc_cv_as != x
; then
25499 .loc 1 1 0 is_stmt 1' > conftest.s
25500 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25502 (eval $ac_try) 2>&5
25504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25505 test $ac_status = 0; }; }
25507 gcc_cv_as_is_stmt
=yes
25509 echo "configure: failed program was" >&5
25512 rm -f conftest.o conftest.s
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25516 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25517 if test $gcc_cv_as_is_stmt = yes; then
25519 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25525 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25526 if ${gcc_cv_as_discriminator+:} false
; then :
25527 $as_echo_n "(cached) " >&6
25529 gcc_cv_as_discriminator
=no
25530 if test x
$gcc_cv_as != x
; then
25533 .loc 1 1 0 discriminator 1' > conftest.s
25534 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25536 (eval $ac_try) 2>&5
25538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25539 test $ac_status = 0; }; }
25541 gcc_cv_as_discriminator
=yes
25543 echo "configure: failed program was" >&5
25546 rm -f conftest.o conftest.s
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25550 $as_echo "$gcc_cv_as_discriminator" >&6; }
25551 if test $gcc_cv_as_discriminator = yes; then
25553 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25558 # Catch the newlib flag of the same name so we can gate GCC features on it.
25559 # Check whether --enable-newlib-nano-formatted-io was given.
25560 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25561 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25565 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25571 # Thread-local storage - the check is heavily parameterized.
25577 .section ".tdata","awT",@progbits
25580 ldq $27,__tls_get_addr($29) !literal!1
25581 lda $16,foo($29) !tlsgd!1
25582 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25583 ldq $27,__tls_get_addr($29) !literal!2
25584 lda $16,foo($29) !tlsldm!2
25585 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25586 ldq $1,foo($29) !gotdtprel
25587 ldah $2,foo($29) !dtprelhi
25588 lda $3,foo($2) !dtprello
25589 lda $4,foo($29) !dtprel
25590 ldq $1,foo($29) !gottprel
25591 ldah $2,foo($29) !tprelhi
25592 lda $3,foo($2) !tprello
25593 lda $4,foo($29) !tprel'
25594 tls_as_opt
=--fatal-warnings
25598 add_s r0,r0, @foo@tpoff'
25600 cris-
*-*|crisv32-
*-*)
25602 .section ".tdata","awT",@progbits
25607 tls_as_opt
=--fatal-warnings
25611 .section ".tdata","awT",@progbits
25614 call #gettlsoff(x)'
25621 .section ".tdata","awT",@progbits
25625 addil LT%foo-$tls_gdidx$,gp
25626 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25629 addil LT%foo-$tls_ldidx$,gp
25631 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25632 addil LR%foo-$tls_dtpoff$,%ret0
25633 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25635 addil LT%foo-$tls_ieoff$,gp
25636 ldw RT%foo-$tls_ieoff$(%r1),%t2
25639 addil LR%foo-$tls_leoff$,%t1
25640 ldo RR%foo-$tls_leoff$(%r1),%t2'
25641 tls_as_opt
=--fatal-warnings
25645 .section ".tdata","awT",%progbits
25648 .word foo(gottpoff)
25654 i
[34567]86-*-* | x86_64-
*-*)
25656 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25663 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25665 .section .tdata,"awt",@progbits'
25668 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25672 .section ".tdata","awT",@progbits'
25674 tls_as_opt
="--fatal-warnings"
25678 if test x
$on_solaris = xyes
; then
25680 yes) tls_as_opt
="$tls_as_opt --32" ;;
25683 conftest_s
="$conftest_s
25687 leal foo@tlsgd(,%ebx,1), %eax
25688 leal foo@tlsldm(%ebx), %eax
25689 leal foo@dtpoff(%eax), %edx
25690 movl foo@gottpoff(%ebx), %eax
25691 subl foo@gottpoff(%ebx), %eax
25692 addl foo@gotntpoff(%ebx), %eax
25693 movl foo@indntpoff, %eax
25694 movl \$foo@tpoff, %eax
25695 subl \$foo@tpoff, %eax
25696 leal foo@ntpoff(%ecx), %eax"
25699 if test x
$on_solaris = xyes
; then
25701 yes) tls_as_opt
="$tls_as_opt --64" ;;
25702 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25705 conftest_s
="$conftest_s
25709 leaq foo@tlsgd(%rip), %rdi
25710 leaq foo@tlsld(%rip), %rdi
25711 leaq foo@dtpoff(%rax), %rdx
25712 movq foo@gottpoff(%rip), %rax
25713 movq \$foo@tpoff, %rax"
25719 .section ".tdata","awT",@progbits
25722 addl r16 = @ltoff(@dtpmod(foo#)), gp
25723 addl r17 = @ltoff(@dtprel(foo#)), gp
25724 addl r18 = @ltoff(@tprel(foo#)), gp
25725 addl r19 = @dtprel(foo#), gp
25726 adds r21 = @dtprel(foo#), r13
25727 movl r23 = @dtprel(foo#)
25728 addl r20 = @tprel(foo#), gp
25729 adds r22 = @tprel(foo#), r13
25730 movl r24 = @tprel(foo#)'
25731 tls_as_opt
=--fatal-warnings
25735 .section .tdata,"awT",@progbits
25742 tls_as_opt
='--fatal-warnings'
25746 .section .tdata,"awT",@progbits
25750 addik r5,r20,x@TLSGD
25751 addik r5,r20,x@TLSLDM'
25752 tls_as_opt
='--fatal-warnings'
25756 .section .tdata,"awT",@progbits
25760 addiu $4, $28, %tlsgd(x)
25761 addiu $4, $28, %tlsldm(x)
25762 lui $4, %dtprel_hi(x)
25763 addiu $4, $4, %dtprel_lo(x)
25764 lw $4, %gottprel(x)($28)
25765 lui $4, %tprel_hi(x)
25766 addiu $4, $4, %tprel_lo(x)'
25767 tls_as_opt
='-32 --fatal-warnings'
25771 .section .tdata,"awT",@progbits
25776 move.l x@TLSGD(%a5),%a0
25777 move.l x@TLSLDM(%a5),%a0
25778 move.l x@TLSLDO(%a5),%a0
25779 move.l x@TLSIE(%a5),%a0
25780 move.l x@TLSLE(%a5),%a0'
25781 tls_as_opt
='--fatal-warnings'
25785 .section ".tdata","awT",@progbits'
25786 tls_as_opt
="--fatal-warnings"
25790 .section ".tdata","awT",%progbits
25794 add x0, x0, #:tlsgd_lo12:x
25797 tls_as_opt
='--fatal-warnings'
25801 .section ".tdata","awT",@progbits
25804 l.movhi r3, tpoffha(foo)
25806 l.lwz r4, tpofflo(foo)(r3)'
25807 tls_as_opt
=--fatal-warnings
25811 .extern __get_tpointer
25827 .section ".tdata","awT",@progbits
25835 addi 3,2,ld0@got@tlsgd
25841 addi 3,2,x1@got@tlsld
25847 addis 9,3,x2@dtprel@ha
25848 addi 9,9,x2@dtprel@l
25851 ld 9,x3@got@dtprel(2)
25855 tls_as_opt
="-a64 --fatal-warnings"
25859 .section ".tdata","awT",@progbits
25867 addi 3,31,ld0@got@tlsgd
25869 addi 3,31,x1@got@tlsld
25872 addis 9,3,x2@dtprel@ha
25873 addi 9,9,x2@dtprel@l
25874 lwz 9,x3@got@tprel(31)
25877 addis 9,2,x2@tprel@ha
25878 addi 9,9,x2@tprel@l'
25879 tls_as_opt
="-a32 --fatal-warnings"
25883 .section .tdata,"awT",@progbits
25887 call __tls_get_addr'
25888 tls_as_opt
='--fatal-warnings'
25892 .section ".tdata","awT",@progbits
25899 .long foo@GOTNTPOFF
25900 .long foo@INDNTPOFF
25901 l %r1,foo@GOTNTPOFF(%r12)
25902 l %r1,0(%r1):tls_load:foo
25903 bas %r14,0(%r1,%r13):tls_gdcall:foo
25904 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25905 tls_as_opt
="-m31 --fatal-warnings"
25909 .section ".tdata","awT",@progbits
25916 .quad foo@GOTNTPOFF
25917 lg %r1,foo@GOTNTPOFF(%r12)
25918 larl %r1,foo@INDNTPOFF
25919 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25920 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25921 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25923 sh-
*-* | sh
[123456789lbe
]*-*-*)
25925 .section ".tdata","awT",@progbits
25933 tls_as_opt
=--fatal-warnings
25937 sparc
*-sun-solaris2.
*)
25944 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25946 .section ".tdata",#alloc,#write,#tls'
25949 .section ".tdata","awT",@progbits'
25950 tls_as_opt
="-32 --fatal-warnings"
25952 conftest_s
="$conftest_s
25955 sethi %tgd_hi22(foo), %o0
25956 add %o0, %tgd_lo10(foo), %o1
25957 add %l7, %o1, %o0, %tgd_add(foo)
25958 call __tls_get_addr, %tgd_call(foo)
25959 sethi %tldm_hi22(foo), %l1
25960 add %l1, %tldm_lo10(foo), %l2
25961 add %l7, %l2, %o0, %tldm_add(foo)
25962 call __tls_get_addr, %tldm_call(foo)
25963 sethi %tldo_hix22(foo), %l3
25964 xor %l3, %tldo_lox10(foo), %l4
25965 add %o0, %l4, %l5, %tldo_add(foo)
25966 sethi %tie_hi22(foo), %o3
25967 add %o3, %tie_lo10(foo), %o3
25968 ld [%l7 + %o3], %o2, %tie_ld(foo)
25969 add %g7, %o2, %o4, %tie_add(foo)
25970 sethi %tle_hix22(foo), %l1
25971 xor %l1, %tle_lox10(foo), %o5
25972 ld [%g7 + %o5], %o1"
25976 .section ".tdata","awT",@progbits
25979 movi a8, foo@TLSFUNC
25980 movi a10, foo@TLSARG
25981 callx8.tls a8, foo@TLSCALL'
25985 if test "x$enable_tls" = xno
; then
25986 : # TLS explicitly disabled.
25987 elif test "x$enable_tls" = xyes
; then
25988 set_have_as_tls
=yes # TLS explicitly enabled.
25989 elif test -z "$conftest_s"; then
25990 : # If we don't have a check, assume no support.
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25993 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25994 if ${gcc_cv_as_tls+:} false
; then :
25995 $as_echo_n "(cached) " >&6
25998 if test x
$gcc_cv_as != x
; then
25999 $as_echo "$conftest_s" > conftest.s
26000 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26002 (eval $ac_try) 2>&5
26004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26005 test $ac_status = 0; }; }
26009 echo "configure: failed program was" >&5
26012 rm -f conftest.o conftest.s
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26016 $as_echo "$gcc_cv_as_tls" >&6; }
26017 if test $gcc_cv_as_tls = yes; then
26018 set_have_as_tls
=yes
26022 if test $set_have_as_tls = yes ; then
26024 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26028 # Target-specific assembler checks.
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26031 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26032 gcc_cv_ld_static_dynamic
=no
26033 gcc_cv_ld_static_option
='-Bstatic'
26034 gcc_cv_ld_dynamic_option
='-Bdynamic'
26035 if test $in_tree_ld = yes ; then
26036 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
26037 gcc_cv_ld_static_dynamic
=yes
26039 elif test x
$gcc_cv_ld != x
; then
26040 # Check if linker supports -Bstatic/-Bdynamic option
26041 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
26042 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
26043 gcc_cv_ld_static_dynamic
=yes
26046 # AIX ld uses -b flags
26047 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
26048 gcc_cv_ld_static_dynamic
=yes
26049 gcc_cv_ld_static_option
="-bstatic"
26050 gcc_cv_ld_dynamic_option
="-bdynamic"
26052 # HP-UX ld uses -a flags to select between shared and archive.
26054 if test x
"$gnu_ld" = xno
; then
26055 gcc_cv_ld_static_dynamic
=yes
26056 gcc_cv_ld_static_option
="-aarchive_shared"
26057 gcc_cv_ld_dynamic_option
="-adefault"
26060 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26062 gcc_cv_ld_static_dynamic
=yes
26067 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
26069 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26072 cat >>confdefs.h
<<_ACEOF
26073 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26077 cat >>confdefs.h
<<_ACEOF
26078 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26083 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26086 $as_echo_n "checking linker --version-script option... " >&6; }
26087 gcc_cv_ld_version_script
=no
26088 ld_version_script_option
=''
26089 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26090 gcc_cv_ld_version_script
=yes
26091 ld_version_script_option
='--version-script'
26092 elif test x
$gcc_cv_ld != x
; then
26094 # Solaris 2 ld always supports -M. It also supports a subset of
26095 # --version-script since Solaris 11.4, but requires
26096 # -z gnu-version-script-compat to activate.
26098 gcc_cv_ld_version_script
=yes
26099 ld_version_script_option
='-M'
26103 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26105 $as_echo "$gcc_cv_ld_version_script" >&6; }
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26109 $as_echo_n "checking linker soname option... " >&6; }
26110 gcc_cv_ld_soname
=no
26111 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26112 gcc_cv_ld_soname
=yes
26113 ld_soname_option
='-soname'
26114 elif test x
$gcc_cv_ld != x
; then
26117 gcc_cv_ld_soname
=yes
26118 ld_soname_option
='-install_name'
26120 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26121 # ld compatiblity since some Solaris 10 update.
26123 gcc_cv_ld_soname
=yes
26124 ld_soname_option
='-h'
26128 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26130 $as_echo "$gcc_cv_ld_soname" >&6; }
26133 if test x
"$demangler_in_ld" = xyes
; then
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26135 $as_echo_n "checking linker --demangle support... " >&6; }
26136 gcc_cv_ld_demangle
=no
26137 if test $in_tree_ld = yes; then
26138 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 \
26139 gcc_cv_ld_demangle
=yes
26141 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
26142 # Check if the GNU linker supports --demangle option
26143 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
26144 gcc_cv_ld_demangle
=yes
26147 if test x
"$gcc_cv_ld_demangle" = xyes
; then
26149 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26153 $as_echo "$gcc_cv_ld_demangle" >&6; }
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26157 $as_echo_n "checking linker plugin support... " >&6; }
26158 gcc_cv_lto_plugin
=0
26159 if test -f liblto_plugin.la
; then
26160 save_ld_ver
="$ld_ver"
26161 save_ld_vers_major
="$ld_vers_major"
26162 save_ld_vers_minor
="$ld_vers_minor"
26163 save_ld_is_gold
="$ld_is_gold"
26167 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
26169 # FIXME: ld_is_gold?
26170 ld_vers_major
="$gcc_cv_gld_major_version"
26171 ld_vers_minor
="$gcc_cv_gld_minor_version"
26173 # Determine plugin linker version.
26174 # FIXME: Partial duplicate from above, generalize.
26175 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26176 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26177 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
26179 ld_vers
=`echo $ld_ver | sed -n \
26180 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26182 ld_vers
=`echo $ld_ver | sed -n \
26183 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26185 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26186 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26190 # Determine plugin support.
26191 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26192 # Require GNU ld or gold 2.21+ for plugin support by default.
26193 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26194 gcc_cv_lto_plugin
=2
26195 elif test "$ld_is_mold" = yes; then
26196 gcc_cv_lto_plugin
=2
26197 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26198 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26199 gcc_cv_lto_plugin
=1
26203 ld_ver
="$save_ld_ver"
26204 ld_vers_major
="$save_ld_vers_major"
26205 ld_vers_minor
="$save_ld_vers_minor"
26206 ld_is_gold
="$save_ld_is_gold"
26209 cat >>confdefs.h
<<_ACEOF
26210 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26214 $as_echo "$gcc_cv_lto_plugin" >&6; }
26216 # Target OS-specific assembler checks.
26218 case "$target_os" in
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26221 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26222 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26223 $as_echo_n "(cached) " >&6
26225 gcc_cv_as_mmacosx_version_min
=no
26226 if test x
$gcc_cv_as != x
; then
26227 $as_echo '.text' > conftest.s
26228 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26230 (eval $ac_try) 2>&5
26232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26233 test $ac_status = 0; }; }
26235 gcc_cv_as_mmacosx_version_min
=yes
26237 echo "configure: failed program was" >&5
26240 rm -f conftest.o conftest.s
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26244 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26245 if test $gcc_cv_as_mmacosx_version_min = yes; then
26247 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26254 # Target CPU-specific assembler checks.
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26259 $as_echo_n "checking assembler for -mabi option... " >&6; }
26260 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26261 $as_echo_n "(cached) " >&6
26263 gcc_cv_as_aarch64_mabi
=no
26264 if test x
$gcc_cv_as != x
; then
26265 $as_echo '.text' > conftest.s
26266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26268 (eval $ac_try) 2>&5
26270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26271 test $ac_status = 0; }; }
26273 gcc_cv_as_aarch64_mabi
=yes
26275 echo "configure: failed program was" >&5
26278 rm -f conftest.o conftest.s
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26282 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26285 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26287 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26290 if test x
$with_abi = xilp32
; then
26291 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26292 Upgrade the Assembler." "$LINENO" 5
26294 if test x
"$with_multilib_list" = xdefault
; then
26295 TM_MULTILIB_CONFIG
=lp64
26297 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26298 for aarch64_multilib
in ${aarch64_multilibs}; do
26299 case ${aarch64_multilib} in
26301 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26302 Upgrade the Assembler." "$LINENO" 5
26310 # Check if we have binutils support for relocations types needed by -fpic
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26312 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26313 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26314 $as_echo_n "(cached) " >&6
26316 gcc_cv_as_aarch64_picreloc
=no
26317 if test x
$gcc_cv_as != x
; then
26320 ldr x0, [x2, #:gotpage_lo15:globalsym]
26322 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26324 (eval $ac_try) 2>&5
26326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26327 test $ac_status = 0; }; }
26329 gcc_cv_as_aarch64_picreloc
=yes
26331 echo "configure: failed program was" >&5
26334 rm -f conftest.o conftest.s
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26338 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26339 if test $gcc_cv_as_aarch64_picreloc = yes; then
26341 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26345 # Enable Branch Target Identification Mechanism and Return Address
26346 # Signing by default.
26347 # Check whether --enable-standard-branch-protection was given.
26348 if test "${enable_standard_branch_protection+set}" = set; then :
26349 enableval
=$enable_standard_branch_protection;
26352 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26357 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26358 Valid choices are 'yes' and 'no'." "$LINENO" 5
26364 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26365 # Check whether --enable-fix-cortex-a53-835769 was given.
26366 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26367 enableval
=$enable_fix_cortex_a53_835769;
26370 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26375 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26376 Valid choices are 'yes' and 'no'." "$LINENO" 5
26383 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26384 # Check whether --enable-fix-cortex-a53-843419 was given.
26385 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26386 enableval
=$enable_fix_cortex_a53_843419;
26389 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26394 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26395 Valid choices are 'yes' and 'no'." "$LINENO" 5
26404 # All TARGET_ABI_OSF targets.
26405 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26407 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26408 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26409 $as_echo_n "(cached) " >&6
26411 gcc_cv_as_alpha_explicit_relocs
=no
26412 if test x
$gcc_cv_as != x
; then
26413 $as_echo ' .set nomacro
26415 extbl $3, $2, $3 !lituse_bytoff!1
26416 ldq $2, a($29) !literal!1
26417 ldq $4, b($29) !literal!2
26418 ldq_u $3, 0($2) !lituse_base!1
26419 ldq $27, f($29) !literal!5
26420 jsr $26, ($27), f !lituse_jsr!5
26421 ldah $29, 0($26) !gpdisp!3
26422 lda $0, c($29) !gprel
26423 ldah $1, d($29) !gprelhigh
26424 lda $1, d($1) !gprellow
26425 lda $29, 0($29) !gpdisp!3' > conftest.s
26426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26428 (eval $ac_try) 2>&5
26430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26431 test $ac_status = 0; }; }
26433 gcc_cv_as_alpha_explicit_relocs
=yes
26435 echo "configure: failed program was" >&5
26438 rm -f conftest.o conftest.s
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26442 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26443 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26445 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26450 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26451 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26452 $as_echo_n "(cached) " >&6
26454 gcc_cv_as_alpha_jsrdirect_relocs
=no
26455 if test x
$gcc_cv_as != x
; then
26456 $as_echo ' .set nomacro
26458 ldq $27, a($29) !literal!1
26459 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26460 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26462 (eval $ac_try) 2>&5
26464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26465 test $ac_status = 0; }; }
26467 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26469 echo "configure: failed program was" >&5
26472 rm -f conftest.o conftest.s
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26476 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26477 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26479 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26487 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26488 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26489 $as_echo_n "(cached) " >&6
26491 gcc_cv_as_avr_mlink_relax
=no
26492 if test x
$gcc_cv_as != x
; then
26493 $as_echo '.text' > conftest.s
26494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26496 (eval $ac_try) 2>&5
26498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26499 test $ac_status = 0; }; }
26501 gcc_cv_as_avr_mlink_relax
=yes
26503 echo "configure: failed program was" >&5
26506 rm -f conftest.o conftest.s
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26510 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26511 if test $gcc_cv_as_avr_mlink_relax = yes; then
26513 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26519 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26520 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26521 $as_echo_n "(cached) " >&6
26523 gcc_cv_as_avr_mrmw
=no
26524 if test x
$gcc_cv_as != x
; then
26525 $as_echo '.text' > conftest.s
26526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26528 (eval $ac_try) 2>&5
26530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26531 test $ac_status = 0; }; }
26533 gcc_cv_as_avr_mrmw
=yes
26535 echo "configure: failed program was" >&5
26538 rm -f conftest.o conftest.s
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26542 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26543 if test $gcc_cv_as_avr_mrmw = yes; then
26545 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26551 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26552 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26553 $as_echo_n "(cached) " >&6
26555 gcc_cv_as_avr_mgccisr
=no
26556 if test x
$gcc_cv_as != x
; then
26562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }
26569 gcc_cv_as_avr_mgccisr
=yes
26571 echo "configure: failed program was" >&5
26574 rm -f conftest.o conftest.s
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26578 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26579 if test $gcc_cv_as_avr_mgccisr = yes; then
26581 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26586 # Check how default linker description file implements .rodata for
26587 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26588 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26590 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26591 cat > conftest.s
<<EOF
26592 .section .rodata,"a",@progbits
26594 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26599 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26601 (eval $ac_try) 2>&5
26603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26604 test $ac_status = 0; }; }
26605 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26607 (eval $ac_try) 2>&5
26609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26610 test $ac_status = 0; }; }
26611 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26613 (eval $ac_try) 2>&5
26615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26616 test $ac_status = 0; }; }
26617 if test -s conftest.nm
26619 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26621 $as_echo "yes" >&6; }
26623 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26627 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26628 echo "$as_me: nm output was" >&5
26629 cat conftest.nm
>&5
26630 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26631 { $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
26632 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26636 $as_echo "test failed" >&6; }
26637 echo "$as_me: failed program was" >&5
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26640 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26642 rm -f conftest.s conftest.o conftest.elf conftest.nm
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26647 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26648 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26649 $as_echo_n "(cached) " >&6
26651 gcc_cv_as_cris_no_mul_bug
=no
26652 if test x
$gcc_cv_as != x
; then
26653 $as_echo '.text' > conftest.s
26654 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26656 (eval $ac_try) 2>&5
26658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26659 test $ac_status = 0; }; }
26661 gcc_cv_as_cris_no_mul_bug
=yes
26663 echo "configure: failed program was" >&5
26666 rm -f conftest.o conftest.s
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26670 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26671 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26673 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26681 $as_echo_n "checking assembler for -relax option... " >&6; }
26682 if ${gcc_cv_as_sparc_relax+:} false
; then :
26683 $as_echo_n "(cached) " >&6
26685 gcc_cv_as_sparc_relax
=no
26686 if test x
$gcc_cv_as != x
; then
26687 $as_echo '.text' > conftest.s
26688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26690 (eval $ac_try) 2>&5
26692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26693 test $ac_status = 0; }; }
26695 gcc_cv_as_sparc_relax
=yes
26697 echo "configure: failed program was" >&5
26700 rm -f conftest.o conftest.s
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26704 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26705 if test $gcc_cv_as_sparc_relax = yes; then
26707 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26713 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26714 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26715 $as_echo_n "(cached) " >&6
26717 gcc_cv_as_sparc_gotdata_op
=no
26718 if test x
$gcc_cv_as != x
; then
26724 sethi %gdop_hix22(foo), %g1
26725 xor %g1, %gdop_lox10(foo), %g1
26726 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26729 (eval $ac_try) 2>&5
26731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; }; }
26734 if test x
$gcc_cv_ld != x \
26735 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26736 if test x
$gcc_cv_objdump != x
; then
26737 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26738 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26739 gcc_cv_as_sparc_gotdata_op
=no
26741 gcc_cv_as_sparc_gotdata_op
=yes
26747 echo "configure: failed program was" >&5
26750 rm -f conftest.o conftest.s
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26754 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26755 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26757 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26763 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26764 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26765 $as_echo_n "(cached) " >&6
26767 gcc_cv_as_sparc_ua_pcrel
=no
26768 if test x
$gcc_cv_as != x
; then
26775 .uaword %r_disp32(foo)' > conftest.s
26776 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26778 (eval $ac_try) 2>&5
26780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26781 test $ac_status = 0; }; }
26783 if test x
$gcc_cv_ld != x \
26784 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26785 gcc_cv_as_sparc_ua_pcrel
=yes
26789 echo "configure: failed program was" >&5
26792 rm -f conftest.o conftest.s
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26796 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26797 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26799 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26803 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26804 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26805 $as_echo_n "(cached) " >&6
26807 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26808 if test x
$gcc_cv_as != x
; then
26812 .uaword %r_disp32(foo)
26813 .byte 0x32, 0x33, 0x34
26817 .skip 4' > conftest.s
26818 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26820 (eval $ac_try) 2>&5
26822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26823 test $ac_status = 0; }; }
26825 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26826 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26827 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26828 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26829 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26830 |
grep 'DISP32' > /dev
/null
2>&1; then
26833 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26838 echo "configure: failed program was" >&5
26841 rm -f conftest.o conftest.s
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26845 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26846 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26848 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26854 # unaligned pcrel relocs
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26857 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26858 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26859 $as_echo_n "(cached) " >&6
26861 gcc_cv_as_sparc_offsetable_lo10
=no
26862 if test x
$gcc_cv_as != x
; then
26864 or %g1, %lo(ab) + 12, %g1
26865 or %g1, %lo(ab + 12), %g1' > conftest.s
26866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26868 (eval $ac_try) 2>&5
26870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26871 test $ac_status = 0; }; }
26873 if test x
$gcc_cv_objdump != x \
26874 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26875 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26876 gcc_cv_as_sparc_offsetable_lo10
=yes
26879 echo "configure: failed program was" >&5
26882 rm -f conftest.o conftest.s
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26886 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26887 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26889 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26895 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26896 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26897 $as_echo_n "(cached) " >&6
26899 gcc_cv_as_sparc_fmaf
=no
26900 if test x
$gcc_cv_as != x
; then
26902 .register %g2, #scratch
26903 .register %g3, #scratch
26905 fmaddd %f0, %f2, %f4, %f6
26906 addxccc %g1, %g2, %g3
26907 fsrl32 %f2, %f4, %f8
26908 fnaddd %f10, %f12, %f14' > conftest.s
26909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26911 (eval $ac_try) 2>&5
26913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26914 test $ac_status = 0; }; }
26916 gcc_cv_as_sparc_fmaf
=yes
26918 echo "configure: failed program was" >&5
26921 rm -f conftest.o conftest.s
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26925 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26926 if test $gcc_cv_as_sparc_fmaf = yes; then
26928 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26934 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26935 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26936 $as_echo_n "(cached) " >&6
26938 gcc_cv_as_sparc_sparc4
=no
26939 if test x
$gcc_cv_as != x
; then
26941 .register %g2, #scratch
26942 .register %g3, #scratch
26945 1: cwbneg %g2, %g3, 1f
26948 aes_kexpand0 %f4, %f6, %f8
26949 des_round %f38, %f40, %f42, %f44
26950 camellia_f %f54, %f56, %f58, %f60
26951 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26952 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26954 (eval $ac_try) 2>&5
26956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26957 test $ac_status = 0; }; }
26959 gcc_cv_as_sparc_sparc4
=yes
26961 echo "configure: failed program was" >&5
26964 rm -f conftest.o conftest.s
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26968 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26969 if test $gcc_cv_as_sparc_sparc4 = yes; then
26971 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26977 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26978 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26979 $as_echo_n "(cached) " >&6
26981 gcc_cv_as_sparc_sparc5
=no
26982 if test x
$gcc_cv_as != x
; then
26984 .register %g2, #scratch
26985 .register %g3, #scratch
26987 subxc %g1, %g2, %g3
26988 fpadd8 %f0, %f2, %f4' > conftest.s
26989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26991 (eval $ac_try) 2>&5
26993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26994 test $ac_status = 0; }; }
26996 gcc_cv_as_sparc_sparc5
=yes
26998 echo "configure: failed program was" >&5
27001 rm -f conftest.o conftest.s
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
27005 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27006 if test $gcc_cv_as_sparc_sparc5 = yes; then
27008 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27014 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27015 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
27016 $as_echo_n "(cached) " >&6
27018 gcc_cv_as_sparc_sparc6
=no
27019 if test x
$gcc_cv_as != x
; then
27021 .register %g2, #scratch
27022 .register %g3, #scratch
27025 fpsll64x %f0, %f2, %f4' > conftest.s
27026 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27028 (eval $ac_try) 2>&5
27030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27031 test $ac_status = 0; }; }
27033 gcc_cv_as_sparc_sparc6
=yes
27035 echo "configure: failed program was" >&5
27038 rm -f conftest.o conftest.s
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27042 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27043 if test $gcc_cv_as_sparc_sparc6 = yes; then
27045 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27051 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27052 if ${gcc_cv_as_sparc_leon+:} false
; then :
27053 $as_echo_n "(cached) " >&6
27055 gcc_cv_as_sparc_leon
=no
27056 if test x
$gcc_cv_as != x
; then
27058 .register %g2, #scratch
27059 .register %g3, #scratch
27063 casa [%g2] 0xb, %g3, %g1' > conftest.s
27064 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27066 (eval $ac_try) 2>&5
27068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27069 test $ac_status = 0; }; }
27071 gcc_cv_as_sparc_leon
=yes
27073 echo "configure: failed program was" >&5
27076 rm -f conftest.o conftest.s
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27080 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27081 if test $gcc_cv_as_sparc_leon = yes; then
27083 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27089 i
[34567]86-*-* | x86_64-
*-*)
27092 # Full C++ conformance when using a shared libstdc++-v3 requires some
27093 # support from the Cygwin DLL, which in more recent versions exports
27094 # wrappers to aid in interposing and redirecting operators new, delete,
27095 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27096 # are configuring for a version of Cygwin that exports the wrappers.
27097 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
27098 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27099 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
27100 gcc_ac_cygwin_dll_wrappers
=yes
27102 gcc_ac_cygwin_dll_wrappers
=no
27106 # Can't check presence of libc functions during cross-compile, so
27107 # we just have to assume we're building for an up-to-date target.
27108 gcc_ac_cygwin_dll_wrappers
=yes
27111 cat >>confdefs.h
<<_ACEOF
27112 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27117 cygwin
* | pe | mingw32
*)
27118 # Recent binutils allows the three-operand form of ".comm" on PE. This
27119 # definition is used unconditionally to initialise the default state of
27120 # the target option variable that governs usage of the feature.
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27122 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27123 if ${gcc_cv_as_comm_has_align+:} false
; then :
27124 $as_echo_n "(cached) " >&6
27126 gcc_cv_as_comm_has_align
=no
27127 if test x
$gcc_cv_as != x
; then
27128 $as_echo '.comm foo,1,32' > conftest.s
27129 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27131 (eval $ac_try) 2>&5
27133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27134 test $ac_status = 0; }; }
27136 gcc_cv_as_comm_has_align
=yes
27138 echo "configure: failed program was" >&5
27141 rm -f conftest.o conftest.s
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27145 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27149 cat >>confdefs.h
<<_ACEOF
27150 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27153 # Used for DWARF 2 in PE
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27155 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27156 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
27157 $as_echo_n "(cached) " >&6
27159 gcc_cv_as_ix86_pe_secrel32
=no
27160 if test x
$gcc_cv_as != x
; then
27164 .secrel32 foo' > conftest.s
27165 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27167 (eval $ac_try) 2>&5
27169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27170 test $ac_status = 0; }; }
27172 if test x
$gcc_cv_ld != x \
27173 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
27174 gcc_cv_as_ix86_pe_secrel32
=yes
27178 echo "configure: failed program was" >&5
27181 rm -f conftest.o conftest.s
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27185 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27186 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27188 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27192 # Test if the assembler supports the extended form of the .section
27193 # directive that specifies section alignment. LTO support uses this,
27194 # but normally only after installation, so we warn but don't fail the
27195 # configure if LTO is enabled but the assembler does not support it.
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27197 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27198 if ${gcc_cv_as_section_has_align+:} false
; then :
27199 $as_echo_n "(cached) " >&6
27201 gcc_cv_as_section_has_align
=no
27202 if test x
$gcc_cv_as != x
; then
27203 $as_echo '.section lto_test,"dr0"' > conftest.s
27204 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27206 (eval $ac_try) 2>&5
27208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27209 test $ac_status = 0; }; }
27211 gcc_cv_as_section_has_align
=yes
27213 echo "configure: failed program was" >&5
27216 rm -f conftest.o conftest.s
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27220 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27223 if test x
$gcc_cv_as_section_has_align != xyes
; then
27224 case ",$enable_languages," in
27226 { $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
27227 $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;}
27234 darwin2
* | darwin19
*)
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27236 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27237 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
27238 $as_echo_n "(cached) " >&6
27240 gcc_cv_as_mllvm_x86_pad_for_align
=no
27241 if test x
$gcc_cv_as != x
; then
27242 $as_echo '.text' > conftest.s
27243 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27245 (eval $ac_try) 2>&5
27247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27248 test $ac_status = 0; }; }
27250 gcc_cv_as_mllvm_x86_pad_for_align
=yes
27252 echo "configure: failed program was" >&5
27255 rm -f conftest.o conftest.s
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27259 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27260 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27262 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27270 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27271 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27272 $as_echo_n "(cached) " >&6
27274 gcc_cv_as_ix86_xbrace_comment
=no
27275 if test x
$gcc_cv_as != x
; then
27276 $as_echo '.text' > conftest.s
27277 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27279 (eval $ac_try) 2>&5
27281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27282 test $ac_status = 0; }; }
27284 gcc_cv_as_ix86_xbrace_comment
=yes
27286 echo "configure: failed program was" >&5
27289 rm -f conftest.o conftest.s
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27293 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27294 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27296 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27302 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27303 if ${gcc_cv_as_ix86_filds+:} false
; then :
27304 $as_echo_n "(cached) " >&6
27306 gcc_cv_as_ix86_filds
=no
27307 if test x
$gcc_cv_as != x
; then
27308 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27309 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27311 (eval $ac_try) 2>&5
27313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27314 test $ac_status = 0; }; }
27316 gcc_cv_as_ix86_filds
=yes
27318 echo "configure: failed program was" >&5
27321 rm -f conftest.o conftest.s
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27325 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27326 if test $gcc_cv_as_ix86_filds = yes; then
27328 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27334 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27335 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27336 $as_echo_n "(cached) " >&6
27338 gcc_cv_as_ix86_fildq
=no
27339 if test x
$gcc_cv_as != x
; then
27340 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27341 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27343 (eval $ac_try) 2>&5
27345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27346 test $ac_status = 0; }; }
27348 gcc_cv_as_ix86_fildq
=yes
27350 echo "configure: failed program was" >&5
27353 rm -f conftest.o conftest.s
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27357 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27358 if test $gcc_cv_as_ix86_fildq = yes; then
27360 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27366 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27367 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27368 $as_echo_n "(cached) " >&6
27370 gcc_cv_as_ix86_cmov_sun_syntax
=no
27371 if test x
$gcc_cv_as != x
; then
27372 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27373 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27375 (eval $ac_try) 2>&5
27377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27378 test $ac_status = 0; }; }
27380 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27382 echo "configure: failed program was" >&5
27385 rm -f conftest.o conftest.s
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27389 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27390 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27392 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27398 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27399 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27400 $as_echo_n "(cached) " >&6
27402 gcc_cv_as_ix86_ffreep
=no
27403 if test x
$gcc_cv_as != x
; then
27404 $as_echo 'ffreep %st(1)' > conftest.s
27405 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27407 (eval $ac_try) 2>&5
27409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27410 test $ac_status = 0; }; }
27412 gcc_cv_as_ix86_ffreep
=yes
27414 echo "configure: failed program was" >&5
27417 rm -f conftest.o conftest.s
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27421 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27422 if test $gcc_cv_as_ix86_ffreep = yes; then
27424 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27430 $as_echo_n "checking assembler for .quad directive... " >&6; }
27431 if ${gcc_cv_as_ix86_quad+:} false
; then :
27432 $as_echo_n "(cached) " >&6
27434 gcc_cv_as_ix86_quad
=no
27435 if test x
$gcc_cv_as != x
; then
27436 $as_echo '.quad 0' > conftest.s
27437 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27439 (eval $ac_try) 2>&5
27441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27442 test $ac_status = 0; }; }
27444 gcc_cv_as_ix86_quad
=yes
27446 echo "configure: failed program was" >&5
27449 rm -f conftest.o conftest.s
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27453 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27454 if test $gcc_cv_as_ix86_quad = yes; then
27456 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27462 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27463 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27464 $as_echo_n "(cached) " >&6
27466 gcc_cv_as_ix86_sahf
=no
27467 if test x
$gcc_cv_as != x
; then
27470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27472 (eval $ac_try) 2>&5
27474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27475 test $ac_status = 0; }; }
27477 gcc_cv_as_ix86_sahf
=yes
27479 echo "configure: failed program was" >&5
27482 rm -f conftest.o conftest.s
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27486 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27487 if test $gcc_cv_as_ix86_sahf = yes; then
27489 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27495 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27496 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27497 $as_echo_n "(cached) " >&6
27499 gcc_cv_as_ix86_interunit_movq
=no
27500 if test x
$gcc_cv_as != x
; then
27503 movq %rax, %xmm0' > conftest.s
27504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27506 (eval $ac_try) 2>&5
27508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27509 test $ac_status = 0; }; }
27511 gcc_cv_as_ix86_interunit_movq
=yes
27513 echo "configure: failed program was" >&5
27516 rm -f conftest.o conftest.s
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27520 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27524 cat >>confdefs.h
<<_ACEOF
27525 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27530 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27531 if ${gcc_cv_as_ix86_hle+:} false
; then :
27532 $as_echo_n "(cached) " >&6
27534 gcc_cv_as_ix86_hle
=no
27535 if test x
$gcc_cv_as != x
; then
27536 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27537 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; }
27544 gcc_cv_as_ix86_hle
=yes
27546 echo "configure: failed program was" >&5
27549 rm -f conftest.o conftest.s
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27553 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27554 if test $gcc_cv_as_ix86_hle = yes; then
27556 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27562 $as_echo_n "checking assembler for swap suffix... " >&6; }
27563 if ${gcc_cv_as_ix86_swap+:} false
; then :
27564 $as_echo_n "(cached) " >&6
27566 gcc_cv_as_ix86_swap
=no
27567 if test x
$gcc_cv_as != x
; then
27568 $as_echo 'movl.s %esp, %ebp' > conftest.s
27569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27571 (eval $ac_try) 2>&5
27573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27574 test $ac_status = 0; }; }
27576 gcc_cv_as_ix86_swap
=yes
27578 echo "configure: failed program was" >&5
27581 rm -f conftest.o conftest.s
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27585 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27586 if test $gcc_cv_as_ix86_swap = yes; then
27588 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27594 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27595 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27596 $as_echo_n "(cached) " >&6
27598 gcc_cv_as_ix86_diff_sect_delta
=no
27599 if test x
$gcc_cv_as != x
; then
27600 $as_echo '.section .rodata
27606 .L2: nop' > conftest.s
27607 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27609 (eval $ac_try) 2>&5
27611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27612 test $ac_status = 0; }; }
27614 gcc_cv_as_ix86_diff_sect_delta
=yes
27616 echo "configure: failed program was" >&5
27619 rm -f conftest.o conftest.s
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27623 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27624 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27626 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27632 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27633 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27634 $as_echo_n "(cached) " >&6
27636 gcc_cv_as_ix86_rep_lock_prefix
=no
27637 if test x
$gcc_cv_as != x
; then
27638 $as_echo 'rep movsl
27643 lock addl %edi, (%eax,%esi)
27644 lock orl $0, (%esp)' > conftest.s
27645 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27647 (eval $ac_try) 2>&5
27649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27650 test $ac_status = 0; }; }
27652 gcc_cv_as_ix86_rep_lock_prefix
=yes
27654 echo "configure: failed program was" >&5
27657 rm -f conftest.o conftest.s
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27661 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27662 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27664 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27670 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27671 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27672 $as_echo_n "(cached) " >&6
27674 gcc_cv_as_ix86_ud2
=no
27675 if test x
$gcc_cv_as != x
; then
27676 $as_echo 'ud2' > conftest.s
27677 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27679 (eval $ac_try) 2>&5
27681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27682 test $ac_status = 0; }; }
27684 gcc_cv_as_ix86_ud2
=yes
27686 echo "configure: failed program was" >&5
27689 rm -f conftest.o conftest.s
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27693 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27694 if test $gcc_cv_as_ix86_ud2 = yes; then
27696 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27701 # Enforce 32-bit output with gas and gld.
27702 if test x
$gas = xyes
; then
27703 as_ix86_gas_32_opt
="--32"
27705 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27706 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27707 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27709 ld_ix86_gld_32_opt
="-melf_i386"
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27714 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27715 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27716 $as_echo_n "(cached) " >&6
27718 gcc_cv_as_ix86_tlsgdplt
=no
27719 if test x
$gcc_cv_as != x
; then
27720 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27721 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27723 (eval $ac_try) 2>&5
27725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27726 test $ac_status = 0; }; }
27728 if test x
$gcc_cv_ld != x \
27729 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27730 gcc_cv_as_ix86_tlsgdplt
=yes
27734 echo "configure: failed program was" >&5
27737 rm -f conftest.o conftest.s
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27741 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27742 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27744 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27750 .section .tdata,"aw'$tls_section_flag'",@progbits
27752 .section .text,"ax",@progbits
27753 call tls_ld@tlsldmplt'
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27756 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27757 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27758 $as_echo_n "(cached) " >&6
27760 gcc_cv_as_ix86_tlsldmplt
=no
27761 if test x
$gcc_cv_as != x
; then
27762 $as_echo "$conftest_s" > conftest.s
27763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27765 (eval $ac_try) 2>&5
27767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27768 test $ac_status = 0; }; }
27770 if test x
$gcc_cv_ld != x \
27771 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27772 gcc_cv_as_ix86_tlsldmplt
=yes
27776 echo "configure: failed program was" >&5
27779 rm -f conftest.o conftest.s
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27783 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27787 cat >>confdefs.h
<<_ACEOF
27788 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27793 .section .text,"ax",@progbits
27795 .type _start, @function
27797 leal value@tlsldm(%ebx), %eax
27798 call ___tls_get_addr@plt
27800 .section .tdata,"aw'$tls_section_flag'",@progbits
27801 .type value, @object
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27804 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27805 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27806 $as_echo_n "(cached) " >&6
27808 gcc_cv_as_ix86_tlsldm
=no
27809 if test x
$gcc_cv_as != x
; then
27810 $as_echo "$conftest_s" > conftest.s
27811 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27813 (eval $ac_try) 2>&5
27815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27816 test $ac_status = 0; }; }
27818 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27819 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27820 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27821 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27822 gcc_cv_as_ix86_tlsldm
=yes
27827 echo "configure: failed program was" >&5
27830 rm -f conftest.o conftest.s
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27834 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27838 cat >>confdefs.h
<<_ACEOF
27839 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27853 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27854 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27855 $as_echo_n "(cached) " >&6
27857 gcc_cv_as_ix86_got32x
=no
27858 if test x
$gcc_cv_as != x
; then
27859 $as_echo "$conftest_s" > conftest.s
27860 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27862 (eval $ac_try) 2>&5
27864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27865 test $ac_status = 0; }; }
27867 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27868 && test x
$gcc_cv_readelf != x \
27869 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27870 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27871 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27872 if $gcc_cv_objdump -dw conftest
2>&1 \
27873 |
grep 0xffffff > /dev
/null
2>&1; then
27874 gcc_cv_as_ix86_got32x
=no
27876 gcc_cv_as_ix86_got32x
=yes
27881 echo "configure: failed program was" >&5
27884 rm -f conftest.o conftest.s
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27888 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27892 cat >>confdefs.h
<<_ACEOF
27893 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27898 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27899 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27900 $as_echo_n "(cached) " >&6
27902 gcc_cv_as_ix86_gotoff_in_data
=no
27903 if test x
$gcc_cv_as != x
; then
27908 .long .L0@GOTOFF' > conftest.s
27909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27911 (eval $ac_try) 2>&5
27913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27914 test $ac_status = 0; }; }
27916 gcc_cv_as_ix86_gotoff_in_data
=yes
27918 echo "configure: failed program was" >&5
27921 rm -f conftest.o conftest.s
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27925 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27929 cat >>confdefs.h
<<_ACEOF
27930 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27935 .section .text,"ax",@progbits
27937 .type _start, @function
27939 leal ld@tlsldm(%ecx), %eax
27940 call *___tls_get_addr@GOT(%ecx)
27941 leal gd@tlsgd(%ecx), %eax
27942 call *___tls_get_addr@GOT(%ecx)
27944 .section .tdata,"aw'$tls_section_flag'",@progbits
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27953 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27954 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27955 $as_echo_n "(cached) " >&6
27957 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27958 if test x
$gcc_cv_as != x
; then
27959 $as_echo "$conftest_s" > conftest.s
27960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27962 (eval $ac_try) 2>&5
27964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27965 test $ac_status = 0; }; }
27967 if test x
$gcc_cv_ld != x \
27968 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27969 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27973 echo "configure: failed program was" >&5
27976 rm -f conftest.o conftest.s
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27980 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27984 cat >>confdefs.h
<<_ACEOF
27985 #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`
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27992 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27993 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27994 $as_echo_n "(cached) " >&6
27996 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27997 if test x
$gcc_cv_as != x
; then
27999 addl r15 = @ltoffx(x#), gp
28001 ld8.mov r16 = [r15], x#
28003 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28005 (eval $ac_try) 2>&5
28007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28008 test $ac_status = 0; }; }
28010 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
28012 echo "configure: failed program was" >&5
28015 rm -f conftest.o conftest.s
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28019 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28020 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28022 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28034 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28035 if ${gcc_cv_as_machine_directive+:} false
; then :
28036 $as_echo_n "(cached) " >&6
28038 gcc_cv_as_machine_directive
=no
28039 if test x
$gcc_cv_as != x
; then
28040 $as_echo ' .machine ppc7400' > conftest.s
28041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28043 (eval $ac_try) 2>&5
28045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28046 test $ac_status = 0; }; }
28048 gcc_cv_as_machine_directive
=yes
28050 echo "configure: failed program was" >&5
28053 rm -f conftest.o conftest.s
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28057 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28060 if test x
$gcc_cv_as_machine_directive != xyes
; then
28061 echo "*** This target requires an assembler supporting \".machine\"" >&2
28062 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
28063 test x
$build = x
$target && exit 1
28069 *-*-aix*) conftest_s
=' .machine "pwr5"
28072 *-*-darwin*) conftest_s
=' .text
28074 *) conftest_s
=' .machine power4
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28080 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28081 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
28082 $as_echo_n "(cached) " >&6
28084 gcc_cv_as_powerpc_mfcrf
=no
28085 if test x
$gcc_cv_as != x
; then
28086 $as_echo "$conftest_s" > conftest.s
28087 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28089 (eval $ac_try) 2>&5
28091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28092 test $ac_status = 0; }; }
28094 gcc_cv_as_powerpc_mfcrf
=yes
28096 echo "configure: failed program was" >&5
28099 rm -f conftest.o conftest.s
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28103 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28104 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28106 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28112 *-*-aix*) conftest_s
=' .csect .text[PR]
28114 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28118 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28119 *) conftest_s
=' .text
28121 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28125 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28126 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
28127 $as_echo_n "(cached) " >&6
28129 gcc_cv_as_powerpc_rel16
=no
28130 if test x
$gcc_cv_as != x
; then
28131 $as_echo "$conftest_s" > conftest.s
28132 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28134 (eval $ac_try) 2>&5
28136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28137 test $ac_status = 0; }; }
28139 gcc_cv_as_powerpc_rel16
=yes
28141 echo "configure: failed program was" >&5
28144 rm -f conftest.o conftest.s
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28148 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28149 if test $gcc_cv_as_powerpc_rel16 = yes; then
28151 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28157 *-*-aix*) conftest_s
=' .machine "pwr7"
28160 *) conftest_s
=' .machine power7
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28166 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28167 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
28168 $as_echo_n "(cached) " >&6
28170 gcc_cv_as_powerpc_vsx
=no
28171 if test x
$gcc_cv_as != x
; then
28172 $as_echo "$conftest_s" > conftest.s
28173 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28175 (eval $ac_try) 2>&5
28177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28178 test $ac_status = 0; }; }
28180 gcc_cv_as_powerpc_vsx
=yes
28182 echo "configure: failed program was" >&5
28185 rm -f conftest.o conftest.s
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28189 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28190 if test $gcc_cv_as_powerpc_vsx = yes; then
28192 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28198 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28199 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28200 $as_echo_n "(cached) " >&6
28202 gcc_cv_as_powerpc_gnu_attribute
=no
28203 if test x
$gcc_cv_as != x
; then
28204 $as_echo '.gnu_attribute 4,1' > conftest.s
28205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28207 (eval $ac_try) 2>&5
28209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28210 test $ac_status = 0; }; }
28212 gcc_cv_as_powerpc_gnu_attribute
=yes
28214 echo "configure: failed program was" >&5
28217 rm -f conftest.o conftest.s
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28221 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28222 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28224 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28230 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28231 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28232 $as_echo_n "(cached) " >&6
28234 gcc_cv_as_powerpc_entry_markers
=no
28235 if test x
$gcc_cv_as != x
; then
28236 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28237 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28239 (eval $ac_try) 2>&5
28241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28242 test $ac_status = 0; }; }
28244 gcc_cv_as_powerpc_entry_markers
=yes
28246 echo "configure: failed program was" >&5
28249 rm -f conftest.o conftest.s
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28253 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28254 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28256 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28262 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28263 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28264 $as_echo_n "(cached) " >&6
28266 gcc_cv_as_powerpc_pltseq_markers
=no
28267 if test x
$gcc_cv_as != x
; then
28268 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28269 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28271 (eval $ac_try) 2>&5
28273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28274 test $ac_status = 0; }; }
28276 gcc_cv_as_powerpc_pltseq_markers
=yes
28278 echo "configure: failed program was" >&5
28281 rm -f conftest.o conftest.s
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28285 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28286 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28288 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28296 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28297 if ${gcc_cv_as_aix_ref+:} false
; then :
28298 $as_echo_n "(cached) " >&6
28300 gcc_cv_as_aix_ref
=no
28301 if test x
$gcc_cv_as != x
; then
28302 $as_echo ' .csect stuff[rw]
28308 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28310 (eval $ac_try) 2>&5
28312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28313 test $ac_status = 0; }; }
28315 gcc_cv_as_aix_ref
=yes
28317 echo "configure: failed program was" >&5
28320 rm -f conftest.o conftest.s
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28324 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28325 if test $gcc_cv_as_aix_ref = yes; then
28327 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28333 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28334 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28335 $as_echo_n "(cached) " >&6
28337 gcc_cv_as_aix_dwloc
=no
28338 if test x
$gcc_cv_as != x
; then
28339 $as_echo ' .dwsect 0xA0000
28343 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28345 (eval $ac_try) 2>&5
28347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28348 test $ac_status = 0; }; }
28350 gcc_cv_as_aix_dwloc
=yes
28352 echo "configure: failed program was" >&5
28355 rm -f conftest.o conftest.s
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28359 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28360 if test $gcc_cv_as_aix_dwloc = yes; then
28362 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28372 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28373 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28374 $as_echo_n "(cached) " >&6
28376 gcc_cv_as_mips_explicit_relocs
=no
28377 if test x
$gcc_cv_as != x
; then
28378 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28379 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28381 (eval $ac_try) 2>&5
28383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28384 test $ac_status = 0; }; }
28386 gcc_cv_as_mips_explicit_relocs
=yes
28388 echo "configure: failed program was" >&5
28391 rm -f conftest.o conftest.s
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28395 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28396 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28397 if test x
$target_cpu_default = x
28398 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28399 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28405 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28406 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28407 $as_echo_n "(cached) " >&6
28409 gcc_cv_as_mips_no_shared
=no
28410 if test x
$gcc_cv_as != x
; then
28411 $as_echo 'nop' > conftest.s
28412 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28414 (eval $ac_try) 2>&5
28416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28417 test $ac_status = 0; }; }
28419 gcc_cv_as_mips_no_shared
=yes
28421 echo "configure: failed program was" >&5
28424 rm -f conftest.o conftest.s
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28428 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28429 if test $gcc_cv_as_mips_no_shared = yes; then
28431 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28437 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28438 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28439 $as_echo_n "(cached) " >&6
28441 gcc_cv_as_mips_gnu_attribute
=no
28442 if test x
$gcc_cv_as != x
; then
28443 $as_echo '.gnu_attribute 4,1' > conftest.s
28444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28446 (eval $ac_try) 2>&5
28448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28449 test $ac_status = 0; }; }
28451 gcc_cv_as_mips_gnu_attribute
=yes
28453 echo "configure: failed program was" >&5
28456 rm -f conftest.o conftest.s
28459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28460 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28461 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28463 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28469 $as_echo_n "checking assembler for .module support... " >&6; }
28470 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28471 $as_echo_n "(cached) " >&6
28473 gcc_cv_as_mips_dot_module
=no
28474 if test x
$gcc_cv_as != x
; then
28475 $as_echo '.module mips2
28476 .module fp=xx' > conftest.s
28477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28479 (eval $ac_try) 2>&5
28481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28482 test $ac_status = 0; }; }
28484 gcc_cv_as_mips_dot_module
=yes
28486 echo "configure: failed program was" >&5
28489 rm -f conftest.o conftest.s
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28493 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28494 if test $gcc_cv_as_mips_dot_module = yes; then
28496 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28500 if test x
$gcc_cv_as_mips_dot_module = xno \
28501 && test x
$with_fp_32 != x
; then
28502 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28506 $as_echo_n "checking assembler for .micromips support... " >&6; }
28507 if ${gcc_cv_as_micromips_support+:} false
; then :
28508 $as_echo_n "(cached) " >&6
28510 gcc_cv_as_micromips_support
=no
28511 if test x
$gcc_cv_as != x
; then
28512 $as_echo '.set micromips' > conftest.s
28513 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28515 (eval $ac_try) 2>&5
28517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28518 test $ac_status = 0; }; }
28520 gcc_cv_as_micromips_support
=yes
28522 echo "configure: failed program was" >&5
28525 rm -f conftest.o conftest.s
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28529 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28530 if test $gcc_cv_as_micromips_support = yes; then
28532 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28538 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28539 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28540 $as_echo_n "(cached) " >&6
28542 gcc_cv_as_mips_dtprelword
=no
28543 if test x
$gcc_cv_as != x
; then
28544 $as_echo '.section .tdata,"awT",@progbits
28548 .dtprelword x+0x8000' > conftest.s
28549 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28551 (eval $ac_try) 2>&5
28553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28554 test $ac_status = 0; }; }
28556 gcc_cv_as_mips_dtprelword
=yes
28558 echo "configure: failed program was" >&5
28561 rm -f conftest.o conftest.s
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28565 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28566 if test $gcc_cv_as_mips_dtprelword = yes; then
28568 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28574 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28575 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28576 $as_echo_n "(cached) " >&6
28578 gcc_cv_as_mips_dspr1_mult
=no
28579 if test x
$gcc_cv_as != x
; then
28580 $as_echo ' .set mips32r2
28588 multu $ac3,$4,$5' > conftest.s
28589 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28591 (eval $ac_try) 2>&5
28593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28594 test $ac_status = 0; }; }
28596 gcc_cv_as_mips_dspr1_mult
=yes
28598 echo "configure: failed program was" >&5
28601 rm -f conftest.o conftest.s
28604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28605 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28606 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28608 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28614 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28615 gcc_cv_as_ld_jalr_reloc
=no
28616 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28617 if test $in_tree_ld = yes ; then
28618 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 \
28619 && test $in_tree_ld_is_elf = yes; then
28620 gcc_cv_as_ld_jalr_reloc
=yes
28622 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28623 echo ' .ent x' > conftest.s
28624 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28625 echo ' lw $25,%call16(y)($28)' >> conftest.s
28626 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28627 echo '1: jalr $25' >> conftest.s
28628 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28629 echo '1: jalr $25' >> conftest.s
28630 echo ' .end x' >> conftest.s
28631 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28632 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28633 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28634 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28635 gcc_cv_as_ld_jalr_reloc
=yes
28641 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28642 if test x
$target_cpu_default = x
; then
28643 target_cpu_default
=MASK_RELAX_PIC_CALLS
28645 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28649 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28652 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28653 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28654 $as_echo_n "(cached) " >&6
28656 gcc_cv_ld_mips_personality_relaxation
=no
28657 if test $in_tree_ld = yes ; then
28658 if test "$gcc_cv_gld_major_version" -eq 2 \
28659 -a "$gcc_cv_gld_minor_version" -ge 21 \
28660 -o "$gcc_cv_gld_major_version" -gt 2; then
28661 gcc_cv_ld_mips_personality_relaxation
=yes
28663 elif test x
$gcc_cv_as != x \
28664 -a x
$gcc_cv_ld != x \
28665 -a x
$gcc_cv_readelf != x
; then
28666 cat > conftest.s
<<EOF
28668 .cfi_personality 0x80,indirect_ptr
28675 .section .data,"aw",@progbits
28679 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28680 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28681 if $gcc_cv_readelf -d conftest
2>&1 \
28682 |
grep TEXTREL
> /dev
/null
2>&1; then
28684 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28685 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28688 gcc_cv_ld_mips_personality_relaxation
=yes
28692 rm -f conftest.s conftest.o conftest
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28695 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28696 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28698 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28703 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28704 if ${gcc_cv_as_mips_nan+:} false
; then :
28705 $as_echo_n "(cached) " >&6
28707 gcc_cv_as_mips_nan
=no
28708 if test x
$gcc_cv_as != x
; then
28709 $as_echo '' > conftest.s
28710 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28712 (eval $ac_try) 2>&5
28714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28715 test $ac_status = 0; }; }
28717 gcc_cv_as_mips_nan
=yes
28719 echo "configure: failed program was" >&5
28722 rm -f conftest.o conftest.s
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28726 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28727 if test $gcc_cv_as_mips_nan = yes; then
28729 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28733 if test x
$gcc_cv_as_mips_nan = xno \
28734 && test x
$with_nan != x
; then
28735 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28739 # Earlier GAS versions generically support .gnu_attribute, but the
28740 # msp430 assembler will not do anything with it.
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28742 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28743 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28744 $as_echo_n "(cached) " >&6
28746 gcc_cv_as_msp430_gnu_attribute
=no
28747 if test x
$gcc_cv_as != x
; then
28748 $as_echo '.gnu_attribute 4,1' > conftest.s
28749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28751 (eval $ac_try) 2>&5
28753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28754 test $ac_status = 0; }; }
28756 gcc_cv_as_msp430_gnu_attribute
=yes
28758 echo "configure: failed program was" >&5
28761 rm -f conftest.o conftest.s
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28765 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28766 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28768 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28773 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28774 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28775 $as_echo_n "(cached) " >&6
28777 gcc_cv_as_msp430_mspabi_attribute
=no
28778 if test x
$gcc_cv_as != x
; then
28779 $as_echo '.mspabi_attribute 4,2' > conftest.s
28780 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28782 (eval $ac_try) 2>&5
28784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28785 test $ac_status = 0; }; }
28787 gcc_cv_as_msp430_mspabi_attribute
=yes
28789 echo "configure: failed program was" >&5
28792 rm -f conftest.o conftest.s
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28796 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28797 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28799 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28803 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28805 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28810 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28811 # syntax that is documented in the ABI specification.
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28813 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28814 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28815 $as_echo_n "(cached) " >&6
28817 gcc_cv_as_nios2_gotoff_relocation
=no
28818 if test x
$gcc_cv_as != x
; then
28819 $as_echo ' .extern foo
28821 .long %gotoff(foo)' > conftest.s
28822 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28824 (eval $ac_try) 2>&5
28826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28827 test $ac_status = 0; }; }
28829 gcc_cv_as_nios2_gotoff_relocation
=yes
28831 echo "configure: failed program was" >&5
28834 rm -f conftest.o conftest.s
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28838 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28839 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28841 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28848 $as_echo_n "checking assembler for .attribute support... " >&6; }
28849 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28850 $as_echo_n "(cached) " >&6
28852 gcc_cv_as_riscv_attribute
=no
28853 if test x
$gcc_cv_as != x
; then
28854 $as_echo '.attribute stack_align,4' > conftest.s
28855 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28857 (eval $ac_try) 2>&5
28859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28860 test $ac_status = 0; }; }
28862 gcc_cv_as_riscv_attribute
=yes
28864 echo "configure: failed program was" >&5
28867 rm -f conftest.o conftest.s
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28871 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28872 if test $gcc_cv_as_riscv_attribute = yes; then
28874 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28879 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28880 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
28881 $as_echo_n "(cached) " >&6
28883 gcc_cv_as_riscv_isa_spec
=no
28884 if test x
$gcc_cv_as != x
; then
28885 $as_echo '' > conftest.s
28886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28888 (eval $ac_try) 2>&5
28890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28891 test $ac_status = 0; }; }
28893 gcc_cv_as_riscv_isa_spec
=yes
28895 echo "configure: failed program was" >&5
28898 rm -f conftest.o conftest.s
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28902 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28903 if test $gcc_cv_as_riscv_isa_spec = yes; then
28905 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28910 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28911 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
28912 $as_echo_n "(cached) " >&6
28914 gcc_cv_as_riscv_march_zifencei
=no
28915 if test x
$gcc_cv_as != x
; then
28916 $as_echo '' > conftest.s
28917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28919 (eval $ac_try) 2>&5
28921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28922 test $ac_status = 0; }; }
28924 gcc_cv_as_riscv_march_zifencei
=yes
28926 echo "configure: failed program was" >&5
28929 rm -f conftest.o conftest.s
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28933 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28934 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28936 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28943 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28944 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
28945 $as_echo_n "(cached) " >&6
28947 gcc_cv_as_loongarch_dtprelword
=no
28948 if test x
$gcc_cv_as != x
; then
28949 $as_echo '' > conftest.s
28950 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28952 (eval $ac_try) 2>&5
28954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28955 test $ac_status = 0; }; }
28957 .section .tdata
,"awT",@progbits
28961 .dtprelword x
+0x8000
28963 echo "configure: failed program was" >&5
28966 rm -f conftest.o conftest.s
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28970 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28972 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28974 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28978 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28979 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
28980 $as_echo_n "(cached) " >&6
28982 gcc_cv_as_loongarch_explicit_relocs
=no
28983 if test x
$gcc_cv_as != x
; then
28984 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28985 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28987 (eval $ac_try) 2>&5
28989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28990 test $ac_status = 0; }; }
28992 gcc_cv_as_loongarch_explicit_relocs
=yes
28994 echo "configure: failed program was" >&5
28997 rm -f conftest.o conftest.s
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
29001 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
29002 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
29004 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
29009 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
29010 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
29011 $as_echo_n "(cached) " >&6
29013 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
29014 if test x
$gcc_cv_as != x
; then
29015 $as_echo '.cfi_startproc
29016 .cfi_personality 0x9b,a
29018 .cfi_endproc' > conftest.s
29019 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29021 (eval $ac_try) 2>&5
29023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29024 test $ac_status = 0; }; }
29026 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
29028 echo "configure: failed program was" >&5
29031 rm -f conftest.o conftest.s
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29035 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29036 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29038 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29045 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29046 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
29047 $as_echo_n "(cached) " >&6
29049 gcc_cv_as_s390_gnu_attribute
=no
29050 if test x
$gcc_cv_as != x
; then
29051 $as_echo '.gnu_attribute 8,1' > conftest.s
29052 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29054 (eval $ac_try) 2>&5
29056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29057 test $ac_status = 0; }; }
29059 gcc_cv_as_s390_gnu_attribute
=yes
29061 echo "configure: failed program was" >&5
29064 rm -f conftest.o conftest.s
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29068 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29069 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29071 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29076 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29077 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
29078 $as_echo_n "(cached) " >&6
29080 gcc_cv_as_s390_machine_machinemode
=no
29081 if test x
$gcc_cv_as != x
; then
29082 $as_echo ' .machinemode push
29085 .machine pop' > conftest.s
29086 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29088 (eval $ac_try) 2>&5
29090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29091 test $ac_status = 0; }; }
29093 gcc_cv_as_s390_machine_machinemode
=yes
29095 echo "configure: failed program was" >&5
29098 rm -f conftest.o conftest.s
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29102 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29103 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29105 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29110 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29111 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
29112 $as_echo_n "(cached) " >&6
29114 gcc_cv_as_s390_architecture_modifiers
=no
29115 if test x
$gcc_cv_as != x
; then
29116 $as_echo ' .machine z13+vx ' > conftest.s
29117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29119 (eval $ac_try) 2>&5
29121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29122 test $ac_status = 0; }; }
29124 gcc_cv_as_s390_architecture_modifiers
=yes
29126 echo "configure: failed program was" >&5
29129 rm -f conftest.o conftest.s
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29133 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29134 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29136 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29141 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29142 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
29143 $as_echo_n "(cached) " >&6
29145 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
29146 if test x
$gcc_cv_as != x
; then
29147 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29150 (eval $ac_try) 2>&5
29152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29153 test $ac_status = 0; }; }
29155 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
29157 echo "configure: failed program was" >&5
29160 rm -f conftest.o conftest.s
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29164 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29165 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29167 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29172 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29173 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
29174 $as_echo_n "(cached) " >&6
29176 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
29177 if test x
$gcc_cv_as != x
; then
29178 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29179 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29181 (eval $ac_try) 2>&5
29183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29184 test $ac_status = 0; }; }
29186 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
29188 echo "configure: failed program was" >&5
29191 rm -f conftest.o conftest.s
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29195 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29196 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29198 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29206 # Mips, LoongArch and HP-UX need the GNU assembler.
29207 # Linux on IA64 might be able to use the Intel assembler.
29210 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
29211 if test x
$gas_flag = xyes \
29212 ||
test x
"$host" != x
"$build" \
29213 ||
test ! -x "$gcc_cv_as" \
29214 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29217 echo "*** This configuration requires the GNU assembler" >&2
29223 # AMD GCN needs the LLVM assembler and linker.
29224 # Test that LLVM is at least 13.0.1.
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29228 $as_echo_n "checking llvm assembler version... " >&6; }
29229 gcc_cv_as_version
="unknown"
29230 if test x
$gcc_cv_as != x
; then
29231 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29232 case "$gcc_cv_as_version" in
29233 13.0.
[1-9]*) ;; # 13.0.1+
29234 13.
[1-9]*) ;; # 13.1+
29235 1[4-9]*) ;; # 14..19
29236 [2-9][0-9]*) ;; # 20..99
29237 [1-9][0-9][0-9]*) ;; # 100+
29238 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
29239 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29243 $as_echo "$gcc_cv_as_version, ok" >&6; }
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29250 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29251 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
29252 $as_echo_n "(cached) " >&6
29254 gcc_cv_as_arm_option_extensions
=no
29255 if test x
$gcc_cv_as != x
; then
29259 vmov.f32 s0, s1' > conftest.s
29260 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29262 (eval $ac_try) 2>&5
29264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29265 test $ac_status = 0; }; }
29267 gcc_cv_as_arm_option_extensions
=yes
29269 echo "configure: failed program was" >&5
29272 rm -f conftest.o conftest.s
29275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29276 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29277 if test $gcc_cv_as_arm_option_extensions = yes; then
29279 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29285 # ??? Not all targets support dwarf2 debug_line, even within a version
29286 # of gas. Moreover, we need to emit a valid instruction to trigger any
29287 # info to the output file. So, as supported targets are added to gas 2.11,
29288 # add some instruction here to (also) show we expect this might work.
29289 # ??? Once 2.11 is released, probably need to add first known working
29290 # version to the per-target configury.
29291 case "$cpu_type" in
29292 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29293 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29294 | visium | xstormy16 | xtensa
)
29304 if test x
"$insn" != x
; then
29306 .file 1 \"conftest.s\"
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29310 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29311 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29312 $as_echo_n "(cached) " >&6
29314 gcc_cv_as_dwarf2_debug_line
=no
29315 if test x
$gcc_cv_as != x
; then
29316 $as_echo "$conftest_s" > conftest.s
29317 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29319 (eval $ac_try) 2>&5
29321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29322 test $ac_status = 0; }; }
29324 if test x
$gcc_cv_objdump != x \
29325 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29326 |
grep debug_line
> /dev
/null
2>&1; then
29327 gcc_cv_as_dwarf2_debug_line
=yes
29328 elif test x
$gcc_cv_otool != x \
29329 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29330 |
grep debug_line
> /dev
/null
2>&1; then
29331 gcc_cv_as_dwarf2_debug_line
=yes
29334 echo "configure: failed program was" >&5
29337 rm -f conftest.o conftest.s
29340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29341 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29345 # The .debug_line file table must be in the exact order that
29346 # we specified the files, since these indices are also used
29347 # by DW_AT_decl_file. Approximate this test by testing if
29348 # the assembler bitches if the same index is assigned twice.
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29350 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29351 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29352 $as_echo_n "(cached) " >&6
29354 gcc_cv_as_dwarf2_file_buggy
=no
29355 if test x
$gcc_cv_as != x
; then
29356 $as_echo ' .file 1 "foo.s"
29357 .file 1 "bar.s"' > conftest.s
29358 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29360 (eval $ac_try) 2>&5
29362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29363 test $ac_status = 0; }; }
29365 gcc_cv_as_dwarf2_file_buggy
=yes
29367 echo "configure: failed program was" >&5
29370 rm -f conftest.o conftest.s
29373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29374 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29378 if test $gcc_cv_as_dwarf2_debug_line = yes \
29379 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29381 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29384 if test $gcc_cv_as_leb128 = yes; then
29386 .file 1 \"conftest.s\"
29387 .loc 1 3 0 view .LVU1
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29394 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29395 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29396 $as_echo_n "(cached) " >&6
29398 gcc_cv_as_dwarf2_debug_view
=no
29399 if test x
$gcc_cv_as != x
; then
29400 $as_echo "$conftest_s" > conftest.s
29401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29403 (eval $ac_try) 2>&5
29405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29406 test $ac_status = 0; }; }
29408 gcc_cv_as_dwarf2_debug_view
=yes
29410 echo "configure: failed program was" >&5
29413 rm -f conftest.o conftest.s
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29417 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29418 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29420 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29428 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29429 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29430 $as_echo_n "(cached) " >&6
29432 gcc_cv_as_gdwarf2_flag
=no
29433 if test x
$gcc_cv_as != x
; then
29434 $as_echo "$insn" > conftest.s
29435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29437 (eval $ac_try) 2>&5
29439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29440 test $ac_status = 0; }; }
29442 gcc_cv_as_gdwarf2_flag
=yes
29444 echo "configure: failed program was" >&5
29447 rm -f conftest.o conftest.s
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29451 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29452 if test $gcc_cv_as_gdwarf2_flag = yes; then
29454 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29460 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29461 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29462 $as_echo_n "(cached) " >&6
29464 gcc_cv_as_gdwarf_5_flag
=no
29465 if test x
$gcc_cv_as != x
; then
29466 $as_echo "$insn" > conftest.s
29467 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29469 (eval $ac_try) 2>&5
29471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29472 test $ac_status = 0; }; }
29474 if test x
$gcc_cv_objdump != x \
29475 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29476 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29477 gcc_cv_as_gdwarf_5_flag
=yes;
29480 echo "configure: failed program was" >&5
29483 rm -f conftest.o conftest.s
29486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29487 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29488 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29490 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29496 win32 | pe | cygwin
* | mingw32
*)
29497 section_flags
=\"dr
\"
29498 function_type
=".def foo; .scl 2; .type 32; .endef"
29501 section_flags
=\"\",%progbits
29502 function_type
=".type foo, %function"
29503 function_size
=".size foo, .-foo";;
29505 dwarf4_debug_info_size
=0x46
29506 dwarf4_high_pc_form
=7
29507 dwarf4_debug_aranges_size
=0x2c
29509 for dwarf4_addr_size
in 8 4; do
29525 .section .debug_info,$section_flags
29527 .4byte $dwarf4_debug_info_size
29529 .4byte .Ldebug_abbrev0
29530 .byte 0x$dwarf4_addr_size
29532 .ascii \"GNU C17\\0\"
29536 .${dwarf4_addr_size}byte .Ltext0
29537 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29538 .4byte .Ldebug_line0
29544 .${dwarf4_addr_size}byte .LFB0
29545 .${dwarf4_addr_size}byte .LFE0-.LFB0
29549 .section .debug_abbrev,$section_flags
29565 .byte 0x$dwarf4_high_pc_form
29586 .byte 0x$dwarf4_high_pc_form
29592 .section .debug_aranges,$section_flags
29593 .4byte $dwarf4_debug_aranges_size
29595 .4byte .Ldebug_info0
29600 .${dwarf4_addr_size}byte .Ltext0
29601 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29602 .${dwarf4_addr_size}byte 0
29603 .${dwarf4_addr_size}byte 0
29604 .section .debug_line,$section_flags
29606 .4byte .LELT0-.LSLT0
29609 .4byte .LELTP0-.LASLTP0
29637 .byte 0x$dwarf4_line_sz
29639 .${dwarf4_addr_size}byte .LM1
29644 .byte 0x$dwarf4_line_sz
29646 .${dwarf4_addr_size}byte .LM2
29651 .byte 0x$dwarf4_line_sz
29653 .${dwarf4_addr_size}byte .Letext0
29658 .section .debug_str,$section_flags
29662 if test $dwarf4_addr_size = 4; then
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29664 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29665 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29666 $as_echo_n "(cached) " >&6
29668 gcc_cv_as_debug_line_32_flag
=no
29669 if test x
$gcc_cv_as != x
; then
29670 $as_echo "$conftest_s" > conftest.s
29671 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29673 (eval $ac_try) 2>&5
29675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29676 test $ac_status = 0; }; }
29678 gcc_cv_as_debug_line_32_flag
=yes
29680 echo "configure: failed program was" >&5
29683 rm -f conftest.o conftest.s
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29687 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29688 if test $gcc_cv_as_debug_line_32_flag = yes; then
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29694 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29695 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
29696 $as_echo_n "(cached) " >&6
29698 gcc_cv_as_debug_line_64_flag
=no
29699 if test x
$gcc_cv_as != x
; then
29700 $as_echo "$conftest_s" > conftest.s
29701 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29703 (eval $ac_try) 2>&5
29705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29706 test $ac_status = 0; }; }
29708 gcc_cv_as_debug_line_64_flag
=yes
29710 echo "configure: failed program was" >&5
29713 rm -f conftest.o conftest.s
29716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29717 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29718 if test $gcc_cv_as_debug_line_64_flag = yes; then
29723 if test $dwarf4_success = yes; then
29725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29726 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29727 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
29728 $as_echo_n "(cached) " >&6
29730 gcc_cv_as_dwarf_4_debug_line_flag
=no
29731 if test x
$gcc_cv_as != x
; then
29732 $as_echo "$conftest_s" > conftest.s
29733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29735 (eval $ac_try) 2>&5
29737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29738 test $ac_status = 0; }; }
29740 gcc_cv_as_dwarf_4_debug_line_flag
=yes
29742 echo "configure: failed program was" >&5
29745 rm -f conftest.o conftest.s
29748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29749 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29750 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29756 dwarf4_debug_info_size
=0x36
29757 dwarf4_high_pc_form
=6
29758 dwarf4_debug_aranges_size
=0x1c
29762 if test $dwarf4_success = yes; then
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29781 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29782 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
29783 $as_echo_n "(cached) " >&6
29785 gcc_cv_as_dwarf_4_app_flag
=no
29786 if test x
$gcc_cv_as != x
; then
29787 $as_echo "$conftest_s" > conftest.s
29788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29790 (eval $ac_try) 2>&5
29792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29793 test $ac_status = 0; }; }
29795 gcc_cv_as_dwarf_4_app_flag
=yes
29797 echo "configure: failed program was" >&5
29800 rm -f conftest.o conftest.s
29803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29804 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29805 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29811 if test $dwarf4_success = yes; then
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29822 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29823 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
29824 $as_echo_n "(cached) " >&6
29826 gcc_cv_as_working_gdwarf_n_flag
=no
29827 if test x
$gcc_cv_as != x
; then
29828 $as_echo "$conftest_s" > conftest.s
29829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29831 (eval $ac_try) 2>&5
29833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29834 test $ac_status = 0; }; }
29836 if test x
$gcc_cv_objdump != x \
29837 && $gcc_cv_objdump -W conftest.o
2>&1 \
29838 |
grep conftest.s
> /dev
/null
2>&1; then
29839 gcc_cv_as_working_gdwarf_n_flag
=no
29841 gcc_cv_as_working_gdwarf_n_flag
=yes
29844 echo "configure: failed program was" >&5
29847 rm -f conftest.o conftest.s
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29851 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29854 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29856 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29862 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29863 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
29864 $as_echo_n "(cached) " >&6
29866 gcc_cv_as_debug_prefix_map_flag
=no
29867 if test x
$gcc_cv_as != x
; then
29868 $as_echo "$insn" > conftest.s
29869 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29871 (eval $ac_try) 2>&5
29873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29874 test $ac_status = 0; }; }
29876 gcc_cv_as_debug_prefix_map_flag
=yes
29878 echo "configure: failed program was" >&5
29881 rm -f conftest.o conftest.s
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29885 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29886 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29888 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29895 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29896 if ${gcc_cv_as_compress_debug+:} false
; then :
29897 $as_echo_n "(cached) " >&6
29899 gcc_cv_as_compress_debug
=no
29900 if test x
$gcc_cv_as != x
; then
29901 $as_echo '' > conftest.s
29902 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29904 (eval $ac_try) 2>&5
29906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29907 test $ac_status = 0; }; }
29909 # gas compiled without zlib cannot compress debug sections and warns
29910 # about it, but still exits successfully. So check for this, too.
29911 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
29913 gcc_cv_as_compress_debug
=0
29914 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
29916 gcc_cv_as_compress_debug
=1
29917 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29918 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29919 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29920 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
29922 gcc_cv_as_compress_debug
=2
29925 gcc_cv_as_compress_debug
=0
29928 echo "configure: failed program was" >&5
29931 rm -f conftest.o conftest.s
29934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29935 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29939 cat >>confdefs.h
<<_ACEOF
29940 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29944 cat >>confdefs.h
<<_ACEOF
29945 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29949 cat >>confdefs.h
<<_ACEOF
29950 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29955 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29956 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
29957 $as_echo_n "(cached) " >&6
29959 gcc_cv_as_lcomm_with_alignment
=no
29960 if test x
$gcc_cv_as != x
; then
29961 $as_echo '.lcomm bar,4,16' > conftest.s
29962 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29964 (eval $ac_try) 2>&5
29966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29967 test $ac_status = 0; }; }
29969 gcc_cv_as_lcomm_with_alignment
=yes
29971 echo "configure: failed program was" >&5
29974 rm -f conftest.o conftest.s
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29978 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29979 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29981 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29986 if test x
$with_sysroot = x
&& test x
$host = x
$target \
29987 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29988 && test "$prefix" != "NONE"; then
29990 cat >>confdefs.h
<<_ACEOF
29991 #define PREFIX_INCLUDE_DIR "$prefix/include"
29996 # Determine the version of glibc, if any, used on the target.
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29998 $as_echo_n "checking for target glibc version... " >&6; }
30000 # Check whether --with-glibc-version was given.
30001 if test "${with_glibc_version+set}" = set; then :
30002 withval
=$with_glibc_version;
30003 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30004 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30005 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30007 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
30011 glibc_version_major
=0
30012 glibc_version_minor
=0
30013 if test -f $target_header_dir/features.h \
30014 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30015 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30016 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30017 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30022 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30024 cat >>confdefs.h
<<_ACEOF
30025 #define TARGET_GLIBC_MAJOR $glibc_version_major
30029 cat >>confdefs.h
<<_ACEOF
30030 #define TARGET_GLIBC_MINOR $glibc_version_minor
30034 # Check whether --enable-gnu-unique-object was given.
30035 if test "${enable_gnu_unique_object+set}" = set; then :
30036 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30038 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30039 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30043 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30044 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
30045 $as_echo_n "(cached) " >&6
30047 gcc_cv_as_gnu_unique_object
=no
30048 if test x
$gcc_cv_as != x
; then
30049 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30050 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30052 (eval $ac_try) 2>&5
30054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30055 test $ac_status = 0; }; }
30057 gcc_cv_as_gnu_unique_object
=yes
30059 echo "configure: failed program was" >&5
30062 rm -f conftest.o conftest.s
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30066 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30067 if test $gcc_cv_as_gnu_unique_object = yes; then
30068 # We need to unquote above to to use the definition from config.gcc.
30069 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30071 if test $glibc_version_major -gt 2 \
30072 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30073 enable_gnu_unique_object
=yes
30080 if test x
$enable_gnu_unique_object = xyes
; then
30082 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30087 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30088 if ${gcc_cv_as_line_zero+:} false
; then :
30089 $as_echo_n "(cached) " >&6
30091 gcc_cv_as_line_zero
=no
30092 if test "x$gcc_cv_as" != x
; then
30093 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30094 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30096 (eval $ac_try) 2>&5
30098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30099 test $ac_status = 0; }; } &&
30100 test "x`cat conftest.out`" = x
30102 gcc_cv_as_line_zero
=yes
30104 echo "configure: failed program was" >&5
30106 echo "configure: error output was" >&5
30107 cat conftest.out
>&5
30109 rm -f conftest.o conftest.s conftest.out
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30113 $as_echo "$gcc_cv_as_line_zero" >&6; }
30114 if test "x$gcc_cv_as_line_zero" = xyes
; then
30116 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30121 $as_echo_n "checking support for thin archives... " >&6; }
30122 thin_archive_support
=no
30123 echo 'int main (void) { return 0; }' > conftest.c
30124 if ($AR --version |
sed 1q |
grep "GNU ar" \
30125 && $CC $CFLAGS -c conftest.c \
30126 && $AR rcT conftest.a conftest.o \
30127 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
30128 thin_archive_support
=yes
30130 rm -f conftest.c conftest.o conftest.a conftest
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30132 $as_echo "$thin_archive_support" >&6; }
30135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30136 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30137 gcc_cv_ld_eh_frame_hdr
=no
30138 if test $in_tree_ld = yes ; then
30139 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 \
30140 && test $in_tree_ld_is_elf = yes; then
30141 gcc_cv_ld_eh_frame_hdr
=yes
30143 elif test x
$gcc_cv_ld != x
; then
30144 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30145 # Check if linker supports --eh-frame-hdr option
30146 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
30147 gcc_cv_ld_eh_frame_hdr
=yes
30152 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30153 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
30154 gcc_cv_ld_eh_frame_hdr
=yes
30161 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
30163 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30167 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30170 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30171 gcc_cv_ld_eh_frame_ciev3
=no
30172 if test $in_tree_ld = yes ; then
30173 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 \
30174 && test $in_tree_ld_is_elf = yes; then
30175 gcc_cv_ld_eh_frame_ciev3
=yes
30177 elif test x
$gcc_cv_ld != x
; then
30178 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30179 gcc_cv_ld_eh_frame_ciev3
=yes
30180 if test 0"$ld_date" -lt 20040513; then
30181 if test -n "$ld_date"; then
30182 # If there was date string, but was earlier than 2004-05-13, fail
30183 gcc_cv_ld_eh_frame_ciev3
=no
30184 elif test "$ld_vers_major" -lt 2; then
30185 gcc_cv_ld_eh_frame_ciev3
=no
30186 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30187 gcc_cv_ld_eh_frame_ciev3
=no
30193 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30194 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30195 gcc_cv_ld_eh_frame_ciev3
=yes
30202 cat >>confdefs.h
<<_ACEOF
30203 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30207 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30210 $as_echo_n "checking linker position independent executable support... " >&6; }
30212 if test $in_tree_ld = yes ; then
30214 # Full PIE support on Solaris was only introduced in gld 2.26.
30215 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30216 *) gcc_gld_pie_min_version
=15 ;;
30218 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 \
30219 && test $in_tree_ld_is_elf = yes; then
30222 elif test x
$gcc_cv_ld != x
; then
30223 # Check if linker supports -pie option
30224 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30228 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30229 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30236 *-*-solaris2.1
[1-9]*)
30237 # Solaris 11.3 added PIE support.
30238 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30245 if test x
"$gcc_cv_ld_pie" = xyes
; then
30247 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30251 $as_echo "$gcc_cv_ld_pie" >&6; }
30253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30254 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30255 gcc_cv_ld_pie_copyreloc
=no
30256 if test $gcc_cv_ld_pie = yes ; then
30257 if test $in_tree_ld = yes ; then
30258 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
30259 gcc_cv_ld_pie_copyreloc
=yes
30261 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30262 # Check if linker supports -pie option with copy reloc
30264 i?
86-*-linux* | x86_64-
*-linux*)
30265 cat > conftest1.s
<<EOF
30268 .type a_glob, @object
30273 cat > conftest2.s
<<EOF
30276 .type main, @function
30278 movl %eax, a_glob(%rip)
30281 .section .data.rel,"aw",@progbits
30286 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30287 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30288 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30289 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30290 gcc_cv_ld_pie_copyreloc
=yes
30292 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30298 cat >>confdefs.h
<<_ACEOF
30299 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30303 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30306 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30307 gcc_cv_ld_eh_gc_sections
=no
30308 if test $in_tree_ld = yes ; then
30309 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 \
30310 && test $in_tree_ld_is_elf = yes; then
30311 gcc_cv_ld_eh_gc_sections
=yes
30313 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30314 cat > conftest.s
<<EOF
30317 .type _start, @function
30320 .size _start, .-_start
30321 .section .text.foo,"ax",@progbits
30322 .type foo, @function
30326 .section .gcc_except_table.foo,"a",@progbits
30329 .section .eh_frame,"a",@progbits
30332 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30333 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30334 |
grep "gc-sections option ignored" > /dev
/null
; then
30335 gcc_cv_ld_eh_gc_sections
=no
30336 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30337 |
grep gcc_except_table
> /dev
/null
; then
30338 gcc_cv_ld_eh_gc_sections
=yes
30339 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30340 if test x
$gcc_cv_as_comdat_group != xyes
; then
30341 gcc_cv_ld_eh_gc_sections
=no
30342 cat > conftest.s
<<EOF
30345 .type _start, @function
30348 .size _start, .-_start
30349 .section .gnu.linkonce.t.foo,"ax",@progbits
30350 .type foo, @function
30354 .section .gcc_except_table.foo,"a",@progbits
30357 .section .eh_frame,"a",@progbits
30360 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30361 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30362 |
grep "gc-sections option ignored" > /dev
/null
; then
30363 gcc_cv_ld_eh_gc_sections
=no
30364 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30365 |
grep gcc_except_table
> /dev
/null
; then
30366 gcc_cv_ld_eh_gc_sections
=yes
30372 rm -f conftest.s conftest.o conftest
30376 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30377 gcc_cv_ld_eh_gc_sections
=no
30380 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30382 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30386 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30389 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30390 gcc_cv_ld_eh_gc_sections_bug
=no
30391 if test $in_tree_ld = yes ; then
30392 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 \
30393 && test $in_tree_ld_is_elf = yes; then
30394 gcc_cv_ld_eh_gc_sections_bug
=yes
30396 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
30397 gcc_cv_ld_eh_gc_sections_bug
=yes
30398 cat > conftest.s
<<EOF
30401 .type _start, @function
30404 .size _start, .-_start
30405 .section .text.startup.foo,"ax",@progbits
30406 .type foo, @function
30410 .section .gcc_except_table.foo,"a",@progbits
30413 .section .eh_frame,"a",@progbits
30416 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30417 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30418 |
grep "gc-sections option ignored" > /dev
/null
; then
30420 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30421 |
grep gcc_except_table
> /dev
/null
; then
30422 gcc_cv_ld_eh_gc_sections_bug
=no
30425 rm -f conftest.s conftest.o conftest
30427 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30429 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30433 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30436 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30437 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30438 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
30439 gcc_cv_ld_compress_debug
=1
30440 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30441 # Detect zstd debug section compression support
30442 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
30443 gcc_cv_ld_compress_debug
=2
30446 case "${target}" in
30448 # Introduced in Solaris 11.2.
30449 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30450 gcc_cv_ld_compress_debug
=1
30451 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30453 gcc_cv_ld_compress_debug
=0
30457 # Assume linkers other than GNU ld don't support compessed debug
30459 gcc_cv_ld_compress_debug
=0
30464 cat >>confdefs.h
<<_ACEOF
30465 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30469 cat >>confdefs.h
<<_ACEOF
30470 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30474 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30476 if test x
"$ld64_flag" = x
"yes"; then
30478 # Set defaults for possibly untestable items.
30479 gcc_cv_ld64_export_dynamic
=0
30480 gcc_cv_ld64_platform_version
=0
30482 if test "$build" = "$host"; then
30488 # On Darwin, because of FAT library support, it is often possible to execute
30489 # exes from compatible archs even when the host differs from the build system.
30490 case "$build","$host" in
30491 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30492 darwin_try_test
=1;;
30496 # If the configurer specified a minimum ld64 version to be supported, then use
30497 # that to determine feature support.
30498 if test x
"${gcc_cv_ld64_version}" != x
; then
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30500 $as_echo_n "checking ld64 specified version... " >&6; }
30501 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30503 $as_echo "$gcc_cv_ld64_major" >&6; }
30504 if test "$gcc_cv_ld64_major" -ge 236; then
30505 gcc_cv_ld64_export_dynamic
=1
30507 if test "$gcc_cv_ld64_major" -ge 512; then
30508 gcc_cv_ld64_platform_version
=1
30510 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30511 # If the version was not specified, try to find it.
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30513 $as_echo_n "checking linker version... " >&6; }
30514 if test x
"${gcc_cv_ld64_version}" = x
; then
30515 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30518 $as_echo "$gcc_cv_ld64_version" >&6; }
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30521 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30522 gcc_cv_ld64_export_dynamic
=1
30523 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30524 gcc_cv_ld64_export_dynamic
=0
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30527 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30530 $as_echo_n "checking linker for -platform_version support... " >&6; }
30531 gcc_cv_ld64_platform_version
=1
30532 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30533 gcc_cv_ld64_platform_version
=0
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30536 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30539 if test x
"${gcc_cv_ld64_version}" != x
; then
30541 cat >>confdefs.h
<<_ACEOF
30542 #define LD64_VERSION "${gcc_cv_ld64_version}"
30548 cat >>confdefs.h
<<_ACEOF
30549 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30554 cat >>confdefs.h
<<_ACEOF
30555 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30560 if test x
"$dsymutil_flag" = x
"yes"; then
30562 # If the user specified a dsymutil path, then we will already have the
30563 # version string, otherwise, pick it up.
30564 if test x
"$gcc_cv_dsymutil" = x
; then
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30566 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30567 dsymutil_vers
="tool unspecified"
30568 elif test x
"$dsymutil_vers" = x
; then
30569 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30572 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30574 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30575 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30576 dsymutil_kind
=DWARFUTILS
30577 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30578 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30579 dsymutil_kind
=CLANG
30580 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30581 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30583 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30585 dsymutil_kind
=UNKNOWN
30586 dsymutil_vers
="0.0"
30588 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30589 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30590 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30591 if test x
"${dsymutil_minor}" = x
; then
30594 if test x
"${dsymutil_tiny}" = x
; then
30598 cat >>confdefs.h
<<_ACEOF
30599 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30603 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30607 win32 | pe | cygwin* | mingw32*)
30608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
30609 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
30610 gcc_cv_ld_broken_pe_dwarf5=yes
30611 if test $in_tree_ld = yes ; then
30612 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30613 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30614 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30615 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30616 gcc_cv_ld_broken_pe_dwarf5=no
30619 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30620 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30621 gcc_cv_ld_broken_pe_dwarf5=no
30624 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30626 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30630 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30633 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30634 gcc_cv_ld_disable_dynamicbase
=no
30635 if test $in_tree_ld = yes; then
30636 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 \
30637 gcc_cv_ld_disable_dynamicbase
=yes
30640 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
30641 gcc_cv_ld_disable_dynamicbase
=yes
30644 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
30646 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30650 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30659 $as_echo_n "checking linker --as-needed support... " >&6; }
30660 if ${gcc_cv_ld_as_needed+:} false
; then :
30661 $as_echo_n "(cached) " >&6
30663 gcc_cv_ld_as_needed
=no
30664 gcc_cv_ld_as_needed_option
='--as-needed'
30665 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30666 if test $in_tree_ld = yes ; then
30667 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 \
30668 && test $in_tree_ld_is_elf = yes; then
30669 gcc_cv_ld_as_needed
=yes
30670 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30671 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30672 gcc_cv_ld_no_as_needed_option
='--pop-state'
30675 elif test x
$gcc_cv_ld != x
; then
30676 # Check if linker supports --as-needed and --no-as-needed options
30677 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30678 gcc_cv_ld_as_needed
=yes
30679 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30680 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30681 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30682 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30683 # Use these options only when both ld.bfd and ld.gold support
30684 # --push-state/--pop-state, which unfortunately wasn't added
30685 # at the same time.
30686 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30687 gcc_cv_ld_no_as_needed_option
='--pop-state'
30690 case "$target:$gnu_ld" in
30692 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30694 gcc_cv_ld_as_needed
=yes
30695 gcc_cv_ld_as_needed_option
="-z ignore"
30696 gcc_cv_ld_no_as_needed_option
="-z record"
30700 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30701 # dl_iterate_phdr, i.e. since Solaris 11.
30703 *-*-solaris2.1
[1-9]*)
30705 i?
86-*-* | x86_64-
*-*)
30706 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30707 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30708 gcc_cv_ld_as_needed
=no
30714 gcc_cv_ld_as_needed
=no
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30720 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30721 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30723 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30726 cat >>confdefs.h
<<_ACEOF
30727 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30731 cat >>confdefs.h
<<_ACEOF
30732 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30738 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30739 saved_LDFLAGS
="$LDFLAGS"
30740 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30741 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30743 /* end confdefs.h. */
30744 int main(void) {return 0;}
30746 if ac_fn_cxx_try_link
"$LINENO"; then :
30747 gcc_cv_ld_clearcap
=yes; break
30749 gcc_cv_ld_clearcap
=no
30751 rm -f core conftest.err conftest.
$ac_objext \
30752 conftest
$ac_exeext conftest.
$ac_ext
30754 LDFLAGS
="$saved_LDFLAGS"
30755 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30757 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30759 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30763 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30769 emul_name
="-melf32lppc"
30772 emul_name
="-melf32ppc"
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30776 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30777 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30778 $as_echo_n "(cached) " >&6
30780 gcc_cv_ld_ppc_attr
=no
30781 if test x
"$ld_is_gold" = xyes
; then
30782 gcc_cv_ld_ppc_attr
=yes
30783 elif test $in_tree_ld = yes ; then
30784 if test "$gcc_cv_gld_major_version" -eq 2 \
30785 -a "$gcc_cv_gld_minor_version" -ge 28 \
30786 -o "$gcc_cv_gld_major_version" -gt 2; then
30787 gcc_cv_ld_ppc_attr
=yes
30789 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30790 # check that merging the long double .gnu_attribute doesn't warn
30791 cat > conftest1.s
<<EOF
30794 cat > conftest2.s
<<EOF
30797 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30798 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30799 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
30800 && test ! -s conftest.err
; then
30801 gcc_cv_ld_ppc_attr
=yes
30803 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30808 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30809 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
30811 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30817 case "$target:$tm_file" in
30818 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
30821 emul_name
="-melf64lppc"
30824 emul_name
="-melf64ppc"
30827 emul_name
="-melf64lppc_fbsd"
30830 emul_name
="-melf64ppc_fbsd"
30833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30834 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30835 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
30836 $as_echo_n "(cached) " >&6
30838 gcc_cv_ld_no_dot_syms
=no
30839 if test x
"$ld_is_gold" = xyes
; then
30840 gcc_cv_ld_no_dot_syms
=yes
30841 elif test $in_tree_ld = yes ; then
30842 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
30843 gcc_cv_ld_no_dot_syms
=yes
30845 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30846 cat > conftest1.s
<<EOF
30850 cat > conftest2.s
<<EOF
30851 .section ".opd","aw"
30854 .type foo,@function
30856 .quad .LEfoo,.TOC.@tocbase,0
30862 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30863 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30864 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
30865 gcc_cv_ld_no_dot_syms
=yes
30867 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30872 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30873 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
30875 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30880 $as_echo_n "checking linker large toc support... " >&6; }
30881 if ${gcc_cv_ld_large_toc+:} false
; then :
30882 $as_echo_n "(cached) " >&6
30884 gcc_cv_ld_large_toc
=no
30885 if test x
"$ld_is_gold" = xyes
; then
30886 gcc_cv_ld_large_toc
=yes
30887 elif test $in_tree_ld = yes ; then
30888 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
30889 gcc_cv_ld_large_toc
=yes
30891 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30892 cat > conftest.s
<<EOF
30893 .section ".tbss","awT",@nobits
30899 addis 9,13,ie0@got@tprel@ha
30900 ld 9,ie0@got@tprel@l(9)
30902 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30903 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
30904 gcc_cv_ld_large_toc
=yes
30906 rm -f conftest conftest.o conftest.s
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30911 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30912 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30914 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30919 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30920 if ${gcc_cv_ld_toc_align+:} false
; then :
30921 $as_echo_n "(cached) " >&6
30923 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
30924 cat > conftest.s
<<EOF
30929 .section .data.rel.ro,"aw",@progbits
30934 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30935 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
30936 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)) }'`
30938 rm -f conftest conftest.o conftest.s
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30943 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30944 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30946 cat >>confdefs.h
<<_ACEOF
30947 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30957 $as_echo_n "checking linker large toc support... " >&6; }
30958 if ${gcc_cv_ld_large_toc+:} false
; then :
30959 $as_echo_n "(cached) " >&6
30961 gcc_cv_ld_large_toc
=no
30962 if test x
$gcc_cv_as != x
; then
30963 cat > conftest.s
<<EOF
30973 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
30974 gcc_cv_ld_large_toc
=yes
30976 rm -f conftest conftest.o conftest.s
30980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30981 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30982 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30984 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30991 $as_echo_n "checking linker --build-id support... " >&6; }
30992 if ${gcc_cv_ld_buildid+:} false
; then :
30993 $as_echo_n "(cached) " >&6
30995 gcc_cv_ld_buildid
=no
30996 if test $in_tree_ld = yes ; then
30997 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30998 "$gcc_cv_gld_minor_version" -ge 18 -o \
30999 "$gcc_cv_gld_major_version" -gt 2 \
31000 && test $in_tree_ld_is_elf = yes; then
31001 gcc_cv_ld_buildid
=yes
31003 elif test x
$gcc_cv_ld != x
; then
31004 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
31005 gcc_cv_ld_buildid
=yes
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31010 $as_echo "$gcc_cv_ld_buildid" >&6; }
31011 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31013 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31017 # Check whether --enable-linker-build-id was given.
31018 if test "${enable_linker_build_id+set}" = set; then :
31019 enableval
=$enable_linker_build_id;
31021 enable_linker_build_id
=no
31025 if test x
"$enable_linker_build_id" = xyes
; then
31026 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31028 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31032 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31036 # In binutils 2.21, GNU ld gained support for new emulations fully
31037 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31039 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31040 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
31041 $as_echo_n "(cached) " >&6
31043 gcc_cv_ld_sol2_emulation
=no
31044 if test $in_tree_ld = yes ; then
31045 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31046 "$gcc_cv_gld_minor_version" -ge 21 -o \
31047 "$gcc_cv_gld_major_version" -gt 2 \
31048 && test $in_tree_ld_is_elf = yes; then
31049 gcc_cv_ld_sol2_emulation
=yes
31051 elif test x
$gcc_cv_ld != x
; then
31052 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
31053 grep _sol2
> /dev
/null
; then
31054 gcc_cv_ld_sol2_emulation
=yes
31058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31059 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31060 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
31062 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31067 $as_echo_n "checking linker --sysroot support... " >&6; }
31068 if ${gcc_cv_ld_sysroot+:} false
; then :
31069 $as_echo_n "(cached) " >&6
31071 gcc_cv_ld_sysroot
=no
31072 if test $in_tree_ld = yes ; then
31073 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
31074 gcc_cv_ld_sysroot
=yes
31076 elif test x
$gcc_cv_ld != x
; then
31077 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
31078 gcc_cv_ld_sysroot
=yes
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31083 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31084 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
31086 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31092 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31094 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31095 if ${gcc_cv_solaris_crts+:} false
; then :
31096 $as_echo_n "(cached) " >&6
31098 gcc_cv_solaris_crts
=no
31099 if test x
$host != x
$target; then
31100 if test "x$with_sysroot" = xyes
; then
31101 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
31103 target_sysroot
="${with_sysroot}"
31106 target_libdir
="$target_sysroot/usr/lib"
31107 # At the time they were added, gcrt1.o became a symlink for backwards
31108 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31110 i?
86-*-solaris2* | x86_64-
*-solaris2*)
31111 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
31113 sparc
*-*-solaris2*)
31114 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
31118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31119 $as_echo "$gcc_cv_solaris_crts" >&6; }
31122 if test x
$gcc_cv_solaris_crts = xyes
; then
31124 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31128 # Check whether --enable-libssp was given.
31129 if test "${enable_libssp+set}" = set; then :
31130 enableval
=$enable_libssp; case "${enableval}" in
31134 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
31140 # Test for stack protector support in target C library.
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31142 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31143 if ${gcc_cv_libc_provides_ssp+:} false
; then :
31144 $as_echo_n "(cached) " >&6
31146 gcc_cv_libc_provides_ssp
=no
31147 if test "x$enable_libssp" = "xno"; then
31148 gcc_cv_libc_provides_ssp
=yes
31149 elif test "x$enable_libssp" = "xyes"; then
31150 gcc_cv_libc_provides_ssp
=no
31154 # All versions of musl provide stack protector
31155 gcc_cv_libc_provides_ssp
=yes;;
31156 *-*-linux* |
*-*-kfreebsd*-gnu)
31157 # glibc 2.4 and later provides __stack_chk_fail and
31158 # either __stack_chk_guard, or TLS access to stack guard canary.
31160 if test $glibc_version_major -gt 2 \
31161 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31162 gcc_cv_libc_provides_ssp
=yes
31165 if test -f $target_header_dir/features.h \
31166 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31167 $target_header_dir/features.h
> /dev
/null
; then
31168 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31169 $target_header_dir/features.h
> /dev
/null
&& \
31170 test -f $target_header_dir/bits
/uClibc_config.h
&& \
31171 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31172 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
31173 gcc_cv_libc_provides_ssp
=yes
31175 # all versions of Bionic support stack protector
31176 elif test -f $target_header_dir/sys
/cdefs.h \
31177 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31178 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
31179 gcc_cv_libc_provides_ssp
=yes
31184 # Avoid complicated tests (see
31185 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31186 # simply assert that glibc does provide this, which is true for all
31187 # realistically usable GNU/Hurd configurations.
31188 # All supported versions of musl provide it as well
31189 gcc_cv_libc_provides_ssp
=yes;;
31190 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31191 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31192 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31193 gcc_cv_libc_provides_ssp
=yes
31195 echo "no __stack_chk_fail on this target"
31199 *) gcc_cv_libc_provides_ssp
=no
;;
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31204 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31206 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31208 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31212 # Check whether --enable-default-ssp was given.
31213 # Check whether --enable-default-ssp was given.
31214 if test "${enable_default_ssp+set}" = set; then :
31215 enableval
=$enable_default_ssp;
31216 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31218 ia64
*-*-*) enable_default_ssp
=no
;;
31219 *) enable_default_ssp
=$enableval ;;
31222 enable_default_ssp
=no
31225 enable_default_ssp
=no
31228 if test x
$enable_default_ssp = xyes
; then
31230 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31235 # Test for <sys/sdt.h> on the target.
31237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31238 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31239 if ${gcc_cv_sys_sdt_h+:} false
; then :
31240 $as_echo_n "(cached) " >&6
31243 gcc_cv_sys_sdt_h
=no
31244 if test -f $target_header_dir/sys
/sdt.h
; then
31245 gcc_cv_sys_sdt_h
=yes
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31250 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31251 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
31254 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31259 # Check if TFmode long double should be used by default or not.
31260 # Some glibc targets used DFmode long double, but with glibc 2.4
31261 # and later they can use TFmode.
31263 powerpc
*-*-linux* | \
31264 sparc
*-*-linux* | \
31268 # Check whether --with-long-double-128 was given.
31269 if test "${with_long_double_128+set}" = set; then :
31270 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31274 s390
*-*-linux-musl*)
31275 gcc_cv_target_ldbl128
=yes
31277 powerpc
*-*-linux-musl*)
31278 gcc_cv_target_ldbl128
=no
31282 if test $glibc_version_major -gt 2 \
31283 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31284 gcc_cv_target_ldbl128
=yes
31287 gcc_cv_target_ldbl128
=no
31288 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31289 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31290 && gcc_cv_target_ldbl128
=yes
31301 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31303 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31307 # Check if TFmode long double target should use the IBM extended double or IEEE
31308 # 128-bit floating point formats if long doubles are 128-bits long. The long
31309 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31310 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31313 # Check whether --with-long-double-format was given.
31314 if test "${with_long_double_format+set}" = set; then :
31315 withval
=$with_long_double_format;
31316 case "$target:$with_long_double_format" in
31317 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31320 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31321 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31322 case "$with_cpu" in
31323 power7 | power8 | power9 | power1
*)
31327 as_fn_error $?
"Configuration option --with-long-double-format is only \
31328 supported if the default cpu is power7 or newer" "$LINENO" 5
31329 with_long_double_format
=""
31333 powerpc64
*-*-linux*:*)
31334 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31335 with_long_double_format
=""
31338 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31339 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31340 with_long_double_format
=""
31346 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31347 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31348 gcc_cv_libc_provides_hwcap_in_tcb
=no
31352 if test $glibc_version_major -gt 2 \
31353 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31354 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31358 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31360 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31364 # Check if the target LIBC handles PT_GNU_STACK.
31365 gcc_cv_libc_gnustack
=unknown
31367 mips
*-*-linux-musl*)
31368 gcc_cv_libc_gnustack
=yes
31372 if test $glibc_version_major -gt 2 \
31373 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31374 gcc_cv_libc_gnustack
=yes
31378 if test x
$gcc_cv_libc_gnustack = xyes
; then
31380 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31385 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31386 gcc_cv_target_dl_iterate_phdr
=unknown
31389 # <link.h> needs both a dl_iterate_phdr declaration and support for
31390 # compilation with largefile support.
31391 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31392 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31393 gcc_cv_target_dl_iterate_phdr
=yes
31395 gcc_cv_target_dl_iterate_phdr
=no
31398 *-*-dragonfly* |
*-*-freebsd*)
31399 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31400 gcc_cv_target_dl_iterate_phdr
=yes
31402 gcc_cv_target_dl_iterate_phdr
=no
31406 gcc_cv_target_dl_iterate_phdr
=yes
31410 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31412 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31416 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31418 # We no longer support different GC mechanisms. Emit an error if
31419 # the user configures with --with-gc.
31421 # Check whether --with-gc was given.
31422 if test "${with_gc+set}" = set; then :
31423 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31427 # Libraries to use on the host. This will normally be set by the top
31428 # level Makefile. Here we simply capture the value for our Makefile.
31429 if test -z "${HOST_LIBS+set}"; then
31434 # Use the system's zlib library.
31436 # Use the system's zlib library.
31437 zlibdir
="-L\$(top_builddir)/../zlib"
31438 zlibinc
="-I\$(top_srcdir)/../zlib"
31440 # Check whether --with-system-zlib was given.
31441 if test "${with_system_zlib+set}" = set; then :
31442 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31455 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31456 # Check whether --enable-maintainer-mode was given.
31457 if test "${enable_maintainer_mode+set}" = set; then :
31458 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31465 $as_echo "$maintainer_mode" >&6; }
31467 if test "$maintainer_mode" = "yes"; then
31473 if test -z "$CTAGS"; then
31477 if test -z "$ETAGS"; then
31481 if test -z "$CSCOPE"; then
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31488 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31489 # Check whether --enable-link-mutex was given.
31490 if test "${enable_link_mutex+set}" = set; then :
31491 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31497 $as_echo "$do_link_mutex" >&6; }
31499 if test "$do_link_mutex" = "yes"; then
31501 { $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
31502 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31504 DO_LINK_MUTEX
=false
31509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31510 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31511 # Check whether --enable-link-serialization was given.
31512 if test "${enable_link_serialization+set}" = set; then :
31513 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31515 do_link_serialization
=no
31518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31519 $as_echo "$do_link_serialization" >&6; }
31521 case "$do_link_serialization" in
31523 DO_LINK_SERIALIZATION
=1;;
31524 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31525 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31527 DO_LINK_SERIALIZATION
=;;
31529 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31537 # Make empty files to contain the specs and options for each language.
31538 # Then add #include lines to for a compiler that has specs and/or options.
31544 # These (without "all_") are set in each config-lang.in.
31545 # `language' must be a single word so is spelled singularly.
31548 all_outputs
='Makefile'
31549 # List of language configure and makefile fragments.
31550 all_lang_configurefrags
=
31551 all_lang_makefrags
=
31552 # Additional files for gengtype
31553 all_gtfiles
="$target_gtfiles"
31555 # These are the languages that are set in --enable-languages,
31556 # and are available in the GCC tree.
31557 all_selected_languages
=
31559 # Add the language fragments.
31560 # Languages are added via two mechanisms. Some information must be
31561 # recorded in makefile variables, these are defined in config-lang.in.
31562 # We accumulate them and plug them into the main Makefile.
31563 # The other mechanism is a set of hooks for each of the main targets
31564 # like `clean', `install', etc.
31566 language_hooks
="Make-hooks"
31568 for lang
in ${srcdir}/*/config-lang.
in
31570 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31572 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31573 if test "x$lang_alias" = x
31575 echo "$lang doesn't set \$language." 1>&2
31578 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31579 subdirs
="$subdirs $subdir"
31581 # $gcc_subdir is where the gcc integration files are to be found
31582 # for a language, both for internal compiler purposes (compiler
31583 # sources implementing front-end to GCC tree converters), and for
31584 # build infrastructure purposes (Make-lang.in, etc.)
31586 # This will be <subdir> (relative to $srcdir) if a line like
31587 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31588 # is found in <langdir>/config-lang.in, and will remain <langdir>
31591 # Except for the language alias (fetched above), the regular
31592 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31593 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31594 # only this and the language alias.
31596 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31597 if [ "$gcc_subdir" = "" ]; then
31598 gcc_subdir
="$subdir"
31601 case ",$enable_languages," in
31603 all_selected_languages
="$all_selected_languages $lang_alias"
31604 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31605 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31616 .
${srcdir}/$gcc_subdir/config-lang.
in
31617 if test "x$language" = x
31619 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31624 case ",$enable_languages," in
31625 *,$lang_alias,*) ;;
31627 for i
in $subdir_requires; do
31628 test -f "${srcdir}/$i/config-lang.in" && continue
31636 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31637 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31638 # Put c/Make-lang.in fragment first to match serialization languages order.
31639 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31641 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31643 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31644 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31645 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31647 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31648 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31650 all_languages
="$all_languages $language"
31651 all_compilers
="$all_compilers $compilers"
31652 all_outputs
="$all_outputs $outputs"
31653 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31654 case ",$enable_languages," in
31657 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31667 for language
in $all_selected_languages
31669 check_languages
="$check_languages check-$language"
31672 selftest_languages
=
31673 for language
in $all_selected_languages
31675 selftest_languages
="$selftest_languages selftest-$language"
31678 # We link each language in with a set of hooks, reached indirectly via
31679 # lang.${target}. Only do so for selected languages.
31683 target_list
="all.cross start.encap rest.encap tags \
31684 install-common install-man install-info install-dvi install-pdf \
31685 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31686 mostlyclean clean distclean maintainer-clean install-plugin"
31688 for t
in $target_list
31691 for lang
in $all_selected_languages
31695 echo "lang.$t: $x" >> Make-hooks
31698 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31699 echo "SERIAL_LIST =" >> Make-hooks
31700 echo else >> Make-hooks
31704 serialization_languages
=c
31705 for lang
in $all_selected_languages
31707 test $lang = c
&& continue
31708 if test $lang = lto
; then
31709 serialization_languages
="$serialization_languages lto1 lto2"
31711 serialization_languages
="$serialization_languages $lang"
31714 for lang
in $serialization_languages
31716 test $lang = c
&& continue
31717 lang_cnt
=`expr $lang_cnt + 1`
31718 lang_list
=" $prev$lang_list"
31721 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31722 echo endif
>> Make-hooks
31723 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31724 echo "INDEX.c = 0" >> Make-hooks
31726 for lang
in $serialization_languages
31728 test $lang = c
&& continue
31729 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31730 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31731 lang_cnt
=`expr $lang_cnt - 1`
31732 lang_idx
=`expr $lang_idx + 1`
31736 # Option include files
31739 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31740 option_includes
="option-includes.mk"
31749 echo "dir ." > .gdbinit
31750 echo "dir ${srcdir}" >> .gdbinit
31751 if test x
$gdb_needs_out_file_path = xyes
31753 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31755 if test "x$subdirs" != x
; then
31758 echo "dir ${srcdir}/$s" >> .gdbinit
31761 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31762 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31764 # Put a breakpoint on __asan_report_error to help with debugging buffer
31767 *-fsanitize=address
*)
31768 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31772 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31776 # Find a directory in which to install a shared libgcc.
31778 # Check whether --enable-version-specific-runtime-libs was given.
31779 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31780 enableval
=$enable_version_specific_runtime_libs;
31784 # Substitute configuration variables
31855 if test x
${build} = x
${host} ; then
31856 if test x
${host} = x
${target} ; then
31857 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31859 echo "Links are now set up to build a cross-compiler" 1>&2
31860 echo " from ${host} to ${target}." 1>&2
31863 if test x
${host} = x
${target} ; then
31864 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31865 echo " for ${target}." 1>&2
31867 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31868 echo " from ${host} to ${target}." 1>&2
31877 if test "x${ISLLIBS}" != "x" ; then
31879 $as_echo "#define HAVE_isl 1" >>confdefs.h
31883 # Check for plugin support
31884 # Check whether --enable-plugin was given.
31885 if test "${enable_plugin+set}" = set; then :
31886 enableval
=$enable_plugin; enable_plugin
=$enableval
31888 enable_plugin
=yes; default_plugin
=yes
31897 # Since plugin support under MinGW is not as straightforward as on
31898 # other platforms (e.g., we have to link import library, etc), we
31899 # only enable it if explicitly requested.
31900 if test x
"$default_plugin" = x
"yes"; then
31902 elif test x
"$enable_plugin" = x
"yes"; then
31903 # Use make's target variable to derive import library name.
31904 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31909 if test x
$build = x
$host; then
31910 export_sym_check
="nm${exeext} -g"
31911 elif test x
$host = x
$target; then
31912 export_sym_check
="$gcc_cv_nm -g"
31918 if test x
$build = x
$host; then
31919 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
31920 elif test x
$host = x
$target; then
31921 export_sym_check
="$gcc_cv_objdump -T"
31928 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
31930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31931 $as_echo_n "checking for exported symbols... " >&6; }
31932 if test "x$export_sym_check" != x
; then
31933 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31934 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31935 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31936 : # No need to use a flag
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31938 $as_echo "yes" >&6; }
31940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31941 $as_echo "yes" >&6; }
31942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31943 $as_echo_n "checking for -rdynamic... " >&6; }
31944 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31945 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31946 plugin_rdynamic
=yes
31947 pluginlibs
="-rdynamic"
31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31953 $as_echo "$plugin_rdynamic" >&6; }
31956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31957 $as_echo "unable to check" >&6; }
31962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31963 $as_echo_n "checking for library containing dlopen... " >&6; }
31964 if ${ac_cv_search_dlopen+:} false
; then :
31965 $as_echo_n "(cached) " >&6
31967 ac_func_search_save_LIBS
=$LIBS
31968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31969 /* end confdefs.h. */
31971 /* Override any GCC internal prototype to avoid an error.
31972 Use char because int might match the return type of a GCC
31973 builtin and then its argument prototype would still apply. */
31986 for ac_lib
in '' dl
; do
31987 if test -z "$ac_lib"; then
31988 ac_res
="none required"
31991 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31993 if ac_fn_cxx_try_link
"$LINENO"; then :
31994 ac_cv_search_dlopen
=$ac_res
31996 rm -f core conftest.err conftest.
$ac_objext \
31998 if ${ac_cv_search_dlopen+:} false
; then :
32002 if ${ac_cv_search_dlopen+:} false
; then :
32005 ac_cv_search_dlopen
=no
32007 rm conftest.
$ac_ext
32008 LIBS
=$ac_func_search_save_LIBS
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32011 $as_echo "$ac_cv_search_dlopen" >&6; }
32012 ac_res
=$ac_cv_search_dlopen
32013 if test "$ac_res" != no
; then :
32014 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
32018 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
32019 pluginlibs
="$pluginlibs -ldl"
32023 # Check that we can build shared objects with -fPIC -shared
32024 saved_LDFLAGS
="$LDFLAGS"
32025 saved_CFLAGS
="$CFLAGS"
32026 saved_CXXFLAGS
="$CXXFLAGS"
32029 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32030 CFLAGS
="$CFLAGS -fPIC"
32031 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32032 CXXFLAGS
="$CXXFLAGS -fPIC"
32033 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
32036 CFLAGS
="$CFLAGS -fPIC"
32037 CXXFLAGS
="$CXXFLAGS -fPIC"
32038 LDFLAGS
="$LDFLAGS -fPIC -shared"
32041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32042 $as_echo_n "checking for -fPIC -shared... " >&6; }
32043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32044 /* end confdefs.h. */
32054 if ac_fn_cxx_try_link
"$LINENO"; then :
32055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32056 $as_echo "yes" >&6; }; have_pic_shared
=yes
32058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32059 $as_echo "no" >&6; }; have_pic_shared
=no
32061 rm -f core conftest.err conftest.
$ac_objext \
32062 conftest
$ac_exeext conftest.
$ac_ext
32063 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
32067 LDFLAGS
="$saved_LDFLAGS"
32068 CFLAGS
="$saved_CFLAGS"
32069 CXXFLAGS
="$saved_CXXFLAGS"
32071 # If plugin support had been requested but not available, fail.
32072 if test x
"$enable_plugin" = x
"no" ; then
32073 if test x
"$default_plugin" != x
"yes"; then
32075 Building GCC with plugin support requires a host that supports
32076 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32083 if test x
"$enable_plugin" = x
"yes"; then
32085 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32090 # Enable --enable-host-shared
32091 # Check whether --enable-host-shared was given.
32092 if test "${enable_host_shared+set}" = set; then :
32093 enableval
=$enable_host_shared;
32098 # Enable --enable-host-pie
32099 # Check whether --enable-host-pie was given.
32100 if test "${enable_host_pie+set}" = set; then :
32101 enableval
=$enable_host_pie;
32106 # Enable --enable-host-bind-now
32107 # Check whether --enable-host-bind-now was given.
32108 if test "${enable_host_bind_now+set}" = set; then :
32109 enableval
=$enable_host_bind_now;
32114 # Check whether --enable-libquadmath-support was given.
32115 if test "${enable_libquadmath_support+set}" = set; then :
32116 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
32118 ENABLE_LIBQUADMATH_SUPPORT
=yes
32121 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32123 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32128 # Specify what hash style to use by default.
32130 # Check whether --with-linker-hash-style was given.
32131 if test "${with_linker_hash_style+set}" = set; then :
32132 withval
=$with_linker_hash_style; case x
"$withval" in
32134 LINKER_HASH_STYLE
=sysv
32137 LINKER_HASH_STYLE
=gnu
32140 LINKER_HASH_STYLE
=both
32143 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32147 LINKER_HASH_STYLE
=''
32150 if test x
"${LINKER_HASH_STYLE}" != x
; then
32152 cat >>confdefs.h
<<_ACEOF
32153 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32158 # Specify what should be the default of -fdiagnostics-color option.
32160 # Check whether --with-diagnostics-color was given.
32161 if test "${with_diagnostics_color+set}" = set; then :
32162 withval
=$with_diagnostics_color; case x
"$withval" in
32164 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
32167 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32170 DIAGNOSTICS_COLOR_DEFAULT
=-1
32173 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
32176 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32180 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32184 cat >>confdefs.h
<<_ACEOF
32185 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32189 # Specify what should be the default of -fdiagnostics-urls option.
32191 # Check whether --with-diagnostics-urls was given.
32192 if test "${with_diagnostics_urls+set}" = set; then :
32193 withval
=$with_diagnostics_urls; case x
"$withval" in
32195 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
32198 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32201 DIAGNOSTICS_URLS_DEFAULT
=-1
32204 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
32207 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32211 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32215 cat >>confdefs.h
<<_ACEOF
32216 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32220 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32221 # of jit/jit-playback.cc.
32222 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32223 echo "gcc_driver_version: ${gcc_driver_version}"
32224 cat > gcc-driver-name.h
<<EOF
32225 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32228 # Check whether --enable-default-pie was given.
32229 # Check whether --enable-default-pie was given.
32230 if test "${enable_default_pie+set}" = set; then :
32231 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32233 enable_default_pie
=no
32236 if test x
$enable_default_pie = xyes
; then
32238 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32243 # Check if -fno-PIE works.
32244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32245 $as_echo_n "checking for -fno-PIE option... " >&6; }
32246 if ${gcc_cv_c_no_fpie+:} false
; then :
32247 $as_echo_n "(cached) " >&6
32249 saved_CXXFLAGS
="$CXXFLAGS"
32250 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32252 /* end confdefs.h. */
32253 int main(void) {return 0;}
32255 if ac_fn_cxx_try_compile
"$LINENO"; then :
32256 gcc_cv_c_no_fpie
=yes
32258 gcc_cv_c_no_fpie
=no
32260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32261 CXXFLAGS
="$saved_CXXFLAGS"
32263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32264 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32266 # Check if -no-pie works.
32267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32268 $as_echo_n "checking for -no-pie option... " >&6; }
32269 if ${gcc_cv_no_pie+:} false
; then :
32270 $as_echo_n "(cached) " >&6
32272 saved_LDFLAGS
="$LDFLAGS"
32273 LDFLAGS
="$LDFLAGS -no-pie"
32274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32275 /* end confdefs.h. */
32276 int main(void) {return 0;}
32278 if ac_fn_cxx_try_link
"$LINENO"; then :
32283 rm -f core conftest.err conftest.
$ac_objext \
32284 conftest
$ac_exeext conftest.
$ac_ext
32285 LDFLAGS
="$saved_LDFLAGS"
32287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32288 $as_echo "$gcc_cv_no_pie" >&6; }
32290 if test x
$enable_host_shared = xyes
; then
32292 elif test x
$enable_host_pie = xyes
; then
32294 elif test x
$gcc_cv_c_no_fpie = xyes
; then
32302 if test x
$enable_host_pie = xyes
; then
32304 elif test x
$gcc_cv_no_pie = xyes
; then
32310 if test x
$enable_host_bind_now = xyes
; then
32311 LD_PICFLAG
="$LD_PICFLAG -Wl,-z,now"
32316 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32317 # Check whether --enable-cet was given.
32318 if test "${enable_cet+set}" = set; then :
32319 enableval
=$enable_cet;
32320 case "$enableval" in
32322 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32331 $as_echo_n "checking for CET support... " >&6; }
32334 i
[34567]86-*-linux* | x86_64-
*-linux*)
32336 cet_save_CFLAGS
="$CFLAGS"
32337 CFLAGS
="$CFLAGS -fcf-protection"
32338 case "$enable_cet" in
32340 # Check if target supports multi-byte NOPs
32341 # and if compiler and assembler support CET.
32342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32343 /* end confdefs.h. */
32349 #if !defined(__SSE2__)
32350 #error target does not support multi-byte NOPs
32359 if ac_fn_cxx_try_compile
"$LINENO"; then :
32364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32367 # Check if compiler and assembler support CET.
32368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32369 /* end confdefs.h. */
32379 if ac_fn_cxx_try_compile
"$LINENO"; then :
32384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32385 if test $support_cet = "no"; then
32386 if test x
$enable_bootstrap != xno \
32387 && test -z "${with_build_subdir}" \
32388 && (test ! -f ..
/stage_current \
32389 ||
test `cat ../stage_current` != "stage1"); then
32390 # Require CET support only for the final GCC build.
32391 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32393 # Don't enable CET without CET support for non-bootstrap
32394 # build, in stage1 nor for build support.
32400 CFLAGS
="$cet_save_CFLAGS"
32408 cet_save_CFLAGS
="$CFLAGS"
32409 CFLAGS
="$CFLAGS -fcf-protection=none"
32410 cet_save_LDFLAGS
="$LDFLAGS"
32411 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32412 if test x
$may_have_cet = xyes
; then
32413 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32415 /* end confdefs.h. */
32425 if ac_fn_cxx_try_link
"$LINENO"; then :
32430 rm -f core conftest.err conftest.
$ac_objext \
32431 conftest
$ac_exeext conftest.
$ac_ext
32434 if test x
$may_have_cet = xyes
; then
32435 if test x
$cross_compiling = xno
; then
32436 if test "$cross_compiling" = yes; then :
32437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32439 as_fn_error $?
"cannot run test program while cross compiling
32440 See \`config.log' for more details" "$LINENO" 5; }
32442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32443 /* end confdefs.h. */
32453 if ac_fn_cxx_try_run
"$LINENO"; then :
32454 have_multi_byte_nop
=yes
32456 have_multi_byte_nop
=no
32458 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32459 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32463 if test x
$have_multi_byte_nop = xyes
; then
32464 if test "$cross_compiling" = yes; then :
32465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32467 as_fn_error $?
"cannot run test program while cross compiling
32468 See \`config.log' for more details" "$LINENO" 5; }
32470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32471 /* end confdefs.h. */
32479 __attribute__ ((noinline, noclone))
32480 xxx (void (*f) (void))
32486 __attribute__ ((noinline, noclone))
32500 if ac_fn_cxx_try_run
"$LINENO"; then :
32505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32510 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32511 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32515 # Enable CET in cross compiler if possible so that it will run on both
32516 # CET and non-CET hosts.
32519 if test x
$enable_cet = xyes
; then
32520 CET_HOST_FLAGS
="-fcf-protection"
32521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32522 $as_echo "yes" >&6; }
32524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32525 $as_echo "no" >&6; }
32527 CFLAGS
="$cet_save_CFLAGS"
32528 LDFLAGS
="$cet_save_LDFLAGS"
32530 case x
$enable_languages in
32539 # Check linker supports '-z bndplt'
32540 ld_bndplt_support
=no
32541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32542 $as_echo_n "checking linker -z bndplt option... " >&6; }
32543 if test x
"$ld_is_gold" = xno
; then
32544 if test $in_tree_ld = yes ; then
32545 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
32546 ld_bndplt_support
=yes
32548 elif test x
$gcc_cv_ld != x
; then
32549 # Check if linker supports -a bndplt option
32550 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32551 ld_bndplt_support
=yes
32555 if test x
"$ld_bndplt_support" = xyes
; then
32557 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32561 $as_echo "$ld_bndplt_support" >&6; }
32563 # Check linker supports '--push-state'/'--pop-state'
32564 ld_pushpopstate_support
=no
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32566 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32567 if test x
"$ld_is_gold" = xno
; then
32568 if test $in_tree_ld = yes ; then
32569 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
32570 ld_pushpopstate_support
=yes
32572 elif test x
$gcc_cv_ld != x
; then
32573 # Check if linker supports --push-state/--pop-state options
32574 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32575 ld_pushpopstate_support
=yes
32579 if test x
"$ld_pushpopstate_support" = xyes
; then
32581 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32585 $as_echo "$ld_pushpopstate_support" >&6; }
32587 # On s390, float_t has historically been statically defined as double for no
32588 # good reason. To comply with the C standard in the light of this definition,
32589 # gcc has evaluated float expressions in double precision when in
32590 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32591 # a smooth transition towards the new model used by most architectures, where
32592 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32593 # float_t from that, this behavior can be configured with
32594 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32595 # the old model. When omitted, native builds and cross compiles that have target
32596 # libc headers will detect whether libc clamps float_t to double and in that
32597 # case maintain the old model. Otherwise, they will default to the new model.
32598 # Check whether --enable-s390-excess-float-precision was given.
32599 if test "${enable_s390_excess_float_precision+set}" = set; then :
32600 enableval
=$enable_s390_excess_float_precision;
32602 enable_s390_excess_float_precision
=auto
32608 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32609 # Can we autodetect the behavior of the target libc?
32610 if test "$target" = "$host" -a "$host" = "$build"; then
32611 enable_s390_excess_float_precision
=autodetect
32612 elif test "x$with_headers" != xno
; then
32613 # cross build. are target headers available?
32614 # carefully coerce the build-system compiler to use target headers
32615 saved_CXXFLAGS
="$CXXFLAGS"
32616 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32617 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32618 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32620 /* end confdefs.h. */
32625 if ac_fn_cxx_try_compile
"$LINENO"; then :
32626 enable_s390_excess_float_precision
=autodetect
32628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32629 CXXFLAGS
="$saved_CXXFLAGS"
32632 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32633 saved_CXXFLAGS
="$CXXFLAGS"
32634 if ! test "$target" = "$host" -a "$host" = "$build"; then
32635 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32636 unset CROSS_TEST_CXXFLAGS
32638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32639 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32640 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32641 $as_echo_n "(cached) " >&6
32644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32645 /* end confdefs.h. */
32647 #define __FLT_EVAL_METHOD__ 0
32649 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32652 if ac_fn_cxx_try_compile
"$LINENO"; then :
32653 gcc_cv_float_t_clamped_to_double
=yes
32655 gcc_cv_float_t_clamped_to_double
=no
32657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32660 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32661 CXXFLAGS
="$saved_CXXFLAGS"
32662 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
32664 # no way to detect behavior of target libc, default to new model
32665 enable_s390_excess_float_precision
=no
32670 if test x
"$enable_s390_excess_float_precision" = xyes
; then
32672 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32678 # Configure the subdirectories
32679 # AC_CONFIG_SUBDIRS($subdirs)
32681 # Create the Makefile
32682 # and configure language subdirectories
32683 ac_config_files
="$ac_config_files $all_outputs"
32686 ac_config_commands
="$ac_config_commands default"
32688 cat >confcache
<<\_ACEOF
32689 # This file is a shell script that caches the results of configure
32690 # tests run on this system so they can be shared between configure
32691 # scripts and configure runs, see configure's option --config-cache.
32692 # It is not useful on other systems. If it contains results you don't
32693 # want to keep, you may remove or edit it.
32695 # config.status only pays attention to the cache file if you give it
32696 # the --recheck option to rerun configure.
32698 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32699 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32700 # following values.
32704 # The following way of writing the cache mishandles newlines in values,
32705 # but we know of no workaround that is simple, portable, and efficient.
32706 # So, we kill variables containing newlines.
32707 # Ultrix sh set writes to stderr and can't be redirected directly,
32708 # and sets the high bit in the cache file unless we assign to the vars.
32710 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32711 eval ac_val
=\$
$ac_var
32715 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32716 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32719 _ | IFS | as_nl
) ;; #(
32720 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32721 *) { eval $ac_var=; unset $ac_var;} ;;
32727 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32728 *${as_nl}ac_space
=\
*)
32729 # `set' does not quote correctly, so add quotes: double-quote
32730 # substitution turns \\\\ into \\, and sed turns \\ into \.
32733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32736 # `set' quotes correctly as required by POSIX, so do not add quotes.
32737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32746 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32748 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32750 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32751 if test -w "$cache_file"; then
32752 if test "x$cache_file" != "x/dev/null"; then
32753 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32754 $as_echo "$as_me: updating cache $cache_file" >&6;}
32755 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32756 cat confcache
>"$cache_file"
32758 case $cache_file in #(
32760 mv -f confcache
"$cache_file"$$
&&
32761 mv -f "$cache_file"$$
"$cache_file" ;; #(
32763 mv -f confcache
"$cache_file" ;;
32768 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32769 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32774 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32775 # Let make expand exec_prefix.
32776 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32778 DEFS
=-DHAVE_CONFIG_H
32783 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32784 # 1. Remove the extension, and $U if already installed.
32785 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32786 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32787 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32788 # will be set to the directory where LIBOBJS objects are built.
32789 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32790 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32792 LIBOBJS
=$ac_libobjs
32794 LTLIBOBJS
=$ac_ltlibobjs
32799 : "${CONFIG_STATUS=./config.status}"
32801 ac_clean_files_save
=$ac_clean_files
32802 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32803 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32804 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32806 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32808 # Generated by $as_me.
32809 # Run this file to recreate the current configuration.
32810 # Compiler output produced by configure, useful for debugging
32811 # configure, is in config.log if it exists.
32814 ac_cs_recheck=false
32817 SHELL=\${CONFIG_SHELL-$SHELL}
32820 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32821 ## -------------------- ##
32822 ## M4sh Initialization. ##
32823 ## -------------------- ##
32825 # Be more Bourne compatible
32826 DUALCASE
=1; export DUALCASE
# for MKS sh
32827 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32830 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32831 # is contrary to our usage. Disable this feature.
32832 alias -g '${1+"$@"}'='"$@"'
32833 setopt NO_GLOB_SUBST
32835 case `(set -o) 2>/dev/null` in #(
32847 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32848 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32851 # Prefer a ksh shell builtin over an external printf program on Solaris,
32852 # but without wasting forks for bash or zsh.
32853 if test -z "$BASH_VERSION$ZSH_VERSION" \
32854 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32855 as_echo='print
-r --'
32856 as_echo_n='print
-rn --'
32857 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32858 as_echo='printf %s
\n'
32859 as_echo_n='printf %s
'
32861 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32862 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32863 as_echo_n='/usr
/ucb
/echo -n'
32865 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32866 as_echo_n_body='eval
32870 expr "X$arg" : "X\\(.*\\)$as_nl";
32871 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32873 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32875 export as_echo_n_body
32876 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32878 export as_echo_body
32879 as_echo='sh
-c $as_echo_body as_echo
'
32882 # The user is always right.
32883 if test "${PATH_SEPARATOR+set}" != set; then
32885 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32886 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32893 # We need space, tab and new line, in precisely that order. Quoting is
32894 # there to prevent editors from complaining about space-tab.
32895 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32896 # splitting by setting IFS to empty value.)
32899 # Find who we are. Look in the path if we contain no directory separator.
32902 *[\\/]* ) as_myself=$0 ;;
32903 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32904 for as_dir in $PATH
32907 test -z "$as_dir" && as_dir=.
32908 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32914 # We did not find ourselves, most probably we were run as `sh COMMAND'
32915 # in which case we are not to be found in the path.
32916 if test "x$as_myself" = x
; then
32919 if test ! -f "$as_myself"; then
32920 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32924 # Unset variables that we do not need and which cause bugs (e.g. in
32925 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32926 # suppresses any "Segmentation fault" message there. '((' could
32927 # trigger a bug in pdksh 5.2.14.
32928 for as_var
in BASH_ENV ENV MAIL MAILPATH
32929 do eval test x\
${$as_var+set} = xset \
32930 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32943 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32946 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32947 # ----------------------------------------
32948 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32949 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32950 # script with STATUS, using 1 if that was 0.
32953 as_status
=$1; test $as_status -eq 0 && as_status
=1
32955 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32956 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32958 $as_echo "$as_me: error: $2" >&2
32959 as_fn_exit
$as_status
32963 # as_fn_set_status STATUS
32964 # -----------------------
32965 # Set $? to STATUS, without forking.
32966 as_fn_set_status
()
32969 } # as_fn_set_status
32971 # as_fn_exit STATUS
32972 # -----------------
32973 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32977 as_fn_set_status
$1
32983 # Portably unset VAR.
32986 { eval $1=; unset $1;}
32988 as_unset
=as_fn_unset
32989 # as_fn_append VAR VALUE
32990 # ----------------------
32991 # Append the text in VALUE to the end of the definition contained in VAR. Take
32992 # advantage of any shell optimizations that allow amortized linear growth over
32993 # repeated appends, instead of the typical quadratic growth present in naive
32995 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32996 eval 'as_fn_append ()
33007 # as_fn_arith ARG...
33008 # ------------------
33009 # Perform arithmetic evaluation on the ARGs, and store the result in the
33010 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33011 # must be portable across $(()) and expr.
33012 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
33013 eval 'as_fn_arith ()
33020 as_val
=`expr "$@" || test $? -eq 1`
33025 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33026 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33032 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33033 as_basename
=basename
33038 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33044 as_me
=`$as_basename -- "$0" ||
33045 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33046 X"$0" : 'X\(//\)$' \| \
33047 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33049 sed '/^.*\/\([^/][^/]*\)\/*$/{
33063 # Avoid depending upon Character Ranges.
33064 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33065 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33066 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33067 as_cr_digits
='0123456789'
33068 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33070 ECHO_C
= ECHO_N
= ECHO_T
=
33071 case `echo -n x` in #(((((
33073 case `echo 'xy\c'` in
33074 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33076 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
33083 rm -f conf$$ conf$$.exe conf$$.
file
33084 if test -d conf$$.dir
; then
33085 rm -f conf$$.dir
/conf$$.
file
33088 mkdir conf$$.dir
2>/dev
/null
33090 if (echo >conf$$.
file) 2>/dev
/null
; then
33091 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33093 # ... but there are two gotchas:
33094 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33095 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33096 # In both cases, we have to default to `cp -pR'.
33097 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33099 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33107 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33108 rmdir conf$$.dir
2>/dev
/null
33113 # Create "$as_dir" as a directory, including parents if necessary.
33118 -*) as_dir
=.
/$as_dir;;
33120 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33124 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33125 *) as_qdir
=$as_dir;;
33127 as_dirs
="'$as_qdir' $as_dirs"
33128 as_dir
=`$as_dirname -- "$as_dir" ||
33129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33130 X"$as_dir" : 'X\(//\)[^/]' \| \
33131 X"$as_dir" : 'X\(//\)$' \| \
33132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33133 $as_echo X"$as_dir" |
33134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33138 /^X\(\/\/\)[^/].*/{
33151 test -d "$as_dir" && break
33153 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33154 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33158 if mkdir
-p .
2>/dev
/null
; then
33159 as_mkdir_p
='mkdir -p "$as_dir"'
33161 test -d .
/-p && rmdir .
/-p
33166 # as_fn_executable_p FILE
33167 # -----------------------
33168 # Test if FILE is an executable regular file.
33169 as_fn_executable_p
()
33171 test -f "$1" && test -x "$1"
33172 } # as_fn_executable_p
33173 as_test_x
='test -x'
33174 as_executable_p
=as_fn_executable_p
33176 # Sed expression to map a string onto a valid CPP name.
33177 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33179 # Sed expression to map a string onto a valid variable name.
33180 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33184 ## ----------------------------------- ##
33185 ## Main body of $CONFIG_STATUS script. ##
33186 ## ----------------------------------- ##
33188 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33191 # Save the log message, to keep $0 and so on meaningful, and to
33192 # report actual input values of CONFIG_FILES etc. instead of their
33193 # values after options handling.
33195 This file was extended by $as_me, which was
33196 generated by GNU Autoconf 2.69. Invocation command line was
33198 CONFIG_FILES = $CONFIG_FILES
33199 CONFIG_HEADERS = $CONFIG_HEADERS
33200 CONFIG_LINKS = $CONFIG_LINKS
33201 CONFIG_COMMANDS = $CONFIG_COMMANDS
33204 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33209 case $ac_config_files in *"
33210 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33213 case $ac_config_headers in *"
33214 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33219 # Files that config.status was made for.
33220 config_files="$ac_config_files"
33221 config_headers="$ac_config_headers"
33222 config_links="$ac_config_links"
33223 config_commands="$ac_config_commands"
33227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33229 \`$as_me' instantiates files and other configuration actions
33230 from templates according to the current configuration. Unless the files
33231 and actions are specified as TAGs, all are instantiated by default.
33233 Usage: $0 [OPTION]... [TAG]...
33235 -h, --help print this help, then exit
33236 -V, --version print version number and configuration settings, then exit
33237 --config print configuration, then exit
33238 -q, --quiet, --silent
33239 do not print progress messages
33240 -d, --debug don't remove temporary files
33241 --recheck update $as_me by reconfiguring in the same conditions
33242 --file=FILE[:TEMPLATE]
33243 instantiate the configuration file FILE
33244 --header=FILE[:TEMPLATE]
33245 instantiate the configuration header FILE
33247 Configuration files:
33250 Configuration headers:
33253 Configuration links:
33256 Configuration commands:
33259 Report bugs to the package provider."
33262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33263 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33266 configured by $0, generated by GNU Autoconf 2.69,
33267 with options \\"\$ac_cs_config\\"
33269 Copyright (C) 2012 Free Software Foundation, Inc.
33270 This config.status script is free software; the Free Software Foundation
33271 gives unlimited permission to copy, distribute and modify it."
33276 test -n "\$AWK" || AWK=awk
33279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33280 # The default lists apply if the user does not specify any file.
33286 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33287 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33291 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33303 # Handling of the options.
33304 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33306 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33307 $as_echo "$ac_cs_version"; exit ;;
33308 --config |
--confi |
--conf |
--con |
--co |
--c )
33309 $as_echo "$ac_cs_config"; exit ;;
33310 --debug |
--debu |
--deb |
--de |
--d |
-d )
33312 --file |
--fil |
--fi |
--f )
33315 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33316 '') as_fn_error $?
"missing file argument" ;;
33318 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33319 ac_need_defaults
=false
;;
33320 --header |
--heade |
--head |
--hea )
33323 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33325 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33326 ac_need_defaults
=false
;;
33328 # Conflict between --help and --header
33329 as_fn_error $?
"ambiguous option: \`$1'
33330 Try \`$0 --help' for more information.";;
33331 --help |
--hel |
-h )
33332 $as_echo "$ac_cs_usage"; exit ;;
33333 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33334 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33337 # This is an error.
33338 -*) as_fn_error $?
"unrecognized option: \`$1'
33339 Try \`$0 --help' for more information." ;;
33341 *) as_fn_append ac_config_targets
" $1"
33342 ac_need_defaults
=false
;;
33348 ac_configure_extra_args
=
33350 if $ac_cs_silent; then
33352 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33357 if \$ac_cs_recheck; then
33358 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33360 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33361 CONFIG_SHELL='$SHELL'
33362 export CONFIG_SHELL
33367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33371 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33372 ## Running $as_me. ##
33378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33382 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33383 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33390 # Handling of arguments.
33391 for ac_config_target
in $ac_config_targets
33393 case $ac_config_target in
33394 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33395 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33396 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33397 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33398 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33399 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33400 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33401 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33402 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33403 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33405 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33410 # If the user did not use the arguments to specify the items to instantiate,
33411 # then the envvar interface is used. Set only those that are not.
33412 # We use the long form for the default assignment because of an extremely
33413 # bizarre bug on SunOS 4.1.3.
33414 if $ac_need_defaults; then
33415 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33416 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33417 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33418 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33421 # Have a temporary directory for convenience. Make it in the build tree
33422 # simply because there is no reason against having it here, and in addition,
33423 # creating and moving files from /tmp can sometimes cause problems.
33424 # Hook for its removal unless debugging.
33425 # Note that there is a small window in which the directory will not be cleaned:
33426 # after its creation but before its name has been assigned to `$tmp'.
33430 trap 'exit_status=$?
33431 : "${ac_tmp:=$tmp}"
33432 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33434 trap 'as_fn_exit 1' 1 2 13 15
33436 # Create a (secure) tmp directory for tmp files.
33439 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33443 tmp
=.
/conf$$
-$RANDOM
33444 (umask 077 && mkdir
"$tmp")
33445 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33448 # Set up the scripts for CONFIG_FILES section.
33449 # No need to generate them if there are no CONFIG_FILES.
33450 # This happens for instance with `./config.status config.h'.
33451 if test -n "$CONFIG_FILES"; then
33453 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33454 ac_cs_awk_getline
=:
33455 ac_cs_awk_pipe_init
=
33456 ac_cs_awk_read_file
='
33457 while ((getline aline < (F[key])) > 0)
33460 ac_cs_awk_pipe_fini
=
33462 ac_cs_awk_getline
=false
33463 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33464 ac_cs_awk_read_file
='
33466 print "cat " F[key] " &&"
33467 '$ac_cs_awk_pipe_init
33468 # The final `:' finishes the AND list.
33469 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33471 ac_cr
=`echo X | tr X '\015'`
33472 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33473 # But we know of no other shell where ac_cr would be empty at this
33474 # point, so we can use a bashism as a fallback.
33475 if test "x$ac_cr" = x
; then
33476 eval ac_cr
=\$
\'\\r
\'
33478 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33479 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33482 ac_cs_awk_cr
=$ac_cr
33485 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33488 # Create commands to substitute file output variables.
33490 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33491 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33492 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33495 } >conf$
$files.sh
&&
33496 . .
/conf$
$files.sh ||
33497 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33498 rm -f conf$
$files.sh
33501 echo "cat >conf$$subs.awk <<_ACEOF" &&
33502 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33504 } >conf$$subs.sh ||
33505 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33506 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33508 for ac_last_try in false false false false false :; do
33509 . ./conf$$subs.sh ||
33510 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33512 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33513 if test $ac_delim_n = $ac_delim_num; then
33515 elif $ac_last_try; then
33516 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33518 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33521 rm -f conf$$subs.sh
33523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33524 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33528 s/^/S["/; s
/!.
*/"]=/
33538 s/\(.\{148\}\)..*/\1/
33540 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33545 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33552 s/\(.\{148\}\)..*/\1/
33554 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33558 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33563 ' <conf$$subs.awk | sed '
33568 ' >>$CONFIG_STATUS || ac_write_fail=1
33569 rm -f conf$$subs.awk
33570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33572 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33573 for (key in S) S_is_set[key] = 1
33575 \$ac_cs_awk_pipe_init
33579 nfields = split(line, field, "@
")
33581 len = length(field[1])
33582 for (i = 2; i < nfields; i++) {
33584 keylen = length(key)
33585 if (S_is_set[key]) {
33587 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33588 len += length(value) + length(field[++i])
33593 if (nfields == 3 && !substed) {
33595 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33596 \$ac_cs_awk_read_file
33602 \$ac_cs_awk_pipe_fini
33605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33606 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33607 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33610 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33611 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33614 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33615 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33616 # trailing colons and then remove the whole line if VPATH becomes empty
33617 # (actually we leave an empty line to preserve line numbers).
33618 if test "x
$srcdir" = x.; then
33619 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33638 fi # test -n "$CONFIG_FILES"
33640 # Set up the scripts for CONFIG_HEADERS section.
33641 # No need to generate them if there are no CONFIG_HEADERS.
33642 # This happens for instance with `./config.status Makefile'.
33643 if test -n "$CONFIG_HEADERS"; then
33644 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33648 # Transform confdefs.h into an awk script `defines.awk', embedded as
33649 # here-document in config.status, that substitutes the proper values into
33650 # config.h.in to produce config.h.
33652 # Create a delimiter string that does not exist in confdefs.h, to ease
33653 # handling of long lines.
33655 for ac_last_try in false false :; do
33656 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33657 if test -z "$ac_tt"; then
33659 elif $ac_last_try; then
33660 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33662 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33666 # For the awk script, D is an array of macro values keyed by name,
33667 # likewise P contains macro parameters if any. Preserve backslash
33668 # newline sequences.
33670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33672 s/.\{148\}/&'"$ac_delim"'/g
33675 s/^[ ]*#[ ]*define[ ][ ]*/ /
33682 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33684 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33689 D["\
1"]=" \
3\\\\\\n
"\\/p
33691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33696 s/.\{148\}/&'"$ac_delim"'/g
33701 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33704 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33706 ' <confdefs.h | sed '
33707 s/'"$ac_delim"'/"\\\
33708 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33711 for (key in D) D_is_set[key] = 1
33714 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33716 split(line, arg, " ")
33717 if (arg[1] == "#") {
33721 defundef
= substr
(arg
[1], 2)
33724 split(mac1
, mac2
, "(") #)
33726 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33727 if (D_is_set
[macro
]) {
33728 # Preserve the white space surrounding the "#".
33729 print prefix
"define", macro P
[macro
] D
[macro
]
33732 # Replace #undef with comments. This is necessary, for example,
33733 # in the case of _POSIX_SOURCE, which is predefined and required
33734 # on some systems where configure will not decide to define it.
33735 if (defundef
== "undef") {
33736 print
"/*", prefix defundef
, macro
, "*/"
33744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33745 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33746 fi # test -n "$CONFIG_HEADERS"
33749 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33754 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33756 case $ac_mode$ac_tag in
33758 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33759 :[FH
]-) ac_tag
=-:-;;
33760 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33777 -) ac_f
="$ac_tmp/stdin";;
33778 *) # Look for the file first in the build tree, then in the source tree
33779 # (if the path is not absolute). The absolute path cannot be DOS-style,
33780 # because $ac_f cannot contain `:'.
33784 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33786 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33788 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33789 as_fn_append ac_file_inputs
" '$ac_f'"
33792 # Let's still pretend it is `configure' which instantiates (i.e., don't
33793 # use $as_me), people would be surprised to read:
33794 # /* config.h. Generated by config.status. */
33795 configure_input
='Generated from '`
33796 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33798 if test x
"$ac_file" != x-
; then
33799 configure_input
="$ac_file. $configure_input"
33800 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33801 $as_echo "$as_me: creating $ac_file" >&6;}
33803 # Neutralize special characters interpreted by sed in replacement strings.
33804 case $configure_input in #(
33805 *\
&* |
*\|
* |
*\\* )
33806 ac_sed_conf_input
=`$as_echo "$configure_input" |
33807 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33808 *) ac_sed_conf_input
=$configure_input;;
33812 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33813 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33818 ac_dir
=`$as_dirname -- "$ac_file" ||
33819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33820 X"$ac_file" : 'X\(//\)[^/]' \| \
33821 X"$ac_file" : 'X\(//\)$' \| \
33822 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33823 $as_echo X"$ac_file" |
33824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33828 /^X\(\/\/\)[^/].*/{
33841 as_dir
="$ac_dir"; as_fn_mkdir_p
33845 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33847 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33848 # A ".." for each directory in $ac_dir_suffix.
33849 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33850 case $ac_top_builddir_sub in
33851 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33852 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33855 ac_abs_top_builddir
=$ac_pwd
33856 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33857 # for backward compatibility:
33858 ac_top_builddir
=$ac_top_build_prefix
33861 .
) # We are building in place.
33863 ac_top_srcdir
=$ac_top_builddir_sub
33864 ac_abs_top_srcdir
=$ac_pwd ;;
33865 [\\/]* | ?
:[\\/]* ) # Absolute name.
33866 ac_srcdir
=$srcdir$ac_dir_suffix;
33867 ac_top_srcdir
=$srcdir
33868 ac_abs_top_srcdir
=$srcdir ;;
33869 *) # Relative name.
33870 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33871 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33872 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33874 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33886 # If the template does not know about datarootdir, expand it.
33887 # FIXME: This hack should be removed a few years after 2.60.
33888 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33899 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33900 *datarootdir
*) ac_datarootdir_seen
=yes;;
33901 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33903 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33906 ac_datarootdir_hack='
33907 s&@datadir@&$datadir&g
33908 s&@docdir@&$docdir&g
33909 s&@infodir@&$infodir&g
33910 s&@localedir@&$localedir&g
33911 s&@mandir@&$mandir&g
33912 s&\\\${datarootdir}&$datarootdir&g' ;;
33916 # Neutralize VPATH when `$srcdir' = `.'.
33917 # Shell code in configure.ac might set extrasub.
33918 # FIXME: do we really want to maintain this feature?
33919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33920 ac_sed_extra="$ac_vpsub
33923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33925 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33926 s|@configure_input@|
$ac_sed_conf_input|
;t t
33927 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33928 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33929 s
&@srcdir@
&$ac_srcdir&;t t
33930 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33931 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33932 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33933 s
&@builddir@
&$ac_builddir&;t t
33934 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33935 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33936 $ac_datarootdir_hack
33938 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33939 if $ac_cs_awk_getline; then
33940 $AWK -f "$ac_tmp/subs.
awk"
33942 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
33944 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33946 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33947 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33949 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33951 which seems to be undefined. Please make sure it is defined" >&5
33952 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33953 which seems to be undefined. Please make sure it is defined" >&2;}
33955 rm -f "$ac_tmp/stdin"
33957 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33958 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33960 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33966 if test x"$ac_file" != x-; then
33968 $as_echo "/* $configure_input */" \
33969 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33970 } >"$ac_tmp/config.h" \
33971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33972 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33973 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33974 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33977 mv "$ac_tmp/config.h" "$ac_file" \
33978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33981 $as_echo "/* $configure_input */" \
33982 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33983 || as_fn_error $? "could not create -" "$LINENO" 5
33991 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
33994 # Prefer the file from the source tree if names are identical.
33995 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33996 ac_source=$srcdir/$ac_source
33999 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
34000 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34002 if test ! -r "$ac_source"; then
34003 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
34007 # Try a relative symlink, then a hard link, then a copy.
34009 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34010 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34012 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34013 ln "$ac_source" "$ac_file" 2>/dev/null ||
34014 cp -p "$ac_source" "$ac_file" ||
34015 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
34018 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34019 $as_echo "$as_me: executing $ac_file commands" >&6;}
34024 case $ac_file$ac_mode in
34025 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34027 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34028 for lang in $subdirs c-family common analyzer text-art rtl-ssa
34030 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34032 "as":F) chmod +x as ;;
34033 "collect-ld":F) chmod +x collect-ld ;;
34034 "nm":F) chmod +x nm ;;
34035 "dsymutil":F) chmod +x dsymutil ;;
34037 case ${CONFIG_HEADERS} in
34038 *auto-host.h:config.in*)
34041 # Make sure all the subdirs exist.
34042 for d in $subdirs doc build common c-family
34044 test -d $d || mkdir $d
34054 ac_clean_files=$ac_clean_files_save
34056 test $ac_write_fail = 0 ||
34057 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34060 # configure is writing to config.log, and then calls config.status.
34061 # config.status does its own redirection, appending to config.log.
34062 # Unfortunately, on DOS this fails, as config.log is still kept open
34063 # by configure, so config.status won't be able to
write to it
; its
34064 # output is simply discarded. So we exec the FD to /dev/null,
34065 # effectively closing config.log, so it can be properly (re)opened and
34066 # appended to by config.status. When coming back to configure, we
34067 # need to make the FD available again.
34068 if test "$no_create" != yes; then
34070 ac_config_status_args
=
34071 test "$silent" = yes &&
34072 ac_config_status_args
="$ac_config_status_args --quiet"
34074 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34076 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34077 # would make configure fail if this is the last instruction.
34078 $ac_cs_success || as_fn_exit
1
34080 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34082 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}