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
662 common_out_object_file
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
690 TM_MULTILIB_EXCEPTIONS_CONFIG
700 build_xm_include_list
702 build_install_headers_dir
704 all_selected_languages
707 all_lang_configurefrags
715 DO_LINK_SERIALIZATION
727 ld_version_script_option
729 ORIGINAL_DSYMUTIL_FOR_TARGET
734 ORIGINAL_NM_FOR_TARGET
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
741 ORIGINAL_AS_FOR_TARGET
766 BUILD_SYSTEM_HEADER_DIR
786 NATIVE_SYSTEM_HEADER_DIR
813 MAKEINFO_TOC_INLINE_FLAG
827 omp_device_property_deps
828 omp_device_properties
830 real_target_noncanonical
831 enable_as_accelerator
847 valgrind_path_defines
879 CROSS_SYSTEM_HEADER_DIR
880 TARGET_SYSTEM_ROOT_DEFINE
882 SYSROOT_CFLAGS_FOR_TARGET
928 program_transform_name
939 ac_subst_files
='option_includes
942 enable_option_checking
945 with_native_system_header_dir
949 with_gxx_libcxx_include_dir
951 enable_generated_files_in_srcdir
959 enable_build_format_warnings
963 enable_gather_detailed_mem_stats
964 enable_valgrind_annotations
967 with_stack_clash_protection_guard_size
982 with_documentation_root_url
983 with_changes_root_url
986 with_multilib_generator
993 enable_sjlj_exceptions
994 with_gcc_major_version_only
996 enable_mingw_wildcard
997 enable_large_address_aware
998 enable_leading_mingw64_underscores
1000 enable_frame_pointer
1001 enable_win32_registry
1009 enable_gnu_indirect_function
1010 enable_initfini_array
1012 enable_newlib_nano_formatted_io
1013 enable_standard_branch_protection
1014 enable_fix_cortex_a53_835769
1015 enable_fix_cortex_a53_843419
1017 enable_gnu_unique_object
1018 enable_linker_build_id
1021 with_long_double_128
1022 with_long_double_format
1025 enable_maintainer_mode
1027 enable_link_serialization
1028 enable_version_specific_runtime_libs
1031 enable_libquadmath_support
1032 with_linker_hash_style
1033 with_diagnostics_color
1034 with_diagnostics_urls
1037 enable_s390_excess_float_precision
1039 ac_precious_vars
='build_alias
1058 # Initialize some variables set by options.
1060 ac_init_version
=false
1061 ac_unrecognized_opts
=
1062 ac_unrecognized_sep
=
1063 # The variables have the same names as the options, with
1064 # dashes changed to underlines.
1065 cache_file
=/dev
/null
1072 program_transform_name
=s
,x
,x
,
1080 # Installation directory options.
1081 # These are left unexpanded so users can "make install exec_prefix=/foo"
1082 # and all the variables that are supposed to be based on exec_prefix
1083 # by default will actually change.
1084 # Use braces instead of parens because sh, perl, etc. also accept them.
1085 # (The list follows the same order as the GNU Coding Standards.)
1086 bindir
='${exec_prefix}/bin'
1087 sbindir
='${exec_prefix}/sbin'
1088 libexecdir
='${exec_prefix}/libexec'
1089 datarootdir
='${prefix}/share'
1090 datadir
='${datarootdir}'
1091 sysconfdir
='${prefix}/etc'
1092 sharedstatedir
='${prefix}/com'
1093 localstatedir
='${prefix}/var'
1094 includedir
='${prefix}/include'
1095 oldincludedir
='/usr/include'
1096 docdir
='${datarootdir}/doc/${PACKAGE}'
1097 infodir
='${datarootdir}/info'
1102 libdir
='${exec_prefix}/lib'
1103 localedir
='${datarootdir}/locale'
1104 mandir
='${datarootdir}/man'
1110 # If the previous option needs an argument, assign it.
1111 if test -n "$ac_prev"; then
1112 eval $ac_prev=\
$ac_option
1118 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123 # Accept the important Cygnus configure options, so we can diagnose typos.
1125 case $ac_dashdash$ac_option in
1129 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1131 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1132 bindir
=$ac_optarg ;;
1134 -build |
--build |
--buil |
--bui |
--bu)
1135 ac_prev
=build_alias
;;
1136 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1137 build_alias
=$ac_optarg ;;
1139 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1140 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1141 ac_prev
=cache_file
;;
1142 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1143 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1144 cache_file
=$ac_optarg ;;
1146 --config-cache |
-C)
1147 cache_file
=config.cache
;;
1149 -datadir |
--datadir |
--datadi |
--datad)
1151 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1152 datadir
=$ac_optarg ;;
1154 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1155 |
--dataroo |
--dataro |
--datar)
1156 ac_prev
=datarootdir
;;
1157 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1158 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1159 datarootdir
=$ac_optarg ;;
1161 -disable-* |
--disable-*)
1162 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1165 as_fn_error $?
"invalid feature name: $ac_useropt"
1166 ac_useropt_orig
=$ac_useropt
1167 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "enable_
$ac_useropt"
1172 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1173 ac_unrecognized_sep
=', ';;
1175 eval enable_
$ac_useropt=no
;;
1177 -docdir |
--docdir |
--docdi |
--doc |
--do)
1179 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1180 docdir
=$ac_optarg ;;
1182 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1184 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1185 dvidir
=$ac_optarg ;;
1187 -enable-* |
--enable-*)
1188 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1191 as_fn_error $?
"invalid feature name: $ac_useropt"
1192 ac_useropt_orig
=$ac_useropt
1193 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "enable_
$ac_useropt"
1198 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1199 ac_unrecognized_sep
=', ';;
1201 eval enable_
$ac_useropt=\
$ac_optarg ;;
1203 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1204 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1205 |
--exec |
--exe |
--ex)
1206 ac_prev
=exec_prefix
;;
1207 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1208 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1209 |
--exec=* |
--exe=* |
--ex=*)
1210 exec_prefix
=$ac_optarg ;;
1212 -gas |
--gas |
--ga |
--g)
1213 # Obsolete; use --with-gas.
1216 -help |
--help |
--hel |
--he |
-h)
1217 ac_init_help
=long
;;
1218 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1219 ac_init_help
=recursive
;;
1220 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1221 ac_init_help
=short
;;
1223 -host |
--host |
--hos |
--ho)
1224 ac_prev
=host_alias
;;
1225 -host=* |
--host=* |
--hos=* |
--ho=*)
1226 host_alias
=$ac_optarg ;;
1228 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1230 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1232 htmldir
=$ac_optarg ;;
1234 -includedir |
--includedir |
--includedi |
--included |
--include \
1235 |
--includ |
--inclu |
--incl |
--inc)
1236 ac_prev
=includedir
;;
1237 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1238 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1239 includedir
=$ac_optarg ;;
1241 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1243 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1244 infodir
=$ac_optarg ;;
1246 -libdir |
--libdir |
--libdi |
--libd)
1248 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1249 libdir
=$ac_optarg ;;
1251 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1252 |
--libexe |
--libex |
--libe)
1253 ac_prev
=libexecdir
;;
1254 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1255 |
--libexe=* |
--libex=* |
--libe=*)
1256 libexecdir
=$ac_optarg ;;
1258 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1259 ac_prev
=localedir
;;
1260 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1261 localedir
=$ac_optarg ;;
1263 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1264 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1265 ac_prev
=localstatedir
;;
1266 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1267 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1268 localstatedir
=$ac_optarg ;;
1270 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1272 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1273 mandir
=$ac_optarg ;;
1275 -nfp |
--nfp |
--nf)
1276 # Obsolete; use --without-fp.
1279 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1280 |
--no-cr |
--no-c |
-n)
1283 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1284 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1287 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1288 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1289 |
--oldin |
--oldi |
--old |
--ol |
--o)
1290 ac_prev
=oldincludedir
;;
1291 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1292 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1293 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1294 oldincludedir
=$ac_optarg ;;
1296 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1298 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1299 prefix
=$ac_optarg ;;
1301 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1302 |
--program-pre |
--program-pr |
--program-p)
1303 ac_prev
=program_prefix
;;
1304 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1305 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1306 program_prefix
=$ac_optarg ;;
1308 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1309 |
--program-suf |
--program-su |
--program-s)
1310 ac_prev
=program_suffix
;;
1311 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1312 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1313 program_suffix
=$ac_optarg ;;
1315 -program-transform-name |
--program-transform-name \
1316 |
--program-transform-nam |
--program-transform-na \
1317 |
--program-transform-n |
--program-transform- \
1318 |
--program-transform |
--program-transfor \
1319 |
--program-transfo |
--program-transf \
1320 |
--program-trans |
--program-tran \
1321 |
--progr-tra |
--program-tr |
--program-t)
1322 ac_prev
=program_transform_name
;;
1323 -program-transform-name=* |
--program-transform-name=* \
1324 |
--program-transform-nam=* |
--program-transform-na=* \
1325 |
--program-transform-n=* |
--program-transform-=* \
1326 |
--program-transform=* |
--program-transfor=* \
1327 |
--program-transfo=* |
--program-transf=* \
1328 |
--program-trans=* |
--program-tran=* \
1329 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1330 program_transform_name
=$ac_optarg ;;
1332 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1334 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1335 pdfdir
=$ac_optarg ;;
1337 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1339 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1342 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1343 |
-silent |
--silent |
--silen |
--sile |
--sil)
1346 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1348 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1350 sbindir
=$ac_optarg ;;
1352 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1353 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1354 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1356 ac_prev
=sharedstatedir
;;
1357 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1358 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1359 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1361 sharedstatedir
=$ac_optarg ;;
1363 -site |
--site |
--sit)
1365 -site=* |
--site=* |
--sit=*)
1368 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1370 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1371 srcdir
=$ac_optarg ;;
1373 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1374 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1375 ac_prev
=sysconfdir
;;
1376 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1377 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1378 sysconfdir
=$ac_optarg ;;
1380 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1381 ac_prev
=target_alias
;;
1382 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1383 target_alias
=$ac_optarg ;;
1385 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1388 -version |
--version |
--versio |
--versi |
--vers |
-V)
1389 ac_init_version
=: ;;
1392 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1393 # Reject names that are not valid shell variable names.
1394 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1395 as_fn_error $?
"invalid package name: $ac_useropt"
1396 ac_useropt_orig
=$ac_useropt
1397 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1398 case $ac_user_opts in
1402 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1403 ac_unrecognized_sep
=', ';;
1405 eval with_
$ac_useropt=\
$ac_optarg ;;
1407 -without-* |
--without-*)
1408 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1409 # Reject names that are not valid shell variable names.
1410 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1411 as_fn_error $?
"invalid package name: $ac_useropt"
1412 ac_useropt_orig
=$ac_useropt
1413 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1414 case $ac_user_opts in
1418 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1419 ac_unrecognized_sep
=', ';;
1421 eval with_
$ac_useropt=no
;;
1424 # Obsolete; use --with-x.
1427 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1428 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1429 ac_prev
=x_includes
;;
1430 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1431 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1432 x_includes
=$ac_optarg ;;
1434 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1435 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1436 ac_prev
=x_libraries
;;
1437 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1438 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1439 x_libraries
=$ac_optarg ;;
1441 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1442 Try \`$0 --help' for more information"
1446 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1447 # Reject names that are not valid shell variable names.
1448 case $ac_envvar in #(
1449 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1450 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1452 eval $ac_envvar=\
$ac_optarg
1453 export $ac_envvar ;;
1456 # FIXME: should be removed in autoconf 3.0.
1457 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1458 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1459 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1460 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1466 if test -n "$ac_prev"; then
1467 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1468 as_fn_error $?
"missing argument to $ac_option"
1471 if test -n "$ac_unrecognized_opts"; then
1472 case $enable_option_checking in
1474 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1475 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1479 # Check all directory arguments for consistency.
1480 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1481 datadir sysconfdir sharedstatedir localstatedir includedir \
1482 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1483 libdir localedir mandir
1485 eval ac_val
=\$
$ac_var
1486 # Remove trailing slashes.
1489 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1490 eval $ac_var=\
$ac_val;;
1492 # Be sure to have absolute directory names.
1494 [\\/$
]* | ?
:[\\/]* ) continue;;
1495 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1497 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1500 # There might be people who depend on the old broken behavior: `$host'
1501 # used to hold the argument of --host etc.
1502 # FIXME: To remove some day.
1505 target
=$target_alias
1507 # FIXME: To remove some day.
1508 if test "x$host_alias" != x
; then
1509 if test "x$build_alias" = x
; then
1510 cross_compiling
=maybe
1511 elif test "x$build_alias" != "x$host_alias"; then
1517 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1519 test "$silent" = yes && exec 6>/dev
/null
1522 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1523 ac_ls_di
=`ls -di .` &&
1524 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1525 as_fn_error $?
"working directory cannot be determined"
1526 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1527 as_fn_error $?
"pwd does not report name of working directory"
1530 # Find the source files, if location was not specified.
1531 if test -z "$srcdir"; then
1532 ac_srcdir_defaulted
=yes
1533 # Try the directory containing this script, then the parent directory.
1534 ac_confdir
=`$as_dirname -- "$as_myself" ||
1535 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1536 X"$as_myself" : 'X\(//\)[^/]' \| \
1537 X"$as_myself" : 'X\(//\)$' \| \
1538 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1539 $as_echo X"$as_myself" |
1540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1558 if test ! -r "$srcdir/$ac_unique_file"; then
1562 ac_srcdir_defaulted
=no
1564 if test ! -r "$srcdir/$ac_unique_file"; then
1565 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1566 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1568 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1570 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1572 # When building in place, set srcdir=.
1573 if test "$ac_abs_confdir" = "$ac_pwd"; then
1576 # Remove unnecessary trailing slashes from srcdir.
1577 # Double slashes in file names in object file debugging info
1578 # mess up M-x gdb in Emacs.
1580 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1582 for ac_var
in $ac_precious_vars; do
1583 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1584 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1585 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1586 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1590 # Report the --help message.
1592 if test "$ac_init_help" = "long"; then
1593 # Omit some internal or obsolete options to make the list less imposing.
1594 # This message is too long to be a string in the A/UX 3.1 sh.
1596 \`configure' configures this package to adapt to many kinds of systems.
1598 Usage: $0 [OPTION]... [VAR=VALUE]...
1600 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1601 VAR=VALUE. See below for descriptions of some of the useful variables.
1603 Defaults for the options are specified in brackets.
1606 -h, --help display this help and exit
1607 --help=short display options specific to this package
1608 --help=recursive display the short help of all the included packages
1609 -V, --version display version information and exit
1610 -q, --quiet, --silent do not print \`checking ...' messages
1611 --cache-file=FILE cache test results in FILE [disabled]
1612 -C, --config-cache alias for \`--cache-file=config.cache'
1613 -n, --no-create do not create output files
1614 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1616 Installation directories:
1617 --prefix=PREFIX install architecture-independent files in PREFIX
1618 [$ac_default_prefix]
1619 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1622 By default, \`make install' will install all the files in
1623 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1624 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1625 for instance \`--prefix=\$HOME'.
1627 For better control, use the options below.
1629 Fine tuning of the installation directories:
1630 --bindir=DIR user executables [EPREFIX/bin]
1631 --sbindir=DIR system admin executables [EPREFIX/sbin]
1632 --libexecdir=DIR program executables [EPREFIX/libexec]
1633 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1634 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1635 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1636 --libdir=DIR object code libraries [EPREFIX/lib]
1637 --includedir=DIR C header files [PREFIX/include]
1638 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1639 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1640 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1641 --infodir=DIR info documentation [DATAROOTDIR/info]
1642 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1643 --mandir=DIR man documentation [DATAROOTDIR/man]
1644 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1645 --htmldir=DIR html documentation [DOCDIR]
1646 --dvidir=DIR dvi documentation [DOCDIR]
1647 --pdfdir=DIR pdf documentation [DOCDIR]
1648 --psdir=DIR ps documentation [DOCDIR]
1654 --program-prefix=PREFIX prepend PREFIX to installed program names
1655 --program-suffix=SUFFIX append SUFFIX to installed program names
1656 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1659 --build=BUILD configure
for building on BUILD
[guessed
]
1660 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1661 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1665 if test -n "$ac_init_help"; then
1670 --disable-option-checking ignore unrecognized
--enable/--with options
1671 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1672 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1673 --enable-generated-files-in-srcdir
1674 put copies of generated files
in source dir intended
1675 for creating
source tarballs
for users without
1676 texinfo bison or flex
1677 --disable-largefile omit support
for large files
1678 --disable-build-format-warnings
1679 don
't use -Wformat while building GCC
1680 --enable-werror-always enable -Werror despite compiler version
1681 --enable-checking[=LIST]
1682 enable expensive run-time checks. With LIST, enable
1683 only specific categories of checks. Categories are:
1684 yes,no,all,none,release. Flags are:
1685 assert,df,extra,fold,gc,gcac,gimple,misc,
1686 rtlflag,rtl,runtime,tree,valgrind,types
1687 --enable-coverage[=LEVEL]
1688 enable compiler's code coverage collection. Use to
1689 measure compiler performance and
locate unused parts
1690 of the compiler. With LEVEL
, specify optimization.
1691 Values are opt
, noopt
, default is noopt
1692 --enable-gather-detailed-mem-stats
1693 enable detailed memory allocation stats gathering
1694 --enable-valgrind-annotations
1695 enable valgrind runtime interaction
1696 --enable-multilib enable library support
for multiple ABIs
1697 --enable-multiarch enable support
for multiarch paths
1698 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1699 --enable-decimal-float={no
,yes,bid
,dpd
}
1700 enable decimal float extension to C. Selecting
'bid'
1701 or
'dpd' choses
which decimal floating point format
1703 --enable-fixed-point enable fixed-point arithmetic extension to C
1704 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1706 --enable-tls enable or disable generation of tls code overriding
1707 the assembler check
for tls support
1708 --enable-vtable-verify enable vtable verification feature
1709 --disable-analyzer disable
-fanalyzer static analyzer
1710 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1711 GNU Objective-C runtime
1712 --disable-shared don't provide a shared libgcc
1713 --disable-gcov don
't provide libgcov and related host tools
1714 --enable-languages=LIST specify which front-ends to build
1715 --disable-rpath do not hardcode runtime library paths
1716 --enable-sjlj-exceptions
1717 arrange to use setjmp/longjmp exception handling
1718 --enable-secureplt enable -msecure-plt by default for PowerPC
1719 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1720 Default to platform configuration
1721 --enable-large-address-aware
1722 Link mingw executables with --large-address-aware
1723 --enable-leading-mingw64-underscores
1724 enable leading underscores on 64 bit mingw targets
1725 --enable-cld enable -mcld by default for 32bit x86
1726 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1727 --disable-win32-registry
1728 disable lookup of installation paths in the Registry
1730 --enable-win32-registry enable registry lookup (default)
1731 --enable-win32-registry=KEY
1732 use KEY instead of GCC version as the last portion
1734 --enable-shared[=PKGS] build shared libraries [default=yes]
1735 --enable-static[=PKGS] build static libraries [default=yes]
1736 --enable-fast-install[=PKGS]
1737 optimize for fast installation [default=yes]
1738 --disable-libtool-lock avoid locking (might break parallel builds)
1739 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1740 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1741 --enable-gnu-indirect-function
1742 enable the use of the @gnu_indirect_function to
1744 --enable-initfini-array use .init_array/.fini_array sections
1745 --enable-comdat enable COMDAT group support
1746 --enable-newlib-nano-formatted-io
1747 Use nano version formatted IO
1749 --enable-standard-branch-protection
1750 enable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1752 --disable-standard-branch-protection
1753 disable Branch Target Identification Mechanism and
1754 Return Address Signing by default for AArch64
1757 --enable-fix-cortex-a53-835769
1758 enable workaround for AArch64 Cortex-A53 erratum
1760 --disable-fix-cortex-a53-835769
1761 disable workaround for AArch64 Cortex-A53 erratum
1765 --enable-fix-cortex-a53-843419
1766 enable workaround for AArch64 Cortex-A53 erratum
1768 --disable-fix-cortex-a53-843419
1769 disable workaround for AArch64 Cortex-A53 erratum
1772 --enable-gnu-unique-object
1773 enable the use of the @gnu_unique_object ELF
1774 extension on glibc systems
1775 --enable-linker-build-id
1776 compiler will always pass --build-id to linker
1777 --enable-libssp enable linking against libssp
1778 --enable-default-ssp enable Stack Smashing Protection as default
1779 --enable-maintainer-mode
1780 enable make rules and dependencies not useful (and
1781 sometimes confusing) to the casual installer
1782 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1783 thrashing on the build machine
1784 --enable-link-serialization
1785 avoid linking multiple GCC front-ends at once using
1786 make dependencies to avoid thrashing on the build
1788 --enable-version-specific-runtime-libs
1789 specify that runtime libraries should be installed
1790 in a compiler-specific directory
1791 --enable-plugin enable plugin support
1792 --enable-host-shared build host code as shared libraries
1793 --disable-libquadmath-support
1794 disable libquadmath support for Fortran
1795 --enable-default-pie enable Position Independent Executable as default
1796 --enable-cet enable Intel CET in host libraries [default=auto]
1797 --enable-s390-excess-float-precision
1798 on s390 targets, evaluate float with double
1799 precision when in standards-conforming mode
1802 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1803 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1804 --with-build-libsubdir=DIR Directory where to find libraries for build system
1805 --with-local-prefix=DIR specifies directory to put local include
1806 --with-native-system-header-dir=dir
1807 use dir as the directory to look for standard
1808 system header files in. Defaults to /usr/include.
1809 --with-build-sysroot=sysroot
1810 use sysroot as the system root during the build
1811 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1812 --with-gxx-include-dir=DIR
1813 specifies directory to put g++ header files
1814 --with-gxx-libcxx-include-dir=DIR
1815 specifies directory to find libc++ header files
1816 --with-cpp-install-dir=DIR
1817 install the user visible C preprocessor in DIR
1818 (relative to PREFIX) as well as PREFIX/bin
1819 --with-gnu-ld arrange to work with GNU ld
1820 --with-ld arrange to use the specified ld (full pathname)
1821 --with-demangler-in-ld try to use demangler in GNU ld
1822 --with-dsymutil arrange to use the specified dsymutil (full
1824 --with-gnu-as arrange to work with GNU as
1825 --with-as arrange to use the specified as (full pathname)
1826 --with-stack-clash-protection-guard-size=size
1827 Set the default stack clash protection guard size
1828 for specific targets as a power of two in bytes.
1829 --with-dwarf2 force the default debug format to be DWARF 2 (or
1831 --with-specs=SPECS add SPECS to driver command-line processing
1832 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1833 --with-bugurl=URL Direct users to URL to report a bug
1834 --with-documentation-root-url=URL
1835 Root for documentation URLs
1836 --with-changes-root-url=URL
1837 Root for GCC changes URLs
1838 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1840 --with-multilib-generator
1841 Multi-libs configuration string (RISC-V only)
1842 --with-zstd=PATH specify prefix directory for installed zstd library.
1843 Equivalent to --with-zstd-include=PATH/include plus
1844 --with-zstd-lib=PATH/lib
1845 --with-zstd-include=PATH
1846 specify directory for installed zstd include files
1847 --with-zstd-lib=PATH specify directory for the installed zstd library
1848 --with-gnu-ld assume the C compiler uses GNU ld default=no
1849 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1850 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1851 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1852 --with-gcc-major-version-only
1853 use only GCC major number
in filesystem paths
1854 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1856 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1857 --with-plugin-ld=[ARG
] specify the plugin linker
1858 --with-glibc-version=M.N
1859 assume GCC used with glibc version M.N or later
1860 --with-long-double-128 use
128-bit long double by default
1861 --with-long-double-format={ieee
,ibm
}
1862 Specify whether PowerPC long double uses IEEE or IBM format
1864 --with-gc={page
,zone
} this option is not supported anymore. It used to
1865 choose the garbage collection mechanism to use with
1867 --with-system-zlib use installed libz
1868 --with-linker-hash-style={sysv
,gnu
,both
}
1869 specify the linker
hash style
1870 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1871 specify the default of
-fdiagnostics-color option
1872 auto-if-env stands
for -fdiagnostics-color=auto
if
1873 GCC_COLOR environment variable is present and
1874 -fdiagnostics-color=never otherwise
1875 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1876 specify the default of
-fdiagnostics-urls option
1877 auto-if-env stands
for -fdiagnostics-urls=auto
if
1878 GCC_URLS or TERM_URLS environment variable is
1879 present and
-fdiagnostics-urls=never otherwise
1881 Some influential environment variables
:
1882 CC C compiler
command
1883 CFLAGS C compiler flags
1884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1885 nonstandard directory
<lib dir
>
1886 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1887 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1888 you have headers
in a nonstandard directory
<include dir
>
1889 CXX C
++ compiler
command
1890 CXXFLAGS C
++ compiler flags
1891 CXXCPP C
++ preprocessor
1893 GMPLIBS How to link GMP
1894 GMPINC How to
find GMP include files
1895 ISLLIBS How to link isl
1896 ISLINC How to
find isl include files
1898 Use these variables to override the choices made by
`configure' or to help
1899 it to find libraries and programs with nonstandard names/locations.
1901 Report bugs to the package provider.
1906 if test "$ac_init_help" = "recursive"; then
1907 # If there are subdirs, report their specific --help.
1908 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1909 test -d "$ac_dir" ||
1910 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1917 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1918 # A ".." for each directory in $ac_dir_suffix.
1919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1920 case $ac_top_builddir_sub in
1921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1925 ac_abs_top_builddir=$ac_pwd
1926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1927 # for backward compatibility:
1928 ac_top_builddir=$ac_top_build_prefix
1931 .) # We are building in place.
1933 ac_top_srcdir=$ac_top_builddir_sub
1934 ac_abs_top_srcdir=$ac_pwd ;;
1935 [\\/]* | ?:[\\/]* ) # Absolute name.
1936 ac_srcdir=$srcdir$ac_dir_suffix;
1937 ac_top_srcdir=$srcdir
1938 ac_abs_top_srcdir=$srcdir ;;
1940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1941 ac_top_srcdir=$ac_top_build_prefix$srcdir
1942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1946 cd "$ac_dir" || { ac_status=$?; continue; }
1947 # Check for guested configure.
1948 if test -f "$ac_srcdir/configure.gnu"; then
1950 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1951 elif test -f "$ac_srcdir/configure"; then
1953 $SHELL "$ac_srcdir/configure" --help=recursive
1955 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1957 cd "$ac_pwd" || { ac_status=$?; break; }
1961 test -n "$ac_init_help" && exit $ac_status
1962 if $ac_init_version; then
1965 generated by GNU Autoconf 2.69
1967 Copyright (C) 2012 Free Software Foundation, Inc.
1968 This configure script is free software; the Free Software Foundation
1969 gives unlimited permission to copy, distribute and modify it.
1974 ## ------------------------ ##
1975 ## Autoconf initialization. ##
1976 ## ------------------------ ##
1978 # ac_fn_c_try_compile LINENO
1979 # --------------------------
1980 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_c_try_compile ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 rm -f conftest.$ac_objext
1985 if { { ac_try="$ac_compile"
1987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1988 *) ac_try_echo
=$ac_try;;
1990 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_compile") 2>conftest.err
1994 if test -s conftest.err
; then
1995 grep -v '^ *+' conftest.err
>conftest.er1
1996 cat conftest.er1
>&5
1997 mv -f conftest.er1 conftest.err
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && {
2001 test -z "$ac_c_werror_flag" ||
2002 test ! -s conftest.err
2003 } && test -s conftest.
$ac_objext; then :
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.
$ac_ext >&5
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status
$ac_retval
2014 } # ac_fn_c_try_compile
2016 # ac_fn_cxx_try_compile LINENO
2017 # ----------------------------
2018 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_cxx_try_compile
()
2021 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2022 rm -f conftest.
$ac_objext
2023 if { { ac_try
="$ac_compile"
2025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_compile") 2>conftest.err
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } && {
2039 test -z "$ac_cxx_werror_flag" ||
2040 test ! -s conftest.err
2041 } && test -s conftest.$ac_objext; then :
2044 $as_echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2052 } # ac_fn_cxx_try_compile
2054 # ac_fn_cxx_try_cpp LINENO
2055 # ------------------------
2056 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2057 ac_fn_cxx_try_cpp ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if { { ac_try="$ac_cpp conftest.$ac_ext"
2062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2063 *) ac_try_echo
=$ac_try;;
2065 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2069 if test -s conftest.err
; then
2070 grep -v '^ *+' conftest.err
>conftest.er1
2071 cat conftest.er1
>&5
2072 mv -f conftest.er1 conftest.err
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } > conftest.i
&& {
2076 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2077 test ! -s conftest.err
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.
$ac_ext >&5
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status
$ac_retval
2089 } # ac_fn_cxx_try_cpp
2091 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2092 # ---------------------------------------------------------
2093 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2094 # the include files in INCLUDES and setting the cache variable VAR
2096 ac_fn_cxx_check_header_mongrel
()
2098 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2099 if eval \
${$3+:} false
; then :
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if eval \
${$3+:} false
; then :
2103 $as_echo_n "(cached) " >&6
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2109 # Is the header compilable?
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2111 $as_echo_n "checking $2 usability... " >&6; }
2112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2117 if ac_fn_cxx_try_compile
"$LINENO"; then :
2118 ac_header_compiler
=yes
2120 ac_header_compiler
=no
2122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2124 $as_echo "$ac_header_compiler" >&6; }
2126 # Is the header present?
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2128 $as_echo_n "checking $2 presence... " >&6; }
2129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2133 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2134 ac_header_preproc
=yes
2136 ac_header_preproc
=no
2138 rm -f conftest.err conftest.i conftest.
$ac_ext
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2140 $as_echo "$ac_header_preproc" >&6; }
2142 # So? What about this header?
2143 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2146 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2148 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2152 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2154 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2156 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2158 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2160 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval \
${$3+:} false
; then :
2166 $as_echo_n "(cached) " >&6
2168 eval "$3=\$ac_header_compiler"
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 } # ac_fn_cxx_check_header_mongrel
2178 # ac_fn_cxx_try_run LINENO
2179 # ------------------------
2180 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2181 # that executables *can* be run.
2182 ac_fn_cxx_try_run
()
2184 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2185 if { { ac_try
="$ac_link"
2187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_link") 2>&5
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2196 { { case "(($ac_try" in
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_try") 2>&5
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; }; }; then :
2208 $as_echo "$as_me: program exited with status $ac_status" >&5
2209 $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.
$ac_ext >&5
2212 ac_retval
=$ac_status
2214 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 as_fn_set_status
$ac_retval
2218 } # ac_fn_cxx_try_run
2220 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2221 # ---------------------------------------------------------
2222 # Tests whether HEADER exists and can be compiled using the include files in
2223 # INCLUDES, setting the cache variable VAR accordingly.
2224 ac_fn_cxx_check_header_compile
()
2226 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 $as_echo_n "checking for $2... " >&6; }
2229 if eval \
${$3+:} false
; then :
2230 $as_echo_n "(cached) " >&6
2232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2237 if ac_fn_cxx_try_compile
"$LINENO"; then :
2242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 } # ac_fn_cxx_check_header_compile
2251 # ac_fn_c_try_cpp LINENO
2252 # ----------------------
2253 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2256 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2257 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263 $as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2266 if test -s conftest.err; then
2267 grep -v '^ *+' conftest.err >conftest.er1
2268 cat conftest.er1 >&5
2269 mv -f conftest.er1 conftest.err
2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; } > conftest.i && {
2273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2274 test ! -s conftest.err
2278 $as_echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 as_fn_set_status $ac_retval
2288 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2289 # ----------------------------------------------
2290 # Tries to find the compile-time value of EXPR in a program that includes
2291 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2293 ac_fn_cxx_compute_int ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 if test "$cross_compiling" = yes; then
2297 # Depending upon the size, compute the lo and hi bounds.
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2304 static int test_array [1 - 2 * !(($2) >= 0)];
2306 return test_array [0];
2312 if ac_fn_cxx_try_compile "$LINENO"; then :
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2321 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2323 return test_array [0];
2329 if ac_fn_cxx_try_compile "$LINENO"; then :
2330 ac_hi=$ac_mid; break
2332 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2333 if test $ac_lo -le $ac_mid; then
2337 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2348 static int test_array [1 - 2 * !(($2) < 0)];
2350 return test_array [0];
2356 if ac_fn_cxx_try_compile "$LINENO"; then :
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2365 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2367 return test_array [0];
2373 if ac_fn_cxx_try_compile "$LINENO"; then :
2374 ac_lo=$ac_mid; break
2376 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2377 if test $ac_mid -le $ac_hi; then
2381 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 # Binary search between lo and hi bounds.
2392 while test "x$ac_lo" != "x$ac_hi"; do
2393 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2400 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2402 return test_array [0];
2408 if ac_fn_cxx_try_compile "$LINENO"; then :
2411 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2423 static long int longval () { return $2; }
2424 static unsigned long int ulongval () { return $2; }
2431 FILE *f = fopen ("conftest.val", "w");
2436 long int i = longval ();
2439 fprintf (f, "%ld", i);
2443 unsigned long int i = ulongval ();
2446 fprintf (f, "%lu", i);
2448 /* Do not output a trailing newline, as this causes \r\n confusion
2449 on some platforms. */
2450 return ferror (f) || fclose (f) != 0;
2456 if ac_fn_cxx_try_run "$LINENO"; then :
2457 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2462 conftest.$ac_objext conftest.beam conftest.$ac_ext
2466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467 as_fn_set_status $ac_retval
2469 } # ac_fn_cxx_compute_int
2471 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2472 # ---------------------------------------------
2473 # Tests whether TYPE exists after having included INCLUDES, setting cache
2474 # variable VAR accordingly.
2475 ac_fn_cxx_check_type ()
2477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479 $as_echo_n "checking for $2... " >&6; }
2480 if eval \${$3+:} false; then :
2481 $as_echo_n "(cached) " >&6
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2496 if ac_fn_cxx_try_compile "$LINENO"; then :
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2509 if ac_fn_cxx_try_compile "$LINENO"; then :
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2520 $as_echo "$ac_res" >&6; }
2521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2523 } # ac_fn_cxx_check_type
2525 # ac_fn_c_find_intX_t LINENO BITS VAR
2526 # -----------------------------------
2527 # Finds a signed integer type with width BITS, setting cache variable VAR
2529 ac_fn_c_find_intX_t ()
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2533 $as_echo_n "checking for int$2_t... " >&6; }
2534 if eval \${$3+:} false; then :
2535 $as_echo_n "(cached) " >&6
2538 # Order is important - never check a type that is potentially smaller
2539 # than half of the expected target width.
2540 for ac_type in int$2_t 'int' 'long int' \
2541 'long long int' 'short int' 'signed char'; do
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2544 $ac_includes_default
2545 enum { N = $2 / 2 - 1 };
2549 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2551 return test_array [0];
2557 if ac_fn_cxx_try_compile "$LINENO"; then :
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 $ac_includes_default
2561 enum { N = $2 / 2 - 1 };
2565 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2566 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2568 return test_array [0];
2574 if ac_fn_cxx_try_compile "$LINENO"; then :
2581 eval "$3=\$ac_type" ;;
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 if eval test \"x\$"$3"\" = x"no"; then :
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596 $as_echo "$ac_res" >&6; }
2597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2599 } # ac_fn_c_find_intX_t
2601 # ac_fn_cxx_try_link LINENO
2602 # -------------------------
2603 # Try to link conftest.$ac_ext, and return whether this succeeded.
2604 ac_fn_cxx_try_link ()
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 rm -f conftest.$ac_objext conftest$ac_exeext
2608 if { { ac_try="$ac_link"
2610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2611 *) ac_try_echo
=$ac_try;;
2613 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2614 $as_echo "$ac_try_echo"; } >&5
2615 (eval "$ac_link") 2>conftest.err
2617 if test -s conftest.err
; then
2618 grep -v '^ *+' conftest.err
>conftest.er1
2619 cat conftest.er1
>&5
2620 mv -f conftest.er1 conftest.err
2622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2623 test $ac_status = 0; } && {
2624 test -z "$ac_cxx_werror_flag" ||
2625 test ! -s conftest.err
2626 } && test -s conftest
$ac_exeext && {
2627 test "$cross_compiling" = yes ||
2628 test -x conftest
$ac_exeext
2632 $as_echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.
$ac_ext >&5
2637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2639 # interfere with the next link command; also delete a directory that is
2640 # left behind by Apple's compiler. We do this before executing the actions.
2641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2643 as_fn_set_status
$ac_retval
2645 } # ac_fn_cxx_try_link
2647 # ac_fn_c_find_uintX_t LINENO BITS VAR
2648 # ------------------------------------
2649 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2651 ac_fn_c_find_uintX_t
()
2653 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2655 $as_echo_n "checking for uint$2_t... " >&6; }
2656 if eval \
${$3+:} false
; then :
2657 $as_echo_n "(cached) " >&6
2660 # Order is important - never check a type that is potentially smaller
2661 # than half of the expected target width.
2662 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2663 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2666 $ac_includes_default
2670 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2672 return test_array [0];
2678 if ac_fn_cxx_try_compile
"$LINENO"; then :
2683 eval "$3=\$ac_type" ;;
2686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2687 if eval test \"x\$
"$3"\" = x
"no"; then :
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2696 $as_echo "$ac_res" >&6; }
2697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2699 } # ac_fn_c_find_uintX_t
2701 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2702 # ------------------------------------------------
2703 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2704 ac_fn_cxx_check_header_preproc
()
2706 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \
${$3+:} false
; then :
2710 $as_echo_n "(cached) " >&6
2712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2716 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2721 rm -f conftest.err conftest.i conftest.
$ac_ext
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 $as_echo "$ac_res" >&6; }
2726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728 } # ac_fn_cxx_check_header_preproc
2730 # ac_fn_cxx_check_func LINENO FUNC VAR
2731 # ------------------------------------
2732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2733 ac_fn_cxx_check_func
()
2735 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2737 $as_echo_n "checking for $2... " >&6; }
2738 if eval \
${$3+:} false
; then :
2739 $as_echo_n "(cached) " >&6
2741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2745 #define $2 innocuous_$2
2747 /* System header to define __stub macros and hopefully few prototypes,
2748 which can conflict with char $2 (); below.
2749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2750 <limits.h> exists even on freestanding compilers. */
2753 # include <limits.h>
2755 # include <assert.h>
2760 /* Override any GCC internal prototype to avoid an error.
2761 Use char because int might match the return type of a GCC
2762 builtin and then its argument prototype would still apply. */
2767 /* The GNU C library defines this for functions which it implements
2768 to always fail with ENOSYS. Some functions are actually named
2769 something starting with __ and the normal name is an alias. */
2770 #if defined __stub_$2 || defined __stub___$2
2782 if ac_fn_cxx_try_link
"$LINENO"; then :
2787 rm -f core conftest.err conftest.
$ac_objext \
2788 conftest
$ac_exeext conftest.
$ac_ext
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2792 $as_echo "$ac_res" >&6; }
2793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2795 } # ac_fn_cxx_check_func
2797 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2798 # -----------------------------------------------
2799 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2801 ac_fn_cxx_check_decl
()
2803 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2804 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2805 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2807 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2808 if eval \
${$3+:} false
; then :
2809 $as_echo_n "(cached) " >&6
2811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2812 /* end confdefs.h. */
2817 #ifndef $as_decl_name
2819 (void) $as_decl_use;
2821 (void) $as_decl_name;
2829 if ac_fn_cxx_try_compile
"$LINENO"; then :
2834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2838 $as_echo "$ac_res" >&6; }
2839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2841 } # ac_fn_cxx_check_decl
2843 # ac_fn_c_try_link LINENO
2844 # -----------------------
2845 # Try to link conftest.$ac_ext, and return whether this succeeded.
2848 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2849 rm -f conftest.
$ac_objext conftest
$ac_exeext
2850 if { { ac_try
="$ac_link"
2852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856 $as_echo "$ac_try_echo"; } >&5
2857 (eval "$ac_link") 2>conftest.err
2859 if test -s conftest.err; then
2860 grep -v '^ *+' conftest.err >conftest.er1
2861 cat conftest.er1 >&5
2862 mv -f conftest.er1 conftest.err
2864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; } && {
2866 test -z "$ac_c_werror_flag" ||
2867 test ! -s conftest.err
2868 } && test -s conftest$ac_exeext && {
2869 test "$cross_compiling" = yes ||
2870 test -x conftest$ac_exeext
2874 $as_echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2879 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2880 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2881 # interfere with the next link command; also delete a directory that is
2882 # left behind by Apple's compiler. We do this before executing the actions.
2883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2885 as_fn_set_status $ac_retval
2887 } # ac_fn_c_try_link
2889 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2890 # ----------------------------------------------
2891 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2892 ac_fn_c_check_header_preproc ()
2894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2896 $as_echo_n "checking for $2... " >&6; }
2897 if eval \${$3+:} false; then :
2898 $as_echo_n "(cached) " >&6
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2904 if ac_fn_c_try_cpp "$LINENO"; then :
2909 rm -f conftest.err conftest.i conftest.$ac_ext
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2913 $as_echo "$ac_res" >&6; }
2914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2916 } # ac_fn_c_check_header_preproc
2918 # ac_fn_c_check_func LINENO FUNC VAR
2919 # ----------------------------------
2920 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2921 ac_fn_c_check_func ()
2923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2925 $as_echo_n "checking for $2... " >&6; }
2926 if eval \${$3+:} false; then :
2927 $as_echo_n "(cached) " >&6
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930 /* end confdefs.h. */
2931 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2933 #define $2 innocuous_$2
2935 /* System header to define __stub macros and hopefully few prototypes,
2936 which can conflict with char $2 (); below.
2937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938 <limits.h> exists even on freestanding compilers. */
2941 # include <limits.h>
2943 # include <assert.h>
2948 /* Override any GCC internal prototype to avoid an error.
2949 Use char because int might match the return type of a GCC
2950 builtin and then its argument prototype would still apply. */
2955 /* The GNU C library defines this for functions which it implements
2956 to always fail with ENOSYS. Some functions are actually named
2957 something starting with __ and the normal name is an alias. */
2958 #if defined __stub_$2 || defined __stub___$2
2970 if ac_fn_c_try_link "$LINENO"; then :
2975 rm -f core conftest.err conftest.$ac_objext \
2976 conftest$ac_exeext conftest.$ac_ext
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2980 $as_echo "$ac_res" >&6; }
2981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2983 } # ac_fn_c_check_func
2984 cat >config.log <<_ACEOF
2985 This file contains any messages produced by compilers while
2986 running configure, to aid debugging if configure makes a mistake.
2988 It was created by $as_me, which was
2989 generated by GNU Autoconf 2.69. Invocation command line was
3001 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3002 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3003 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3004 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3005 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3007 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3008 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3010 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3011 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3012 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3013 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3014 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3015 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3016 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 test -z "$as_dir" && as_dir=.
3025 $as_echo "PATH: $as_dir"
3041 # Keep a trace of the command line.
3042 # Strip out --no-create and --no-recursion so they do not pile up.
3043 # Strip out --silent because we don't want to record it for future runs.
3044 # Also quote any args containing shell meta-characters.
3045 # Make two passes to allow for proper duplicate-argument suppression.
3049 ac_must_keep_next=false
3055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3057 | -silent | --silent | --silen | --sile | --sil)
3060 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3063 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3065 as_fn_append ac_configure_args1 " '$ac_arg'"
3066 if test $ac_must_keep_next = true; then
3067 ac_must_keep_next=false # Got value, back to normal.
3070 *=* | --config-cache | -C | -disable-* | --disable-* \
3071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3073 | -with-* | --with-* | -without-* | --without-* | --x)
3074 case "$ac_configure_args0 " in
3075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3078 -* ) ac_must_keep_next=true ;;
3081 as_fn_append ac_configure_args " '$ac_arg'"
3086 { ac_configure_args0=; unset ac_configure_args0;}
3087 { ac_configure_args1=; unset ac_configure_args1;}
3089 # When interrupted or exit'd, cleanup temporary files, and complete
3090 # config.log. We remove comments because anyway the quotes in there
3091 # would cause problems or look ugly.
3092 # WARNING: Use '\'' to represent an apostrophe within the trap.
3093 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3094 trap 'exit_status=$?
3095 # Save into config.log some information that might help in debugging.
3099 $as_echo "## ---------------- ##
3100 ## Cache variables. ##
3101 ## ---------------- ##"
3103 # The following way of writing the cache mishandles newlines in values,
3105 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3106 eval ac_val=\$$ac_var
3110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3114 _ | IFS | as_nl) ;; #(
3115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3116 *) { eval $ac_var=; unset $ac_var;} ;;
3121 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3122 *${as_nl}ac_space=\ *)
3124 "s/'\''/'\''\\\\'\'''\''/g;
3125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3135 $as_echo "## ----------------- ##
3136 ## Output variables. ##
3137 ## ----------------- ##"
3139 for ac_var in $ac_subst_vars
3141 eval ac_val=\$$ac_var
3143 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3145 $as_echo "$ac_var='\''$ac_val'\''"
3149 if test -n "$ac_subst_files"; then
3150 $as_echo "## ------------------- ##
3151 ## File substitutions. ##
3152 ## ------------------- ##"
3154 for ac_var in $ac_subst_files
3156 eval ac_val=\$$ac_var
3158 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3160 $as_echo "$ac_var='\''$ac_val'\''"
3165 if test -s confdefs.h; then
3166 $as_echo "## ----------- ##
3173 test "$ac_signal" != 0 &&
3174 $as_echo "$as_me: caught signal $ac_signal"
3175 $as_echo "$as_me: exit $exit_status"
3177 rm -f core *.core core.conftest.* &&
3178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3181 for ac_signal in 1 2 13 15; do
3182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3187 rm -f -r conftest* confdefs.h
3189 $as_echo "/* confdefs.h */" > confdefs.h
3191 # Predefined preprocessor variables.
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_NAME "$PACKAGE_NAME"
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_STRING "$PACKAGE_STRING"
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3213 cat >>confdefs.h <<_ACEOF
3214 #define PACKAGE_URL "$PACKAGE_URL"
3218 # Let the site file select an alternate cache file if it wants to.
3219 # Prefer an explicitly selected file to automatically selected ones.
3222 if test -n "$CONFIG_SITE"; then
3223 # We do not want a PATH search for config.site.
3224 case $CONFIG_SITE in #((
3225 -*) ac_site_file1=./$CONFIG_SITE;;
3226 */*) ac_site_file1=$CONFIG_SITE;;
3227 *) ac_site_file1=./$CONFIG_SITE;;
3229 elif test "x$prefix" != xNONE; then
3230 ac_site_file1=$prefix/share/config.site
3231 ac_site_file2=$prefix/etc/config.site
3233 ac_site_file1=$ac_default_prefix/share/config.site
3234 ac_site_file2=$ac_default_prefix/etc/config.site
3236 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3238 test "x$ac_site_file" = xNONE && continue
3239 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3241 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3242 sed 's/^/| /' "$ac_site_file" >&5
3244 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $? "failed to load site
script $ac_site_file
3247 See \
`config.log' for more details" "$LINENO" 5; }
3251 if test -r "$cache_file"; then
3252 # Some versions of bash will fail to source /dev/null (special files
3253 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3254 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3256 $as_echo "$as_me: loading cache $cache_file" >&6;}
3258 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3259 *) . "./$cache_file";;
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3264 $as_echo "$as_me: creating cache $cache_file" >&6;}
3268 # Check that the precious variables saved in the cache have kept the same
3270 ac_cache_corrupted=false
3271 for ac_var in $ac_precious_vars; do
3272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3273 eval ac_new_set=\$ac_env_${ac_var}_set
3274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3275 eval ac_new_val=\$ac_env_${ac_var}_value
3276 case $ac_old_set,$ac_new_set in
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3279 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3283 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3284 ac_cache_corrupted=: ;;
3287 if test "x$ac_old_val" != "x$ac_new_val"; then
3288 # differences in whitespace do not lead to failure.
3289 ac_old_val_w=`echo x
$ac_old_val`
3290 ac_new_val_w=`echo x
$ac_new_val`
3291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3294 ac_cache_corrupted=:
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3298 eval $ac_var=\$ac_old_val
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3301 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3306 # Pass precious variables to config.status.
3307 if test "$ac_new_set" = set; then
3309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3310 *) ac_arg=$ac_var=$ac_new_val ;;
3312 case " $ac_configure_args " in
3313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3318 if $ac_cache_corrupted; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3323 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3325 ## -------------------- ##
3326 ## Main body of script. ##
3327 ## -------------------- ##
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3344 gcc_version=`cat $srcdir/BASE-VER
`
3346 # Determine the host, build, and target systems
3348 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3349 if test -f "$ac_dir/install-sh"; then
3351 ac_install_sh="$ac_aux_dir/install-sh -c"
3353 elif test -f "$ac_dir/install.sh"; then
3355 ac_install_sh="$ac_aux_dir/install.sh -c"
3357 elif test -f "$ac_dir/shtool"; then
3359 ac_install_sh="$ac_aux_dir/shtool install -c"
3363 if test -z "$ac_aux_dir"; then
3364 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3367 # These three variables are undocumented and unsupported,
3368 # and are intended to be withdrawn in a future Autoconf release.
3369 # They can cause serious problems if a builder's source tree is in a directory
3370 # whose full name contains unusual characters.
3371 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3372 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3373 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3376 # Make sure we can run config.sub.
3377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3378 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3381 $as_echo_n "checking build system type... " >&6; }
3382 if ${ac_cv_build+:} false; then :
3383 $as_echo_n "(cached) " >&6
3385 ac_build_alias=$build_alias
3386 test "x$ac_build_alias" = x &&
3387 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3388 test "x$ac_build_alias" = x &&
3389 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3390 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3391 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3395 $as_echo "$ac_cv_build" >&6; }
3396 case $ac_cv_build in
3398 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3401 ac_save_IFS=$IFS; IFS='-'
3407 # Remember, the first character of IFS is used to create $*,
3408 # except with old shells:
3411 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3415 $as_echo_n "checking host system type... " >&6; }
3416 if ${ac_cv_host+:} false; then :
3417 $as_echo_n "(cached) " >&6
3419 if test "x$host_alias" = x; then
3420 ac_cv_host=$ac_cv_build
3422 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3423 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3428 $as_echo "$ac_cv_host" >&6; }
3431 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3434 ac_save_IFS=$IFS; IFS='-'
3440 # Remember, the first character of IFS is used to create $*,
3441 # except with old shells:
3444 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3448 $as_echo_n "checking target system type... " >&6; }
3449 if ${ac_cv_target+:} false; then :
3450 $as_echo_n "(cached) " >&6
3452 if test "x$target_alias" = x; then
3453 ac_cv_target=$ac_cv_host
3455 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3456 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3461 $as_echo "$ac_cv_target" >&6; }
3462 case $ac_cv_target in
3464 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3466 target=$ac_cv_target
3467 ac_save_IFS=$IFS; IFS='-'
3473 # Remember, the first character of IFS is used to create $*,
3474 # except with old shells:
3477 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3480 # The aliases save the names the user supplied, while $host etc.
3481 # will get canonicalized.
3482 test -n "$target_alias" &&
3483 test "$program_prefix$program_suffix$program_transform_name" = \
3485 program_prefix=${target_alias}-
3487 # Determine the noncanonical host name, for Ada.
3488 case ${build_alias} in
3489 "") build_noncanonical=${build} ;;
3490 *) build_noncanonical=${build_alias} ;;
3493 case ${host_alias} in
3494 "") host_noncanonical=${build_noncanonical} ;;
3495 *) host_noncanonical=${host_alias} ;;
3501 # Determine the noncanonical target name, for directory use.
3502 case ${target_alias} in
3503 "") target_noncanonical=${host_noncanonical} ;;
3504 *) target_noncanonical=${target_alias} ;;
3510 # Used for constructing correct paths for offload compilers.
3511 real_target_noncanonical=${target_noncanonical}
3514 # Determine the target- and build-specific subdirectories
3516 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3517 # have matching libraries, they should use host libraries: Makefile.tpl
3518 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3519 # However, they still use the build modules, because the corresponding
3520 # host modules (e.g. bison) are only built for the host when bootstrap
3522 # - build_subdir is where we find build modules, and never changes.
3523 # - build_libsubdir is where we find build libraries, and can be overridden.
3525 # Prefix 'build-' so this never conflicts with target_subdir.
3526 build_subdir="build-${build_noncanonical}"
3528 # Check whether --with-build-libsubdir was given.
3529 if test "${with_build_libsubdir+set}" = set; then :
3530 withval=$with_build_libsubdir; build_libsubdir="$withval"
3532 build_libsubdir="$build_subdir"
3535 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3536 if ( test $srcdir = . && test -d gcc ) \
3537 || test -d $srcdir/../host-${host_noncanonical}; then
3538 host_subdir="host-${host_noncanonical}"
3543 target_subdir=${target_noncanonical}
3546 # Set program_transform_name
3547 test "$program_prefix" != NONE &&
3548 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3549 # Use a double $ so make ignores it.
3550 test "$program_suffix" != NONE &&
3551 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3552 # Double any \ or $.
3553 # By default was `s
,x
,x
', remove it if useless.
3554 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3555 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3558 # Check for bogus environment variables.
3559 # Test if LIBRARY_PATH contains the notation for the current directory
3560 # since this would lead to problems installing/building glibc.
3561 # LIBRARY_PATH contains the current directory if one of the following
3563 # - one of the terminals (":" and ";") is the first or last sign
3564 # - two terminals occur directly after each other
3565 # - the path contains an element with a dot in it
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3567 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3568 case ${LIBRARY_PATH} in
3569 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3570 library_path_setting="contains current directory"
3573 library_path_setting="ok"
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3577 $as_echo "$library_path_setting" >&6; }
3578 if test "$library_path_setting" != "ok"; then
3580 *** LIBRARY_PATH shouldn't contain the current directory when
3581 *** building gcc. Please change the environment variable
3582 *** and run configure again.
" "$LINENO" 5
3585 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3586 # since this would lead to problems installing/building glibc.
3587 # GCC_EXEC_PREFIX contains the current directory if one of the following
3589 # - one of the terminals (":" and ";") is the first or last sign
3590 # - two terminals occur directly after each other
3591 # - the path contains an element with a dot in it
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3593 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3594 case ${GCC_EXEC_PREFIX} in
3595 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3596 gcc_exec_prefix_setting="contains current directory
"
3599 gcc_exec_prefix_setting="ok
"
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3603 $as_echo "$gcc_exec_prefix_setting" >&6; }
3604 if test "$gcc_exec_prefix_setting" != "ok
"; then
3606 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3607 *** building gcc. Please change the environment variable
3608 *** and run configure again." "$LINENO" 5
3615 # Specify the local prefix
3618 # Check whether --with-local-prefix was given.
3619 if test "${with_local_prefix+set}" = set; then :
3620 withval=$with_local_prefix; case "${withval}" in
3621 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3623 *) local_prefix=$with_local_prefix ;;
3628 # Default local prefix if it is empty
3629 if test x$local_prefix = x; then
3630 local_prefix=/usr/local
3634 # Check whether --with-native-system-header-dir was given.
3635 if test "${with_native_system_header_dir+set}" = set; then :
3636 withval=$with_native_system_header_dir;
3637 case ${with_native_system_header_dir} in
3638 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3639 /* | [A-Za-z]:[\\/]*) ;;
3640 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3642 configured_native_system_header_dir="${withval}"
3645 configured_native_system_header_dir=
3650 # Check whether --with-build-sysroot was given.
3651 if test "${with_build_sysroot+set}" = set; then :
3652 withval=$with_build_sysroot; if test x"$withval" != x ; then
3653 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3656 SYSROOT_CFLAGS_FOR_TARGET=
3661 if test "x$prefix" = xNONE; then
3662 test_prefix=/usr/local
3666 if test "x$exec_prefix" = xNONE; then
3667 test_exec_prefix=$test_prefix
3669 test_exec_prefix=$exec_prefix
3673 # Check whether --with-sysroot was given.
3674 if test "${with_sysroot+set}" = set; then :
3675 withval=$with_sysroot;
3676 case ${with_sysroot} in
3678 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3680 case ${with_sysroot} in
3681 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3682 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3685 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3686 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3688 case ${TARGET_SYSTEM_ROOT} in
3689 "${test_prefix}"|"${test_prefix}/"*|\
3690 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3691 '${prefix}'|'${prefix}/'*|\
3692 '${exec_prefix}'|'${exec_prefix}/'*)
3693 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3694 TARGET_SYSTEM_ROOT_DEFINE="$t"
3701 TARGET_SYSTEM_ROOT_DEFINE=
3702 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3710 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3711 # passed in by the toplevel make and thus we'd get different behavior
3712 # depending on where we built the sources.
3713 gcc_gxx_include_dir
=
3714 # Specify the g++ header file directory
3716 # Check whether --with-gxx-include-dir was given.
3717 if test "${with_gxx_include_dir+set}" = set; then :
3718 withval
=$with_gxx_include_dir; case "${withval}" in
3719 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3721 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3726 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3727 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3728 # relative to the sysroot.
3729 gcc_gxx_include_dir_add_sysroot
=0
3731 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3732 if test x
${gcc_gxx_include_dir} = x
; then
3733 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3734 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3736 libstdcxx_incdir
='include/c++/$(version)'
3737 if test x
$host != x
$target; then
3738 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3740 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3742 elif test "${with_sysroot+set}" = set; then
3743 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3744 if test "${gcc_gxx_without_sysroot}"; then
3745 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3746 gcc_gxx_include_dir_add_sysroot
=1
3750 # Configuration for an alternate set of C++ headers.
3751 gcc_gxx_libcxx_include_dir
=
3752 # Specify the alternate g++ header file directory
3754 # Check whether --with-gxx-libcxx-include-dir was given.
3755 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3756 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3757 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3759 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3764 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3765 # check to see if the latter starts with the former and, upon success, compute
3766 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3767 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3769 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3771 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3774 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3777 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3778 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3779 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3780 gcc_gxx_libcxx_include_dir
='${libsubdir}/libc++_include/c++/v1'
3782 libcxx_incdir
='libc++_include/c++/$(version)/v1'
3783 if test x
$host != x
$target; then
3784 libcxx_incdir
="$target_alias/$libcxx_incdir"
3786 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3788 elif test "${with_sysroot+set}" = set; then
3789 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3790 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3791 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3792 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3797 # Check whether --with-cpp_install_dir was given.
3798 if test "${with_cpp_install_dir+set}" = set; then :
3799 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3800 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3801 elif test x
$withval != xno
; then
3802 cpp_install_dir
=$withval
3807 # We would like to our source tree to be readonly. However when releases or
3808 # pre-releases are generated, the flex/bison generated files as well as the
3809 # various formats of manuals need to be included along with the rest of the
3810 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3814 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3815 # Check whether --enable-generated-files-in-srcdir was given.
3816 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3817 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3819 generated_files_in_srcdir
=no
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3824 $as_echo "$generated_files_in_srcdir" >&6; }
3826 if test "$generated_files_in_srcdir" = "yes"; then
3833 # -------------------
3834 # Find default linker
3835 # -------------------
3839 # Check whether --with-gnu-ld was given.
3840 if test "${with_gnu_ld+set}" = set; then :
3841 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3849 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3850 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3858 # With pre-defined ld
3860 # Check whether --with-ld was given.
3861 if test "${with_ld+set}" = set; then :
3862 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3865 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3866 if test ! -x "$DEFAULT_LINKER"; then
3867 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3868 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3870 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3874 cat >>confdefs.h
<<_ACEOF
3875 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3881 $as_echo_n "checking whether a default linker was specified... " >&6; }
3882 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3883 if test x
"$gnu_ld_flag" = x
"no"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3885 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3888 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3895 # With demangler in GNU ld
3897 # Check whether --with-demangler-in-ld was given.
3898 if test "${with_demangler_in_ld+set}" = set; then :
3899 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3905 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3907 # Check whether --with-dsymutil was given.
3908 if test "${with_dsymutil+set}" = set; then :
3909 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3914 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3915 if test ! -x "$DEFAULT_DSYMUTIL"; then
3916 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3918 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3923 cat >>confdefs.h
<<_ACEOF
3924 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3930 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3931 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3933 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3939 # ----------------------
3940 # Find default assembler
3941 # ----------------------
3945 # Check whether --with-gnu-as was given.
3946 if test "${with_gnu_as+set}" = set; then :
3947 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3954 # Check whether --with-as was given.
3955 if test "${with_as+set}" = set; then :
3956 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3959 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3960 if test ! -x "$DEFAULT_ASSEMBLER"; then
3961 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3962 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3966 cat >>confdefs.h
<<_ACEOF
3967 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3973 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3974 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3975 if test x
"$gas_flag" = x
"no"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3977 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3980 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3991 # If a non-executable a.out is present (e.g. created by GNU as above even if
3992 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3993 # file, even when creating an executable, so an execution test fails.
3994 # Remove possible default executable files to avoid this.
3996 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3997 # Autoconf includes it.
3998 rm -f a.out a.exe b.out
4000 # Find the native compiler
4002 ac_cpp
='$CPP $CPPFLAGS'
4003 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4008 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_CC+:} false
; then :
4012 $as_echo_n "(cached) " >&6
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC
="$CC" # Let the user override the test.
4017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir
=.
4022 for ac_exec_ext
in '' $ac_executable_extensions; do
4023 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 if test -n "$CC"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037 $as_echo "$CC" >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4045 if test -z "$ac_cv_prog_CC"; then
4047 # Extract the first word of "gcc", so it can be a program name with args.
4048 set dummy gcc
; ac_word
=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4052 $as_echo_n "(cached) " >&6
4054 if test -n "$ac_ct_CC"; then
4055 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4061 test -z "$as_dir" && as_dir
=.
4062 for ac_exec_ext
in '' $ac_executable_extensions; do
4063 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4064 ac_cv_prog_ac_ct_CC
="gcc"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4075 if test -n "$ac_ct_CC"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4077 $as_echo "$ac_ct_CC" >&6; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4083 if test "x$ac_ct_CC" = x
; then
4086 case $cross_compiling:$ac_tool_warned in
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090 ac_tool_warned
=yes ;;
4098 if test -z "$CC"; then
4099 if test -n "$ac_tool_prefix"; then
4100 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4101 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if ${ac_cv_prog_CC+:} false
; then :
4105 $as_echo_n "(cached) " >&6
4107 if test -n "$CC"; then
4108 ac_cv_prog_CC
="$CC" # Let the user override the test.
4110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4114 test -z "$as_dir" && as_dir
=.
4115 for ac_exec_ext
in '' $ac_executable_extensions; do
4116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 if test -n "$CC"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4130 $as_echo "$CC" >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4139 if test -z "$CC"; then
4140 # Extract the first word of "cc", so it can be a program name with args.
4141 set dummy cc
; ac_word
=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_CC+:} false
; then :
4145 $as_echo_n "(cached) " >&6
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC
="$CC" # Let the user override the test.
4151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir
=.
4156 for ac_exec_ext
in '' $ac_executable_extensions; do
4157 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4158 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4159 ac_prog_rejected
=yes
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 if test $ac_prog_rejected = yes; then
4171 # We found a bogon in the path, so make sure we never use it.
4172 set dummy
$ac_cv_prog_CC
4174 if test $# != 0; then
4175 # We chose a different compiler from the bogus one.
4176 # However, it has the same basename, so the bogon will be chosen
4177 # first if we set CC to just the basename; use the full file name.
4179 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4185 if test -n "$CC"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187 $as_echo "$CC" >&6; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4195 if test -z "$CC"; then
4196 if test -n "$ac_tool_prefix"; then
4197 for ac_prog
in cl.exe
4199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4200 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_prog_CC+:} false
; then :
4204 $as_echo_n "(cached) " >&6
4206 if test -n "$CC"; then
4207 ac_cv_prog_CC
="$CC" # Let the user override the test.
4209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir
=.
4214 for ac_exec_ext
in '' $ac_executable_extensions; do
4215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 if test -n "$CC"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4229 $as_echo "$CC" >&6; }
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4236 test -n "$CC" && break
4239 if test -z "$CC"; then
4241 for ac_prog
in cl.exe
4243 # Extract the first word of "$ac_prog", so it can be a program name with args.
4244 set dummy
$ac_prog; ac_word
=$2
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4248 $as_echo_n "(cached) " >&6
4250 if test -n "$ac_ct_CC"; then
4251 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir
=.
4258 for ac_exec_ext
in '' $ac_executable_extensions; do
4259 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_ac_ct_CC
="$ac_prog"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4271 if test -n "$ac_ct_CC"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4273 $as_echo "$ac_ct_CC" >&6; }
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4280 test -n "$ac_ct_CC" && break
4283 if test "x$ac_ct_CC" = x
; then
4286 case $cross_compiling:$ac_tool_warned in
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290 ac_tool_warned
=yes ;;
4299 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error $?
"no acceptable C compiler found in \$PATH
4302 See \`config.log' for more details" "$LINENO" 5; }
4304 # Provide some information about the compiler.
4305 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4308 for ac_option
in --version -v -V -qversion; do
4309 { { ac_try
="$ac_compiler $ac_option >&5"
4311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4318 if test -s conftest.err; then
4320 ... rest of stderr output deleted ...
4321 10q' conftest.err >conftest.er1
4322 cat conftest.er1 >&5
4324 rm -f conftest.er1 conftest.err
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4340 ac_clean_files_save=$ac_clean_files
4341 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4342 # Try to create an executable without -o first, disregard a.out.
4343 # It will help us diagnose broken compilers, and finding out an intuition
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4346 $as_echo_n "checking whether the C compiler works... " >&6; }
4347 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4349 # The possible output files:
4350 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4353 for ac_file in $ac_files
4356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4357 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4362 if { { ac_try="$ac_link_default"
4364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4365 *) ac_try_echo
=$ac_try;;
4367 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_link_default") 2>&5
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; then :
4373 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4374 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4375 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4376 # so that the user can short-circuit this test for compilers unknown to
4378 for ac_file
in $ac_files ''
4380 test -f "$ac_file" ||
continue
4382 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4385 # We found the default executable, but exeext='' is most
4389 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4391 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4393 # We set ac_cv_exeext here because the later test for it is not
4394 # safe: cross compilers may not add the suffix if given an `-o'
4395 # argument, so we may need to know it at that point already.
4396 # Even if this section looks crufty: it has the advantage of
4403 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4408 if test -z "$ac_file"; then :
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 $as_echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.
$ac_ext >&5
4414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error
77 "C compiler cannot create executables
4417 See \`config.log' for more details" "$LINENO" 5; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4420 $as_echo "yes" >&6; }
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4423 $as_echo_n "checking for C compiler default output file name... " >&6; }
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4425 $as_echo "$ac_file" >&6; }
4426 ac_exeext
=$ac_cv_exeext
4428 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4429 ac_clean_files
=$ac_clean_files_save
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4431 $as_echo_n "checking for suffix of executables... " >&6; }
4432 if { { ac_try
="$ac_link"
4434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 $as_echo "$ac_try_echo"; } >&5
4439 (eval "$ac_link") 2>&5
4441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442 test $ac_status = 0; }; then :
4443 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4444 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4445 # work properly (i.e., refer to `conftest.exe'), while it won't with
4447 for ac_file
in conftest.exe conftest conftest.
*; do
4448 test -f "$ac_file" ||
continue
4450 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4451 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4460 See \`config.log' for more details" "$LINENO" 5; }
4462 rm -f conftest conftest
$ac_cv_exeext
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4464 $as_echo "$ac_cv_exeext" >&6; }
4466 rm -f conftest.
$ac_ext
4467 EXEEXT
=$ac_cv_exeext
4469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4475 FILE *f = fopen ("conftest.out", "w");
4476 return ferror (f) || fclose (f) != 0;
4482 ac_clean_files
="$ac_clean_files conftest.out"
4483 # Check that the compiler produces executables we can run. If not, either
4484 # the compiler is broken, or we cross compile.
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4486 $as_echo_n "checking whether we are cross compiling... " >&6; }
4487 if test "$cross_compiling" != yes; then
4488 { { ac_try
="$ac_link"
4490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 $as_echo "$ac_try_echo"; } >&5
4495 (eval "$ac_link") 2>&5
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; }
4499 if { ac_try='./conftest$ac_cv_exeext'
4500 { { case "(($ac_try" in
4501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4502 *) ac_try_echo
=$ac_try;;
4504 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_try") 2>&5
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }; }; then
4512 if test "$cross_compiling" = maybe
; then
4515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4517 as_fn_error $?
"cannot run C compiled programs.
4518 If you meant to cross compile, use \`--host'.
4519 See \`config.log' for more details" "$LINENO" 5; }
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4524 $as_echo "$cross_compiling" >&6; }
4526 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4527 ac_clean_files
=$ac_clean_files_save
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4529 $as_echo_n "checking for suffix of object files... " >&6; }
4530 if ${ac_cv_objext+:} false
; then :
4531 $as_echo_n "(cached) " >&6
4533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4544 rm -f conftest.o conftest.obj
4545 if { { ac_try
="$ac_compile"
4547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551 $as_echo "$ac_try_echo"; } >&5
4552 (eval "$ac_compile") 2>&5
4554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555 test $ac_status = 0; }; then :
4556 for ac_file in conftest.o conftest.obj conftest.*; do
4557 test -f "$ac_file" || continue;
4559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4560 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4565 $as_echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4570 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4571 See \
`config.log' for more details" "$LINENO" 5; }
4573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4576 $as_echo "$ac_cv_objext" >&6; }
4577 OBJEXT=$ac_cv_objext
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4580 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4581 if ${ac_cv_c_compiler_gnu+:} false; then :
4582 $as_echo_n "(cached) " >&6
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4598 if ac_fn_c_try_compile "$LINENO"; then :
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4608 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4609 if test $ac_compiler_gnu = yes; then
4614 ac_test_CFLAGS=${CFLAGS+set}
4615 ac_save_CFLAGS=$CFLAGS
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4617 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4618 if ${ac_cv_prog_cc_g+:} false; then :
4619 $as_echo_n "(cached) " >&6
4621 ac_save_c_werror_flag=$ac_c_werror_flag
4622 ac_c_werror_flag=yes
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4636 if ac_fn_c_try_compile "$LINENO"; then :
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4651 if ac_fn_c_try_compile "$LINENO"; then :
4654 ac_c_werror_flag=$ac_save_c_werror_flag
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4667 if ac_fn_c_try_compile "$LINENO"; then :
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_c_werror_flag=$ac_save_c_werror_flag
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4678 $as_echo "$ac_cv_prog_cc_g" >&6; }
4679 if test "$ac_test_CFLAGS" = set; then
4680 CFLAGS=$ac_save_CFLAGS
4681 elif test $ac_cv_prog_cc_g = yes; then
4682 if test "$GCC" = yes; then
4688 if test "$GCC" = yes; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4695 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4696 if ${ac_cv_prog_cc_c89+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 ac_cv_prog_cc_c89=no
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4706 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4707 struct buf { int x; };
4708 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4709 static char *e (p, i)
4715 static char *f (char * (*g) (char **, int), char **p, ...)
4720 s = g (p, va_arg (v,int));
4725 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4726 function prototypes and stuff, but not '\xHH' hex character constants.
4727 These don't provoke an error unfortunately, instead are silently treated
4728 as 'x'. The following induces an error, until -std is added to get
4729 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4730 array size at least. It's necessary to write '\x00'==0 to get something
4731 that's true only with -std. */
4732 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4734 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4735 inside strings and character constants. */
4737 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4739 int test (int i, double x);
4740 struct s1 {int (*f) (int a);};
4741 struct s2 {int (*f) (double a);};
4742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4748 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4753 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4754 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4756 CC="$ac_save_CC $ac_arg"
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 ac_cv_prog_cc_c89=$ac_arg
4760 rm -f core conftest.err conftest.$ac_objext
4761 test "x$ac_cv_prog_cc_c89" != "xno" && break
4763 rm -f conftest.$ac_ext
4768 case "x$ac_cv_prog_cc_c89" in
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4771 $as_echo "none needed" >&6; } ;;
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4774 $as_echo "unsupported" >&6; } ;;
4776 CC="$CC $ac_cv_prog_cc_c89"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4778 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4780 if test "x$ac_cv_prog_cc_c89" != xno; then :
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 ac_cpp='$CXXCPP $CPPFLAGS'
4792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4795 if test -z "$CXX"; then
4796 if test -n "$CCC"; then
4799 if test -n "$ac_tool_prefix"; then
4800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_CXX+:} false; then :
4807 $as_echo_n "(cached) " >&6
4809 if test -n "$CXX"; then
4810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 if test -n "$CXX"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4832 $as_echo "$CXX" >&6; }
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4839 test -n "$CXX" && break
4842 if test -z "$CXX"; then
4844 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4851 $as_echo_n "(cached) " >&6
4853 if test -n "$ac_ct_CXX"; then
4854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_ac_ct_CXX="$ac_prog"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4874 if test -n "$ac_ct_CXX"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4876 $as_echo "$ac_ct_CXX" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4883 test -n "$ac_ct_CXX" && break
4886 if test "x$ac_ct_CXX" = x; then
4889 case $cross_compiling:$ac_tool_warned in
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4893 ac_tool_warned=yes ;;
4901 # Provide some information about the compiler.
4902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4905 for ac_option in --version -v -V -qversion; do
4906 { { ac_try="$ac_compiler $ac_option >&5"
4908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4909 *) ac_try_echo
=$ac_try;;
4911 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4912 $as_echo "$ac_try_echo"; } >&5
4913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4915 if test -s conftest.err
; then
4917 ... rest of stderr output deleted ...
4918 10q' conftest.err
>conftest.er1
4919 cat conftest.er1
>&5
4921 rm -f conftest.er1 conftest.err
4922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4923 test $ac_status = 0; }
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4927 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4928 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4929 $as_echo_n "(cached) " >&6
4931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4945 if ac_fn_cxx_try_compile
"$LINENO"; then :
4950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4951 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4955 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4956 if test $ac_compiler_gnu = yes; then
4961 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4962 ac_save_CXXFLAGS
=$CXXFLAGS
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4964 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4965 if ${ac_cv_prog_cxx_g+:} false
; then :
4966 $as_echo_n "(cached) " >&6
4968 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4969 ac_cxx_werror_flag
=yes
4972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4983 if ac_fn_cxx_try_compile
"$LINENO"; then :
4984 ac_cv_prog_cxx_g
=yes
4987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4998 if ac_fn_cxx_try_compile
"$LINENO"; then :
5001 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5014 if ac_fn_cxx_try_compile
"$LINENO"; then :
5015 ac_cv_prog_cxx_g
=yes
5017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5022 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5025 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5026 if test "$ac_test_CXXFLAGS" = set; then
5027 CXXFLAGS
=$ac_save_CXXFLAGS
5028 elif test $ac_cv_prog_cxx_g = yes; then
5029 if test "$GXX" = yes; then
5035 if test "$GXX" = yes; then
5042 ac_cpp
='$CPP $CPPFLAGS'
5043 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5050 if test -n "$ac_tool_prefix"; then
5051 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5052 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if ${ac_cv_prog_GNATBIND+:} false
; then :
5056 $as_echo_n "(cached) " >&6
5058 if test -n "$GNATBIND"; then
5059 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir
=.
5066 for ac_exec_ext
in '' $ac_executable_extensions; do
5067 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 GNATBIND
=$ac_cv_prog_GNATBIND
5079 if test -n "$GNATBIND"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5081 $as_echo "$GNATBIND" >&6; }
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5089 if test -z "$ac_cv_prog_GNATBIND"; then
5090 ac_ct_GNATBIND
=$GNATBIND
5091 # Extract the first word of "gnatbind", so it can be a program name with args.
5092 set dummy gnatbind
; ac_word
=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5096 $as_echo_n "(cached) " >&6
5098 if test -n "$ac_ct_GNATBIND"; then
5099 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir
=.
5106 for ac_exec_ext
in '' $ac_executable_extensions; do
5107 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5119 if test -n "$ac_ct_GNATBIND"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5121 $as_echo "$ac_ct_GNATBIND" >&6; }
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5127 if test "x$ac_ct_GNATBIND" = x
; then
5130 case $cross_compiling:$ac_tool_warned in
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5134 ac_tool_warned
=yes ;;
5136 GNATBIND
=$ac_ct_GNATBIND
5139 GNATBIND
="$ac_cv_prog_GNATBIND"
5142 if test -n "$ac_tool_prefix"; then
5143 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5144 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5148 $as_echo_n "(cached) " >&6
5150 if test -n "$GNATMAKE"; then
5151 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir
=.
5158 for ac_exec_ext
in '' $ac_executable_extensions; do
5159 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 GNATMAKE
=$ac_cv_prog_GNATMAKE
5171 if test -n "$GNATMAKE"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5173 $as_echo "$GNATMAKE" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5181 if test -z "$ac_cv_prog_GNATMAKE"; then
5182 ac_ct_GNATMAKE
=$GNATMAKE
5183 # Extract the first word of "gnatmake", so it can be a program name with args.
5184 set dummy gnatmake
; ac_word
=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5188 $as_echo_n "(cached) " >&6
5190 if test -n "$ac_ct_GNATMAKE"; then
5191 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir
=.
5198 for ac_exec_ext
in '' $ac_executable_extensions; do
5199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5211 if test -n "$ac_ct_GNATMAKE"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5213 $as_echo "$ac_ct_GNATMAKE" >&6; }
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5219 if test "x$ac_ct_GNATMAKE" = x
; then
5222 case $cross_compiling:$ac_tool_warned in
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned
=yes ;;
5228 GNATMAKE
=$ac_ct_GNATMAKE
5231 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5235 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5236 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5237 $as_echo_n "(cached) " >&6
5239 cat >conftest.adb
<<EOF
5240 pragma Warnings (Off);
5242 pragma Warnings (On);
5243 use type System.CRTL.int64;
5244 procedure conftest is begin null; end conftest;
5246 acx_cv_cc_gcc_supports_ada
=no
5247 # There is a bug in old released versions of GCC which causes the
5248 # driver to exit successfully when the appropriate language module
5249 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5250 # Therefore we must check for the error message as well as an
5251 # unsuccessful exit.
5252 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5253 # given a .adb file, but produce no object file. So we must check
5254 # if an object file was really produced to guard against this.
5255 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5256 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5257 acx_cv_cc_gcc_supports_ada
=yes
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5262 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5264 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5272 if test -n "$ac_tool_prefix"; then
5273 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5274 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_GDC+:} false
; then :
5278 $as_echo_n "(cached) " >&6
5280 if test -n "$GDC"; then
5281 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir
=.
5288 for ac_exec_ext
in '' $ac_executable_extensions; do
5289 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 if test -n "$GDC"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5303 $as_echo "$GDC" >&6; }
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5311 if test -z "$ac_cv_prog_GDC"; then
5313 # Extract the first word of "gdc", so it can be a program name with args.
5314 set dummy gdc
; ac_word
=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5318 $as_echo_n "(cached) " >&6
5320 if test -n "$ac_ct_GDC"; then
5321 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir
=.
5328 for ac_exec_ext
in '' $ac_executable_extensions; do
5329 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_ac_ct_GDC
="gdc"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5341 if test -n "$ac_ct_GDC"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5343 $as_echo "$ac_ct_GDC" >&6; }
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5349 if test "x$ac_ct_GDC" = x
; then
5352 case $cross_compiling:$ac_tool_warned in
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356 ac_tool_warned
=yes ;;
5361 GDC
="$ac_cv_prog_GDC"
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5365 $as_echo_n "checking whether the D compiler works... " >&6; }
5366 if ${acx_cv_d_compiler_works+:} false
; then :
5367 $as_echo_n "(cached) " >&6
5369 cat >conftest.d
<<EOF
5370 module conftest; int main() { return 0; }
5372 acx_cv_d_compiler_works
=no
5373 if test "x$GDC" != xno
; then
5374 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5375 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5376 acx_cv_d_compiler_works
=yes
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5382 $as_echo "$acx_cv_d_compiler_works" >&6; }
5383 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5390 # Do configure tests with the C++ compiler, since that's what we build with.
5392 ac_cpp
='$CXXCPP $CPPFLAGS'
5393 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5398 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5399 # optimizations to be activated explicitly by the toplevel.
5401 */prev-gcc
/xgcc
*) ;;
5402 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5403 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5409 # Determine PICFLAG for target gnatlib.
5415 # PIC is the default on some targets or must not be used.
5417 # For darwin, common symbols are not allowed in MH_DYLIB files
5419 # If we are using a compiler supporting mdynamic-no-pic
5420 # and the option has been tested as safe to add, then cancel
5421 # it here, since the code generated is incompatible with shared
5423 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5424 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5428 # PIC is the default.
5431 # PIC is the default for 64-bit PA HP-UX.
5433 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5435 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5437 i
[34567]86-*-interix[3-9]*)
5438 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5439 # Instead, we relocate shared libraries at runtime.
5441 i
[34567]86-*-nto-qnx*)
5442 # QNX uses GNU C++, but need to define -shared option too, otherwise
5444 PICFLAG_FOR_TARGET
='-fPIC -shared'
5446 i
[34567]86-pc-msdosdjgpp*)
5447 # DJGPP does not support shared libraries at all.
5450 # On IA64 HP-UX, PIC is the default but the pic flag
5451 # sets the default TLS model and affects inlining.
5452 PICFLAG_FOR_TARGET
=-fPIC
5455 PICFLAG_FOR_TARGET
=-fpic
5458 # PIC is the default.
5460 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5461 # All AIX code is PIC.
5464 # Some targets support both -fPIC and -fpic, but prefer the latter.
5466 i
[34567]86-*-* | x86_64-
*-*)
5467 PICFLAG_FOR_TARGET
=-fpic
5469 # FIXME: Override -fPIC default in libgcc only?
5470 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5471 PICFLAG_FOR_TARGET
=-fpic
5473 # FIXME: Simplify to sh*-*-netbsd*?
5474 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5475 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5476 PICFLAG_FOR_TARGET
=-fpic
5478 # Default to -fPIC unless specified otherwise.
5480 PICFLAG_FOR_TARGET
=-fPIC
5484 # If the user explicitly uses -fpic/-fPIC, keep that.
5485 case "${CFLAGS_FOR_TARGET}" in
5487 PICFLAG_FOR_TARGET
=-fpic
5490 PICFLAG_FOR_TARGET
=-fPIC
5496 # -------------------------
5497 # Check C compiler features
5498 # -------------------------
5502 ac_cpp
='$CXXCPP $CPPFLAGS'
5503 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5507 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5508 if test -z "$CXXCPP"; then
5509 if ${ac_cv_prog_CXXCPP+:} false
; then :
5510 $as_echo_n "(cached) " >&6
5512 # Double quotes because CXXCPP needs to be expanded
5513 for CXXCPP
in "$CXX -E" "/lib/cpp"
5516 for ac_cxx_preproc_warn_flag
in '' yes
5518 # Use a header file that comes with gcc, so configuring glibc
5519 # with a fresh cross-compiler works.
5520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5521 # <limits.h> exists even on freestanding compilers.
5522 # On the NeXT, cc -E runs the code through the compiler's parser,
5523 # not just through cpp. "Syntax error" is here to catch this case.
5524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5527 # include <limits.h>
5529 # include <assert.h>
5533 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5536 # Broken: fails on valid input.
5539 rm -f conftest.err conftest.i conftest.
$ac_ext
5541 # OK, works on sane cases. Now check whether nonexistent headers
5542 # can be detected and how.
5543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 #include <ac_nonexistent.h>
5547 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5548 # Broken: success on invalid input.
5551 # Passes both tests.
5555 rm -f conftest.err conftest.i conftest.
$ac_ext
5558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5559 rm -f conftest.i conftest.err conftest.
$ac_ext
5560 if $ac_preproc_ok; then :
5565 ac_cv_prog_CXXCPP
=$CXXCPP
5568 CXXCPP
=$ac_cv_prog_CXXCPP
5570 ac_cv_prog_CXXCPP
=$CXXCPP
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5573 $as_echo "$CXXCPP" >&6; }
5575 for ac_cxx_preproc_warn_flag
in '' yes
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error" is here to catch this case.
5583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5586 # include <limits.h>
5588 # include <assert.h>
5592 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5595 # Broken: fails on valid input.
5598 rm -f conftest.err conftest.i conftest.
$ac_ext
5600 # OK, works on sane cases. Now check whether nonexistent headers
5601 # can be detected and how.
5602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 #include <ac_nonexistent.h>
5606 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5607 # Broken: success on invalid input.
5610 # Passes both tests.
5614 rm -f conftest.err conftest.i conftest.
$ac_ext
5617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5618 rm -f conftest.i conftest.err conftest.
$ac_ext
5619 if $ac_preproc_ok; then :
5622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5624 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5625 See \`config.log' for more details" "$LINENO" 5; }
5629 ac_cpp
='$CXXCPP $CPPFLAGS'
5630 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5636 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5637 if ${ac_cv_path_GREP+:} false
; then :
5638 $as_echo_n "(cached) " >&6
5640 if test -z "$GREP"; then
5641 ac_path_GREP_found
=false
5642 # Loop through the user's path and test for each of PROGNAME-LIST
5643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5644 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5647 test -z "$as_dir" && as_dir
=.
5648 for ac_prog
in grep ggrep
; do
5649 for ac_exec_ext
in '' $ac_executable_extensions; do
5650 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5651 as_fn_executable_p
"$ac_path_GREP" ||
continue
5652 # Check for GNU ac_path_GREP and select it if it is found.
5653 # Check for GNU $ac_path_GREP
5654 case `"$ac_path_GREP" --version 2>&1` in
5656 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5659 $as_echo_n 0123456789 >"conftest.in"
5662 cat "conftest.in" "conftest.in" >"conftest.tmp"
5663 mv "conftest.tmp" "conftest.in"
5664 cp "conftest.in" "conftest.nl"
5665 $as_echo 'GREP' >> "conftest.nl"
5666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5667 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5668 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5670 # Best one so far, save it but keep looking for a better one
5671 ac_cv_path_GREP
="$ac_path_GREP"
5672 ac_path_GREP_max
=$ac_count
5674 # 10*(2^10) chars as input seems more than enough
5675 test $ac_count -gt 10 && break
5677 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5680 $ac_path_GREP_found && break 3
5685 if test -z "$ac_cv_path_GREP"; then
5686 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5689 ac_cv_path_GREP
=$GREP
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5694 $as_echo "$ac_cv_path_GREP" >&6; }
5695 GREP
="$ac_cv_path_GREP"
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5699 $as_echo_n "checking for egrep... " >&6; }
5700 if ${ac_cv_path_EGREP+:} false
; then :
5701 $as_echo_n "(cached) " >&6
5703 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5704 then ac_cv_path_EGREP
="$GREP -E"
5706 if test -z "$EGREP"; then
5707 ac_path_EGREP_found
=false
5708 # Loop through the user's path and test for each of PROGNAME-LIST
5709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5710 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5713 test -z "$as_dir" && as_dir
=.
5714 for ac_prog
in egrep; do
5715 for ac_exec_ext
in '' $ac_executable_extensions; do
5716 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5717 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5718 # Check for GNU ac_path_EGREP and select it if it is found.
5719 # Check for GNU $ac_path_EGREP
5720 case `"$ac_path_EGREP" --version 2>&1` in
5722 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5725 $as_echo_n 0123456789 >"conftest.in"
5728 cat "conftest.in" "conftest.in" >"conftest.tmp"
5729 mv "conftest.tmp" "conftest.in"
5730 cp "conftest.in" "conftest.nl"
5731 $as_echo 'EGREP' >> "conftest.nl"
5732 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5733 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5734 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5735 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5736 # Best one so far, save it but keep looking for a better one
5737 ac_cv_path_EGREP
="$ac_path_EGREP"
5738 ac_path_EGREP_max
=$ac_count
5740 # 10*(2^10) chars as input seems more than enough
5741 test $ac_count -gt 10 && break
5743 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5746 $ac_path_EGREP_found && break 3
5751 if test -z "$ac_cv_path_EGREP"; then
5752 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5755 ac_cv_path_EGREP
=$EGREP
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5761 $as_echo "$ac_cv_path_EGREP" >&6; }
5762 EGREP
="$ac_cv_path_EGREP"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5766 $as_echo_n "checking for ANSI C header files... " >&6; }
5767 if ${ac_cv_header_stdc+:} false
; then :
5768 $as_echo_n "(cached) " >&6
5770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5785 if ac_fn_cxx_try_compile
"$LINENO"; then :
5786 ac_cv_header_stdc
=yes
5788 ac_cv_header_stdc
=no
5790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5792 if test $ac_cv_header_stdc = yes; then
5793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5800 $EGREP "memchr" >/dev
/null
2>&1; then :
5803 ac_cv_header_stdc
=no
5809 if test $ac_cv_header_stdc = yes; then
5810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5817 $EGREP "free" >/dev
/null
2>&1; then :
5820 ac_cv_header_stdc
=no
5826 if test $ac_cv_header_stdc = yes; then
5827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5828 if test "$cross_compiling" = yes; then :
5831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5835 #if ((' ' & 0x0FF) == 0x020)
5836 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5837 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5839 # define ISLOWER(c) \
5840 (('a' <= (c) && (c) <= 'i') \
5841 || ('j' <= (c) && (c) <= 'r') \
5842 || ('s' <= (c) && (c) <= 'z'))
5843 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5846 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5851 for (i = 0; i < 256; i++)
5852 if (XOR (islower (i), ISLOWER (i))
5853 || toupper (i) != TOUPPER (i))
5858 if ac_fn_cxx_try_run
"$LINENO"; then :
5861 ac_cv_header_stdc
=no
5863 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5864 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5870 $as_echo "$ac_cv_header_stdc" >&6; }
5871 if test $ac_cv_header_stdc = yes; then
5873 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5877 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5878 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5879 inttypes.h stdint.h unistd.h
5881 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5882 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5884 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5885 cat >>confdefs.h
<<_ACEOF
5886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5896 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5903 if test "$MINIX" = yes; then
5905 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5908 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5911 $as_echo "#define _MINIX 1" >>confdefs.h
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5917 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5918 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5919 $as_echo_n "(cached) " >&6
5921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5924 # define __EXTENSIONS__ 1
5925 $ac_includes_default
5934 if ac_fn_cxx_try_compile
"$LINENO"; then :
5935 ac_cv_safe_to_define___extensions__
=yes
5937 ac_cv_safe_to_define___extensions__
=no
5939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5942 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5943 test $ac_cv_safe_to_define___extensions__ = yes &&
5944 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5946 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5948 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5950 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5952 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5957 ac_cpp
='$CPP $CPPFLAGS'
5958 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5962 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5963 # On Suns, sometimes $CPP names a directory.
5964 if test -n "$CPP" && test -d "$CPP"; then
5967 if test -z "$CPP"; then
5968 if ${ac_cv_prog_CPP+:} false
; then :
5969 $as_echo_n "(cached) " >&6
5971 # Double quotes because CPP needs to be expanded
5972 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5975 for ac_c_preproc_warn_flag
in '' yes
5977 # Use a header file that comes with gcc, so configuring glibc
5978 # with a fresh cross-compiler works.
5979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5980 # <limits.h> exists even on freestanding compilers.
5981 # On the NeXT, cc -E runs the code through the compiler's parser,
5982 # not just through cpp. "Syntax error" is here to catch this case.
5983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5986 # include <limits.h>
5988 # include <assert.h>
5992 if ac_fn_c_try_cpp
"$LINENO"; then :
5995 # Broken: fails on valid input.
5998 rm -f conftest.err conftest.i conftest.
$ac_ext
6000 # OK, works on sane cases. Now check whether nonexistent headers
6001 # can be detected and how.
6002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 #include <ac_nonexistent.h>
6006 if ac_fn_c_try_cpp
"$LINENO"; then :
6007 # Broken: success on invalid input.
6010 # Passes both tests.
6014 rm -f conftest.err conftest.i conftest.
$ac_ext
6017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6018 rm -f conftest.i conftest.err conftest.
$ac_ext
6019 if $ac_preproc_ok; then :
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6032 $as_echo "$CPP" >&6; }
6034 for ac_c_preproc_warn_flag
in '' yes
6036 # Use a header file that comes with gcc, so configuring glibc
6037 # with a fresh cross-compiler works.
6038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6039 # <limits.h> exists even on freestanding compilers.
6040 # On the NeXT, cc -E runs the code through the compiler's parser,
6041 # not just through cpp. "Syntax error" is here to catch this case.
6042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6045 # include <limits.h>
6047 # include <assert.h>
6051 if ac_fn_c_try_cpp
"$LINENO"; then :
6054 # Broken: fails on valid input.
6057 rm -f conftest.err conftest.i conftest.
$ac_ext
6059 # OK, works on sane cases. Now check whether nonexistent headers
6060 # can be detected and how.
6061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 #include <ac_nonexistent.h>
6065 if ac_fn_c_try_cpp
"$LINENO"; then :
6066 # Broken: success on invalid input.
6069 # Passes both tests.
6073 rm -f conftest.err conftest.i conftest.
$ac_ext
6076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6077 rm -f conftest.i conftest.err conftest.
$ac_ext
6078 if $ac_preproc_ok; then :
6081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6083 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6084 See \`config.log' for more details" "$LINENO" 5; }
6088 ac_cpp
='$CXXCPP $CPPFLAGS'
6089 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6094 $as_echo_n "checking for inline... " >&6; }
6095 if ${ac_cv_c_inline+:} false
; then :
6096 $as_echo_n "(cached) " >&6
6099 for ac_kw
in inline __inline__ __inline
; do
6100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6104 static $ac_kw foo_t static_foo () {return 0; }
6105 $ac_kw foo_t foo () {return 0; }
6109 if ac_fn_cxx_try_compile
"$LINENO"; then :
6110 ac_cv_c_inline
=$ac_kw
6112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6113 test "$ac_cv_c_inline" != no
&& break
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6118 $as_echo "$ac_cv_c_inline" >&6; }
6120 case $ac_cv_c_inline in
6123 case $ac_cv_c_inline in
6125 *) ac_val
=$ac_cv_c_inline;;
6127 cat >>confdefs.h
<<_ACEOF
6129 #define inline $ac_val
6136 # Check whether --enable-largefile was given.
6137 if test "${enable_largefile+set}" = set; then :
6138 enableval
=$enable_largefile;
6141 if test "$enable_largefile" != no
; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6144 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6145 if ${ac_cv_sys_largefile_CC+:} false
; then :
6146 $as_echo_n "(cached) " >&6
6148 ac_cv_sys_largefile_CC
=no
6149 if test "$GCC" != yes; then
6152 # IRIX 6.2 and later do not support large files by default,
6153 # so use the C compiler's -n32 option if that helps.
6154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 #include <sys/types.h>
6157 /* Check that off_t can represent 2**63 - 1 correctly.
6158 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6159 since some C++ compilers masquerading as C compilers
6160 incorrectly reject 9223372036854775807. */
6161 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6163 && LARGE_OFF_T % 2147483647 == 1)
6173 if ac_fn_cxx_try_compile
"$LINENO"; then :
6176 rm -f core conftest.err conftest.
$ac_objext
6178 if ac_fn_cxx_try_compile
"$LINENO"; then :
6179 ac_cv_sys_largefile_CC
=' -n32'; break
6181 rm -f core conftest.err conftest.
$ac_objext
6185 rm -f conftest.
$ac_ext
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6189 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6190 if test "$ac_cv_sys_largefile_CC" != no
; then
6191 CC
=$CC$ac_cv_sys_largefile_CC
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6195 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6196 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6197 $as_echo_n "(cached) " >&6
6200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #include <sys/types.h>
6203 /* Check that off_t can represent 2**63 - 1 correctly.
6204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6205 since some C++ compilers masquerading as C compilers
6206 incorrectly reject 9223372036854775807. */
6207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6209 && LARGE_OFF_T % 2147483647 == 1)
6219 if ac_fn_cxx_try_compile
"$LINENO"; then :
6220 ac_cv_sys_file_offset_bits
=no
; break
6222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 #define _FILE_OFFSET_BITS 64
6226 #include <sys/types.h>
6227 /* Check that off_t can represent 2**63 - 1 correctly.
6228 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6229 since some C++ compilers masquerading as C compilers
6230 incorrectly reject 9223372036854775807. */
6231 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6233 && LARGE_OFF_T % 2147483647 == 1)
6243 if ac_fn_cxx_try_compile
"$LINENO"; then :
6244 ac_cv_sys_file_offset_bits
=64; break
6246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6247 ac_cv_sys_file_offset_bits
=unknown
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6252 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6253 case $ac_cv_sys_file_offset_bits in #(
6256 cat >>confdefs.h
<<_ACEOF
6257 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6262 if test $ac_cv_sys_file_offset_bits = unknown
; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6264 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6265 if ${ac_cv_sys_large_files+:} false
; then :
6266 $as_echo_n "(cached) " >&6
6269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 #include <sys/types.h>
6272 /* Check that off_t can represent 2**63 - 1 correctly.
6273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6274 since some C++ compilers masquerading as C compilers
6275 incorrectly reject 9223372036854775807. */
6276 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6278 && LARGE_OFF_T % 2147483647 == 1)
6288 if ac_fn_cxx_try_compile
"$LINENO"; then :
6289 ac_cv_sys_large_files
=no
; break
6291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 #define _LARGE_FILES 1
6295 #include <sys/types.h>
6296 /* Check that off_t can represent 2**63 - 1 correctly.
6297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6298 since some C++ compilers masquerading as C compilers
6299 incorrectly reject 9223372036854775807. */
6300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6302 && LARGE_OFF_T % 2147483647 == 1)
6312 if ac_fn_cxx_try_compile
"$LINENO"; then :
6313 ac_cv_sys_large_files
=1; break
6315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6316 ac_cv_sys_large_files
=unknown
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6321 $as_echo "$ac_cv_sys_large_files" >&6; }
6322 case $ac_cv_sys_large_files in #(
6325 cat >>confdefs.h
<<_ACEOF
6326 #define _LARGE_FILES $ac_cv_sys_large_files
6336 # The cast to long int works around a bug in the HP C Compiler
6337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6339 # This bug is HP SR number 8606223364.
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6341 $as_echo_n "checking size of ino_t... " >&6; }
6342 if ${ac_cv_sizeof_ino_t+:} false
; then :
6343 $as_echo_n "(cached) " >&6
6345 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6348 if test "$ac_cv_type_ino_t" = yes; then
6349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6351 as_fn_error
77 "cannot compute sizeof (ino_t)
6352 See \`config.log' for more details" "$LINENO" 5; }
6354 ac_cv_sizeof_ino_t
=0
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6360 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6364 cat >>confdefs.h
<<_ACEOF
6365 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6369 # The cast to long int works around a bug in the HP C Compiler
6370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6372 # This bug is HP SR number 8606223364.
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6374 $as_echo_n "checking size of dev_t... " >&6; }
6375 if ${ac_cv_sizeof_dev_t+:} false
; then :
6376 $as_echo_n "(cached) " >&6
6378 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6381 if test "$ac_cv_type_dev_t" = yes; then
6382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6384 as_fn_error
77 "cannot compute sizeof (dev_t)
6385 See \`config.log' for more details" "$LINENO" 5; }
6387 ac_cv_sizeof_dev_t
=0
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6393 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6397 cat >>confdefs.h
<<_ACEOF
6398 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6403 # Select the right stat being able to handle 64bit inodes, if needed.
6404 if test "$enable_largefile" != no
; then
6405 case "$host, $build" in
6406 *-*-aix*,*|
*,*-*-aix*)
6407 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6409 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6416 # sizeof(char) is 1 by definition.
6417 # The cast to long int works around a bug in the HP C Compiler
6418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6420 # This bug is HP SR number 8606223364.
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6422 $as_echo_n "checking size of void *... " >&6; }
6423 if ${ac_cv_sizeof_void_p+:} false
; then :
6424 $as_echo_n "(cached) " >&6
6426 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6429 if test "$ac_cv_type_void_p" = yes; then
6430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 as_fn_error
77 "cannot compute sizeof (void *)
6433 See \`config.log' for more details" "$LINENO" 5; }
6435 ac_cv_sizeof_void_p
=0
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6441 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6445 cat >>confdefs.h
<<_ACEOF
6446 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6450 # The cast to long int works around a bug in the HP C Compiler
6451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6453 # This bug is HP SR number 8606223364.
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6455 $as_echo_n "checking size of short... " >&6; }
6456 if ${ac_cv_sizeof_short+:} false
; then :
6457 $as_echo_n "(cached) " >&6
6459 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6462 if test "$ac_cv_type_short" = yes; then
6463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6465 as_fn_error
77 "cannot compute sizeof (short)
6466 See \`config.log' for more details" "$LINENO" 5; }
6468 ac_cv_sizeof_short
=0
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6474 $as_echo "$ac_cv_sizeof_short" >&6; }
6478 cat >>confdefs.h
<<_ACEOF
6479 #define SIZEOF_SHORT $ac_cv_sizeof_short
6483 # The cast to long int works around a bug in the HP C Compiler
6484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6486 # This bug is HP SR number 8606223364.
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6488 $as_echo_n "checking size of int... " >&6; }
6489 if ${ac_cv_sizeof_int+:} false
; then :
6490 $as_echo_n "(cached) " >&6
6492 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6495 if test "$ac_cv_type_int" = yes; then
6496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6498 as_fn_error
77 "cannot compute sizeof (int)
6499 See \`config.log' for more details" "$LINENO" 5; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6507 $as_echo "$ac_cv_sizeof_int" >&6; }
6511 cat >>confdefs.h
<<_ACEOF
6512 #define SIZEOF_INT $ac_cv_sizeof_int
6516 # The cast to long int works around a bug in the HP C Compiler
6517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6519 # This bug is HP SR number 8606223364.
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6521 $as_echo_n "checking size of long... " >&6; }
6522 if ${ac_cv_sizeof_long+:} false
; then :
6523 $as_echo_n "(cached) " >&6
6525 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6528 if test "$ac_cv_type_long" = yes; then
6529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6531 as_fn_error
77 "cannot compute sizeof (long)
6532 See \`config.log' for more details" "$LINENO" 5; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6540 $as_echo "$ac_cv_sizeof_long" >&6; }
6544 cat >>confdefs.h
<<_ACEOF
6545 #define SIZEOF_LONG $ac_cv_sizeof_long
6549 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6550 if test "x$ac_cv_type_long_long" = xyes
; then :
6552 cat >>confdefs.h
<<_ACEOF
6553 #define HAVE_LONG_LONG 1
6556 # The cast to long int works around a bug in the HP C Compiler
6557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6559 # This bug is HP SR number 8606223364.
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6561 $as_echo_n "checking size of long long... " >&6; }
6562 if ${ac_cv_sizeof_long_long+:} false
; then :
6563 $as_echo_n "(cached) " >&6
6565 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6568 if test "$ac_cv_type_long_long" = yes; then
6569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6571 as_fn_error
77 "cannot compute sizeof (long long)
6572 See \`config.log' for more details" "$LINENO" 5; }
6574 ac_cv_sizeof_long_long
=0
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6580 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6584 cat >>confdefs.h
<<_ACEOF
6585 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6591 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6592 case $ac_cv_c_int8_t in #(
6596 cat >>confdefs.h
<<_ACEOF
6597 #define int8_t $ac_cv_c_int8_t
6602 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6603 case $ac_cv_c_int16_t in #(
6607 cat >>confdefs.h
<<_ACEOF
6608 #define int16_t $ac_cv_c_int16_t
6613 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6614 case $ac_cv_c_int32_t in #(
6618 cat >>confdefs.h
<<_ACEOF
6619 #define int32_t $ac_cv_c_int32_t
6624 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6625 case $ac_cv_c_int64_t in #(
6629 cat >>confdefs.h
<<_ACEOF
6630 #define int64_t $ac_cv_c_int64_t
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6637 $as_echo_n "checking for unsigned long long int... " >&6; }
6638 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6639 $as_echo_n "(cached) " >&6
6641 ac_cv_type_unsigned_long_long_int
=yes
6642 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6646 /* For now, do not test the preprocessor; as of 2007 there are too many
6647 implementations with broken preprocessors. Perhaps this can
6648 be revisited in 2012. In the meantime, code should not expect
6649 #if to work with literals wider than 32 bits. */
6650 /* Test literals. */
6651 long long int ll = 9223372036854775807ll;
6652 long long int nll = -9223372036854775807LL;
6653 unsigned long long int ull = 18446744073709551615ULL;
6654 /* Test constant expressions. */
6655 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6657 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6663 /* Test availability of runtime routines for shift and division. */
6664 long long int llmax = 9223372036854775807ll;
6665 unsigned long long int ullmax = 18446744073709551615ull;
6666 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6667 | (llmax / ll) | (llmax % ll)
6668 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6669 | (ullmax / ull) | (ullmax % ull));
6675 if ac_fn_cxx_try_link
"$LINENO"; then :
6678 ac_cv_type_unsigned_long_long_int
=no
6680 rm -f core conftest.err conftest.
$ac_objext \
6681 conftest
$ac_exeext conftest.
$ac_ext
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6685 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6686 if test $ac_cv_type_unsigned_long_long_int = yes; then
6688 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6695 $as_echo_n "checking for long long int... " >&6; }
6696 if ${ac_cv_type_long_long_int+:} false
; then :
6697 $as_echo_n "(cached) " >&6
6699 ac_cv_type_long_long_int
=yes
6700 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6701 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6702 if test $ac_cv_type_long_long_int = yes; then
6703 if test "$cross_compiling" = yes; then :
6706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6711 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6712 # define LLONG_MAX (HALF - 1 + HALF)
6717 long long int n = 1;
6721 long long int m = n << i;
6724 if (LLONG_MAX / 2 < m)
6732 if ac_fn_cxx_try_run
"$LINENO"; then :
6735 ac_cv_type_long_long_int
=no
6737 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6738 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6745 $as_echo "$ac_cv_type_long_long_int" >&6; }
6746 if test $ac_cv_type_long_long_int = yes; then
6748 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6754 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6755 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6757 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6760 test $ac_cv_type_long_long_int = yes \
6761 && ac_type
='long long int' \
6762 || ac_type
='long int'
6764 cat >>confdefs.h
<<_ACEOF
6765 #define intmax_t $ac_type
6772 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6773 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6775 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6778 for ac_type
in 'int' 'long int' 'long long int'; do
6779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 $ac_includes_default
6785 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6787 return test_array [0];
6793 if ac_fn_cxx_try_compile
"$LINENO"; then :
6795 cat >>confdefs.h
<<_ACEOF
6796 #define intptr_t $ac_type
6801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6802 test -z "$ac_type" && break
6807 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6808 case $ac_cv_c_uint8_t in #(
6812 $as_echo "#define _UINT8_T 1" >>confdefs.h
6815 cat >>confdefs.h
<<_ACEOF
6816 #define uint8_t $ac_cv_c_uint8_t
6821 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6822 case $ac_cv_c_uint16_t in #(
6827 cat >>confdefs.h
<<_ACEOF
6828 #define uint16_t $ac_cv_c_uint16_t
6833 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6834 case $ac_cv_c_uint32_t in #(
6838 $as_echo "#define _UINT32_T 1" >>confdefs.h
6841 cat >>confdefs.h
<<_ACEOF
6842 #define uint32_t $ac_cv_c_uint32_t
6847 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6848 case $ac_cv_c_uint64_t in #(
6852 $as_echo "#define _UINT64_T 1" >>confdefs.h
6855 cat >>confdefs.h
<<_ACEOF
6856 #define uint64_t $ac_cv_c_uint64_t
6863 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6864 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6866 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6869 test $ac_cv_type_unsigned_long_long_int = yes \
6870 && ac_type
='unsigned long long int' \
6871 || ac_type
='unsigned long int'
6873 cat >>confdefs.h
<<_ACEOF
6874 #define uintmax_t $ac_type
6881 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6882 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6884 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6887 for ac_type
in 'unsigned int' 'unsigned long int' \
6888 'unsigned long long int'; do
6889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 $ac_includes_default
6895 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6897 return test_array [0];
6903 if ac_fn_cxx_try_compile
"$LINENO"; then :
6905 cat >>confdefs.h
<<_ACEOF
6906 #define uintptr_t $ac_type
6911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6912 test -z "$ac_type" && break
6929 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6930 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6933 # check what underlying integer type int64_t uses
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6935 $as_echo_n "checking for int64_t underlying type... " >&6; }
6936 if ${ac_cv_int64_t_type+:} false
; then :
6937 $as_echo_n "(cached) " >&6
6940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6943 #ifdef HAVE_STDINT_H
6946 template <typename T> struct X { };
6948 struct X<long> { typedef long t; };
6958 if ac_fn_cxx_try_compile
"$LINENO"; then :
6959 ac_cv_int64_t_type
=long
6961 ac_cv_int64_t_type
="long long"
6963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6966 $as_echo "$ac_cv_int64_t_type" >&6; }
6967 if test "$ac_cv_int64_t_type" = "long"; then
6969 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6975 #ifdef HAVE_STDINT_H
6978 template <typename T> struct X { };
6980 struct X<long long> { typedef long long t; };
6990 if ac_fn_cxx_try_compile
"$LINENO"; then :
6993 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6999 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7000 if ${ac_cv_std_swap_in_utility+:} false
; then :
7001 $as_echo_n "(cached) " >&6
7004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7012 int a, b; std::swap(a,b);
7017 if ac_fn_cxx_try_compile
"$LINENO"; then :
7018 ac_cv_std_swap_in_utility
=yes
7020 ac_cv_std_swap_in_utility
=no
7022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7025 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7026 if test $ac_cv_std_swap_in_utility = yes; then
7028 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7032 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7033 # If the host compiler is affected by the bug, and we build with optimization
7034 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7035 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7036 # Since there is no reliable feature check for the presence of this bug,
7037 # we simply use a GCC version number check. (This should never trigger for
7038 # stages 2 or 3 of a native bootstrap.)
7040 if test "$GCC" = yes; then
7041 saved_CXXFLAGS
="$CXXFLAGS"
7043 # The following test compilation will succeed if and only if $CXX accepts
7044 # -fno-strict-aliasing *and* is older than GCC 4.3.
7045 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7047 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7051 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7052 #error compiler not affected by placement new aliasing bug
7056 if ac_fn_cxx_try_compile
"$LINENO"; then :
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7058 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7065 CXXFLAGS
="$saved_CXXFLAGS"
7071 # ---------------------
7072 # Warnings and checking
7073 # ---------------------
7075 # Check $CC warning features (if it's GCC).
7076 # We want to use -pedantic, but we don't want warnings about
7079 # * overlong strings
7080 # * C++11 narrowing conversions in { }
7081 # So, we only use -pedantic if we can disable those warnings.
7083 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7084 # Check whether --enable-build-format-warnings was given.
7085 if test "${enable_build_format_warnings+set}" = set; then :
7086 enableval
=$enable_build_format_warnings;
7088 enable_build_format_warnings
=yes
7091 if test $enable_build_format_warnings = no
; then :
7097 ac_cpp
='$CXXCPP $CPPFLAGS'
7098 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7099 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7100 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7103 save_CXXFLAGS
="$CXXFLAGS"
7104 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7105 # Do the check with the no- prefix removed since gcc silently
7106 # accepts any -Wno-* option on purpose
7107 case $real_option in
7108 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7109 *) option
=$real_option ;;
7111 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7114 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7115 if eval \
${$as_acx_Woption+:} false
; then :
7116 $as_echo_n "(cached) " >&6
7119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7130 if ac_fn_cxx_try_compile
"$LINENO"; then :
7131 eval "$as_acx_Woption=yes"
7133 eval "$as_acx_Woption=no"
7135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7138 eval ac_res
=\$
$as_acx_Woption
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7140 $as_echo "$ac_res" >&6; }
7141 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7142 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7145 CXXFLAGS
="$save_CXXFLAGS"
7147 ac_cpp
='$CXXCPP $CPPFLAGS'
7148 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7155 ac_cpp
='$CPP $CPPFLAGS'
7156 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7161 save_CFLAGS
="$CFLAGS"
7162 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7163 # Do the check with the no- prefix removed since gcc silently
7164 # accepts any -Wno-* option on purpose
7165 case $real_option in
7166 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7167 *) option
=$real_option ;;
7169 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7172 $as_echo_n "checking whether $CC supports $option... " >&6; }
7173 if eval \
${$as_acx_Woption+:} false
; then :
7174 $as_echo_n "(cached) " >&6
7177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7188 if ac_fn_c_try_compile
"$LINENO"; then :
7189 eval "$as_acx_Woption=yes"
7191 eval "$as_acx_Woption=no"
7193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7196 eval ac_res
=\$
$as_acx_Woption
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7198 $as_echo "$ac_res" >&6; }
7199 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7200 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7203 CFLAGS
="$save_CFLAGS"
7205 ac_cpp
='$CXXCPP $CPPFLAGS'
7206 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7212 ac_cpp
='$CXXCPP $CPPFLAGS'
7213 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7218 save_CXXFLAGS
="$CXXFLAGS"
7219 for real_option
in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7220 # Do the check with the no- prefix removed since gcc silently
7221 # accepts any -Wno-* option on purpose
7222 case $real_option in
7223 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7224 *) option
=$real_option ;;
7226 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7229 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7230 if eval \
${$as_acx_Woption+:} false
; then :
7231 $as_echo_n "(cached) " >&6
7234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7245 if ac_fn_cxx_try_compile
"$LINENO"; then :
7246 eval "$as_acx_Woption=yes"
7248 eval "$as_acx_Woption=no"
7250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7253 eval ac_res
=\$
$as_acx_Woption
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7255 $as_echo "$ac_res" >&6; }
7256 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7257 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7260 CXXFLAGS
="$save_CXXFLAGS"
7262 ac_cpp
='$CXXCPP $CPPFLAGS'
7263 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7269 ac_cpp
='$CPP $CPPFLAGS'
7270 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7275 save_CFLAGS
="$CFLAGS"
7276 for real_option
in -Wold-style-definition -Wc++-compat; do
7277 # Do the check with the no- prefix removed since gcc silently
7278 # accepts any -Wno-* option on purpose
7279 case $real_option in
7280 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7281 *) option
=$real_option ;;
7283 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7286 $as_echo_n "checking whether $CC supports $option... " >&6; }
7287 if eval \
${$as_acx_Woption+:} false
; then :
7288 $as_echo_n "(cached) " >&6
7291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7302 if ac_fn_c_try_compile
"$LINENO"; then :
7303 eval "$as_acx_Woption=yes"
7305 eval "$as_acx_Woption=no"
7307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7310 eval ac_res
=\$
$as_acx_Woption
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7312 $as_echo "$ac_res" >&6; }
7313 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7314 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7317 CFLAGS
="$save_CFLAGS"
7319 ac_cpp
='$CXXCPP $CPPFLAGS'
7320 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7326 ac_cpp
='$CXXCPP $CPPFLAGS'
7327 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7331 # Do the check with the no- prefix removed from the warning options
7332 # since gcc silently accepts any -Wno-* option on purpose
7333 if test "$GXX" = yes; then :
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7335 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7336 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7337 $as_echo_n "(cached) " >&6
7339 save_CXXFLAGS
="$CXXFLAGS"
7340 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7352 if ac_fn_cxx_try_compile
"$LINENO"; then :
7353 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7355 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7358 CXXFLAGS
="$save_CXXFLAGS"
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7361 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7362 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7363 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7368 ac_cpp
='$CXXCPP $CPPFLAGS'
7369 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7375 ac_cpp
='$CXXCPP $CPPFLAGS'
7376 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7380 # Check whether --enable-werror-always was given.
7381 if test "${enable_werror_always+set}" = set; then :
7382 enableval
=$enable_werror_always;
7384 enable_werror_always
=no
7387 if test $enable_werror_always = yes; then :
7388 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7392 ac_cpp
='$CXXCPP $CPPFLAGS'
7393 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7394 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7395 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7399 # The above macros do nothing if the compiler is not GCC. However, the
7400 # Makefile has more goo to add other flags, so these variables are used
7401 # to enable warnings only for GCC.
7404 if test "x$GCC" = "xyes"; then
7405 warn_cflags
='$(GCC_WARN_CFLAGS)'
7406 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7411 # Disable exceptions and RTTI if building with g++
7413 ac_cpp
='$CPP $CPPFLAGS'
7414 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7419 save_CFLAGS
="$CFLAGS"
7420 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7421 # Do the check with the no- prefix removed since gcc silently
7422 # accepts any -Wno-* option on purpose
7423 case $real_option in
7424 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7425 *) option
=$real_option ;;
7427 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7430 $as_echo_n "checking whether $CC supports $option... " >&6; }
7431 if eval \
${$as_acx_Woption+:} false
; then :
7432 $as_echo_n "(cached) " >&6
7435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7446 if ac_fn_c_try_compile
"$LINENO"; then :
7447 eval "$as_acx_Woption=yes"
7449 eval "$as_acx_Woption=no"
7451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7454 eval ac_res
=\$
$as_acx_Woption
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7456 $as_echo "$ac_res" >&6; }
7457 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7458 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7461 CFLAGS
="$save_CFLAGS"
7463 ac_cpp
='$CXXCPP $CPPFLAGS'
7464 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7470 # Enable expensive internal checks
7472 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7476 # Check whether --enable-checking was given.
7477 if test "${enable_checking+set}" = set; then :
7478 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7481 # Determine the default checks.
7482 if test x
$is_release = x
; then
7483 ac_checking_flags
=yes,extra
7485 ac_checking_flags
=release
7489 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7490 for check
in release
$ac_checking_flags
7493 # these set all the flags to specific states
7494 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7495 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7496 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7497 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7498 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7499 ac_types_checking
=1 ;;
7500 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7501 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7502 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7503 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7504 ac_tree_checking
= ; ac_valgrind_checking
= ;
7505 ac_types_checking
= ;;
7506 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7507 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7508 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7509 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7510 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7511 ac_types_checking
=1 ;;
7512 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7513 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7514 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7515 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7516 ac_tree_checking
= ; ac_valgrind_checking
= ;
7517 ac_types_checking
= ;;
7518 # these enable particular checks
7519 assert
) ac_assert_checking
=1 ;;
7520 df
) ac_df_checking
=1 ;;
7521 extra
) ac_extra_checking
=1 ;;
7522 fold) ac_fold_checking
=1 ;;
7523 gc
) ac_gc_checking
=1 ;;
7524 gcac
) ac_gc_always_collect
=1 ;;
7525 gimple
) ac_gimple_checking
=1 ;;
7526 misc
) ac_checking
=1 ;;
7527 rtl
) ac_rtl_checking
=1 ;;
7528 rtlflag
) ac_rtlflag_checking
=1 ;;
7529 runtime
) ac_runtime_checking
=1 ;;
7530 tree
) ac_tree_checking
=1 ;;
7531 types
) ac_types_checking
=1 ;;
7532 valgrind
) ac_valgrind_checking
=1 ;;
7533 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7539 if test x
$ac_checking != x
; then
7541 $as_echo "#define CHECKING_P 1" >>confdefs.h
7543 nocommon_flag
=-fno-common
7545 $as_echo "#define CHECKING_P 0" >>confdefs.h
7549 if test x
$ac_extra_checking != x
; then
7551 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7554 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7557 if test x
$ac_df_checking != x
; then
7559 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7562 if test x
$ac_assert_checking != x
; then
7564 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7567 if test x
$ac_gimple_checking != x
; then
7569 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7573 if test x
$ac_runtime_checking != x
; then
7575 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7578 if test x
$ac_tree_checking != x
; then
7580 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7584 if test x
$ac_types_checking != x
; then
7586 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7590 if test x
$ac_rtl_checking != x
; then
7592 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7595 if test x
$ac_rtlflag_checking != x
; then
7597 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7600 if test x
$ac_gc_checking != x
; then
7602 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7605 if test x
$ac_gc_always_collect != x
; then
7607 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7610 if test x
$ac_fold_checking != x
; then
7612 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7615 valgrind_path_defines
=
7618 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7619 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7627 # It is certainly possible that there's valgrind but no valgrind.h.
7628 # GCC relies on making annotations so we must have both.
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7630 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 #include <valgrind/memcheck.h>
7634 #ifndef VALGRIND_DISCARD
7635 #error VALGRIND_DISCARD not defined
7638 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7639 gcc_cv_header_valgrind_memcheck_h
=yes
7641 gcc_cv_header_valgrind_memcheck_h
=no
7643 rm -f conftest.err conftest.i conftest.
$ac_ext
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7645 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7647 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 #include <memcheck.h>
7651 #ifndef VALGRIND_DISCARD
7652 #error VALGRIND_DISCARD not defined
7655 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7656 gcc_cv_header_memcheck_h
=yes
7658 gcc_cv_header_memcheck_h
=no
7660 rm -f conftest.err conftest.i conftest.
$ac_ext
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7662 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7663 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7665 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7668 if test $gcc_cv_header_memcheck_h = yes; then
7670 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7674 if test x
$ac_valgrind_checking != x
; then
7676 # Prepare PATH_SEPARATOR.
7677 # The user is always right.
7678 if test "${PATH_SEPARATOR+set}" != set; then
7679 echo "#! /bin/sh" >conf$$.sh
7680 echo "exit 0" >>conf$$.sh
7682 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7690 # Find out how to test for executable files. Don't use a zero-byte file,
7691 # as systems may use methods other than mode bits to determine executability.
7692 cat >conf$$.
file <<_ASEOF
7696 chmod +x conf$$.
file
7697 if test -x conf$$.
file >/dev
/null
2>&1; then
7698 ac_executable_p
="test -x"
7700 ac_executable_p
="test -f"
7704 # Extract the first word of "valgrind", so it can be a program name with args.
7705 set dummy valgrind
; ac_word
=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_path_valgrind_path+:} false
; then :
7709 $as_echo_n "(cached) " >&6
7711 case "$valgrind_path" in
7713 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7716 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7717 for ac_dir
in $PATH; do
7719 test -z "$ac_dir" && ac_dir
=.
7720 for ac_exec_ext
in '' $ac_executable_extensions; do
7721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7722 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7723 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7733 valgrind_path
="$ac_cv_path_valgrind_path"
7734 if test -n "$valgrind_path"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7736 $as_echo "$valgrind_path" >&6; }
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7742 if test "x$valgrind_path" = "x" \
7743 ||
(test $have_valgrind_h = no \
7744 && test $gcc_cv_header_memcheck_h = no \
7745 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7746 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7748 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7749 valgrind_command
="$valgrind_path -q"
7751 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7757 # Enable code coverage collection
7758 # Check whether --enable-coverage was given.
7759 if test "${enable_coverage+set}" = set; then :
7760 enableval
=$enable_coverage; case "${enableval}" in
7762 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7765 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7768 # a.k.a. --disable-coverage
7772 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7781 # Check whether --enable-gather-detailed-mem-stats was given.
7782 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7783 enableval
=$enable_gather_detailed_mem_stats;
7785 enable_gather_detailed_mem_stats
=no
7788 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7790 cat >>confdefs.h
<<_ACEOF
7791 #define GATHER_STATISTICS $gather_stats
7795 # Check whether --enable-valgrind-annotations was given.
7796 if test "${enable_valgrind_annotations+set}" = set; then :
7797 enableval
=$enable_valgrind_annotations;
7799 enable_valgrind_annotations
=no
7802 if test x
$enable_valgrind_annotations != xno \
7803 ||
test x
$ac_valgrind_checking != x
; then
7804 if (test $have_valgrind_h = no \
7805 && test $gcc_cv_header_memcheck_h = no \
7806 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7807 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7810 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7814 # -------------------------------
7815 # Miscenalleous configure options
7816 # -------------------------------
7818 # Determine whether or not multilibs are enabled.
7819 # Check whether --enable-multilib was given.
7820 if test "${enable_multilib+set}" = set; then :
7821 enableval
=$enable_multilib;
7828 # Determine whether or not multiarch is enabled.
7829 # Check whether --enable-multiarch was given.
7830 if test "${enable_multiarch+set}" = set; then :
7831 enableval
=$enable_multiarch; case "${enableval}" in
7832 yes|no|auto
) enable_multiarch
=$enableval;;
7833 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7836 enable_multiarch
=auto
7839 if test x
${enable_multiarch} = xauto
; then
7840 if test x
${with_native_system_header_dir} != x
; then
7841 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7844 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7845 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7849 if test x
${enable_multiarch} = xyes
; then
7851 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7855 $as_echo_n "checking for multiarch configuration... " >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7858 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7860 # needed for setting the multiarch name for soft-float/hard-float ABIs
7864 # default stack clash protection guard size as power of twos in bytes.
7865 # Please keep these in sync with params.def.
7869 # Keep the default value when the option is not used to 0, this allows us to
7870 # distinguish between the cases where the user specifially set a value via
7871 # configure and when the normal default value is used.
7873 # Check whether --with-stack-clash-protection-guard-size was given.
7874 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7875 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7877 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7880 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7881 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7882 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7883 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
7887 cat >>confdefs.h
<<_ACEOF
7888 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7892 # Enable __cxa_atexit for C++.
7893 # Check whether --enable-__cxa_atexit was given.
7894 if test "${enable___cxa_atexit+set}" = set; then :
7895 enableval
=$enable___cxa_atexit;
7899 # Enable C extension for decimal float if target supports it.
7901 # Check whether --enable-decimal-float was given.
7902 if test "${enable_decimal_float+set}" = set; then :
7903 enableval
=$enable_decimal_float;
7904 case $enable_decimal_float in
7905 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7906 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7907 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7914 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7915 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7916 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7917 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7918 enable_decimal_float
=yes
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7922 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7923 enable_decimal_float
=no
7930 # x86's use BID format instead of DPD
7931 case x
$enable_decimal_float in
7934 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
7935 enable_decimal_float
=bid
7938 enable_decimal_float
=dpd
7941 default_decimal_float
=$enable_decimal_float
7944 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7945 # dependency on libdecnumber.
7946 default_decimal_float
=dpd
7953 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7955 cat >>confdefs.h
<<_ACEOF
7956 #define ENABLE_DECIMAL_FLOAT $dfp
7960 # Use default_decimal_float for dependency.
7961 enable_decimal_float
=$default_decimal_float
7963 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7965 cat >>confdefs.h
<<_ACEOF
7966 #define ENABLE_DECIMAL_BID_FORMAT $bid
7970 # Enable C extension for fixed-point arithmetic.
7971 # Check whether --enable-fixed-point was given.
7972 if test "${enable_fixed_point+set}" = set; then :
7973 enableval
=$enable_fixed_point;
7978 enable_fixed_point
=yes
7982 enable_fixed_point
=yes
7985 enable_fixed_point
=yes
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7989 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7990 enable_fixed_point
=no
7998 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8000 cat >>confdefs.h
<<_ACEOF
8001 #define ENABLE_FIXED_POINT $fixedpoint
8006 # Pass with no value to take the default
8007 # Pass with a value to specify a thread package
8008 # Check whether --enable-threads was given.
8009 if test "${enable_threads+set}" = set; then :
8010 enableval
=$enable_threads;
8016 # Check whether --enable-tls was given.
8017 if test "${enable_tls+set}" = set; then :
8018 enableval
=$enable_tls;
8021 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8022 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8030 # Check whether --enable-vtable-verify was given.
8031 if test "${enable_vtable_verify+set}" = set; then :
8032 enableval
=$enable_vtable_verify;
8034 enable_vtable_verify
=no
8037 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8039 cat >>confdefs.h
<<_ACEOF
8040 #define ENABLE_VTABLE_VERIFY $vtable_verify
8044 # Check whether --enable-analyzer was given.
8045 if test "${enable_analyzer+set}" = set; then :
8046 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8056 cat >>confdefs.h
<<_ACEOF
8057 #define ENABLE_ANALYZER $analyzer
8061 # Check whether --enable-objc-gc was given.
8062 if test "${enable_objc_gc+set}" = set; then :
8063 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8074 # Check whether --with-dwarf2 was given.
8075 if test "${with_dwarf2+set}" = set; then :
8076 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8082 # Check whether --enable-shared was given.
8083 if test "${enable_shared+set}" = set; then :
8084 enableval
=$enable_shared;
8085 case $enable_shared in
8089 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8090 for pkg
in $enableval; do
8091 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8105 # Check whether --enable-gcov was given.
8106 if test "${enable_gcov+set}" = set; then :
8107 enableval
=$enable_gcov;
8123 # Check whether --with-specs was given.
8124 if test "${with_specs+set}" = set; then :
8125 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8135 # Check whether --with-pkgversion was given.
8136 if test "${with_pkgversion+set}" = set; then :
8137 withval
=$with_pkgversion; case "$withval" in
8138 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8140 *) PKGVERSION
="($withval) " ;;
8151 # Check whether --with-bugurl was given.
8152 if test "${with_bugurl+set}" = set; then :
8153 withval
=$with_bugurl; case "$withval" in
8154 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8157 *) BUGURL
="$withval"
8161 BUGURL
="https://gcc.gnu.org/bugs/"
8171 REPORT_BUGS_TO
="<$BUGURL>"
8172 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8179 # Allow overriding the default URL for documentation
8181 # Check whether --with-documentation-root-url was given.
8182 if test "${with_documentation_root_url+set}" = set; then :
8183 withval
=$with_documentation_root_url; case "$withval" in
8184 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8185 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8186 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8187 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8190 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8195 cat >>confdefs.h
<<_ACEOF
8196 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8200 # Allow overriding the default URL for GCC changes
8202 # Check whether --with-changes-root-url was given.
8203 if test "${with_changes_root_url+set}" = set; then :
8204 withval
=$with_changes_root_url; case "$withval" in
8205 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8206 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8207 */) CHANGES_ROOT_URL
="$withval" ;;
8208 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8211 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8216 cat >>confdefs.h
<<_ACEOF
8217 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8221 # Sanity check enable_languages in case someone does not run the toplevel
8222 # configure # script.
8223 # Check whether --enable-languages was given.
8224 if test "${enable_languages+set}" = set; then :
8225 enableval
=$enable_languages; case ,${enable_languages}, in
8227 # go safe -- we cannot be much sure without the toplevel
8229 # analysis of which target libs are present and usable
8233 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8238 enable_languages
=c
,${enable_languages}
8246 # If top-level libada has been disabled, then wire in install-gnatlib
8247 # invocation with `make install', so that one can build and install
8248 # the library manually with `make -C gcc all gnatlib gnattools install'.
8249 if test x
"$enable_libada" = xno
; then
8250 gnat_install_lib
=gnat-install-lib
8256 if test x
"$enable_as_accelerator_for" != x
; then
8258 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8260 enable_as_accelerator
=yes
8261 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8262 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8263 accel_dir_suffix
=/accel
/${target_noncanonical}
8264 real_target_noncanonical
=${enable_as_accelerator_for}
8270 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8271 tgt
=`echo $tgt | sed 's/=.*//'`
8276 omp_device_property
=omp-device-properties-gcn
8277 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8280 omp_device_property
=omp-device-properties-nvptx
8281 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8284 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8287 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8288 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8290 if test x
"$offload_targets" = x
; then
8291 offload_targets
=$tgt
8293 offload_targets
="$offload_targets,$tgt"
8300 cat >>confdefs.h
<<_ACEOF
8301 #define OFFLOAD_TARGETS "$offload_targets"
8304 if test x
"$enable_offloading" != x
; then
8306 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8310 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8314 if test "x$enable_offload_defaulted" = xyes
; then
8316 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8321 # Check whether --with-multilib-list was given.
8322 if test "${with_multilib_list+set}" = set; then :
8323 withval
=$with_multilib_list; :
8325 with_multilib_list
=default
8330 # Check whether --with-multilib-generator was given.
8331 if test "${with_multilib_generator+set}" = set; then :
8332 withval
=$with_multilib_generator; :
8334 with_multilib_generator
=default
8338 # -------------------------
8339 # Checks for other programs
8340 # -------------------------
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8343 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8345 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8346 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8347 $as_echo_n "(cached) " >&6
8349 cat >conftest.
make <<\_ACEOF
8352 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8354 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8355 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8357 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8359 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8363 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8365 $as_echo "yes" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 SET_MAKE
="MAKE=${MAKE-make}"
8374 # Find some useful tools
8375 for ac_prog
in gawk mawk nawk
awk
8377 # Extract the first word of "$ac_prog", so it can be a program name with args.
8378 set dummy
$ac_prog; ac_word
=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_AWK+:} false
; then :
8382 $as_echo_n "(cached) " >&6
8384 if test -n "$AWK"; then
8385 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir
=.
8392 for ac_exec_ext
in '' $ac_executable_extensions; do
8393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_AWK
="$ac_prog"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 if test -n "$AWK"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8407 $as_echo "$AWK" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8414 test -n "$AWK" && break
8417 # We need awk to create options.cc and options.h.
8418 # Bail out if it's missing.
8420 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8424 $as_echo_n "checking whether ln -s works... " >&6; }
8425 if ${gcc_cv_prog_LN_S+:} false
; then :
8426 $as_echo_n "(cached) " >&6
8428 rm -f conftestdata_t
8429 echo >conftestdata_f
8430 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8432 gcc_cv_prog_LN_S
="ln -s"
8434 if ln conftestdata_f conftestdata_t
2>/dev
/null
8438 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8440 gcc_cv_prog_LN_S
="cp -p"
8446 rm -f conftestdata_f conftestdata_t
8449 LN_S
="$gcc_cv_prog_LN_S"
8450 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452 $as_echo "yes" >&6; }
8454 if test "$gcc_cv_prog_LN_S" = "ln"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8456 $as_echo "no, using ln" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8459 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8464 $as_echo_n "checking whether ln works... " >&6; }
8465 if ${acx_cv_prog_LN+:} false
; then :
8466 $as_echo_n "(cached) " >&6
8468 rm -f conftestdata_t
8469 echo >conftestdata_f
8470 if ln conftestdata_f conftestdata_t
2>/dev
/null
8476 rm -f conftestdata_f conftestdata_t
8479 if test $acx_cv_prog_LN = no
; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8482 $as_echo "no, using $LN" >&6; }
8484 LN
="$acx_cv_prog_LN"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8486 $as_echo "yes" >&6; }
8489 if test -n "$ac_tool_prefix"; then
8490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8491 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if ${ac_cv_prog_RANLIB+:} false
; then :
8495 $as_echo_n "(cached) " >&6
8497 if test -n "$RANLIB"; then
8498 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8504 test -z "$as_dir" && as_dir
=.
8505 for ac_exec_ext
in '' $ac_executable_extensions; do
8506 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 RANLIB
=$ac_cv_prog_RANLIB
8518 if test -n "$RANLIB"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8520 $as_echo "$RANLIB" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8528 if test -z "$ac_cv_prog_RANLIB"; then
8529 ac_ct_RANLIB
=$RANLIB
8530 # Extract the first word of "ranlib", so it can be a program name with args.
8531 set dummy ranlib
; ac_word
=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8535 $as_echo_n "(cached) " >&6
8537 if test -n "$ac_ct_RANLIB"; then
8538 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8544 test -z "$as_dir" && as_dir
=.
8545 for ac_exec_ext
in '' $ac_executable_extensions; do
8546 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8558 if test -n "$ac_ct_RANLIB"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8560 $as_echo "$ac_ct_RANLIB" >&6; }
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8566 if test "x$ac_ct_RANLIB" = x
; then
8569 case $cross_compiling:$ac_tool_warned in
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573 ac_tool_warned
=yes ;;
8575 RANLIB
=$ac_ct_RANLIB
8578 RANLIB
="$ac_cv_prog_RANLIB"
8584 # Find a good install program. We prefer a C program (faster),
8585 # so one script is as good as another. But avoid the broken or
8586 # incompatible versions:
8587 # SysV /etc/install, /usr/sbin/install
8588 # SunOS /usr/etc/install
8589 # IRIX /sbin/install
8591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8593 # ./install, which can be erroneously created by make from ./install.sh.
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8595 $as_echo_n "checking for a BSD compatible install... " >&6; }
8596 if test -z "$INSTALL"; then
8597 if ${ac_cv_path_install+:} false
; then :
8598 $as_echo_n "(cached) " >&6
8600 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8601 for ac_dir
in $PATH; do
8602 # Account for people who put trailing slashes in PATH elements.
8604 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8606 # OSF1 and SCO ODT 3.0 have their own names for install.
8607 for ac_prog
in ginstall scoinst
install; do
8608 if test -f $ac_dir/$ac_prog; then
8609 if test $ac_prog = install &&
8610 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8611 # AIX install. It has an incompatible calling convention.
8612 # OSF/1 installbsd also uses dspmsg, but is usable.
8615 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8626 if test "${ac_cv_path_install+set}" = set; then
8627 INSTALL
="$ac_cv_path_install"
8629 # As a last resort, use the slow shell script. We don't cache a
8630 # path for INSTALL within a source directory, because that will
8631 # break other packages using the cache if that directory is
8632 # removed, or if the path is relative.
8633 INSTALL
="$ac_install_sh"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8637 $as_echo "$INSTALL" >&6; }
8639 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8640 # It thinks the first close brace ends the variable substitution.
8641 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8643 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8646 # See if cmp has --ignore-initial.
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8648 $as_echo_n "checking for cmp's capabilities... " >&6; }
8649 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8650 $as_echo_n "(cached) " >&6
8654 gcc_cv_prog_cmp_skip
=slowcompare
8655 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8656 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8659 gcc_cv_prog_cmp_skip
=gnucompare
8662 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8663 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8664 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8667 gcc_cv_prog_cmp_skip
=fastcompare
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8675 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8676 make_compare_target
=$gcc_cv_prog_cmp_skip
8680 # See if we have the mktemp command.
8681 # Extract the first word of "mktemp", so it can be a program name with args.
8682 set dummy mktemp
; ac_word
=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8686 $as_echo_n "(cached) " >&6
8688 if test -n "$have_mktemp_command"; then
8689 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8695 test -z "$as_dir" && as_dir
=.
8696 for ac_exec_ext
in '' $ac_executable_extensions; do
8697 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_have_mktemp_command
="yes"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8709 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8710 if test -n "$have_mktemp_command"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8712 $as_echo "$have_mktemp_command" >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8720 # See if makeinfo has been installed and is modern enough
8721 # that we can use it.
8723 # Extract the first word of "makeinfo", so it can be a program name with args.
8724 set dummy makeinfo
; ac_word
=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8728 $as_echo_n "(cached) " >&6
8730 if test -n "$MAKEINFO"; then
8731 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8737 test -z "$as_dir" && as_dir
=.
8738 for ac_exec_ext
in '' $ac_executable_extensions; do
8739 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8740 ac_cv_prog_MAKEINFO
="makeinfo"
8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 MAKEINFO
=$ac_cv_prog_MAKEINFO
8751 if test -n "$MAKEINFO"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8753 $as_echo "$MAKEINFO" >&6; }
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8760 if test -n "$MAKEINFO"; then
8761 # Found it, now check the version.
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8763 $as_echo_n "checking for modern makeinfo... " >&6; }
8764 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8765 $as_echo_n "(cached) " >&6
8767 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8768 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8770 case $ac_prog_version in
8771 '') gcc_cv_prog_makeinfo_modern
=no
;;
8772 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8773 *) gcc_cv_prog_makeinfo_modern
=no
;;
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8778 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8780 gcc_cv_prog_makeinfo_modern
=no
8782 if test $gcc_cv_prog_makeinfo_modern = no
; then
8783 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8786 if test $gcc_cv_prog_makeinfo_modern = no
; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8788 *** Makeinfo is missing or too old.
8789 *** Info documentation will not be built." >&5
8790 $as_echo "$as_me: WARNING:
8791 *** Makeinfo is missing or too old.
8792 *** Info documentation will not be built." >&2;}
8799 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8800 # If it does, we want to pass it to makeinfo in order to restore the old
8801 # behavior of @{summary,}contents placement.
8802 MAKEINFO_TOC_INLINE_FLAG
=
8803 if test x
"$MAKEINFO" != x
; then :
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8806 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8807 if ${gcc_cv_texi_add_toc_inline_flags+:} false
; then :
8808 $as_echo_n "(cached) " >&6
8811 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8812 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION
=inline
</dev
/null
2>&1 \
8813 |
grep CONTENTS_OUTPUT_LOCATION
>/dev
/null
; then
8814 gcc_cv_texi_add_toc_inline_flags
=no
8816 gcc_cv_texi_add_toc_inline_flags
=yes
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8821 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8822 if test x
"$gcc_cv_texi_add_toc_inline_flags" = xyes
; then
8823 MAKEINFO_TOC_INLINE_FLAG
='-c CONTENTS_OUTPUT_LOCATION=inline'
8829 # Is pod2man recent enough to regenerate manpages?
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8831 $as_echo_n "checking for recent Pod::Man... " >&6; }
8832 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8834 $as_echo "yes" >&6; }
8835 GENERATED_MANPAGES
=generated-manpages
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8843 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8848 # Extract the first word of "$ac_prog", so it can be a program name with args.
8849 set dummy
$ac_prog; ac_word
=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_prog_FLEX+:} false
; then :
8853 $as_echo_n "(cached) " >&6
8855 if test -n "$FLEX"; then
8856 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8862 test -z "$as_dir" && as_dir
=.
8863 for ac_exec_ext
in '' $ac_executable_extensions; do
8864 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_FLEX
="$ac_prog"
8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 FLEX
=$ac_cv_prog_FLEX
8876 if test -n "$FLEX"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8878 $as_echo "$FLEX" >&6; }
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8885 test -n "$FLEX" && break
8887 test -n "$FLEX" || FLEX
="$MISSING flex"
8891 for ac_prog
in bison
8893 # Extract the first word of "$ac_prog", so it can be a program name with args.
8894 set dummy
$ac_prog; ac_word
=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_prog_BISON+:} false
; then :
8898 $as_echo_n "(cached) " >&6
8900 if test -n "$BISON"; then
8901 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8907 test -z "$as_dir" && as_dir
=.
8908 for ac_exec_ext
in '' $ac_executable_extensions; do
8909 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_BISON
="$ac_prog"
8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920 BISON
=$ac_cv_prog_BISON
8921 if test -n "$BISON"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8923 $as_echo "$BISON" >&6; }
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8930 test -n "$BISON" && break
8932 test -n "$BISON" || BISON
="$MISSING bison"
8937 # Extract the first word of "python3", so it can be a program name with args.
8938 set dummy python3
; ac_word
=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if ${ac_cv_prog_PYTHON+:} false
; then :
8942 $as_echo_n "(cached) " >&6
8944 if test -n "$PYTHON"; then
8945 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
8947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8951 test -z "$as_dir" && as_dir
=.
8952 for ac_exec_ext
in '' $ac_executable_extensions; do
8953 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8954 ac_cv_prog_PYTHON
="python3"
8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 PYTHON
=$ac_cv_prog_PYTHON
8965 if test -n "$PYTHON"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8967 $as_echo "$PYTHON" >&6; }
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8974 if test -n "$PYTHON"; then
8975 # Found it, now check the version.
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
8977 $as_echo_n "checking for modern python3... " >&6; }
8978 if ${gcc_cv_prog_python3_modern+:} false
; then :
8979 $as_echo_n "(cached) " >&6
8981 ac_prog_version
=`eval $PYTHON --version 2>&1 |
8982 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
8984 case $ac_prog_version in
8985 '') gcc_cv_prog_python3_modern
=no
;;
8986 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*) gcc_cv_prog_python3_modern
=yes;;
8987 *) gcc_cv_prog_python3_modern
=no
;;
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
8992 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
8994 gcc_cv_prog_python3_modern
=no
8996 if test $gcc_cv_prog_python3_modern = no
; then
8997 PYTHON
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9000 if test $gcc_cv_prog_python3_modern = no
; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9002 *** Python3 is missing.
9003 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9004 $as_echo "$as_me: WARNING:
9005 *** Python3 is missing.
9006 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9013 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9014 # check for build == host before using them.
9017 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9018 && test -d ..
/binutils
; then
9019 NM
='${objdir}/../binutils/nm-new'
9021 # Extract the first word of "nm", so it can be a program name with args.
9022 set dummy nm
; ac_word
=$2
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9024 $as_echo_n "checking for $ac_word... " >&6; }
9025 if ${ac_cv_prog_NM+:} false
; then :
9026 $as_echo_n "(cached) " >&6
9028 if test -n "$NM"; then
9029 ac_cv_prog_NM
="$NM" # Let the user override the test.
9031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9035 test -z "$as_dir" && as_dir
=.
9036 for ac_exec_ext
in '' $ac_executable_extensions; do
9037 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9050 if test -n "$NM"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9052 $as_echo "$NM" >&6; }
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9062 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9063 && test -d ..
/binutils
; then
9064 AR
='${objdir}/../binutils/ar'
9066 # Extract the first word of "ar", so it can be a program name with args.
9067 set dummy
ar; ac_word
=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if ${ac_cv_prog_AR+:} false
; then :
9071 $as_echo_n "(cached) " >&6
9073 if test -n "$AR"; then
9074 ac_cv_prog_AR
="$AR" # Let the user override the test.
9076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9080 test -z "$as_dir" && as_dir
=.
9081 for ac_exec_ext
in '' $ac_executable_extensions; do
9082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9095 if test -n "$AR"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9097 $as_echo "$AR" >&6; }
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9106 # The jit documentation looks better if built with sphinx, but can be
9107 # built with texinfo if sphinx is not available.
9108 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9109 # Extract the first word of "sphinx-build", so it can be a program name with args.
9110 set dummy sphinx-build
; ac_word
=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9114 $as_echo_n "(cached) " >&6
9116 if test -n "$doc_build_sys"; then
9117 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9123 test -z "$as_dir" && as_dir
=.
9124 for ac_exec_ext
in '' $ac_executable_extensions; do
9125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9126 ac_cv_prog_doc_build_sys
="sphinx"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9137 doc_build_sys
=$ac_cv_prog_doc_build_sys
9138 if test -n "$doc_build_sys"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9140 $as_echo "$doc_build_sys" >&6; }
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9148 # --------------------
9149 # Checks for C headers
9150 # --------------------
9152 # Need to reject headers which give warnings, so that the -Werror bootstrap
9153 # works later. *sigh* This needs to come before all header checks.
9155 ac_c_preproc_warn_flag
=yes
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9158 $as_echo_n "checking for ANSI C header files... " >&6; }
9159 if ${ac_cv_header_stdc+:} false
; then :
9160 $as_echo_n "(cached) " >&6
9162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9177 if ac_fn_cxx_try_compile
"$LINENO"; then :
9178 ac_cv_header_stdc
=yes
9180 ac_cv_header_stdc
=no
9182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9184 if test $ac_cv_header_stdc = yes; then
9185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9192 $EGREP "memchr" >/dev
/null
2>&1; then :
9195 ac_cv_header_stdc
=no
9201 if test $ac_cv_header_stdc = yes; then
9202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9209 $EGREP "free" >/dev
/null
2>&1; then :
9212 ac_cv_header_stdc
=no
9218 if test $ac_cv_header_stdc = yes; then
9219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9220 if test "$cross_compiling" = yes; then :
9223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9227 #if ((' ' & 0x0FF) == 0x020)
9228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9231 # define ISLOWER(c) \
9232 (('a' <= (c) && (c) <= 'i') \
9233 || ('j' <= (c) && (c) <= 'r') \
9234 || ('s' <= (c) && (c) <= 'z'))
9235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9243 for (i = 0; i < 256; i++)
9244 if (XOR (islower (i), ISLOWER (i))
9245 || toupper (i) != TOUPPER (i))
9250 if ac_fn_cxx_try_run
"$LINENO"; then :
9253 ac_cv_header_stdc
=no
9255 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9256 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9262 $as_echo "$ac_cv_header_stdc" >&6; }
9263 if test $ac_cv_header_stdc = yes; then
9265 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9270 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9271 if ${ac_cv_header_time+:} false
; then :
9272 $as_echo_n "(cached) " >&6
9274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 #include <sys/types.h>
9277 #include <sys/time.h>
9283 if ((struct tm *) 0)
9289 if ac_fn_cxx_try_compile
"$LINENO"; then :
9290 ac_cv_header_time
=yes
9292 ac_cv_header_time
=no
9294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9297 $as_echo "$ac_cv_header_time" >&6; }
9298 if test $ac_cv_header_time = yes; then
9300 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9305 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9306 if ${gcc_cv_header_string+:} false
; then :
9307 $as_echo_n "(cached) " >&6
9309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9312 #include <strings.h>
9321 if ac_fn_cxx_try_compile
"$LINENO"; then :
9322 gcc_cv_header_string
=yes
9324 gcc_cv_header_string
=no
9326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9329 $as_echo "$gcc_cv_header_string" >&6; }
9330 if test $gcc_cv_header_string = yes; then
9332 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9337 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9338 if ${ac_cv_header_sys_wait_h+:} false
; then :
9339 $as_echo_n "(cached) " >&6
9341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9343 #include <sys/types.h>
9344 #include <sys/wait.h>
9346 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9349 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9357 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9362 if ac_fn_cxx_try_compile
"$LINENO"; then :
9363 ac_cv_header_sys_wait_h
=yes
9365 ac_cv_header_sys_wait_h
=no
9367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9370 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9371 if test $ac_cv_header_sys_wait_h = yes; then
9373 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9378 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9379 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9380 $as_echo_n "(cached) " >&6
9382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 #include <sys/types.h>
9385 #include <termios.h>
9391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9392 $EGREP "yes" >/dev
/null
2>&1; then :
9393 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9395 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9401 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9403 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9405 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9406 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9407 $as_echo_n "(cached) " >&6
9409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 #include <sys/types.h>
9412 #include <sys/ioctl.h>
9418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9419 $EGREP "yes" >/dev
/null
2>&1; then :
9420 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9422 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9428 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9430 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9432 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9437 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9438 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9439 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9440 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9442 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9443 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9444 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9445 cat >>confdefs.h
<<_ACEOF
9446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9453 # Check for thread headers.
9454 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9455 if test "x$ac_cv_header_thread_h" = xyes
; then :
9461 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9462 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9469 # These tests can't be done till we know if we have limits.h.
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9471 $as_echo_n "checking for CHAR_BIT... " >&6; }
9472 if ${gcc_cv_decl_char_bit+:} false
; then :
9473 $as_echo_n "(cached) " >&6
9475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 #ifdef HAVE_LIMITS_H
9484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9485 $EGREP "found" >/dev
/null
2>&1; then :
9486 gcc_cv_decl_char_bit
=yes
9488 gcc_cv_decl_char_bit
=no
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9495 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9496 if test $gcc_cv_decl_char_bit = no
; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9498 $as_echo_n "checking number of bits in a byte... " >&6; }
9499 if ${gcc_cv_c_nbby+:} false
; then :
9500 $as_echo_n "(cached) " >&6
9504 while test $i -lt 65; do
9505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9512 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9513 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9519 if ac_fn_cxx_try_compile
"$LINENO"; then :
9520 gcc_cv_c_nbby
=$i; break
9522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9525 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9529 $as_echo "$gcc_cv_c_nbby" >&6; }
9530 if test $gcc_cv_c_nbby = failed
; then
9531 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9534 cat >>confdefs.h
<<_ACEOF
9535 #define CHAR_BIT $gcc_cv_c_nbby
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9541 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9542 if ${ac_cv_c_bigendian+:} false
; then :
9543 $as_echo_n "(cached) " >&6
9545 ac_cv_c_bigendian
=unknown
9546 # See if we're dealing with a universal compiler.
9547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 #ifndef __APPLE_CC__
9550 not a universal capable compiler
9555 if ac_fn_cxx_try_compile
"$LINENO"; then :
9557 # Check for potential -arch flags. It is not universal unless
9558 # there are at least two -arch flags with different values.
9561 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9562 if test -n "$ac_prev"; then
9564 i?
86 | x86_64 | ppc | ppc64
)
9565 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9568 ac_cv_c_bigendian
=universal
9574 elif test "x$ac_word" = "x-arch"; then
9579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9580 if test $ac_cv_c_bigendian = unknown
; then
9581 # See if sys/param.h defines the BYTE_ORDER macro.
9582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 #include <sys/types.h>
9585 #include <sys/param.h>
9590 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9591 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9600 if ac_fn_cxx_try_compile
"$LINENO"; then :
9601 # It does; now see whether it defined to BIG_ENDIAN or not.
9602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 #include <sys/types.h>
9605 #include <sys/param.h>
9610 #if BYTE_ORDER != BIG_ENDIAN
9618 if ac_fn_cxx_try_compile
"$LINENO"; then :
9619 ac_cv_c_bigendian
=yes
9621 ac_cv_c_bigendian
=no
9623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9627 if test $ac_cv_c_bigendian = unknown
; then
9628 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9636 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9644 if ac_fn_cxx_try_compile
"$LINENO"; then :
9645 # It does; now see whether it defined to _BIG_ENDIAN or not.
9646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9661 if ac_fn_cxx_try_compile
"$LINENO"; then :
9662 ac_cv_c_bigendian
=yes
9664 ac_cv_c_bigendian
=no
9666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9670 if test $ac_cv_c_bigendian = unknown
; then
9671 # Compile a test program.
9672 if test "$cross_compiling" = yes; then :
9673 # Try to guess by grepping values from an object file.
9674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 short int ascii_mm[] =
9677 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9678 short int ascii_ii[] =
9679 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9680 int use_ascii (int i) {
9681 return ascii_mm[i] + ascii_ii[i];
9683 short int ebcdic_ii[] =
9684 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9685 short int ebcdic_mm[] =
9686 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9687 int use_ebcdic (int i) {
9688 return ebcdic_mm[i] + ebcdic_ii[i];
9695 return use_ascii (foo) == use_ebcdic (foo);
9700 if ac_fn_cxx_try_compile
"$LINENO"; then :
9701 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9702 ac_cv_c_bigendian
=yes
9704 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9705 if test "$ac_cv_c_bigendian" = unknown
; then
9706 ac_cv_c_bigendian
=no
9708 # finding both strings is unlikely to happen, but who knows?
9709 ac_cv_c_bigendian
=unknown
9713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9717 $ac_includes_default
9722 /* Are we little or big endian? From Harbison&Steele. */
9726 char c[sizeof (long int)];
9729 return u.c[sizeof (long int) - 1] == 1;
9735 if ac_fn_cxx_try_run
"$LINENO"; then :
9736 ac_cv_c_bigendian
=no
9738 ac_cv_c_bigendian
=yes
9740 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9741 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9747 $as_echo "$ac_cv_c_bigendian" >&6; }
9748 case $ac_cv_c_bigendian in #(
9750 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9756 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9760 as_fn_error $?
"unknown endianness
9761 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9765 # ----------------------
9766 # Checks for C++ headers
9767 # ----------------------
9770 ac_cpp
='$CXXCPP $CPPFLAGS'
9771 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9772 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9773 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9775 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9776 if test -z "$CXXCPP"; then
9777 if ${ac_cv_prog_CXXCPP+:} false
; then :
9778 $as_echo_n "(cached) " >&6
9780 # Double quotes because CXXCPP needs to be expanded
9781 for CXXCPP
in "$CXX -E" "/lib/cpp"
9784 for ac_cxx_preproc_warn_flag
in '' yes
9786 # Use a header file that comes with gcc, so configuring glibc
9787 # with a fresh cross-compiler works.
9788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9789 # <limits.h> exists even on freestanding compilers.
9790 # On the NeXT, cc -E runs the code through the compiler's parser,
9791 # not just through cpp. "Syntax error" is here to catch this case.
9792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9795 # include <limits.h>
9797 # include <assert.h>
9801 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9804 # Broken: fails on valid input.
9807 rm -f conftest.err conftest.i conftest.
$ac_ext
9809 # OK, works on sane cases. Now check whether nonexistent headers
9810 # can be detected and how.
9811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 #include <ac_nonexistent.h>
9815 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9816 # Broken: success on invalid input.
9819 # Passes both tests.
9823 rm -f conftest.err conftest.i conftest.
$ac_ext
9826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9827 rm -f conftest.i conftest.err conftest.
$ac_ext
9828 if $ac_preproc_ok; then :
9833 ac_cv_prog_CXXCPP
=$CXXCPP
9836 CXXCPP
=$ac_cv_prog_CXXCPP
9838 ac_cv_prog_CXXCPP
=$CXXCPP
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9841 $as_echo "$CXXCPP" >&6; }
9843 for ac_cxx_preproc_warn_flag
in '' yes
9845 # Use a header file that comes with gcc, so configuring glibc
9846 # with a fresh cross-compiler works.
9847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9848 # <limits.h> exists even on freestanding compilers.
9849 # On the NeXT, cc -E runs the code through the compiler's parser,
9850 # not just through cpp. "Syntax error" is here to catch this case.
9851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9854 # include <limits.h>
9856 # include <assert.h>
9860 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9863 # Broken: fails on valid input.
9866 rm -f conftest.err conftest.i conftest.
$ac_ext
9868 # OK, works on sane cases. Now check whether nonexistent headers
9869 # can be detected and how.
9870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 #include <ac_nonexistent.h>
9874 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9875 # Broken: success on invalid input.
9878 # Passes both tests.
9882 rm -f conftest.err conftest.i conftest.
$ac_ext
9885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9886 rm -f conftest.i conftest.err conftest.
$ac_ext
9887 if $ac_preproc_ok; then :
9890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9893 See \`config.log' for more details" >&5
9894 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9895 See \`config.log' for more details" >&2;}; }
9899 ac_cpp
='$CXXCPP $CPPFLAGS'
9900 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9901 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9902 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9905 for ac_header
in unordered_map
9907 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9908 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9909 cat >>confdefs.h
<<_ACEOF
9910 #define HAVE_UNORDERED_MAP 1
9916 for ac_header
in tr1/unordered_map
9918 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9919 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9920 cat >>confdefs.h
<<_ACEOF
9921 #define HAVE_TR1_UNORDERED_MAP 1
9927 for ac_header
in ext
/hash_map
9929 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9930 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9931 cat >>confdefs.h
<<_ACEOF
9932 #define HAVE_EXT_HASH_MAP 1
9940 # Dependency checking.
9943 rm -rf .tst
2>/dev
/null
9944 mkdir .tst
2>/dev
/null
9945 if test -d .tst
; then
9950 rmdir .tst
2>/dev
/null
9952 DEPDIR
="${am__leading_dot}deps"
9954 ac_config_commands
="$ac_config_commands depdir"
9957 ac_config_commands
="$ac_config_commands gccdepdir"
9960 depcc
="$CXX" am_compiler_list
=
9962 am_depcomp
=$ac_aux_dir/depcomp
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9964 $as_echo_n "checking dependency style of $depcc... " >&6; }
9965 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9966 $as_echo_n "(cached) " >&6
9968 if test -f "$am_depcomp"; then
9969 # We make a subdir and do the tests there. Otherwise we can end up
9970 # making bogus files that we don't know about and never remove. For
9971 # instance it was reported that on HP-UX the gcc test will end up
9972 # making a dummy file named `D' -- because `-MD' means `put the output
9975 # Copy depcomp to subdir because otherwise we won't find it if we're
9976 # using a relative directory.
9977 cp "$am_depcomp" conftest.dir
9979 # We will build objects and dependencies in a subdirectory because
9980 # it helps to detect inapplicable dependency modes. For instance
9981 # both Tru64's cc and ICC support -MD to output dependencies as a
9982 # side effect of compilation, but ICC will put the dependencies in
9983 # the current directory while Tru64 will put them in the object
9987 am_cv_CXX_dependencies_compiler_type
=none
9988 if test "$am_compiler_list" = ""; then
9989 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9991 for depmode
in $am_compiler_list; do
9992 if test $depmode = none
; then break; fi
9994 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9995 # Setup a source with many dependencies, because some compilers
9996 # like to wrap large dependency lists on column 80 (with \), and
9997 # we should not choose a depcomp mode which is confused by this.
9999 # We need to recreate these files for each test, as the compiler may
10000 # overwrite some of them when testing with obscure command lines.
10001 # This happens at least with the AIX C compiler.
10003 for i
in 1 2 3 4 5 6; do
10004 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10006 # Solaris 8's {/usr,}/bin/sh.
10007 touch sub
/conftst
$i.h
10009 echo "include sub/conftest.Po" > confmf
10011 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10012 # mode. It turns out that the SunPro C++ compiler does not properly
10013 # handle `-M -o', and we need to detect this.
10014 depcmd
="depmode=$depmode \
10015 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10017 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10018 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
10019 if env
$depcmd > conftest.err
2>&1 &&
10020 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
10021 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
10022 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
10023 # icc doesn't choke on unknown options, it will just issue warnings
10024 # or remarks (even with -Werror). So we grep stderr for any message
10025 # that says an option was ignored or not supported.
10026 # When given -MP, icc 7.0 and 7.1 complain thusly:
10027 # icc: Command line warning: ignoring option '-M'; no argument required
10028 # The diagnosis changed in icc 8.0:
10029 # icc: Command line remark: option '-MP' not supported
10030 if (grep 'ignoring option' conftest.err ||
10031 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10032 am_cv_CXX_dependencies_compiler_type
=$depmode
10033 $as_echo "$as_me:$LINENO: success" >&5
10037 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10038 sed -e 's/^/| /' < conftest.err
>&5
10042 rm -rf conftest.dir
10044 am_cv_CXX_dependencies_compiler_type
=none
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10049 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10050 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10051 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10052 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10062 # These libraries may be used by collect2.
10063 # We may need a special search path to get them linked.
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10065 $as_echo_n "checking for collect2 libraries... " >&6; }
10066 if ${gcc_cv_collect2_libs+:} false
; then :
10067 $as_echo_n "(cached) " >&6
10070 for libs
in '' -lld -lmld \
10071 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10072 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10093 if ac_fn_cxx_try_link
"$LINENO"; then :
10094 gcc_cv_collect2_libs
="$libs"; break
10096 rm -f core conftest.err conftest.
$ac_objext \
10097 conftest
$ac_exeext conftest.
$ac_ext
10100 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10103 $as_echo "$gcc_cv_collect2_libs" >&6; }
10104 case $gcc_cv_collect2_libs in
10105 "none required") ;;
10106 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10110 # When building Ada code on Alpha, we need exc_resume which is usually in
10111 # -lexc. So test for it.
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10115 $as_echo_n "checking for library containing exc_resume... " >&6; }
10116 if ${ac_cv_search_exc_resume+:} false
; then :
10117 $as_echo_n "(cached) " >&6
10119 ac_func_search_save_LIBS
=$LIBS
10120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10123 /* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10129 char exc_resume ();
10133 return exc_resume ();
10138 for ac_lib
in '' exc
; do
10139 if test -z "$ac_lib"; then
10140 ac_res
="none required"
10143 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10145 if ac_fn_cxx_try_link
"$LINENO"; then :
10146 ac_cv_search_exc_resume
=$ac_res
10148 rm -f core conftest.err conftest.
$ac_objext \
10150 if ${ac_cv_search_exc_resume+:} false
; then :
10154 if ${ac_cv_search_exc_resume+:} false
; then :
10157 ac_cv_search_exc_resume
=no
10159 rm conftest.
$ac_ext
10160 LIBS
=$ac_func_search_save_LIBS
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10163 $as_echo "$ac_cv_search_exc_resume" >&6; }
10164 ac_res
=$ac_cv_search_exc_resume
10165 if test "$ac_res" != no
; then :
10166 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10170 GNAT_LIBEXC
="$LIBS"
10174 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10178 $as_echo_n "checking for library containing kstat_open... " >&6; }
10179 if ${ac_cv_search_kstat_open+:} false
; then :
10180 $as_echo_n "(cached) " >&6
10182 ac_func_search_save_LIBS
=$LIBS
10183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10186 /* Override any GCC internal prototype to avoid an error.
10187 Use char because int might match the return type of a GCC
10188 builtin and then its argument prototype would still apply. */
10192 char kstat_open ();
10196 return kstat_open ();
10201 for ac_lib
in '' kstat
; do
10202 if test -z "$ac_lib"; then
10203 ac_res
="none required"
10206 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10208 if ac_fn_cxx_try_link
"$LINENO"; then :
10209 ac_cv_search_kstat_open
=$ac_res
10211 rm -f core conftest.err conftest.
$ac_objext \
10213 if ${ac_cv_search_kstat_open+:} false
; then :
10217 if ${ac_cv_search_kstat_open+:} false
; then :
10220 ac_cv_search_kstat_open
=no
10222 rm conftest.
$ac_ext
10223 LIBS
=$ac_func_search_save_LIBS
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10226 $as_echo "$ac_cv_search_kstat_open" >&6; }
10227 ac_res
=$ac_cv_search_kstat_open
10228 if test "$ac_res" != no
; then :
10229 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10233 EXTRA_GCC_LIBS
="$LIBS"
10237 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10238 # C++ needs those for libcody.
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10243 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10244 if ${ac_cv_search_gethostbyname+:} false
; then :
10245 $as_echo_n "(cached) " >&6
10247 ac_func_search_save_LIBS
=$LIBS
10248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10251 /* Override any GCC internal prototype to avoid an error.
10252 Use char because int might match the return type of a GCC
10253 builtin and then its argument prototype would still apply. */
10257 char gethostbyname ();
10261 return gethostbyname ();
10266 for ac_lib
in '' nsl
; do
10267 if test -z "$ac_lib"; then
10268 ac_res
="none required"
10271 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10273 if ac_fn_cxx_try_link
"$LINENO"; then :
10274 ac_cv_search_gethostbyname
=$ac_res
10276 rm -f core conftest.err conftest.
$ac_objext \
10278 if ${ac_cv_search_gethostbyname+:} false
; then :
10282 if ${ac_cv_search_gethostbyname+:} false
; then :
10285 ac_cv_search_gethostbyname
=no
10287 rm conftest.
$ac_ext
10288 LIBS
=$ac_func_search_save_LIBS
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10291 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10292 ac_res
=$ac_cv_search_gethostbyname
10293 if test "$ac_res" != no
; then :
10294 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10299 $as_echo_n "checking for library containing socket... " >&6; }
10300 if ${ac_cv_search_socket+:} false
; then :
10301 $as_echo_n "(cached) " >&6
10303 ac_func_search_save_LIBS
=$LIBS
10304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h. */
10307 /* Override any GCC internal prototype to avoid an error.
10308 Use char because int might match the return type of a GCC
10309 builtin and then its argument prototype would still apply. */
10322 for ac_lib
in '' socket
; do
10323 if test -z "$ac_lib"; then
10324 ac_res
="none required"
10327 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10329 if ac_fn_cxx_try_link
"$LINENO"; then :
10330 ac_cv_search_socket
=$ac_res
10332 rm -f core conftest.err conftest.
$ac_objext \
10334 if ${ac_cv_search_socket+:} false
; then :
10338 if ${ac_cv_search_socket+:} false
; then :
10341 ac_cv_search_socket
=no
10343 rm conftest.
$ac_ext
10344 LIBS
=$ac_func_search_save_LIBS
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10347 $as_echo "$ac_cv_search_socket" >&6; }
10348 ac_res
=$ac_cv_search_socket
10349 if test "$ac_res" != no
; then :
10350 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10355 $as_echo_n "checking for socket in -lsocket... " >&6; }
10356 if ${ac_cv_lib_socket_socket+:} false
; then :
10357 $as_echo_n "(cached) " >&6
10359 ac_check_lib_save_LIBS
=$LIBS
10360 LIBS
="-lsocket -lnsl $LIBS"
10361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10379 if ac_fn_cxx_try_link
"$LINENO"; then :
10380 ac_cv_lib_socket_socket
=yes
10382 ac_cv_lib_socket_socket
=no
10384 rm -f core conftest.err conftest.
$ac_objext \
10385 conftest
$ac_exeext conftest.
$ac_ext
10386 LIBS
=$ac_check_lib_save_LIBS
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10389 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10390 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10391 LIBS
="-lsocket -lnsl $LIBS"
10401 # Some systems put ldexp and frexp in libm instead of libc; assume
10402 # they're both in the same place. jcf-dump needs them.
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10406 $as_echo_n "checking for library containing ldexp... " >&6; }
10407 if ${ac_cv_search_ldexp+:} false
; then :
10408 $as_echo_n "(cached) " >&6
10410 ac_func_search_save_LIBS
=$LIBS
10411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10414 /* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10429 for ac_lib
in '' m
; do
10430 if test -z "$ac_lib"; then
10431 ac_res
="none required"
10434 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10436 if ac_fn_cxx_try_link
"$LINENO"; then :
10437 ac_cv_search_ldexp
=$ac_res
10439 rm -f core conftest.err conftest.
$ac_objext \
10441 if ${ac_cv_search_ldexp+:} false
; then :
10445 if ${ac_cv_search_ldexp+:} false
; then :
10448 ac_cv_search_ldexp
=no
10450 rm conftest.
$ac_ext
10451 LIBS
=$ac_func_search_save_LIBS
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10454 $as_echo "$ac_cv_search_ldexp" >&6; }
10455 ac_res
=$ac_cv_search_ldexp
10456 if test "$ac_res" != no
; then :
10457 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10465 # Some systems need dlopen
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10469 $as_echo_n "checking for library containing dlopen... " >&6; }
10470 if ${ac_cv_search_dlopen+:} false
; then :
10471 $as_echo_n "(cached) " >&6
10473 ac_func_search_save_LIBS
=$LIBS
10474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10477 /* Override any GCC internal prototype to avoid an error.
10478 Use char because int might match the return type of a GCC
10479 builtin and then its argument prototype would still apply. */
10492 for ac_lib
in '' dl
; do
10493 if test -z "$ac_lib"; then
10494 ac_res
="none required"
10497 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10499 if ac_fn_cxx_try_link
"$LINENO"; then :
10500 ac_cv_search_dlopen
=$ac_res
10502 rm -f core conftest.err conftest.
$ac_objext \
10504 if ${ac_cv_search_dlopen+:} false
; then :
10508 if ${ac_cv_search_dlopen+:} false
; then :
10511 ac_cv_search_dlopen
=no
10513 rm conftest.
$ac_ext
10514 LIBS
=$ac_func_search_save_LIBS
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10517 $as_echo "$ac_cv_search_dlopen" >&6; }
10518 ac_res
=$ac_cv_search_dlopen
10519 if test "$ac_res" != no
; then :
10520 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10528 # Use <inttypes.h> only if it exists,
10529 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10532 $as_echo_n "checking for inttypes.h... " >&6; }
10533 if ${gcc_cv_header_inttypes_h+:} false
; then :
10534 $as_echo_n "(cached) " >&6
10536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 #define __STDC_FORMAT_MACROS
10539 #include <sys/types.h>
10540 #include <inttypes.h>
10552 if ac_fn_cxx_try_compile
"$LINENO"; then :
10553 gcc_cv_header_inttypes_h
=yes
10555 gcc_cv_header_inttypes_h
=no
10557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10561 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10562 if test $gcc_cv_header_inttypes_h = yes; then
10564 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10568 # Look for the ZSTD package.
10578 # Check whether --with-zstd was given.
10579 if test "${with_zstd+set}" = set; then :
10580 withval
=$with_zstd;
10584 # Check whether --with-zstd-include was given.
10585 if test "${with_zstd_include+set}" = set; then :
10586 withval
=$with_zstd_include;
10590 # Check whether --with-zstd-lib was given.
10591 if test "${with_zstd_lib+set}" = set; then :
10592 withval
=$with_zstd_lib;
10595 case "x$with_zstd" in
10601 *) ZSTD_INCLUDE
=$with_zstd/include
10602 ZSTD_LIB
=$with_zstd/lib
10606 if test "x$with_zstd" != xno
; then
10607 if test "x$with_zstd_include" != x
; then
10608 ZSTD_INCLUDE
=$with_zstd_include
10610 if test "x$with_zstd_lib" != x
; then
10611 ZSTD_LIB
=$with_zstd_lib
10613 if test "x$ZSTD_INCLUDE" != x \
10614 && test "x$ZSTD_INCLUDE" != xno
; then
10615 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10617 if test "x$ZSTD_LIB" != x \
10618 && test "x$ZSTD_LIB" != xno
; then
10619 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10622 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10623 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10626 $as_echo_n "checking for zstd.h... " >&6; }
10627 if ${gcc_cv_header_zstd_h+:} false
; then :
10628 $as_echo_n "(cached) " >&6
10630 # We require version 1.3.0 or later. This is the first version that has
10631 # ZSTD_getFrameContentSize.
10632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10635 #if ZSTD_VERSION_NUMBER < 10300
10636 #error "need zstd 1.3.0 or better"
10646 if ac_fn_cxx_try_compile
"$LINENO"; then :
10647 gcc_cv_header_zstd_h
=yes
10649 gcc_cv_header_zstd_h
=no
10651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10655 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10656 if test $gcc_cv_header_zstd_h = yes; then
10658 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10660 elif test "x$with_zstd" != x
; then
10661 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10664 # LTO can use zstd compression algorithm
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10668 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10669 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10670 $as_echo_n "(cached) " >&6
10672 ac_func_search_save_LIBS
=$LIBS
10673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10676 /* Override any GCC internal prototype to avoid an error.
10677 Use char because int might match the return type of a GCC
10678 builtin and then its argument prototype would still apply. */
10682 char ZSTD_compress ();
10686 return ZSTD_compress ();
10691 for ac_lib
in '' zstd
; do
10692 if test -z "$ac_lib"; then
10693 ac_res
="none required"
10696 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10698 if ac_fn_cxx_try_link
"$LINENO"; then :
10699 ac_cv_search_ZSTD_compress
=$ac_res
10701 rm -f core conftest.err conftest.
$ac_objext \
10703 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10707 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10710 ac_cv_search_ZSTD_compress
=no
10712 rm conftest.
$ac_ext
10713 LIBS
=$ac_func_search_save_LIBS
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10716 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10717 ac_res
=$ac_cv_search_ZSTD_compress
10718 if test "$ac_res" != no
; then :
10719 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10730 for ac_func
in times clock kill getrlimit setrlimit atoq \
10731 popen sysconf strsignal getrusage nl_langinfo \
10732 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10733 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
10735 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10736 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10737 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10738 cat >>confdefs.h
<<_ACEOF
10739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10746 if test x
$ac_cv_func_mbstowcs = xyes
; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10748 $as_echo_n "checking whether mbstowcs works... " >&6; }
10749 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10750 $as_echo_n "(cached) " >&6
10752 if test "$cross_compiling" = yes; then :
10753 gcc_cv_func_mbstowcs_works
=yes
10755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757 #include <stdlib.h>
10760 mbstowcs(0, "", 0);
10764 if ac_fn_cxx_try_run
"$LINENO"; then :
10765 gcc_cv_func_mbstowcs_works
=yes
10767 gcc_cv_func_mbstowcs_works
=no
10769 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10770 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10775 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10776 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10778 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10783 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10784 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10788 cat >>confdefs.h
<<_ACEOF
10789 #define ssize_t int
10794 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10795 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10799 cat >>confdefs.h
<<_ACEOF
10800 #define caddr_t char *
10805 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10807 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10809 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10815 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10816 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10817 gcc_header_sys_mman_h
=yes
10819 gcc_header_sys_mman_h
=no
10822 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10823 if test "x$ac_cv_func_mmap" = xyes
; then :
10829 if test "$gcc_header_sys_mman_h" != yes \
10830 ||
test "$gcc_func_mmap" != yes; then
10831 gcc_cv_func_mmap_file
=no
10832 gcc_cv_func_mmap_dev_zero
=no
10833 gcc_cv_func_mmap_anon
=no
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10836 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10837 if ${gcc_cv_func_mmap_file+:} false
; then :
10838 $as_echo_n "(cached) " >&6
10840 # Add a system to this blacklist if
10841 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10842 # memory area containing the same data that you'd get if you applied
10843 # read() to the same fd. The only system known to have a problem here
10844 # is VMS, where text files have record structure.
10847 gcc_cv_func_mmap_file
=no
;;
10849 gcc_cv_func_mmap_file
=yes;;
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10853 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10855 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10856 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10857 $as_echo_n "(cached) " >&6
10859 # Add a system to this blacklist if it has mmap() but /dev/zero
10860 # does not exist, or if mmapping /dev/zero does not give anonymous
10861 # zeroed pages with both the following properties:
10862 # 1. If you map N consecutive pages in with one call, and then
10863 # unmap any subset of those pages, the pages that were not
10864 # explicitly unmapped remain accessible.
10865 # 2. If you map two adjacent blocks of memory and then unmap them
10866 # both at once, they must both go away.
10867 # Systems known to be in this category are Windows (all variants),
10870 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10871 gcc_cv_func_mmap_dev_zero
=no
;;
10873 gcc_cv_func_mmap_dev_zero
=yes;;
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10877 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10879 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10881 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10882 if ${gcc_cv_decl_map_anon+:} false
; then :
10883 $as_echo_n "(cached) " >&6
10885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887 #include <sys/types.h>
10888 #include <sys/mman.h>
10889 #include <unistd.h>
10891 #ifndef MAP_ANONYMOUS
10892 #define MAP_ANONYMOUS MAP_ANON
10898 int n = MAP_ANONYMOUS;
10903 if ac_fn_cxx_try_compile
"$LINENO"; then :
10904 gcc_cv_decl_map_anon
=yes
10906 gcc_cv_decl_map_anon
=no
10908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10911 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10913 if test $gcc_cv_decl_map_anon = no
; then
10914 gcc_cv_func_mmap_anon
=no
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10917 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10918 if ${gcc_cv_func_mmap_anon+:} false
; then :
10919 $as_echo_n "(cached) " >&6
10921 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10922 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10923 # doesn't give anonymous zeroed pages with the same properties listed
10924 # above for use of /dev/zero.
10925 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10927 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10928 gcc_cv_func_mmap_anon
=no
;;
10930 gcc_cv_func_mmap_anon
=yes;;
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10934 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10938 if test $gcc_cv_func_mmap_file = yes; then
10940 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10943 if test $gcc_cv_func_mmap_dev_zero = yes; then
10945 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10948 if test $gcc_cv_func_mmap_anon = yes; then
10950 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10957 # Under VMS, vfork works very differently than on Unix. The standard test
10958 # won't work, and it isn't easily adaptable. It makes more sense to
10960 ac_cv_func_vfork_works
=yes
10963 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10964 if test "x$ac_cv_type_pid_t" = xyes
; then :
10968 cat >>confdefs.h
<<_ACEOF
10974 for ac_header
in vfork.h
10976 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10977 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10978 cat >>confdefs.h
<<_ACEOF
10979 #define HAVE_VFORK_H 1
10985 for ac_func
in fork vfork
10987 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10988 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10989 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10990 cat >>confdefs.h
<<_ACEOF
10991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10997 if test "x$ac_cv_func_fork" = xyes
; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10999 $as_echo_n "checking for working fork... " >&6; }
11000 if ${ac_cv_func_fork_works+:} false
; then :
11001 $as_echo_n "(cached) " >&6
11003 if test "$cross_compiling" = yes; then :
11004 ac_cv_func_fork_works
=cross
11006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 $ac_includes_default
11013 /* By Ruediger Kuhlmann. */
11014 return fork () < 0;
11020 if ac_fn_cxx_try_run
"$LINENO"; then :
11021 ac_cv_func_fork_works
=yes
11023 ac_cv_func_fork_works
=no
11025 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11026 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11031 $as_echo "$ac_cv_func_fork_works" >&6; }
11034 ac_cv_func_fork_works
=$ac_cv_func_fork
11036 if test "x$ac_cv_func_fork_works" = xcross
; then
11038 *-*-amigaos* |
*-*-msdosdjgpp*)
11039 # Override, as these systems have only a dummy fork() stub
11040 ac_cv_func_fork_works
=no
11043 ac_cv_func_fork_works
=yes
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11047 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11049 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11050 if test "x$ac_cv_func_vfork" = xyes
; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11052 $as_echo_n "checking for working vfork... " >&6; }
11053 if ${ac_cv_func_vfork_works+:} false
; then :
11054 $as_echo_n "(cached) " >&6
11056 if test "$cross_compiling" = yes; then :
11057 ac_cv_func_vfork_works
=cross
11059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 /* Thanks to Paul Eggert for this test. */
11062 $ac_includes_default
11063 #include <sys/wait.h>
11064 #ifdef HAVE_VFORK_H
11065 # include <vfork.h>
11067 /* On some sparc systems, changes by the child to local and incoming
11068 argument registers are propagated back to the parent. The compiler
11069 is told about this with #include <vfork.h>, but some compilers
11070 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11071 static variable whose address is put into a register that is
11072 clobbered by the vfork. */
11075 sparc_address_test (int arg)
11077 sparc_address_test (arg) int arg;
11080 static pid_t child;
11098 pid_t parent = getpid ();
11101 sparc_address_test (0);
11106 /* Here is another test for sparc vfork register problems. This
11107 test uses lots of local variables, at least as many local
11108 variables as main has allocated so far including compiler
11109 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11110 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11111 reuse the register of parent for one of the local variables,
11112 since it will think that parent can't possibly be used any more
11113 in this routine. Assigning to the local variable will thus
11114 munge parent in the parent process. */
11116 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11117 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11118 /* Convince the compiler that p..p7 are live; otherwise, it might
11119 use the same hardware register for all 8 local variables. */
11120 if (p != p1 || p != p2 || p != p3 || p != p4
11121 || p != p5 || p != p6 || p != p7)
11124 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11125 from child file descriptors. If the child closes a descriptor
11126 before it execs or exits, this munges the parent's descriptor
11127 as well. Test for this by closing stdout in the child. */
11128 _exit(close(fileno(stdout)) != 0);
11133 while (wait(&status) != child)
11136 /* Was there some problem with vforking? */
11139 /* Did the child fail? (This shouldn't happen.) */
11142 /* Did the vfork/compiler bug occur? */
11143 || parent != getpid()
11145 /* Did the file descriptor bug occur? */
11146 || fstat(fileno(stdout), &st) != 0
11151 if ac_fn_cxx_try_run
"$LINENO"; then :
11152 ac_cv_func_vfork_works
=yes
11154 ac_cv_func_vfork_works
=no
11156 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11157 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11162 $as_echo "$ac_cv_func_vfork_works" >&6; }
11165 if test "x$ac_cv_func_fork_works" = xcross
; then
11166 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11168 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11171 if test "x$ac_cv_func_vfork_works" = xyes
; then
11173 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11177 $as_echo "#define vfork fork" >>confdefs.h
11180 if test "x$ac_cv_func_fork_works" = xyes
; then
11182 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11188 if test "X$prefix" = "XNONE"; then
11189 acl_final_prefix
="$ac_default_prefix"
11191 acl_final_prefix
="$prefix"
11193 if test "X$exec_prefix" = "XNONE"; then
11194 acl_final_exec_prefix
='${prefix}'
11196 acl_final_exec_prefix
="$exec_prefix"
11198 acl_save_prefix
="$prefix"
11199 prefix
="$acl_final_prefix"
11200 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11201 prefix
="$acl_save_prefix"
11204 # Check whether --with-gnu-ld was given.
11205 if test "${with_gnu_ld+set}" = set; then :
11206 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11211 # Prepare PATH_SEPARATOR.
11212 # The user is always right.
11213 if test "${PATH_SEPARATOR+set}" != set; then
11214 echo "#! /bin/sh" >conf$$.sh
11215 echo "exit 0" >>conf$$.sh
11217 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11225 if test "$GCC" = yes; then
11226 # Check if gcc -print-prog-name=ld gives a path.
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11228 $as_echo_n "checking for ld used by GCC... " >&6; }
11231 # gcc leaves a trailing carriage return which upsets mingw
11232 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11234 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11237 # Accept absolute paths.
11238 [\\/]* |
[A-Za-z
]:[\\/]*)
11239 re_direlt
='/[^/][^/]*/\.\./'
11240 # Canonicalize the path of ld
11241 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11242 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11243 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11245 test -z "$LD" && LD
="$ac_prog"
11248 # If it fails, then pretend we aren't using GCC.
11252 # If it is relative, then search for the first ld in PATH.
11253 with_gnu_ld
=unknown
11256 elif test "$with_gnu_ld" = yes; then
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11258 $as_echo_n "checking for GNU ld... " >&6; }
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11261 $as_echo_n "checking for non-GNU ld... " >&6; }
11263 if ${acl_cv_path_LD+:} false
; then :
11264 $as_echo_n "(cached) " >&6
11266 if test -z "$LD"; then
11267 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11268 for ac_dir
in $PATH; do
11269 test -z "$ac_dir" && ac_dir
=.
11270 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11271 acl_cv_path_LD
="$ac_dir/$ac_prog"
11272 # Check to see if the program is GNU ld. I'd rather use --version,
11273 # but apparently some GNU ld's only accept -v.
11274 # Break only if it was the GNU/non-GNU ld that we prefer.
11275 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11276 test "$with_gnu_ld" != no
&& break
11278 test "$with_gnu_ld" != yes && break
11284 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11288 LD
="$acl_cv_path_LD"
11289 if test -n "$LD"; then
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11291 $as_echo "$LD" >&6; }
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11296 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11298 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11299 if ${acl_cv_prog_gnu_ld+:} false
; then :
11300 $as_echo_n "(cached) " >&6
11302 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11303 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11304 acl_cv_prog_gnu_ld
=yes
11306 acl_cv_prog_gnu_ld
=no
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11310 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11311 with_gnu_ld
=$acl_cv_prog_gnu_ld
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11316 $as_echo_n "checking for shared library run path origin... " >&6; }
11317 if ${acl_cv_rpath+:} false
; then :
11318 $as_echo_n "(cached) " >&6
11321 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11322 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11324 rm -f .
/conftest.sh
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11329 $as_echo "$acl_cv_rpath" >&6; }
11331 libext
="$acl_cv_libext"
11332 shlibext
="$acl_cv_shlibext"
11333 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11334 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11335 hardcode_direct
="$acl_cv_hardcode_direct"
11336 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11337 # Check whether --enable-rpath was given.
11338 if test "${enable_rpath+set}" = set; then :
11339 enableval
=$enable_rpath; :
11353 acl_save_prefix
="$prefix"
11354 prefix
="$acl_final_prefix"
11355 acl_save_exec_prefix
="$exec_prefix"
11356 exec_prefix
="$acl_final_exec_prefix"
11358 eval additional_includedir
=\"$includedir\"
11359 eval additional_libdir
=\"$libdir\"
11361 exec_prefix
="$acl_save_exec_prefix"
11362 prefix
="$acl_save_prefix"
11365 # Check whether --with-libiconv-prefix was given.
11366 if test "${with_libiconv_prefix+set}" = set; then :
11367 withval
=$with_libiconv_prefix;
11368 if test "X$withval" = "Xno"; then
11371 if test "X$withval" = "X"; then
11373 acl_save_prefix
="$prefix"
11374 prefix
="$acl_final_prefix"
11375 acl_save_exec_prefix
="$exec_prefix"
11376 exec_prefix
="$acl_final_exec_prefix"
11378 eval additional_includedir
=\"$includedir\"
11379 eval additional_libdir
=\"$libdir\"
11381 exec_prefix
="$acl_save_exec_prefix"
11382 prefix
="$acl_save_prefix"
11385 additional_includedir
="$withval/include"
11386 additional_libdir
="$withval/lib"
11393 # Check whether --with-libiconv-type was given.
11394 if test "${with_libiconv_type+set}" = set; then :
11395 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11397 with_libiconv_type
=auto
11400 lib_type
=`eval echo \$with_libiconv_type`
11407 names_already_handled
=
11408 names_next_round
='iconv '
11409 while test -n "$names_next_round"; do
11410 names_this_round
="$names_next_round"
11412 for name
in $names_this_round; do
11414 for n
in $names_already_handled; do
11415 if test "$n" = "$name"; then
11416 already_handled
=yes
11420 if test -z "$already_handled"; then
11421 names_already_handled
="$names_already_handled $name"
11422 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11423 eval value
=\"\
$HAVE_LIB$uppername\"
11424 if test -n "$value"; then
11425 if test "$value" = yes; then
11426 eval value
=\"\
$LIB$uppername\"
11427 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11428 eval value
=\"\
$LTLIB$uppername\"
11429 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11438 if test $use_additional = yes; then
11439 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11440 found_dir
="$additional_libdir"
11441 found_so
="$additional_libdir/lib$name.$shlibext"
11442 if test -f "$additional_libdir/lib$name.la"; then
11443 found_la
="$additional_libdir/lib$name.la"
11445 elif test x
$lib_type != xshared
; then
11446 if test -f "$additional_libdir/lib$name.$libext"; then
11447 found_dir
="$additional_libdir"
11448 found_a
="$additional_libdir/lib$name.$libext"
11449 if test -f "$additional_libdir/lib$name.la"; then
11450 found_la
="$additional_libdir/lib$name.la"
11455 if test "X$found_dir" = "X"; then
11456 for x
in $LDFLAGS $LTLIBICONV; do
11458 acl_save_prefix
="$prefix"
11459 prefix
="$acl_final_prefix"
11460 acl_save_exec_prefix
="$exec_prefix"
11461 exec_prefix
="$acl_final_exec_prefix"
11463 exec_prefix
="$acl_save_exec_prefix"
11464 prefix
="$acl_save_prefix"
11468 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11469 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11471 found_so
="$dir/lib$name.$shlibext"
11472 if test -f "$dir/lib$name.la"; then
11473 found_la
="$dir/lib$name.la"
11475 elif test x
$lib_type != xshared
; then
11476 if test -f "$dir/lib$name.$libext"; then
11478 found_a
="$dir/lib$name.$libext"
11479 if test -f "$dir/lib$name.la"; then
11480 found_la
="$dir/lib$name.la"
11486 if test "X$found_dir" != "X"; then
11491 if test "X$found_dir" != "X"; then
11492 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11493 if test "X$found_so" != "X"; then
11494 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11495 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11498 for x
in $ltrpathdirs; do
11499 if test "X$x" = "X$found_dir"; then
11504 if test -z "$haveit"; then
11505 ltrpathdirs
="$ltrpathdirs $found_dir"
11507 if test "$hardcode_direct" = yes; then
11508 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11510 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11511 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11513 for x
in $rpathdirs; do
11514 if test "X$x" = "X$found_dir"; then
11519 if test -z "$haveit"; then
11520 rpathdirs
="$rpathdirs $found_dir"
11524 for x
in $LDFLAGS $LIBICONV; do
11526 acl_save_prefix
="$prefix"
11527 prefix
="$acl_final_prefix"
11528 acl_save_exec_prefix
="$exec_prefix"
11529 exec_prefix
="$acl_final_exec_prefix"
11531 exec_prefix
="$acl_save_exec_prefix"
11532 prefix
="$acl_save_prefix"
11534 if test "X$x" = "X-L$found_dir"; then
11539 if test -z "$haveit"; then
11540 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11542 if test "$hardcode_minus_L" != no
; then
11543 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11545 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11551 if test "X$found_a" != "X"; then
11552 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11554 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11557 additional_includedir
=
11558 case "$found_dir" in
11560 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11561 additional_includedir
="$basedir/include"
11564 if test "X$additional_includedir" != "X"; then
11565 if test "X$additional_includedir" != "X/usr/include"; then
11567 if test "X$additional_includedir" = "X/usr/local/include"; then
11568 if test -n "$GCC"; then
11570 linux
*) haveit
=yes;;
11574 if test -z "$haveit"; then
11575 for x
in $CPPFLAGS $INCICONV; do
11577 acl_save_prefix
="$prefix"
11578 prefix
="$acl_final_prefix"
11579 acl_save_exec_prefix
="$exec_prefix"
11580 exec_prefix
="$acl_final_exec_prefix"
11582 exec_prefix
="$acl_save_exec_prefix"
11583 prefix
="$acl_save_prefix"
11585 if test "X$x" = "X-I$additional_includedir"; then
11590 if test -z "$haveit"; then
11591 if test -d "$additional_includedir"; then
11592 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11598 if test -n "$found_la"; then
11599 save_libdir
="$libdir"
11600 case "$found_la" in
11601 */* |
*\\*) .
"$found_la" ;;
11602 *) .
"./$found_la" ;;
11604 libdir
="$save_libdir"
11605 for dep
in $dependency_libs; do
11608 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11609 if test "X$additional_libdir" != "X/usr/lib"; then
11611 if test "X$additional_libdir" = "X/usr/local/lib"; then
11612 if test -n "$GCC"; then
11614 linux
*) haveit
=yes;;
11618 if test -z "$haveit"; then
11620 for x
in $LDFLAGS $LIBICONV; do
11622 acl_save_prefix
="$prefix"
11623 prefix
="$acl_final_prefix"
11624 acl_save_exec_prefix
="$exec_prefix"
11625 exec_prefix
="$acl_final_exec_prefix"
11627 exec_prefix
="$acl_save_exec_prefix"
11628 prefix
="$acl_save_prefix"
11630 if test "X$x" = "X-L$additional_libdir"; then
11635 if test -z "$haveit"; then
11636 if test -d "$additional_libdir"; then
11637 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11641 for x
in $LDFLAGS $LTLIBICONV; do
11643 acl_save_prefix
="$prefix"
11644 prefix
="$acl_final_prefix"
11645 acl_save_exec_prefix
="$exec_prefix"
11646 exec_prefix
="$acl_final_exec_prefix"
11648 exec_prefix
="$acl_save_exec_prefix"
11649 prefix
="$acl_save_prefix"
11651 if test "X$x" = "X-L$additional_libdir"; then
11656 if test -z "$haveit"; then
11657 if test -d "$additional_libdir"; then
11658 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11665 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11666 if test "$enable_rpath" != no
; then
11668 for x
in $rpathdirs; do
11669 if test "X$x" = "X$dir"; then
11674 if test -z "$haveit"; then
11675 rpathdirs
="$rpathdirs $dir"
11678 for x
in $ltrpathdirs; do
11679 if test "X$x" = "X$dir"; then
11684 if test -z "$haveit"; then
11685 ltrpathdirs
="$ltrpathdirs $dir"
11690 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11693 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11696 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11697 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11703 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11704 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11705 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11707 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11708 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11715 if test "X$rpathdirs" != "X"; then
11716 if test -n "$hardcode_libdir_separator"; then
11718 for found_dir
in $rpathdirs; do
11719 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11721 acl_save_libdir
="$libdir"
11723 eval flag
=\"$hardcode_libdir_flag_spec\"
11724 libdir
="$acl_save_libdir"
11725 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11727 for found_dir
in $rpathdirs; do
11728 acl_save_libdir
="$libdir"
11729 libdir
="$found_dir"
11730 eval flag
=\"$hardcode_libdir_flag_spec\"
11731 libdir
="$acl_save_libdir"
11732 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11736 if test "X$ltrpathdirs" != "X"; then
11737 for found_dir
in $ltrpathdirs; do
11738 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11749 $as_echo_n "checking for iconv... " >&6; }
11750 if ${am_cv_func_iconv+:} false
; then :
11751 $as_echo_n "(cached) " >&6
11754 am_cv_func_iconv
="no, consider installing GNU libiconv"
11756 am_save_CPPFLAGS
="$CPPFLAGS"
11757 CPPFLAGS
="$CPPFLAGS $INCICONV"
11758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 #include <stdlib.h>
11765 iconv_t cd = iconv_open("","");
11766 iconv(cd,NULL,NULL,NULL,NULL);
11772 if ac_fn_cxx_try_link
"$LINENO"; then :
11773 am_cv_func_iconv
=yes
11775 rm -f core conftest.err conftest.
$ac_objext \
11776 conftest
$ac_exeext conftest.
$ac_ext
11777 CPPFLAGS
="$am_save_CPPFLAGS"
11779 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11780 for _libs
in .libs _libs
; do
11781 am_save_CPPFLAGS
="$CPPFLAGS"
11782 am_save_LIBS
="$LIBS"
11783 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11784 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
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 INCICONV
="-I../libiconv/include"
11801 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11802 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11803 am_cv_lib_iconv
=yes
11804 am_cv_func_iconv
=yes
11806 rm -f core conftest.err conftest.
$ac_objext \
11807 conftest
$ac_exeext conftest.
$ac_ext
11808 CPPFLAGS
="$am_save_CPPFLAGS"
11809 LIBS
="$am_save_LIBS"
11810 if test "$am_cv_func_iconv" = "yes"; then
11816 if test "$am_cv_func_iconv" != yes; then
11817 am_save_CPPFLAGS
="$CPPFLAGS"
11818 am_save_LIBS
="$LIBS"
11819 CPPFLAGS
="$CPPFLAGS $INCICONV"
11820 LIBS
="$LIBS $LIBICONV"
11821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11823 #include <stdlib.h>
11828 iconv_t cd = iconv_open("","");
11829 iconv(cd,NULL,NULL,NULL,NULL);
11835 if ac_fn_cxx_try_link
"$LINENO"; then :
11836 am_cv_lib_iconv
=yes
11837 am_cv_func_iconv
=yes
11839 rm -f core conftest.err conftest.
$ac_objext \
11840 conftest
$ac_exeext conftest.
$ac_ext
11841 CPPFLAGS
="$am_save_CPPFLAGS"
11842 LIBS
="$am_save_LIBS"
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11847 $as_echo "$am_cv_func_iconv" >&6; }
11848 if test "$am_cv_func_iconv" = yes; then
11850 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11853 if test "$am_cv_lib_iconv" = yes; then
11855 for element
in $INCICONV; do
11857 for x
in $CPPFLAGS; do
11859 acl_save_prefix
="$prefix"
11860 prefix
="$acl_final_prefix"
11861 acl_save_exec_prefix
="$exec_prefix"
11862 exec_prefix
="$acl_final_exec_prefix"
11864 exec_prefix
="$acl_save_exec_prefix"
11865 prefix
="$acl_save_prefix"
11867 if test "X$x" = "X$element"; then
11872 if test -z "$haveit"; then
11873 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11878 $as_echo_n "checking how to link with libiconv... " >&6; }
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11880 $as_echo "$LIBICONV" >&6; }
11888 if test "$am_cv_func_iconv" = yes; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11890 $as_echo_n "checking for iconv declaration... " >&6; }
11891 if ${am_cv_proto_iconv+:} false
; then :
11892 $as_echo_n "(cached) " >&6
11895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11898 #include <stdlib.h>
11904 #if defined(__STDC__) || defined(__cplusplus)
11905 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11918 if ac_fn_cxx_try_compile
"$LINENO"; then :
11919 am_cv_proto_iconv_arg1
=""
11921 am_cv_proto_iconv_arg1
="const"
11923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11924 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);"
11927 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11929 }$am_cv_proto_iconv" >&5
11931 }$am_cv_proto_iconv" >&6; }
11933 cat >>confdefs.h
<<_ACEOF
11934 #define ICONV_CONST $am_cv_proto_iconv_arg1
11940 # Until we have in-tree GNU iconv:
11942 if test -f "$LTLIBICONV"; then
11943 LIBICONV_DEP
=$LTLIBICONV
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11949 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11950 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11951 $as_echo_n "(cached) " >&6
11953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11955 #include <locale.h>
11964 if ac_fn_cxx_try_link
"$LINENO"; then :
11965 am_cv_val_LC_MESSAGES
=yes
11967 am_cv_val_LC_MESSAGES
=no
11969 rm -f core conftest.err conftest.
$ac_objext \
11970 conftest
$ac_exeext conftest.
$ac_ext
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11973 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11974 if test $am_cv_val_LC_MESSAGES = yes; then
11976 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11983 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11984 if ${am_cv_langinfo_codeset+:} false
; then :
11985 $as_echo_n "(cached) " >&6
11987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989 #include <langinfo.h>
11993 char* cs = nl_langinfo(CODESET);
11998 if ac_fn_cxx_try_link
"$LINENO"; then :
11999 am_cv_langinfo_codeset
=yes
12001 am_cv_langinfo_codeset
=no
12003 rm -f core conftest.err conftest.
$ac_objext \
12004 conftest
$ac_exeext conftest.
$ac_ext
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12008 $as_echo "$am_cv_langinfo_codeset" >&6; }
12009 if test $am_cv_langinfo_codeset = yes; then
12011 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12016 # We will need to find libiberty.h and ansidecl.h
12017 saved_CFLAGS
="$CFLAGS"
12018 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12019 saved_CXXFLAGS
="$CXXFLAGS"
12020 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12022 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12023 # normal autoconf function for these. But force definition of
12024 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12025 # basename handling in libiberty.h.
12026 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12027 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12028 #undef HAVE_DECL_BASENAME
12029 #define HAVE_DECL_BASENAME 1
12030 #include \"ansidecl.h\"
12031 #include \"system.h\"
12033 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12039 cat >>confdefs.h
<<_ACEOF
12040 #define HAVE_DECL_BASENAME $ac_have_decl
12042 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12043 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12044 #undef HAVE_DECL_BASENAME
12045 #define HAVE_DECL_BASENAME 1
12046 #include \"ansidecl.h\"
12047 #include \"system.h\"
12049 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12055 cat >>confdefs.h
<<_ACEOF
12056 #define HAVE_DECL_STRSTR $ac_have_decl
12060 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12061 madvise stpcpy strnlen strsignal strverscmp \
12062 strtol strtoul strtoll strtoull setenv unsetenv \
12063 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12064 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
12066 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12068 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12069 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12070 $as_echo_n "(cached) " >&6
12072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12075 #define $ac_tr_decl 1
12077 #include "ansidecl.h"
12078 #include "system.h"
12084 char *(*pfn) = (char *(*)) $ac_func ;
12090 if ac_fn_cxx_try_compile
"$LINENO"; then :
12091 eval "gcc_cv_have_decl_$ac_func=yes"
12093 eval "gcc_cv_have_decl_$ac_func=no"
12095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12098 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12100 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12101 #define $ac_tr_decl 1
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12107 #define $ac_tr_decl 0
12115 for ac_func
in getrlimit setrlimit getrusage
12117 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12119 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12120 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12121 $as_echo_n "(cached) " >&6
12123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12126 #define $ac_tr_decl 1
12128 #include "ansidecl.h"
12129 #include "system.h"
12130 #ifdef HAVE_SYS_RESOURCE_H
12131 #include <sys/resource.h>
12139 char *(*pfn) = (char *(*)) $ac_func ;
12145 if ac_fn_cxx_try_compile
"$LINENO"; then :
12146 eval "gcc_cv_have_decl_$ac_func=yes"
12148 eval "gcc_cv_have_decl_$ac_func=no"
12150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12153 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12155 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12156 #define $ac_tr_decl 1
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12162 #define $ac_tr_decl 0
12170 for ac_func
in mallinfo mallinfo2
12172 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12174 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12175 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12176 $as_echo_n "(cached) " >&6
12178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12181 #define $ac_tr_decl 1
12183 #include "ansidecl.h"
12184 #include "system.h"
12185 #ifdef HAVE_MALLOC_H
12186 #include <malloc.h>
12194 char *(*pfn) = (char *(*)) $ac_func ;
12200 if ac_fn_cxx_try_compile
"$LINENO"; then :
12201 eval "gcc_cv_have_decl_$ac_func=yes"
12203 eval "gcc_cv_have_decl_$ac_func=no"
12205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12208 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12210 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12211 #define $ac_tr_decl 1
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12217 #define $ac_tr_decl 0
12225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12228 #include "ansidecl.h"
12229 #include "system.h"
12230 #ifdef HAVE_SYS_RESOURCE_H
12231 #include <sys/resource.h>
12242 if ac_fn_cxx_try_compile
"$LINENO"; then :
12246 $as_echo "#define rlim_t long" >>confdefs.h
12249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12251 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12252 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12253 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12254 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12255 for ac_func
in ldgetname
12257 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12259 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12260 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12261 $as_echo_n "(cached) " >&6
12263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12266 #define $ac_tr_decl 1
12268 #include "ansidecl.h"
12269 #include "system.h"
12270 #ifdef HAVE_LDFCN_H
12281 char *(*pfn) = (char *(*)) $ac_func ;
12287 if ac_fn_cxx_try_compile
"$LINENO"; then :
12288 eval "gcc_cv_have_decl_$ac_func=yes"
12290 eval "gcc_cv_have_decl_$ac_func=no"
12292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12295 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12297 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12298 #define $ac_tr_decl 1
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12304 #define $ac_tr_decl 0
12312 for ac_func
in times
12314 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12316 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12317 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12318 $as_echo_n "(cached) " >&6
12320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 #define $ac_tr_decl 1
12325 #include "ansidecl.h"
12326 #include "system.h"
12327 #ifdef HAVE_SYS_TIMES_H
12328 #include <sys/times.h>
12336 char *(*pfn) = (char *(*)) $ac_func ;
12342 if ac_fn_cxx_try_compile
"$LINENO"; then :
12343 eval "gcc_cv_have_decl_$ac_func=yes"
12345 eval "gcc_cv_have_decl_$ac_func=no"
12347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12350 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12352 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12353 #define $ac_tr_decl 1
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12359 #define $ac_tr_decl 0
12367 for ac_func
in sigaltstack
12369 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12371 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12372 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12373 $as_echo_n "(cached) " >&6
12375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12378 #define $ac_tr_decl 1
12380 #include "ansidecl.h"
12381 #include "system.h"
12382 #include <signal.h>
12389 char *(*pfn) = (char *(*)) $ac_func ;
12395 if ac_fn_cxx_try_compile
"$LINENO"; then :
12396 eval "gcc_cv_have_decl_$ac_func=yes"
12398 eval "gcc_cv_have_decl_$ac_func=no"
12400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12403 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12405 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12406 #define $ac_tr_decl 1
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12412 #define $ac_tr_decl 0
12420 # More time-related stuff.
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12422 $as_echo_n "checking for struct tms... " >&6; }
12423 if ${ac_cv_struct_tms+:} false
; then :
12424 $as_echo_n "(cached) " >&6
12427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12430 #include "ansidecl.h"
12431 #include "system.h"
12432 #ifdef HAVE_SYS_TIMES_H
12433 #include <sys/times.h>
12444 if ac_fn_cxx_try_compile
"$LINENO"; then :
12445 ac_cv_struct_tms
=yes
12447 ac_cv_struct_tms
=no
12449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12452 $as_echo "$ac_cv_struct_tms" >&6; }
12453 if test $ac_cv_struct_tms = yes; then
12455 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12459 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12460 # revisit after autoconf 2.50.
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12462 $as_echo_n "checking for clock_t... " >&6; }
12463 if ${gcc_cv_type_clock_t+:} false
; then :
12464 $as_echo_n "(cached) " >&6
12467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12470 #include "ansidecl.h"
12471 #include "system.h"
12481 if ac_fn_cxx_try_compile
"$LINENO"; then :
12482 gcc_cv_type_clock_t
=yes
12484 gcc_cv_type_clock_t
=no
12486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12489 $as_echo "$gcc_cv_type_clock_t" >&6; }
12490 if test $gcc_cv_type_clock_t = yes; then
12492 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12496 # Check if F_SETLKW is supported by fcntl.
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12498 $as_echo_n "checking for F_SETLKW... " >&6; }
12499 if ${ac_cv_f_setlkw+:} false
; then :
12500 $as_echo_n "(cached) " >&6
12503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12516 return fcntl (1, F_SETLKW, &fl);
12521 if ac_fn_cxx_try_compile
"$LINENO"; then :
12526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12529 $as_echo "$ac_cv_f_setlkw" >&6; }
12530 if test $ac_cv_f_setlkw = yes; then
12532 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12536 # Check if O_CLOEXEC is defined by fcntl
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12538 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12539 if ${ac_cv_o_cloexec+:} false
; then :
12540 $as_echo_n "(cached) " >&6
12543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12551 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12556 if ac_fn_cxx_try_compile
"$LINENO"; then :
12557 ac_cv_o_cloexec
=yes
12561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12564 $as_echo "$ac_cv_o_cloexec" >&6; }
12565 if test $ac_cv_o_cloexec = yes; then
12567 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12571 # Check if O_NONBLOCK is defined by fcntl
12572 for ac_header
in fcntl.h
12574 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12575 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12576 cat >>confdefs.h
<<_ACEOF
12577 #define HAVE_FCNTL_H 1
12583 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12585 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12589 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12591 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12596 # C++ Modules would like some networking features to provide the mapping
12597 # server. You can still use modules without them though.
12598 # The following network-related checks could probably do with some
12599 # Windows and other non-linux defenses and checking.
12601 # Local socket connectivity wants AF_UNIX networking
12602 # Check for AF_UNIX networking
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12604 $as_echo_n "checking for AF_UNIX... " >&6; }
12605 if ${ac_cv_af_unix+:} false
; then :
12606 $as_echo_n "(cached) " >&6
12609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12612 #include <sys/types.h>
12613 #include <sys/socket.h>
12614 #include <sys/un.h>
12615 #include <netinet/in.h>
12621 un.sun_family = AF_UNSPEC;
12622 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12623 connect (fd, (sockaddr *)&un, sizeof (un));
12628 if ac_fn_cxx_try_compile
"$LINENO"; then :
12633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12636 $as_echo "$ac_cv_af_unix" >&6; }
12637 if test $ac_cv_af_unix = yes; then
12639 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12643 # Remote socket connectivity wants AF_INET6 networking
12644 # Check for AF_INET6 networking
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12646 $as_echo_n "checking for AF_INET6... " >&6; }
12647 if ${ac_cv_af_inet6+:} false
; then :
12648 $as_echo_n "(cached) " >&6
12651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12654 #include <sys/types.h>
12655 #include <sys/socket.h>
12656 #include <netinet/in.h>
12663 in6.sin6_family = AF_UNSPEC;
12664 struct addrinfo *addrs = 0;
12665 struct addrinfo hints;
12666 hints.ai_flags = 0;
12667 hints.ai_family = AF_INET6;
12668 hints.ai_socktype = SOCK_STREAM;
12669 hints.ai_protocol = 0;
12670 hints.ai_canonname = 0;
12673 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12674 const char *str = gai_strerror (e);
12675 freeaddrinfo (addrs);
12676 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12677 connect (fd, (sockaddr *)&in6, sizeof (in6));
12682 if ac_fn_cxx_try_compile
"$LINENO"; then :
12687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12690 $as_echo "$ac_cv_af_inet6" >&6; }
12691 if test $ac_cv_af_inet6 = yes; then
12693 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12697 # Check if _LK_LOCK is supported by _locking
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12699 $as_echo_n "checking for _LK_LOCK... " >&6; }
12700 if ${ac_cv_lk_lock+:} false
; then :
12701 $as_echo_n "(cached) " >&6
12704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12708 #include <sys/locking.h>
12714 return _locking (fd, _LK_LOCK, 0);
12719 if ac_fn_cxx_try_compile
"$LINENO"; then :
12724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12727 $as_echo "$ac_cv_lk_lock" >&6; }
12728 if test $ac_cv_lk_lock = yes; then
12730 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12734 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12735 CFLAGS
="$saved_CFLAGS"
12736 CXXFLAGS
="$saved_CXXFLAGS"
12738 # mkdir takes a single argument on some systems.
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12740 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12741 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12742 $as_echo_n "(cached) " >&6
12744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h. */
12747 #include <sys/types.h>
12748 #ifdef HAVE_SYS_STAT_H
12749 # include <sys/stat.h>
12751 #ifdef HAVE_UNISTD_H
12752 # include <unistd.h>
12754 #ifdef HAVE_DIRECT_H
12755 # include <direct.h>
12765 if ac_fn_cxx_try_compile
"$LINENO"; then :
12766 gcc_cv_mkdir_takes_one_arg
=no
12768 gcc_cv_mkdir_takes_one_arg
=yes
12770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12773 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12774 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12776 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12787 # With Setjmp/Longjmp based exception handling.
12788 # Check whether --enable-sjlj-exceptions was given.
12789 if test "${enable_sjlj_exceptions+set}" = set; then :
12790 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
12794 force_sjlj_exceptions
=yes
12798 force_sjlj_exceptions
=no
12803 if test $force_sjlj_exceptions = yes; then
12804 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12806 cat >>confdefs.h
<<_ACEOF
12807 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12812 # --------------------------------------------------------
12813 # Build, host, and target specific configuration fragments
12814 # --------------------------------------------------------
12816 # Collect build-machine-specific information.
12817 .
${srcdir}/config.build ||
exit 1
12819 # Collect host-machine-specific information.
12820 .
${srcdir}/config.
host ||
exit 1
12824 # Collect target-machine-specific information.
12825 .
${srcdir}/config.gcc ||
exit 1
12827 extra_objs
="${host_extra_objs} ${extra_objs}"
12828 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12830 # Default the target-machine variables that were not explicitly set.
12831 if test x
"$tm_file" = x
12832 then tm_file
=$cpu_type/$cpu_type.h
; fi
12834 if test x
"$extra_headers" = x
12835 then extra_headers
=; fi
12837 if test x
$md_file = x
12838 then md_file
=$cpu_type/$cpu_type.md
; fi
12840 if test x
$out_file = x
12841 then out_file
=$cpu_type/$cpu_type.cc
; fi
12843 if test x
"$tmake_file" = x
12844 then tmake_file
=$cpu_type/t-
$cpu_type
12847 # Support --enable-initfini-array.
12848 if test x
$enable_initfini_array != xno
; then
12849 tm_file
="${tm_file} initfini-array.h"
12852 if test x
"$dwarf2" = xyes
12853 then tm_file
="$tm_file tm-dwarf2.h"
12856 # Say what files are being used for the output code and MD file.
12857 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12858 echo "Using \`$srcdir/config/$md_file' as machine description file."
12860 # If any of the xm_file variables contain nonexistent files, warn
12861 # about them and drop them.
12864 for x
in $build_xm_file; do
12865 if test -f $srcdir/config
/$x
12867 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12868 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12871 build_xm_file
="$bx"
12874 for x
in $host_xm_file; do
12875 if test -f $srcdir/config
/$x
12877 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12878 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12884 for x
in $xm_file; do
12885 if test -f $srcdir/config
/$x
12887 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12888 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12894 for f
in $tm_file; do
12897 if test $count = ax
; then
12898 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12900 echo "Using the following target machine macro files:"
12901 for f
in $tm_file; do
12902 echo " $srcdir/config/$f"
12906 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12908 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12912 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12914 cat >>confdefs.h
<<_ACEOF
12915 #define HAVE_GNU_LD $gnu_ld_bool
12919 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12921 cat >>confdefs.h
<<_ACEOF
12922 #define HAVE_GNU_AS $gnu_as_bool
12927 for f
in $host_xm_file; do
12930 if test $count = a
; then
12932 elif test $count = ax
; then
12933 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12935 echo "Using the following host machine macro files:"
12936 for f
in $host_xm_file; do
12937 echo " $srcdir/config/$f"
12940 echo "Using ${out_host_hook_obj} for host machine hooks."
12942 if test "$host_xm_file" != "$build_xm_file"; then
12944 for f
in $build_xm_file; do
12947 if test $count = a
; then
12949 elif test $count = ax
; then
12950 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12952 echo "Using the following build machine macro files:"
12953 for f
in $build_xm_file; do
12954 echo " $srcdir/config/$f"
12959 if test -n "$configured_native_system_header_dir"; then
12960 native_system_header_dir
=$configured_native_system_header_dir
12962 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12966 powerpc
*-*-darwin*)
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12968 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12969 if ${gcc_cv_mcontext_underscores+:} false
; then :
12970 $as_echo_n "(cached) " >&6
12972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12975 #include <sys/cdefs.h>
12976 #include <sys/signal.h>
12977 #include <ucontext.h>
12978 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12981 if ac_fn_cxx_try_compile
"$LINENO"; then :
12982 gcc_cv_mcontext_underscores
=no
12984 gcc_cv_mcontext_underscores
=yes
12986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12989 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12990 if test $gcc_cv_mcontext_underscores = yes; then
12992 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13002 # Check if a valid thread package
13003 case ${enable_threads} in
13006 target_thread_file
='single'
13010 target_thread_file
='single'
13012 aix | dce | lynx | mipssde | posix | rtems | \
13013 single | tpf | vxworks | win32 | mcf
)
13014 target_thread_file
=${enable_threads}
13017 echo "${enable_threads} is an unknown thread package" 1>&2
13022 if test x
${thread_file} = x
; then
13023 # No thread file set by target-specific clauses in config.gcc,
13024 # so use file chosen by default logic above
13025 thread_file
=${target_thread_file}
13033 if test x
$enable___cxa_atexit = xyes || \
13034 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13035 if test x
$host = x
$target; then
13037 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13038 # keyed to flag_use_cxa_atexit
13046 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13047 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13050 echo "__cxa_atexit can't be enabled on this target"
13056 # We can't check for __cxa_atexit when building a cross, so assume
13060 if test x
$use_cxa_atexit = xyes
; then
13062 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13067 # Look for a file containing extra machine modes.
13068 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13069 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13072 cat >>confdefs.h
<<_ACEOF
13073 #define EXTRA_MODES_FILE "config/$extra_modes"
13078 # Convert extra_options into a form suitable for Makefile use.
13081 for f
in $extra_options; do
13082 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13083 all_opt_files
="$all_opt_files $srcdir/config/$f"
13087 # auto-host.h is the file containing items generated by autoconf and is
13088 # the first file included by config.h.
13089 # If host=build, it is correct to have bconfig include auto-host.h
13090 # as well. If host!=build, we are in error and need to do more
13091 # work to find out the build config parameters.
13092 if test x
$host = x
$build
13094 build_auto
=auto-host.h
13095 HAVE_AUTO_BUILD
='# '
13097 # We create a subdir, then run autoconf in the subdir.
13098 # To prevent recursion we set host and build for the new
13099 # invocation of configure to the build for this invocation
13106 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13107 *) realsrcdir
=..
/${srcdir};;
13109 # Clearing GMPINC is necessary to prevent host headers being
13110 # used by the build compiler. Defining GENERATOR_FILE stops
13111 # system.h from including gmp.h.
13112 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13113 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13114 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13115 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13116 ${realsrcdir}/configure \
13117 --enable-languages=${enable_languages-all} \
13118 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13119 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13120 --target=$target_alias --host=$build_alias \
13121 --build=$build_alias ||
exit # retaining $tempdir
13123 # We just finished tests for the build machine, so rename
13124 # the file auto-build.h in the gcc directory.
13125 mv auto-host.h ..
/auto-build.h
13128 build_auto
=auto-build.h
13134 tm_file
="${tm_file} defaults.h"
13135 tm_p_file
="${tm_p_file} tm-preds.h"
13136 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13137 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13138 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13139 # put this back in temporarily.
13140 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13146 # Compile in configure arguments.
13147 if test -f configargs.h
; then
13148 # Being re-configured.
13149 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13150 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13151 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13152 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13155 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13158 # Double all backslashes and backslash all quotes to turn
13159 # gcc_config_arguments into a C string.
13160 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13161 $gcc_config_arguments
13163 gcc_config_arguments_str
=`cat conftest.out`
13166 cat > configargs.h
<<EOF
13167 /* Generated automatically. */
13168 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13169 static const char thread_model[] = "$thread_file";
13171 static const struct {
13172 const char *name, *value;
13173 } configure_default_options[] = $configure_default_options;
13176 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13177 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13178 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13179 if test -f $srcdir/REVISION
; then
13180 gcc_REVISION
=`cat $srcdir/REVISION`
13184 cat > plugin-version.h
<<EOF
13185 #include "configargs.h"
13187 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13188 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13189 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13190 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13192 static char basever[] = "$gcc_BASEVER";
13193 static char datestamp[] = "$gcc_DATESTAMP";
13194 static char devphase[] = "$gcc_DEVPHASE";
13195 static char revision[] = "$gcc_REVISION";
13197 /* FIXME plugins: We should make the version information more precise.
13198 One way to do is to add a checksum. */
13200 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13201 devphase, revision,
13202 configuration_arguments};
13205 # Determine what GCC version number to use in filesystem paths.
13207 get_gcc_base_ver
="cat"
13209 # Check whether --with-gcc-major-version-only was given.
13210 if test "${with_gcc_major_version_only+set}" = set; then :
13211 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13212 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13220 # Internationalization
13221 # If we haven't got the data from the intl directory,
13222 # assume NLS is disabled.
13231 if test -f ..
/intl
/config.intl
; then
13232 . ..
/intl
/config.intl
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13235 $as_echo_n "checking whether NLS is requested... " >&6; }
13236 if test x
"$USE_NLS" != xyes
; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13241 $as_echo "yes" >&6; }
13243 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13247 $as_echo_n "checking for catalogs to be installed... " >&6; }
13248 # Look for .po and .gmo files in the source directory.
13251 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13252 # If there aren't any .gmo files the shell will give us the
13253 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13255 case "$cat" in *\
**)
13258 # The quadruple backslash is collapsed to a double backslash
13259 # by the backticks, then collapsed again by the double quotes,
13260 # leaving us with one backslash in the sed expression (right
13261 # before the dot that mustn't act as a wildcard).
13262 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13263 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13264 # The user is allowed to set LINGUAS to a list of languages to
13265 # install catalogs for. If it's empty that means "all of them."
13266 if test "x$LINGUAS" = x
; then
13267 CATALOGS
="$CATALOGS $cat"
13268 XLINGUAS
="$XLINGUAS $lang"
13270 case "$LINGUAS" in *$lang*)
13271 CATALOGS
="$CATALOGS $cat"
13272 XLINGUAS
="$XLINGUAS $lang"
13277 LINGUAS
="$XLINGUAS"
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13279 $as_echo "$LINGUAS" >&6; }
13292 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13293 # -liconv on the link line twice.
13294 case "$LIBINTL" in *$LIBICONV*)
13298 # Check whether --enable-secureplt was given.
13299 if test "${enable_secureplt+set}" = set; then :
13300 enableval
=$enable_secureplt;
13304 # Check whether --enable-mingw-wildcard was given.
13305 if test "${enable_mingw_wildcard+set}" = set; then :
13306 enableval
=$enable_mingw_wildcard;
13308 enable_mingw_wildcard
=platform
13311 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13313 cat >>confdefs.h
<<_ACEOF
13314 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13319 # Check whether --enable-large-address-aware was given.
13320 if test "${enable_large_address_aware+set}" = set; then :
13321 enableval
=$enable_large_address_aware;
13324 if test x
"$enable_large_address_aware" = xyes
; then :
13326 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13330 # Check whether --enable-leading-mingw64-underscores was given.
13331 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13332 enableval
=$enable_leading_mingw64_underscores;
13335 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13337 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13341 # Check whether --enable-cld was given.
13342 if test "${enable_cld+set}" = set; then :
13343 enableval
=$enable_cld;
13349 # Check whether --enable-frame-pointer was given.
13350 if test "${enable_frame_pointer+set}" = set; then :
13351 enableval
=$enable_frame_pointer;
13355 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13356 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13357 enable_frame_pointer
=no
13360 enable_frame_pointer
=yes
13368 i
[34567]86-*-* | x86_64-
*-*)
13369 if test "x$enable_cld" = xyes
; then
13370 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13372 if test "x$enable_frame_pointer" = xyes
; then
13373 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13378 # Windows32 Registry support for specifying GCC installation paths.
13379 # Check whether --enable-win32-registry was given.
13380 if test "${enable_win32_registry+set}" = set; then :
13381 enableval
=$enable_win32_registry;
13386 win32 | pe | cygwin
* | mingw32
*)
13387 if test "x$enable_win32_registry" != xno
; then
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13389 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13390 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13391 $as_echo_n "(cached) " >&6
13393 ac_func_search_save_LIBS
=$LIBS
13394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13397 /* Override any GCC internal prototype to avoid an error.
13398 Use char because int might match the return type of a GCC
13399 builtin and then its argument prototype would still apply. */
13403 char RegOpenKeyExA ();
13407 return RegOpenKeyExA ();
13412 for ac_lib
in '' advapi32
; do
13413 if test -z "$ac_lib"; then
13414 ac_res
="none required"
13417 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13419 if ac_fn_cxx_try_link
"$LINENO"; then :
13420 ac_cv_search_RegOpenKeyExA
=$ac_res
13422 rm -f core conftest.err conftest.
$ac_objext \
13424 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13428 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13431 ac_cv_search_RegOpenKeyExA
=no
13433 rm conftest.
$ac_ext
13434 LIBS
=$ac_func_search_save_LIBS
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13437 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13438 ac_res
=$ac_cv_search_RegOpenKeyExA
13439 if test "$ac_res" != no
; then :
13440 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13443 enable_win32_registry
=no
13448 if test "x$enable_win32_registry" != xno
; then
13450 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13453 if test "x$enable_win32_registry" != xyes \
13454 && test "x$enable_win32_registry" != x
; then
13456 cat >>confdefs.h
<<_ACEOF
13457 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13465 # Get an absolute path to the GCC top-level source directory
13466 holddir
=`${PWDCMD-pwd}`
13468 topdir
=`${PWDCMD-pwd}`
13471 # Conditionalize the makefile for this host machine.
13473 for f
in ${host_xmake_file}
13475 if test -f ${srcdir}/config
/$f
13477 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13481 # Conditionalize the makefile for this target machine.
13483 for f
in ${tmake_file}
13485 if test -f ${srcdir}/config
/$f
13487 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13490 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13492 out_object_file
=`basename $out_file .cc`.o
13493 common_out_object_file
=`basename $common_out_file .cc`.o
13495 tm_file_list
="options.h"
13496 tm_include_list
="options.h insn-constants.h"
13497 for f
in $tm_file; do
13500 f
=`echo $f | sed 's/^..//'`
13501 tm_file_list
="${tm_file_list} $f"
13502 tm_include_list
="${tm_include_list} $f"
13505 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13506 tm_include_list
="${tm_include_list} $f"
13509 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13510 tm_include_list
="${tm_include_list} config/$f"
13517 for f
in $tm_p_file; do
13520 tm_p_file_list
="${tm_p_file_list} $f"
13521 tm_p_include_list
="${tm_p_include_list} $f"
13524 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13525 tm_p_include_list
="${tm_p_include_list} config/$f"
13531 for f
in $tm_d_file; do
13534 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13535 tm_d_include_list
="${tm_d_include_list} config/$f"
13542 for f
in $xm_file; do
13545 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13546 xm_include_list
="${xm_include_list} $f"
13549 xm_file_list
="${xm_file_list} $f"
13550 xm_include_list
="${xm_include_list} $f"
13553 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13554 xm_include_list
="${xm_include_list} config/$f"
13560 host_xm_include_list
=
13561 for f
in $host_xm_file; do
13564 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13565 host_xm_include_list
="${host_xm_include_list} $f"
13568 host_xm_file_list
="${host_xm_file_list} $f"
13569 host_xm_include_list
="${host_xm_include_list} $f"
13572 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13573 host_xm_include_list
="${host_xm_include_list} config/$f"
13578 build_xm_file_list
=
13579 for f
in $build_xm_file; do
13582 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13583 build_xm_include_list
="${build_xm_include_list} $f"
13585 auto-build.h | auto-host.h
)
13586 build_xm_file_list
="${build_xm_file_list} $f"
13587 build_xm_include_list
="${build_xm_include_list} $f"
13590 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13591 build_xm_include_list
="${build_xm_include_list} config/$f"
13596 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13597 # cross-compiler which does not use the native headers and libraries.
13598 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13601 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13602 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13604 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13605 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13606 if test "x$with_build_sysroot" != x
; then
13607 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13609 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13612 if test x
$host != x
$target
13614 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13616 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13617 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13618 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13621 if test "x$with_build_sysroot" != "x"; then
13622 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13623 elif test "x$with_sysroot" = x
; then
13624 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13625 elif test "x$with_sysroot" = xyes
; then
13626 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13628 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13631 target_header_dir
=${native_system_header_dir}
13634 # If this is a cross-compiler that does not
13635 # have its own set of headers then define
13638 # If this is using newlib, without having the headers available now,
13639 # then define inhibit_libc in LIBGCC2_CFLAGS.
13640 # This prevents libgcc2 from containing any code which requires libc
13642 : ${inhibit_libc=false}
13643 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13644 test x
$with_newlib = xyes
; } &&
13645 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13650 # When building gcc with a cross-compiler, we need to adjust things so
13651 # that the generator programs are still built with the native compiler.
13652 # Also, we cannot run fixincludes.
13654 # These are the normal (build=host) settings:
13655 CC_FOR_BUILD
='$(CC)'
13656 CXX_FOR_BUILD
='$(CXX)'
13657 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13658 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13659 BUILD_LDFLAGS
='$(LDFLAGS)'
13660 STMP_FIXINC
=stmp-fixinc
13662 # And these apply if build != host, or we are generating coverage data
13663 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13665 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13666 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13667 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13671 if test x
$enable_fixincludes = xno
;
13676 # Expand extra_headers to include complete path.
13677 # This substitutes for lots of t-* files.
13678 extra_headers_list
=
13679 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13680 for file in ${extra_headers} ; do
13681 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13684 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13685 if test x
"$use_gcc_tgmath" = xyes
13686 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13689 # Define collect2 in Makefile.
13690 case $host_can_use_collect2 in
13692 *) collect2
='collect2$(exeext)' ;;
13696 # Add a definition of USE_COLLECT2 if system wants one.
13697 case $use_collect2 in
13698 no
) use_collect2
= ;;
13701 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13702 xm_defines
="${xm_defines} USE_COLLECT2"
13703 case $host_can_use_collect2 in
13705 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13712 cat >>confdefs.h
<<_ACEOF
13713 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13717 # ---------------------------
13718 # Assembler & linker features
13719 # ---------------------------
13721 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13722 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13723 # However when ld-new is first executed from the build tree, libtool will
13724 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13725 # to the build tree. While doing this we need to use the previous-stage
13726 # linker, or we have an infinite loop. The presence of a shell script as
13727 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13728 # the gcc/collect-ld script. So we need to know how libtool works, or
13729 # exec-tool will fail.
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13735 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13740 macro_version
='2.2.7a'
13741 macro_revision
='1.3134'
13755 ltmain
="$ac_aux_dir/ltmain.sh"
13757 # Backslashify metacharacters that are still active within
13758 # double-quoted strings.
13759 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13761 # Same as above, but do not quote variable references.
13762 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13764 # Sed substitution to delay expansion of an escaped shell variable in a
13765 # double_quote_subst'ed string.
13766 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13768 # Sed substitution to delay expansion of an escaped single quote.
13769 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13771 # Sed substitution to avoid accidental globbing in evaled expressions
13772 no_glob_subst
='s/\*/\\\*/g'
13774 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13775 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13776 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13779 $as_echo_n "checking how to print strings... " >&6; }
13780 # Test print first, because it will be a builtin if present.
13781 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13782 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13784 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13787 # Use this function as a fallback that always works.
13788 func_fallback_echo ()
13790 eval 'cat <<_LTECHO_EOF
13794 ECHO='func_fallback_echo
'
13797 # func_echo_all arg...
13798 # Invoke $ECHO with all args, space-separated.
13805 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13806 $as_echo "printf" >&6; } ;;
13807 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13808 $as_echo "print -r" >&6; } ;;
13809 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13810 $as_echo "cat" >&6; } ;;
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13827 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13828 if ${ac_cv_path_SED+:} false; then :
13829 $as_echo_n "(cached) " >&6
13831 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13832 for ac_i in 1 2 3 4 5 6 7; do
13833 ac_script="$ac_script$as_nl$ac_script"
13835 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13836 { ac_script=; unset ac_script;}
13837 if test -z "$SED"; then
13838 ac_path_SED_found=false
13839 # Loop through the user's path and
test for each of PROGNAME-LIST
13840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13841 for as_dir
in $PATH
13844 test -z "$as_dir" && as_dir
=.
13845 for ac_prog
in sed gsed
; do
13846 for ac_exec_ext
in '' $ac_executable_extensions; do
13847 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13848 as_fn_executable_p
"$ac_path_SED" ||
continue
13849 # Check for GNU ac_path_SED and select it if it is found.
13850 # Check for GNU $ac_path_SED
13851 case `"$ac_path_SED" --version 2>&1` in
13853 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13856 $as_echo_n 0123456789 >"conftest.in"
13859 cat "conftest.in" "conftest.in" >"conftest.tmp"
13860 mv "conftest.tmp" "conftest.in"
13861 cp "conftest.in" "conftest.nl"
13862 $as_echo '' >> "conftest.nl"
13863 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13864 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13865 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13866 if test $ac_count -gt ${ac_path_SED_max-0}; then
13867 # Best one so far, save it but keep looking for a better one
13868 ac_cv_path_SED
="$ac_path_SED"
13869 ac_path_SED_max
=$ac_count
13871 # 10*(2^10) chars as input seems more than enough
13872 test $ac_count -gt 10 && break
13874 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13877 $ac_path_SED_found && break 3
13882 if test -z "$ac_cv_path_SED"; then
13883 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13886 ac_cv_path_SED
=$SED
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13891 $as_echo "$ac_cv_path_SED" >&6; }
13892 SED
="$ac_cv_path_SED"
13895 test -z "$SED" && SED
=sed
13896 Xsed
="$SED -e 1s/^X//"
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13909 $as_echo_n "checking for fgrep... " >&6; }
13910 if ${ac_cv_path_FGREP+:} false
; then :
13911 $as_echo_n "(cached) " >&6
13913 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13914 then ac_cv_path_FGREP
="$GREP -F"
13916 if test -z "$FGREP"; then
13917 ac_path_FGREP_found
=false
13918 # Loop through the user's path and test for each of PROGNAME-LIST
13919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13920 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13923 test -z "$as_dir" && as_dir
=.
13924 for ac_prog
in fgrep
; do
13925 for ac_exec_ext
in '' $ac_executable_extensions; do
13926 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13927 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13928 # Check for GNU ac_path_FGREP and select it if it is found.
13929 # Check for GNU $ac_path_FGREP
13930 case `"$ac_path_FGREP" --version 2>&1` in
13932 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13935 $as_echo_n 0123456789 >"conftest.in"
13938 cat "conftest.in" "conftest.in" >"conftest.tmp"
13939 mv "conftest.tmp" "conftest.in"
13940 cp "conftest.in" "conftest.nl"
13941 $as_echo 'FGREP' >> "conftest.nl"
13942 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13943 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13944 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13946 # Best one so far, save it but keep looking for a better one
13947 ac_cv_path_FGREP
="$ac_path_FGREP"
13948 ac_path_FGREP_max
=$ac_count
13950 # 10*(2^10) chars as input seems more than enough
13951 test $ac_count -gt 10 && break
13953 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13956 $ac_path_FGREP_found && break 3
13961 if test -z "$ac_cv_path_FGREP"; then
13962 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13965 ac_cv_path_FGREP
=$FGREP
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13971 $as_echo "$ac_cv_path_FGREP" >&6; }
13972 FGREP
="$ac_cv_path_FGREP"
13975 test -z "$GREP" && GREP
=grep
13995 # Check whether --with-gnu-ld was given.
13996 if test "${with_gnu_ld+set}" = set; then :
13997 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
14003 if test "$GCC" = yes; then
14004 # Check if gcc -print-prog-name=ld gives a path.
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14006 $as_echo_n "checking for ld used by $CC... " >&6; }
14009 # gcc leaves a trailing carriage return which upsets mingw
14010 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14012 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14015 # Accept absolute paths.
14017 re_direlt
='/[^/][^/]*/\.\./'
14018 # Canonicalize the pathname of ld
14019 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14020 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14021 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14023 test -z "$LD" && LD
="$ac_prog"
14026 # If it fails, then pretend we aren't using GCC.
14030 # If it is relative, then search for the first ld in PATH.
14031 with_gnu_ld
=unknown
14034 elif test "$with_gnu_ld" = yes; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14036 $as_echo_n "checking for GNU ld... " >&6; }
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14039 $as_echo_n "checking for non-GNU ld... " >&6; }
14041 if ${lt_cv_path_LD+:} false
; then :
14042 $as_echo_n "(cached) " >&6
14044 if test -z "$LD"; then
14045 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14046 for ac_dir
in $PATH; do
14048 test -z "$ac_dir" && ac_dir
=.
14049 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14050 lt_cv_path_LD
="$ac_dir/$ac_prog"
14051 # Check to see if the program is GNU ld. I'd rather use --version,
14052 # but apparently some variants of GNU ld only accept -v.
14053 # Break only if it was the GNU/non-GNU ld that we prefer.
14054 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14055 *GNU
* |
*'with BFD'*)
14056 test "$with_gnu_ld" != no
&& break
14059 test "$with_gnu_ld" != yes && break
14066 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14070 LD
="$lt_cv_path_LD"
14071 if test -n "$LD"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14073 $as_echo "$LD" >&6; }
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14078 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14080 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14081 if ${lt_cv_prog_gnu_ld+:} false
; then :
14082 $as_echo_n "(cached) " >&6
14084 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14085 case `$LD -v 2>&1 </dev/null` in
14086 *GNU
* |
*'with BFD'*)
14087 lt_cv_prog_gnu_ld
=yes
14090 lt_cv_prog_gnu_ld
=no
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14095 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14096 with_gnu_ld
=$lt_cv_prog_gnu_ld
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14107 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14108 if ${lt_cv_path_NM+:} false
; then :
14109 $as_echo_n "(cached) " >&6
14111 if test -n "$NM"; then
14112 # Let the user override the test.
14113 lt_cv_path_NM
="$NM"
14115 lt_nm_to_check
="${ac_tool_prefix}nm"
14116 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14117 lt_nm_to_check
="$lt_nm_to_check nm"
14119 for lt_tmp_nm
in $lt_nm_to_check; do
14120 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14121 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14123 test -z "$ac_dir" && ac_dir
=.
14124 tmp_nm
="$ac_dir/$lt_tmp_nm"
14125 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14126 # Check to see if the nm accepts a BSD-compat flag.
14127 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14128 # nm: unknown option "B" ignored
14129 # Tru64's nm complains that /dev/null is an invalid object file
14130 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14131 */dev
/null
* |
*'Invalid file or object type'*)
14132 lt_cv_path_NM
="$tmp_nm -B"
14136 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14138 lt_cv_path_NM
="$tmp_nm -p"
14142 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14143 continue # so that we can try to find one that supports BSD flags
14152 : ${lt_cv_path_NM=no}
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14156 $as_echo "$lt_cv_path_NM" >&6; }
14157 if test "$lt_cv_path_NM" != "no"; then
14158 NM
="$lt_cv_path_NM"
14160 # Didn't find any BSD compatible name lister, look for dumpbin.
14161 if test -n "$DUMPBIN"; then :
14162 # Let the user override the test.
14164 if test -n "$ac_tool_prefix"; then
14165 for ac_prog
in dumpbin
"link -dump"
14167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14168 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14170 $as_echo_n "checking for $ac_word... " >&6; }
14171 if ${ac_cv_prog_DUMPBIN+:} false
; then :
14172 $as_echo_n "(cached) " >&6
14174 if test -n "$DUMPBIN"; then
14175 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14178 for as_dir
in $PATH
14181 test -z "$as_dir" && as_dir
=.
14182 for ac_exec_ext
in '' $ac_executable_extensions; do
14183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14184 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 DUMPBIN
=$ac_cv_prog_DUMPBIN
14195 if test -n "$DUMPBIN"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14197 $as_echo "$DUMPBIN" >&6; }
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14204 test -n "$DUMPBIN" && break
14207 if test -z "$DUMPBIN"; then
14208 ac_ct_DUMPBIN
=$DUMPBIN
14209 for ac_prog
in dumpbin
"link -dump"
14211 # Extract the first word of "$ac_prog", so it can be a program name with args.
14212 set dummy
$ac_prog; ac_word
=$2
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14214 $as_echo_n "checking for $ac_word... " >&6; }
14215 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
14216 $as_echo_n "(cached) " >&6
14218 if test -n "$ac_ct_DUMPBIN"; then
14219 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14222 for as_dir
in $PATH
14225 test -z "$as_dir" && as_dir
=.
14226 for ac_exec_ext
in '' $ac_executable_extensions; do
14227 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14228 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14238 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14239 if test -n "$ac_ct_DUMPBIN"; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14241 $as_echo "$ac_ct_DUMPBIN" >&6; }
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14244 $as_echo "no" >&6; }
14248 test -n "$ac_ct_DUMPBIN" && break
14251 if test "x$ac_ct_DUMPBIN" = x
; then
14254 case $cross_compiling:$ac_tool_warned in
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14258 ac_tool_warned
=yes ;;
14260 DUMPBIN
=$ac_ct_DUMPBIN
14264 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14266 DUMPBIN
="$DUMPBIN -symbols"
14274 if test "$DUMPBIN" != ":"; then
14278 test -z "$NM" && NM
=nm
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14286 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14287 if ${lt_cv_nm_interface+:} false
; then :
14288 $as_echo_n "(cached) " >&6
14290 lt_cv_nm_interface
="BSD nm"
14291 echo "int some_variable = 0;" > conftest.
$ac_ext
14292 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14293 (eval "$ac_compile" 2>conftest.err
)
14294 cat conftest.err
>&5
14295 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14296 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14297 cat conftest.err
>&5
14298 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14299 cat conftest.out
>&5
14300 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14301 lt_cv_nm_interface
="MS dumpbin"
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14306 $as_echo "$lt_cv_nm_interface" >&6; }
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14309 $as_echo_n "checking whether ln -s works... " >&6; }
14311 if test "$LN_S" = "ln -s"; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14313 $as_echo "yes" >&6; }
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14316 $as_echo "no, using $LN_S" >&6; }
14319 # find the maximum length of command line arguments
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14321 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14322 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14323 $as_echo_n "(cached) " >&6
14330 # On DJGPP, this test can blow up pretty badly due to problems in libc
14331 # (any single argument exceeding 2000 bytes causes a buffer overrun
14332 # during glob expansion). Even if it were fixed, the result of this
14333 # check would be larger than it should be.
14334 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14338 # Under GNU Hurd, this test is not required because there is
14339 # no limit to the length of command line arguments.
14340 # Libtool will interpret -1 as no limit whatsoever
14341 lt_cv_sys_max_cmd_len
=-1;
14344 cygwin
* | mingw
* | cegcc
*)
14345 # On Win9x/ME, this test blows up -- it succeeds, but takes
14346 # about 5 minutes as the teststring grows exponentially.
14347 # Worse, since 9x/ME are not pre-emptively multitasking,
14348 # you end up with a "frozen" computer, even though with patience
14349 # the test eventually succeeds (with a max line length of 256k).
14350 # Instead, let's just punt: use the minimum linelength reported by
14351 # all of the supported platforms: 8192 (on NT/2K/XP).
14352 lt_cv_sys_max_cmd_len
=8192;
14356 # On MiNT this can take a long time and run out of memory.
14357 lt_cv_sys_max_cmd_len
=8192;
14361 # On AmigaOS with pdksh, this test takes hours, literally.
14362 # So we just punt and use a minimum line length of 8192.
14363 lt_cv_sys_max_cmd_len
=8192;
14366 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14367 # This has been around since 386BSD, at least. Likely further.
14368 if test -x /sbin
/sysctl
; then
14369 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14370 elif test -x /usr
/sbin
/sysctl
; then
14371 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14373 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14375 # And add a safety zone
14376 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14377 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14381 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14382 lt_cv_sys_max_cmd_len
=196608
14386 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14387 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14388 # nice to cause kernel panics so lets avoid the loop below.
14389 # First set a reasonable default.
14390 lt_cv_sys_max_cmd_len
=16384
14392 if test -x /sbin
/sysconfig
; then
14393 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14394 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14399 lt_cv_sys_max_cmd_len
=102400
14401 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14402 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14403 if test -n "$kargmax"; then
14404 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14406 lt_cv_sys_max_cmd_len
=32768
14410 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14411 if test -n "$lt_cv_sys_max_cmd_len"; then
14412 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14413 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14415 # Make teststring a little bigger before we do anything with it.
14416 # a 1K string should be a reasonable start.
14417 for i
in 1 2 3 4 5 6 7 8 ; do
14418 teststring
=$teststring$teststring
14420 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14421 # If test is not a shell built-in, we'll probably end up computing a
14422 # maximum length that is only half of the actual maximum length, but
14424 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14425 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14426 test $i != 17 # 1/2 MB should be enough
14429 teststring
=$teststring$teststring
14431 # Only check the string length outside the loop.
14432 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14434 # Add a significant safety factor because C++ compilers can tack on
14435 # massive amounts of additional arguments before passing them to the
14436 # linker. It appears as though 1/2 is a usable value.
14437 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14444 if test -n $lt_cv_sys_max_cmd_len ; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14446 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14449 $as_echo "none" >&6; }
14451 max_cmd_len
=$lt_cv_sys_max_cmd_len
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14463 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14464 # Try some XSI features
14466 ( _lt_dummy
="a/b/c"
14467 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14469 && eval 'test $(( 1 + 1 )) -eq 2 \
14470 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14473 $as_echo "$xsi_shell" >&6; }
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14477 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14479 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14481 && lt_shell_append=yes
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14483 $as_echo "$lt_shell_append" >&6; }
14486 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14496 # test EBCDIC or ASCII
14497 case `echo X|tr X '\101'` in
14498 A) # ASCII based system
14499 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14500 lt_SP2NL='tr \040 \012'
14501 lt_NL2SP='tr \015\012 \040\040'
14503 *) # EBCDIC based system
14504 lt_SP2NL='tr \100 \n'
14505 lt_NL2SP='tr \r\n \100\100'
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14518 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14519 if ${lt_cv_ld_reload_flag+:} false; then :
14520 $as_echo_n "(cached
) " >&6
14522 lt_cv_ld_reload_flag='-r'
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14525 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14526 reload_flag=$lt_cv_ld_reload_flag
14527 case $reload_flag in
14529 *) reload_flag=" $reload_flag" ;;
14531 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14534 if test "$GCC" = yes; then
14535 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14537 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14550 if test -n "$ac_tool_prefix"; then
14551 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14552 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14554 $as_echo_n "checking
for $ac_word...
" >&6; }
14555 if ${ac_cv_prog_OBJDUMP+:} false; then :
14556 $as_echo_n "(cached
) " >&6
14558 if test -n "$OBJDUMP"; then
14559 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14562 for as_dir in $PATH
14565 test -z "$as_dir" && as_dir=.
14566 for ac_exec_ext in '' $ac_executable_extensions; do
14567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14568 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14569 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14578 OBJDUMP=$ac_cv_prog_OBJDUMP
14579 if test -n "$OBJDUMP"; then
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14581 $as_echo "$OBJDUMP" >&6; }
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14584 $as_echo "no
" >&6; }
14589 if test -z "$ac_cv_prog_OBJDUMP"; then
14590 ac_ct_OBJDUMP=$OBJDUMP
14591 # Extract the first word of "objdump
", so it can be a program name with args.
14592 set dummy objdump; ac_word=$2
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14594 $as_echo_n "checking
for $ac_word...
" >&6; }
14595 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14596 $as_echo_n "(cached
) " >&6
14598 if test -n "$ac_ct_OBJDUMP"; then
14599 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $PATH
14605 test -z "$as_dir" && as_dir=.
14606 for ac_exec_ext in '' $ac_executable_extensions; do
14607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14608 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14609 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14618 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14619 if test -n "$ac_ct_OBJDUMP"; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14621 $as_echo "$ac_ct_OBJDUMP" >&6; }
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14624 $as_echo "no
" >&6; }
14627 if test "x
$ac_ct_OBJDUMP" = x; then
14630 case $cross_compiling:$ac_tool_warned in
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14633 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14634 ac_tool_warned=yes ;;
14636 OBJDUMP=$ac_ct_OBJDUMP
14639 OBJDUMP="$ac_cv_prog_OBJDUMP"
14642 test -z "$OBJDUMP" && OBJDUMP=objdump
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14653 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14654 if ${lt_cv_deplibs_check_method+:} false; then :
14655 $as_echo_n "(cached
) " >&6
14657 lt_cv_file_magic_cmd='$MAGIC_CMD'
14658 lt_cv_file_magic_test_file=
14659 lt_cv_deplibs_check_method='unknown'
14660 # Need to set the preceding variable on all platforms that support
14661 # interlibrary dependencies.
14662 # 'none' -- dependencies not supported.
14663 # `unknown' -- same as none, but documents that we really don't know.
14664 # 'pass_all' -- all dependencies passed with no checks.
14665 # 'test_compile' -- check by making test program.
14666 # 'file_magic [[regex]]' -- check by looking for files in library path
14667 # which responds to the $file_magic_cmd with a given extended regex.
14668 # If you have `file' or equivalent on your system and you're not sure
14669 # whether `pass_all' will *always* work, you probably want this one.
14673 lt_cv_deplibs_check_method=pass_all
14677 lt_cv_deplibs_check_method=pass_all
14681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14682 lt_cv_file_magic_cmd='/usr/bin/file -L'
14683 lt_cv_file_magic_test_file=/shlib/libc.so
14687 # func_win32_libid is a shell function defined in ltmain.sh
14688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14689 lt_cv_file_magic_cmd='func_win32_libid'
14693 # Base MSYS/MinGW do not provide the 'file' command needed by
14694 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14695 # unless we find 'file', for example because we are cross-compiling.
14696 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14697 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14698 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14699 lt_cv_file_magic_cmd='func_win32_libid'
14701 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14702 lt_cv_file_magic_cmd='$OBJDUMP -f'
14707 # use the weaker test based on 'objdump'. See mingw*.
14708 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14709 lt_cv_file_magic_cmd='$OBJDUMP -f'
14712 darwin* | rhapsody*)
14713 lt_cv_deplibs_check_method=pass_all
14716 freebsd* | dragonfly*)
14717 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14720 # Not sure whether the presence of OpenBSD here was a mistake.
14721 # Let's accept both of them until this is cleared up.
14722 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14723 lt_cv_file_magic_cmd=/usr/bin/file
14724 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14728 lt_cv_deplibs_check_method=pass_all
14733 lt_cv_deplibs_check_method=pass_all
14737 lt_cv_deplibs_check_method=pass_all
14740 hpux10.20* | hpux11*)
14741 lt_cv_file_magic_cmd=/usr/bin/file
14744 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14745 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14748 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]'
14749 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14752 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14753 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14759 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14763 irix5* | irix6* | nonstopux*)
14765 *-32|*"-32 ") libmagic=32-bit;;
14766 *-n32|*"-n32 ") libmagic=N32;;
14767 *-64|*"-64 ") libmagic=64-bit;;
14768 *) libmagic=never-match;;
14770 lt_cv_deplibs_check_method=pass_all
14773 # This must be Linux ELF.
14774 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14775 lt_cv_deplibs_check_method=pass_all
14779 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14782 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14788 lt_cv_file_magic_cmd=/usr/bin/file
14789 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14793 lt_cv_deplibs_check_method=pass_all
14797 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14804 osf3* | osf4* | osf5*)
14805 lt_cv_deplibs_check_method=pass_all
14809 lt_cv_deplibs_check_method=pass_all
14813 lt_cv_deplibs_check_method=pass_all
14816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14817 lt_cv_deplibs_check_method=pass_all
14821 case $host_vendor in
14823 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]'
14824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14827 lt_cv_deplibs_check_method=pass_all
14830 lt_cv_file_magic_cmd='/bin/file'
14831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14834 lt_cv_file_magic_cmd='/bin/file'
14835 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14836 lt_cv_file_magic_test_file=/lib/libc.so
14839 lt_cv_deplibs_check_method=pass_all
14842 lt_cv_deplibs_check_method=pass_all
14848 lt_cv_deplibs_check_method=pass_all
14851 # Assume VxWorks cross toolchains are built on Linux, possibly
14852 # as canadian for Windows hosts.
14853 lt_cv_deplibs_check_method=pass_all
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14859 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14860 file_magic_cmd=$lt_cv_file_magic_cmd
14861 deplibs_check_method=$lt_cv_deplibs_check_method
14862 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14875 if test -n "$ac_tool_prefix"; then
14876 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14877 set dummy ${ac_tool_prefix}ar; ac_word=$2
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14879 $as_echo_n "checking
for $ac_word...
" >&6; }
14880 if ${ac_cv_prog_AR+:} false; then :
14881 $as_echo_n "(cached
) " >&6
14883 if test -n "$AR"; then
14884 ac_cv_prog_AR="$AR" # Let the user override the test.
14886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14887 for as_dir in $PATH
14890 test -z "$as_dir" && as_dir=.
14891 for ac_exec_ext in '' $ac_executable_extensions; do
14892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14893 ac_cv_prog_AR="${ac_tool_prefix}ar"
14894 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14904 if test -n "$AR"; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14906 $as_echo "$AR" >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14909 $as_echo "no
" >&6; }
14914 if test -z "$ac_cv_prog_AR"; then
14916 # Extract the first word of "ar", so it can be a program name with args.
14917 set dummy ar; ac_word=$2
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14919 $as_echo_n "checking
for $ac_word...
" >&6; }
14920 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14921 $as_echo_n "(cached
) " >&6
14923 if test -n "$ac_ct_AR"; then
14924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14927 for as_dir in $PATH
14930 test -z "$as_dir" && as_dir=.
14931 for ac_exec_ext in '' $ac_executable_extensions; do
14932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14933 ac_cv_prog_ac_ct_AR="ar"
14934 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14944 if test -n "$ac_ct_AR"; then
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14946 $as_echo "$ac_ct_AR" >&6; }
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14949 $as_echo "no
" >&6; }
14952 if test "x
$ac_ct_AR" = x; then
14955 case $cross_compiling:$ac_tool_warned in
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14958 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14959 ac_tool_warned=yes ;;
14964 AR="$ac_cv_prog_AR"
14967 test -z "$AR" && AR=ar
14968 test -z "$AR_FLAGS" && AR_FLAGS=cru
14980 if test -n "$ac_tool_prefix"; then
14981 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14982 set dummy ${ac_tool_prefix}strip; ac_word=$2
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14984 $as_echo_n "checking
for $ac_word...
" >&6; }
14985 if ${ac_cv_prog_STRIP+:} false; then :
14986 $as_echo_n "(cached
) " >&6
14988 if test -n "$STRIP"; then
14989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14992 for as_dir in $PATH
14995 test -z "$as_dir" && as_dir=.
14996 for ac_exec_ext in '' $ac_executable_extensions; do
14997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14998 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14999 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15008 STRIP=$ac_cv_prog_STRIP
15009 if test -n "$STRIP"; then
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
15011 $as_echo "$STRIP" >&6; }
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15014 $as_echo "no
" >&6; }
15019 if test -z "$ac_cv_prog_STRIP"; then
15021 # Extract the first word of "strip
", so it can be a program name with args.
15022 set dummy strip; ac_word=$2
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15024 $as_echo_n "checking
for $ac_word...
" >&6; }
15025 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15026 $as_echo_n "(cached
) " >&6
15028 if test -n "$ac_ct_STRIP"; then
15029 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15032 for as_dir in $PATH
15035 test -z "$as_dir" && as_dir=.
15036 for ac_exec_ext in '' $ac_executable_extensions; do
15037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15038 ac_cv_prog_ac_ct_STRIP="strip
"
15039 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15048 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15049 if test -n "$ac_ct_STRIP"; then
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
15051 $as_echo "$ac_ct_STRIP" >&6; }
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15054 $as_echo "no
" >&6; }
15057 if test "x
$ac_ct_STRIP" = x; then
15060 case $cross_compiling:$ac_tool_warned in
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15063 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15064 ac_tool_warned=yes ;;
15069 STRIP="$ac_cv_prog_STRIP"
15072 test -z "$STRIP" && STRIP=:
15079 if test -n "$ac_tool_prefix"; then
15080 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15081 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15083 $as_echo_n "checking
for $ac_word...
" >&6; }
15084 if ${ac_cv_prog_RANLIB+:} false; then :
15085 $as_echo_n "(cached
) " >&6
15087 if test -n "$RANLIB"; then
15088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15091 for as_dir in $PATH
15094 test -z "$as_dir" && as_dir=.
15095 for ac_exec_ext in '' $ac_executable_extensions; do
15096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15098 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15107 RANLIB=$ac_cv_prog_RANLIB
15108 if test -n "$RANLIB"; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
15110 $as_echo "$RANLIB" >&6; }
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15113 $as_echo "no
" >&6; }
15118 if test -z "$ac_cv_prog_RANLIB"; then
15119 ac_ct_RANLIB=$RANLIB
15120 # Extract the first word of "ranlib
", so it can be a program name with args.
15121 set dummy ranlib; ac_word=$2
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15123 $as_echo_n "checking
for $ac_word...
" >&6; }
15124 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15125 $as_echo_n "(cached
) " >&6
15127 if test -n "$ac_ct_RANLIB"; then
15128 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15131 for as_dir in $PATH
15134 test -z "$as_dir" && as_dir=.
15135 for ac_exec_ext in '' $ac_executable_extensions; do
15136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15137 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15138 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15147 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15148 if test -n "$ac_ct_RANLIB"; then
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
15150 $as_echo "$ac_ct_RANLIB" >&6; }
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15153 $as_echo "no
" >&6; }
15156 if test "x
$ac_ct_RANLIB" = x; then
15159 case $cross_compiling:$ac_tool_warned in
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15162 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15163 ac_tool_warned=yes ;;
15165 RANLIB=$ac_ct_RANLIB
15168 RANLIB="$ac_cv_prog_RANLIB"
15171 test -z "$RANLIB" && RANLIB=:
15178 # Determine commands to create old-style static archives.
15179 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15180 old_postinstall_cmds='chmod 644 $oldlib'
15181 old_postuninstall_cmds=
15183 if test -n "$RANLIB"; then
15186 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15189 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15192 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15197 lock_old_archive_extraction=yes ;;
15199 lock_old_archive_extraction=no ;;
15240 # If no C compiler was specified, use CC.
15243 # If no C compiler flags were specified, use CFLAGS.
15244 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15246 # Allow CC to be a program name with arguments.
15250 # Check for command to grab the raw symbol name followed by C symbol from nm.
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15252 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15253 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15254 $as_echo_n "(cached
) " >&6
15257 # These are sane defaults that work on at least a few old systems.
15258 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15260 # Character class describing NM global symbol codes.
15261 symcode='[BCDEGRST]'
15263 # Regexp to match symbols that can be accessed directly from C.
15264 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15266 # Define system-specific variables.
15271 cygwin* | mingw* | pw32* | cegcc*)
15272 symcode='[ABCDGISTW]'
15275 if test "$host_cpu" = ia64; then
15276 symcode='[ABCDEGRST]'
15279 irix* | nonstopux*)
15280 symcode='[BCDEGRST]'
15283 symcode='[BCDEGQRST]'
15294 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15302 # If we're using GNU nm, then use its standard symbol codes.
15303 case `$NM -V 2>&1` in
15304 *GNU* | *'with BFD'*)
15305 symcode='[ABCDGIRSTW]' ;;
15308 # Transform an extracted symbol line into a proper C declaration.
15309 # Some systems (esp. on ia64) link data and code symbols differently,
15310 # so use this general approach.
15311 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15313 # Transform an extracted symbol line into symbol name and symbol address
15314 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15315 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'"
15317 # Handle CRLF in mingw tool chain
15321 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15325 # Try without a prefix underscore, then with it.
15326 for ac_symprfx in "" "_
"; do
15328 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15329 symxfrm="\\1 $ac_symprfx\\2 \\2"
15331 # Write the raw and C identifiers.
15332 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15333 # Fake it for dumpbin and say T for any non-static function
15334 # and D for any global variable.
15335 # Also find C++ and __fastcall symbols from MSVC++,
15336 # which start with @ or ?.
15337 lt_cv_sys_global_symbol_pipe="$AWK '"\
15338 " {last_section=section; section=\$ 3};"\
15339 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15340 " \$ 0!~/External *\|/{next};"\
15341 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15342 " {if(hide[section]) next};"\
15343 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15344 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15345 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15346 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15347 " ' prfx
=^
$ac_symprfx"
15349 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15352 # Check to see that the pipe works correctly.
15356 cat > conftest.$ac_ext <<_LT_EOF
15361 void nm_test_func(void);
15362 void nm_test_func(void){}
15366 int main(){nm_test_var='a';nm_test_func();return(0);}
15369 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15370 (eval $ac_compile) 2>&5
15372 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15373 test $ac_status = 0; }; then
15374 # Now try to grab the symbols.
15376 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15377 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15379 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15380 test $ac_status = 0; } && test -s "$nlist"; then
15381 # Try sorting and uniquifying the output.
15382 if sort "$nlist" | uniq > "$nlist"T; then
15383 mv -f "$nlist"T "$nlist"
15388 # Make sure that we snagged all the symbols we need.
15389 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15390 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15391 cat <<_LT_EOF > conftest.$ac_ext
15397 # Now generate the symbol file.
15398 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15400 cat <<_LT_EOF >> conftest.$ac_ext
15402 /* The mapping between symbol names and symbols. */
15407 lt__PROGRAM__LTX_preloaded_symbols[] =
15409 { "@PROGRAM@
", (void *) 0 },
15411 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15412 cat <<\_LT_EOF >> conftest.$ac_ext
15416 /* This works around a problem in FreeBSD linker */
15417 #ifdef FREEBSD_WORKAROUND
15418 static const void *lt_preloaded_setup() {
15419 return lt__PROGRAM__LTX_preloaded_symbols;
15427 # Now try linking the two files.
15428 mv conftest.$ac_objext conftstm.$ac_objext
15429 lt_save_LIBS="$LIBS"
15430 lt_save_CFLAGS="$CFLAGS"
15431 LIBS="conftstm.
$ac_objext"
15432 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15433 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15434 (eval $ac_link) 2>&5
15436 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15437 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15440 LIBS="$lt_save_LIBS"
15441 CFLAGS="$lt_save_CFLAGS"
15443 echo "cannot
find nm_test_func
in $nlist" >&5
15446 echo "cannot
find nm_test_var
in $nlist" >&5
15449 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15452 echo "$progname: failed program was
:" >&5
15453 cat conftest.$ac_ext >&5
15455 rm -rf conftest* conftst*
15457 # Do not use the global_symbol_pipe unless it works.
15458 if test "$pipe_works" = yes; then
15461 lt_cv_sys_global_symbol_pipe=
15467 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15468 lt_cv_sys_global_symbol_to_cdecl=
15470 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15472 $as_echo "failed
" >&6; }
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15475 $as_echo "ok
" >&6; }
15499 # Check whether --enable-libtool-lock was given.
15500 if test "${enable_libtool_lock+set}" = set; then :
15501 enableval=$enable_libtool_lock;
15504 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15506 # Some flags need to be propagated to the compiler or linker for good
15510 # Find out which ABI we are using.
15511 echo 'int i;' > conftest.$ac_ext
15512 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15513 (eval $ac_compile) 2>&5
15515 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15516 test $ac_status = 0; }; then
15517 case `/usr/bin/file conftest.$ac_objext` in
15519 HPUX_IA64_MODE="32"
15522 HPUX_IA64_MODE="64"
15529 # Find out which ABI we are using.
15530 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15531 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15532 (eval $ac_compile) 2>&5
15534 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15535 test $ac_status = 0; }; then
15536 if test "$lt_cv_prog_gnu_ld" = yes; then
15537 case `/usr/bin/file conftest.$ac_objext` in
15539 LD="${LD-ld} -melf32bsmip"
15542 LD="${LD-ld} -melf32bmipn32"
15545 LD="${LD-ld} -melf64bmip"
15549 case `/usr/bin/file conftest.$ac_objext` in
15565 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15566 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15567 # Find out which ABI we are using.
15568 echo 'int i;' > conftest.$ac_ext
15569 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15570 (eval $ac_compile) 2>&5
15572 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15573 test $ac_status = 0; }; then
15574 case `/usr/bin/file conftest.o` in
15577 x86_64-*kfreebsd*-gnu)
15578 LD="${LD-ld} -m elf_i386_fbsd
"
15581 case `/usr/bin/file conftest.o` in
15583 LD="${LD-ld} -m elf32_x86_64
"
15586 LD="${LD-ld} -m elf_i386
"
15590 powerpc64le-*linux*)
15591 LD="${LD-ld} -m elf32lppclinux
"
15594 LD="${LD-ld} -m elf32ppclinux
"
15597 LD="${LD-ld} -m elf_s390
"
15600 LD="${LD-ld} -m elf32_sparc
"
15606 x86_64-*kfreebsd*-gnu)
15607 LD="${LD-ld} -m elf_x86_64_fbsd
"
15610 LD="${LD-ld} -m elf_x86_64
"
15613 LD="${LD-ld} -m elf64lppc
"
15616 LD="${LD-ld} -m elf64ppc
"
15618 s390*-*linux*|s390*-*tpf*)
15619 LD="${LD-ld} -m elf64_s390
"
15622 LD="${LD-ld} -m elf64_sparc
"
15632 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15633 SAVE_CFLAGS="$CFLAGS"
15634 CFLAGS="$CFLAGS -belf"
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15636 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15637 if ${lt_cv_cc_needs_belf+:} false; then :
15638 $as_echo_n "(cached
) " >&6
15641 ac_cpp='$CPP $CPPFLAGS'
15642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15657 if ac_fn_c_try_link "$LINENO"; then :
15658 lt_cv_cc_needs_belf=yes
15660 lt_cv_cc_needs_belf=no
15662 rm -f core conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15665 ac_cpp='$CPP $CPPFLAGS'
15666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15672 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15673 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15674 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15675 CFLAGS="$SAVE_CFLAGS"
15679 # Find out which ABI we are using.
15680 echo 'int i;' > conftest.$ac_ext
15681 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15682 (eval $ac_compile) 2>&5
15684 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15685 test $ac_status = 0; }; then
15686 case `/usr/bin/file conftest.o` in
15688 case $lt_cv_prog_gnu_ld in
15689 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15691 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15703 need_locks="$enable_libtool_lock"
15707 rhapsody* | darwin*)
15708 if test -n "$ac_tool_prefix"; then
15709 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15710 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15712 $as_echo_n "checking
for $ac_word...
" >&6; }
15713 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15714 $as_echo_n "(cached
) " >&6
15716 if test -n "$DSYMUTIL"; then
15717 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720 for as_dir in $PATH
15723 test -z "$as_dir" && as_dir=.
15724 for ac_exec_ext in '' $ac_executable_extensions; do
15725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15726 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15727 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15736 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15737 if test -n "$DSYMUTIL"; then
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15739 $as_echo "$DSYMUTIL" >&6; }
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15742 $as_echo "no
" >&6; }
15747 if test -z "$ac_cv_prog_DSYMUTIL"; then
15748 ac_ct_DSYMUTIL=$DSYMUTIL
15749 # Extract the first word of "dsymutil
", so it can be a program name with args.
15750 set dummy dsymutil; ac_word=$2
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15752 $as_echo_n "checking
for $ac_word...
" >&6; }
15753 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15754 $as_echo_n "(cached
) " >&6
15756 if test -n "$ac_ct_DSYMUTIL"; then
15757 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15760 for as_dir in $PATH
15763 test -z "$as_dir" && as_dir=.
15764 for ac_exec_ext in '' $ac_executable_extensions; do
15765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15766 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15767 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15776 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15777 if test -n "$ac_ct_DSYMUTIL"; then
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15779 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15782 $as_echo "no
" >&6; }
15785 if test "x
$ac_ct_DSYMUTIL" = x; then
15788 case $cross_compiling:$ac_tool_warned in
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15791 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15792 ac_tool_warned=yes ;;
15794 DSYMUTIL=$ac_ct_DSYMUTIL
15797 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15800 if test -n "$ac_tool_prefix"; then
15801 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15802 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15804 $as_echo_n "checking
for $ac_word...
" >&6; }
15805 if ${ac_cv_prog_NMEDIT+:} false; then :
15806 $as_echo_n "(cached
) " >&6
15808 if test -n "$NMEDIT"; then
15809 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15812 for as_dir in $PATH
15815 test -z "$as_dir" && as_dir=.
15816 for ac_exec_ext in '' $ac_executable_extensions; do
15817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15818 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15819 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15828 NMEDIT=$ac_cv_prog_NMEDIT
15829 if test -n "$NMEDIT"; then
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15831 $as_echo "$NMEDIT" >&6; }
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15834 $as_echo "no
" >&6; }
15839 if test -z "$ac_cv_prog_NMEDIT"; then
15840 ac_ct_NMEDIT=$NMEDIT
15841 # Extract the first word of "nmedit
", so it can be a program name with args.
15842 set dummy nmedit; ac_word=$2
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15844 $as_echo_n "checking
for $ac_word...
" >&6; }
15845 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15846 $as_echo_n "(cached
) " >&6
15848 if test -n "$ac_ct_NMEDIT"; then
15849 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15852 for as_dir in $PATH
15855 test -z "$as_dir" && as_dir=.
15856 for ac_exec_ext in '' $ac_executable_extensions; do
15857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15858 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15859 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15868 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15869 if test -n "$ac_ct_NMEDIT"; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15871 $as_echo "$ac_ct_NMEDIT" >&6; }
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15874 $as_echo "no
" >&6; }
15877 if test "x
$ac_ct_NMEDIT" = x; then
15880 case $cross_compiling:$ac_tool_warned in
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15883 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15884 ac_tool_warned=yes ;;
15886 NMEDIT=$ac_ct_NMEDIT
15889 NMEDIT="$ac_cv_prog_NMEDIT"
15892 if test -n "$ac_tool_prefix"; then
15893 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15894 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15896 $as_echo_n "checking
for $ac_word...
" >&6; }
15897 if ${ac_cv_prog_LIPO+:} false; then :
15898 $as_echo_n "(cached
) " >&6
15900 if test -n "$LIPO"; then
15901 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15904 for as_dir in $PATH
15907 test -z "$as_dir" && as_dir=.
15908 for ac_exec_ext in '' $ac_executable_extensions; do
15909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15910 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15911 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15920 LIPO=$ac_cv_prog_LIPO
15921 if test -n "$LIPO"; then
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15923 $as_echo "$LIPO" >&6; }
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15926 $as_echo "no
" >&6; }
15931 if test -z "$ac_cv_prog_LIPO"; then
15933 # Extract the first word of "lipo
", so it can be a program name with args.
15934 set dummy lipo; ac_word=$2
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15936 $as_echo_n "checking
for $ac_word...
" >&6; }
15937 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15938 $as_echo_n "(cached
) " >&6
15940 if test -n "$ac_ct_LIPO"; then
15941 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15944 for as_dir in $PATH
15947 test -z "$as_dir" && as_dir=.
15948 for ac_exec_ext in '' $ac_executable_extensions; do
15949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15950 ac_cv_prog_ac_ct_LIPO="lipo
"
15951 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15960 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15961 if test -n "$ac_ct_LIPO"; then
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15963 $as_echo "$ac_ct_LIPO" >&6; }
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15966 $as_echo "no
" >&6; }
15969 if test "x
$ac_ct_LIPO" = x; then
15972 case $cross_compiling:$ac_tool_warned in
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15975 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15976 ac_tool_warned=yes ;;
15981 LIPO="$ac_cv_prog_LIPO"
15984 if test -n "$ac_tool_prefix"; then
15985 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15986 set dummy ${ac_tool_prefix}otool; ac_word=$2
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15988 $as_echo_n "checking
for $ac_word...
" >&6; }
15989 if ${ac_cv_prog_OTOOL+:} false; then :
15990 $as_echo_n "(cached
) " >&6
15992 if test -n "$OTOOL"; then
15993 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15996 for as_dir in $PATH
15999 test -z "$as_dir" && as_dir=.
16000 for ac_exec_ext in '' $ac_executable_extensions; do
16001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16002 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
16003 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16012 OTOOL=$ac_cv_prog_OTOOL
16013 if test -n "$OTOOL"; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
16015 $as_echo "$OTOOL" >&6; }
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16018 $as_echo "no
" >&6; }
16023 if test -z "$ac_cv_prog_OTOOL"; then
16025 # Extract the first word of "otool
", so it can be a program name with args.
16026 set dummy otool; ac_word=$2
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16028 $as_echo_n "checking
for $ac_word...
" >&6; }
16029 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16030 $as_echo_n "(cached
) " >&6
16032 if test -n "$ac_ct_OTOOL"; then
16033 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16036 for as_dir in $PATH
16039 test -z "$as_dir" && as_dir=.
16040 for ac_exec_ext in '' $ac_executable_extensions; do
16041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16042 ac_cv_prog_ac_ct_OTOOL="otool
"
16043 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16052 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16053 if test -n "$ac_ct_OTOOL"; then
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
16055 $as_echo "$ac_ct_OTOOL" >&6; }
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16058 $as_echo "no
" >&6; }
16061 if test "x
$ac_ct_OTOOL" = x; then
16064 case $cross_compiling:$ac_tool_warned in
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16067 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16068 ac_tool_warned=yes ;;
16073 OTOOL="$ac_cv_prog_OTOOL"
16076 if test -n "$ac_tool_prefix"; then
16077 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16078 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16080 $as_echo_n "checking
for $ac_word...
" >&6; }
16081 if ${ac_cv_prog_OTOOL64+:} false; then :
16082 $as_echo_n "(cached
) " >&6
16084 if test -n "$OTOOL64"; then
16085 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16088 for as_dir in $PATH
16091 test -z "$as_dir" && as_dir=.
16092 for ac_exec_ext in '' $ac_executable_extensions; do
16093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16094 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16095 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16104 OTOOL64=$ac_cv_prog_OTOOL64
16105 if test -n "$OTOOL64"; then
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
16107 $as_echo "$OTOOL64" >&6; }
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16110 $as_echo "no
" >&6; }
16115 if test -z "$ac_cv_prog_OTOOL64"; then
16116 ac_ct_OTOOL64=$OTOOL64
16117 # Extract the first word of "otool64
", so it can be a program name with args.
16118 set dummy otool64; ac_word=$2
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16120 $as_echo_n "checking
for $ac_word...
" >&6; }
16121 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16122 $as_echo_n "(cached
) " >&6
16124 if test -n "$ac_ct_OTOOL64"; then
16125 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16128 for as_dir in $PATH
16131 test -z "$as_dir" && as_dir=.
16132 for ac_exec_ext in '' $ac_executable_extensions; do
16133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16134 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16135 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16144 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16145 if test -n "$ac_ct_OTOOL64"; then
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
16147 $as_echo "$ac_ct_OTOOL64" >&6; }
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16150 $as_echo "no
" >&6; }
16153 if test "x
$ac_ct_OTOOL64" = x; then
16156 case $cross_compiling:$ac_tool_warned in
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16159 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16160 ac_tool_warned=yes ;;
16162 OTOOL64=$ac_ct_OTOOL64
16165 OTOOL64="$ac_cv_prog_OTOOL64"
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
16195 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
16196 if ${lt_cv_apple_cc_single_mod+:} false; then :
16197 $as_echo_n "(cached
) " >&6
16199 lt_cv_apple_cc_single_mod=no
16200 if test -z "${LT_MULTI_MODULE}"; then
16201 # By default we will add the -single_module flag. You can override
16202 # by either setting the environment variable LT_MULTI_MODULE
16203 # non-empty at configure time, or by adding -multi_module to the
16205 rm -rf libconftest.dylib*
16206 echo "int foo
(void
){return 1;}" > conftest.c
16207 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16208 -dynamiclib -Wl,-single_module conftest.c
" >&5
16209 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16210 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16212 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16213 lt_cv_apple_cc_single_mod=yes
16215 cat conftest.err >&5
16217 rm -rf libconftest.dylib*
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
16222 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
16224 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
16225 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16226 $as_echo_n "(cached
) " >&6
16228 lt_cv_ld_exported_symbols_list=no
16229 save_LDFLAGS=$LDFLAGS
16230 echo "_main
" > conftest.sym
16231 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233 /* end confdefs.h. */
16243 if ac_fn_c_try_link "$LINENO"; then :
16244 lt_cv_ld_exported_symbols_list=yes
16246 lt_cv_ld_exported_symbols_list=no
16248 rm -f core conftest.err conftest.$ac_objext \
16249 conftest$ac_exeext conftest.$ac_ext
16250 LDFLAGS="$save_LDFLAGS"
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16254 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16256 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16257 if ${lt_cv_ld_force_load+:} false; then :
16258 $as_echo_n "(cached
) " >&6
16260 lt_cv_ld_force_load=no
16261 cat > conftest.c << _LT_EOF
16262 int forced_loaded() { return 2;}
16264 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16265 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16266 echo "$AR cru libconftest.a conftest.o
" >&5
16267 $AR cru libconftest.a conftest.o 2>&5
16268 cat > conftest.c << _LT_EOF
16269 int main() { return 0;}
16271 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16272 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16274 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16275 lt_cv_ld_force_load=yes
16277 cat conftest.err >&5
16279 rm -f conftest.err libconftest.a conftest conftest.c
16280 rm -rf conftest.dSYM
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16284 $as_echo "$lt_cv_ld_force_load" >&6; }
16285 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16286 # build without first building modern cctools / linker.
16287 case $host_cpu-$host_os in
16288 *-rhapsody* | *-darwin1.[012])
16289 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16291 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16293 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16294 # deployment target is forced to an earlier version.
16295 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16296 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16299 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16306 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16307 _lt_dar_single_mod='$single_module'
16309 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16310 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16312 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16314 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16315 _lt_dsymutil='~$DSYMUTIL $lib || :'
16323 for ac_header in dlfcn.h
16325 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16326 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16327 cat >>confdefs.h <<_ACEOF
16328 #define HAVE_DLFCN_H 1
16345 enable_win32_dll=no
16348 # Check whether --enable-shared was given.
16349 if test "${enable_shared+set}" = set; then :
16350 enableval=$enable_shared; p=${PACKAGE-default}
16352 yes) enable_shared=yes ;;
16353 no) enable_shared=no ;;
16356 # Look at the argument we got. We use all the common list separators.
16357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16358 for pkg in $enableval; do
16360 if test "X
$pkg" = "X
$p"; then
16379 # Check whether --enable-static was given.
16380 if test "${enable_static+set}" = set; then :
16381 enableval=$enable_static; p=${PACKAGE-default}
16383 yes) enable_static=yes ;;
16384 no) enable_static=no ;;
16387 # Look at the argument we got. We use all the common list separators.
16388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16389 for pkg in $enableval; do
16391 if test "X
$pkg" = "X
$p"; then
16411 # Check whether --with-pic was given.
16412 if test "${with_pic+set}" = set; then :
16413 withval=$with_pic; pic_mode="$withval"
16419 test -z "$pic_mode" && pic_mode=default
16427 # Check whether --enable-fast-install was given.
16428 if test "${enable_fast_install+set}" = set; then :
16429 enableval=$enable_fast_install; p=${PACKAGE-default}
16431 yes) enable_fast_install=yes ;;
16432 no) enable_fast_install=no ;;
16434 enable_fast_install=no
16435 # Look at the argument we got. We use all the common list separators.
16436 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16437 for pkg in $enableval; do
16439 if test "X
$pkg" = "X
$p"; then
16440 enable_fast_install=yes
16447 enable_fast_install=yes
16460 # This can be used to rebuild libtool when needed
16461 LIBTOOL_DEPS="$ltmain"
16463 # Always use our own libtool.
16464 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16491 test -z "$LN_S" && LN_S="ln -s"
16506 if test -n "${ZSH_VERSION+set}" ; then
16507 setopt NO_GLOB_SUBST
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16511 $as_echo_n "checking
for objdir...
" >&6; }
16512 if ${lt_cv_objdir+:} false; then :
16513 $as_echo_n "(cached
) " >&6
16515 rm -f .libs 2>/dev/null
16516 mkdir .libs 2>/dev/null
16517 if test -d .libs; then
16520 # MS-DOS does not allow filenames that begin with a dot.
16523 rmdir .libs 2>/dev/null
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16526 $as_echo "$lt_cv_objdir" >&6; }
16527 objdir=$lt_cv_objdir
16533 cat >>confdefs.h <<_ACEOF
16534 #define LT_OBJDIR "$lt_cv_objdir/"
16542 # AIX sometimes has problems with the GCC collect2 program. For some
16543 # reason, if we set the COLLECT_NAMES environment variable, the problems
16544 # vanish in a puff of smoke.
16545 if test "X
${COLLECT_NAMES+set}" != Xset; then
16547 export COLLECT_NAMES
16552 # Global variables:
16554 can_build_shared=yes
16556 # All known linkers require a `.a' archive for static linking (except MSVC,
16557 # which needs '.lib').
16560 with_gnu_ld="$lt_cv_prog_gnu_ld"
16563 old_CFLAGS="$CFLAGS"
16565 # Set sane defaults for various variables
16566 test -z "$CC" && CC=cc
16567 test -z "$LTCC" && LTCC=$CC
16568 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16569 test -z "$LD" && LD=ld
16570 test -z "$ac_objext" && ac_objext=o
16572 for cc_temp in $compiler""; do
16574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16580 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16583 # Only perform the check for file, if the check method requires it
16584 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16585 case $deplibs_check_method in
16587 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16589 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16590 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16591 $as_echo_n "(cached
) " >&6
16595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16598 lt_save_MAGIC_CMD="$MAGIC_CMD"
16599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16600 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16601 for ac_dir in $ac_dummy; do
16603 test -z "$ac_dir" && ac_dir=.
16604 if test -f $ac_dir/${ac_tool_prefix}file; then
16605 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16606 if test -n "$file_magic_test_file"; then
16607 case $deplibs_check_method in
16609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16612 $EGREP "$file_magic_regex" > /dev/null; then
16617 *** Warning: the command libtool uses to detect shared libraries,
16618 *** $file_magic_cmd, produces output that libtool cannot recognize.
16619 *** The result is that libtool may fail to recognize shared libraries
16620 *** as such. This will affect the creation of libtool libraries that
16621 *** depend on shared libraries, but programs linked with such libtool
16622 *** libraries will work regardless of this problem. Nevertheless, you
16623 *** may want to report the problem to your system manager and/or to
16624 *** bug-libtool@gnu.org
16634 MAGIC_CMD="$lt_save_MAGIC_CMD"
16639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16640 if test -n "$MAGIC_CMD"; then
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16642 $as_echo "$MAGIC_CMD" >&6; }
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16645 $as_echo "no
" >&6; }
16652 if test -z "$lt_cv_path_MAGIC_CMD"; then
16653 if test -n "$ac_tool_prefix"; then
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16655 $as_echo_n "checking
for file...
" >&6; }
16656 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16657 $as_echo_n "(cached
) " >&6
16661 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16664 lt_save_MAGIC_CMD="$MAGIC_CMD"
16665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16666 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16667 for ac_dir in $ac_dummy; do
16669 test -z "$ac_dir" && ac_dir=.
16670 if test -f $ac_dir/file; then
16671 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16672 if test -n "$file_magic_test_file"; then
16673 case $deplibs_check_method in
16675 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16677 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16678 $EGREP "$file_magic_regex" > /dev/null; then
16683 *** Warning: the command libtool uses to detect shared libraries,
16684 *** $file_magic_cmd, produces output that libtool cannot recognize.
16685 *** The result is that libtool may fail to recognize shared libraries
16686 *** as such. This will affect the creation of libtool libraries that
16687 *** depend on shared libraries, but programs linked with such libtool
16688 *** libraries will work regardless of this problem. Nevertheless, you
16689 *** may want to report the problem to your system manager and/or to
16690 *** bug-libtool@gnu.org
16700 MAGIC_CMD="$lt_save_MAGIC_CMD"
16705 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16706 if test -n "$MAGIC_CMD"; then
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16708 $as_echo "$MAGIC_CMD" >&6; }
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16711 $as_echo "no
" >&6; }
16724 # Use C for the default configuration in the libtool script
16728 ac_cpp='$CPP $CPPFLAGS'
16729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16734 # Source file extension for C test sources.
16737 # Object file extension for compiled C test sources.
16741 # Code to be used in simple compile tests
16742 lt_simple_compile_test_code="int some_variable
= 0;"
16744 # Code to be used in simple link tests
16745 lt_simple_link_test_code='int main(){return(0);}'
16753 # If no C compiler was specified, use CC.
16756 # If no C compiler flags were specified, use CFLAGS.
16757 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16759 # Allow CC to be a program name with arguments.
16762 # Save the default compiler, since it gets overwritten when the other
16763 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16764 compiler_DEFAULT=$CC
16766 # save warnings/boilerplate of simple test code
16767 ac_outfile=conftest.$ac_objext
16768 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16769 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16770 _lt_compiler_boilerplate=`cat conftest.err`
16773 ac_outfile=conftest.$ac_objext
16774 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16775 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16776 _lt_linker_boilerplate=`cat conftest.err`
16781 ## There is no encapsulation within the following macros, do not change
16782 ## the running order or otherwise move them around unless you know exactly
16783 ## what you are doing...
16784 if test -n "$compiler"; then
16786 lt_prog_compiler_no_builtin_flag=
16788 if test "$GCC" = yes; then
16789 case $cc_basename in
16791 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16793 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16797 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16798 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16799 $as_echo_n "(cached
) " >&6
16801 lt_cv_prog_compiler_rtti_exceptions=no
16802 ac_outfile=conftest.$ac_objext
16803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16804 lt_compiler_flag="-fno-rtti -fno-exceptions"
16805 # Insert the option either (1) after the last *FLAGS variable, or
16806 # (2) before a word containing "conftest.
", or (3) at the end.
16807 # Note that $ac_compile itself does not contain backslashes and begins
16808 # with a dollar sign (not a hyphen), so the echo should work correctly.
16809 # The option is referenced via a variable to avoid confusing sed.
16810 lt_compile=`echo "$ac_compile" | $SED \
16811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16813 -e 's:$: $lt_compiler_flag:'`
16814 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16815 (eval "$lt_compile" 2>conftest.err)
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16819 if (exit $ac_status) && test -s "$ac_outfile"; then
16820 # The compiler can only warn and ignore the option if not recognized
16821 # So say no if there are warnings other than the usual output.
16822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16825 lt_cv_prog_compiler_rtti_exceptions=yes
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16832 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16834 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16835 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16847 lt_prog_compiler_wl=
16848 lt_prog_compiler_pic=
16849 lt_prog_compiler_static=
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16852 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16854 if test "$GCC" = yes; then
16855 lt_prog_compiler_wl='-Wl,'
16856 lt_prog_compiler_static='-static'
16860 # All AIX code is PIC.
16861 if test "$host_cpu" = ia64; then
16862 # AIX 5 now supports IA64 processor
16863 lt_prog_compiler_static='-Bstatic'
16865 lt_prog_compiler_pic='-fPIC'
16871 # see comment about AmigaOS4 .so support
16872 lt_prog_compiler_pic='-fPIC'
16875 # FIXME: we need at least 68020 code to build shared libraries, but
16876 # adding the `-m68020' flag to GCC prevents building anything better,
16878 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16883 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16884 # PIC is the default for these OSes.
16887 mingw* | cygwin* | pw32* | os2* | cegcc*)
16888 # This hack is so that the source file can tell whether it is being
16889 # built for inclusion in a dll (and should export symbols for example).
16890 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16891 # (--disable-auto-import) libraries
16892 lt_prog_compiler_pic='-DDLL_EXPORT'
16895 darwin* | rhapsody*)
16896 # PIC is the default on this platform
16897 # Common symbols not allowed in MH_DYLIB files
16898 lt_prog_compiler_pic='-fno-common'
16902 # PIC is the default for Haiku.
16903 # The "-static" flag exists, but is broken.
16904 lt_prog_compiler_static=
16908 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16909 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16910 # sets the default TLS model and affects inlining.
16916 lt_prog_compiler_pic='-fPIC'
16922 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16923 # Instead, we relocate shared libraries at runtime.
16927 # Just because we use GCC doesn't mean we suddenly get shared libraries
16928 # on systems that don't support them.
16929 lt_prog_compiler_can_build_shared=no
16934 # QNX uses GNU C++, but need to define -shared option too, otherwise
16935 # it will coredump.
16936 lt_prog_compiler_pic='-fPIC -shared'
16940 if test -d /usr/nec; then
16941 lt_prog_compiler_pic=-Kconform_pic
16946 lt_prog_compiler_pic='-fPIC'
16950 case $cc_basename in
16951 nvcc*) # Cuda Compiler Driver 2.2
16952 lt_prog_compiler_wl='-Xlinker '
16953 lt_prog_compiler_pic='-Xcompiler -fPIC'
16957 # PORTME Check for flag to pass linker flags through the system compiler.
16960 lt_prog_compiler_wl='-Wl,'
16961 if test "$host_cpu" = ia64; then
16962 # AIX 5 now supports IA64 processor
16963 lt_prog_compiler_static='-Bstatic'
16965 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16969 mingw* | cygwin* | pw32* | os2* | cegcc*)
16970 # This hack is so that the source file can tell whether it is being
16971 # built for inclusion in a dll (and should export symbols for example).
16972 lt_prog_compiler_pic='-DDLL_EXPORT'
16975 hpux9* | hpux10* | hpux11*)
16976 lt_prog_compiler_wl='-Wl,'
16977 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16978 # not for PA HP-UX.
16984 lt_prog_compiler_pic='+Z'
16987 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16988 lt_prog_compiler_static='${wl}-a ${wl}archive'
16991 irix5* | irix6* | nonstopux*)
16992 lt_prog_compiler_wl='-Wl,'
16993 # PIC (with -KPIC) is the default.
16994 lt_prog_compiler_static='-non_shared'
16997 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16998 case $cc_basename in
16999 # old Intel for x86_64 which still supported -KPIC.
17001 lt_prog_compiler_wl='-Wl,'
17002 lt_prog_compiler_pic='-KPIC'
17003 lt_prog_compiler_static='-static'
17005 # icc used to be incompatible with GCC.
17006 # ICC 10 doesn't accept -KPIC any more.
17008 lt_prog_compiler_wl='-Wl,'
17009 lt_prog_compiler_pic='-fPIC'
17010 lt_prog_compiler_static='-static'
17012 # Lahey Fortran 8.1.
17014 lt_prog_compiler_wl='-Wl,'
17015 lt_prog_compiler_pic='--shared'
17016 lt_prog_compiler_static='--static'
17018 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17019 # Portland Group compilers (*not* the Pentium gcc compiler,
17020 # which looks to be a dead project)
17021 lt_prog_compiler_wl='-Wl,'
17022 lt_prog_compiler_pic='-fpic'
17023 lt_prog_compiler_static='-Bstatic'
17026 lt_prog_compiler_wl='-Wl,'
17027 # All Alpha code is PIC.
17028 lt_prog_compiler_static='-non_shared'
17030 xl* | bgxl* | bgf* | mpixl*)
17031 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17032 lt_prog_compiler_wl='-Wl,'
17033 lt_prog_compiler_pic='-qpic'
17034 lt_prog_compiler_static='-qstaticlink'
17037 case `$CC -V 2>&1 | sed 5q` in
17038 *Sun\ F* | *Sun*Fortran*)
17039 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17040 lt_prog_compiler_pic='-KPIC'
17041 lt_prog_compiler_static='-Bstatic'
17042 lt_prog_compiler_wl=''
17046 lt_prog_compiler_pic='-KPIC'
17047 lt_prog_compiler_static='-Bstatic'
17048 lt_prog_compiler_wl='-Wl,'
17056 lt_prog_compiler_pic='-KPIC'
17057 lt_prog_compiler_static='-Bstatic'
17061 # QNX uses GNU C++, but need to define -shared option too, otherwise
17062 # it will coredump.
17063 lt_prog_compiler_pic='-fPIC -shared'
17066 osf3* | osf4* | osf5*)
17067 lt_prog_compiler_wl='-Wl,'
17068 # All OSF/1 code is PIC.
17069 lt_prog_compiler_static='-non_shared'
17073 lt_prog_compiler_static='-non_shared'
17077 lt_prog_compiler_pic='-KPIC'
17078 lt_prog_compiler_static='-Bstatic'
17079 case $cc_basename in
17080 f77* | f90* | f95*)
17081 lt_prog_compiler_wl='-Qoption ld ';;
17083 lt_prog_compiler_wl='-Wl,';;
17088 lt_prog_compiler_wl='-Qoption ld '
17089 lt_prog_compiler_pic='-PIC'
17090 lt_prog_compiler_static='-Bstatic'
17093 sysv4 | sysv4.2uw2* | sysv4.3*)
17094 lt_prog_compiler_wl='-Wl,'
17095 lt_prog_compiler_pic='-KPIC'
17096 lt_prog_compiler_static='-Bstatic'
17100 if test -d /usr/nec ;then
17101 lt_prog_compiler_pic='-Kconform_pic'
17102 lt_prog_compiler_static='-Bstatic'
17106 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17107 lt_prog_compiler_wl='-Wl,'
17108 lt_prog_compiler_pic='-KPIC'
17109 lt_prog_compiler_static='-Bstatic'
17113 lt_prog_compiler_wl='-Wl,'
17114 lt_prog_compiler_can_build_shared=no
17118 lt_prog_compiler_pic='-pic'
17119 lt_prog_compiler_static='-Bstatic'
17123 lt_prog_compiler_can_build_shared=no
17129 # For platforms which do not support PIC, -DPIC is meaningless:
17131 lt_prog_compiler_pic=
17134 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
17138 $as_echo "$lt_prog_compiler_pic" >&6; }
17146 # Check to make sure the PIC flag actually works.
17148 if test -n "$lt_prog_compiler_pic"; then
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
17150 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
17151 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17152 $as_echo_n "(cached
) " >&6
17154 lt_cv_prog_compiler_pic_works=no
17155 ac_outfile=conftest.$ac_objext
17156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17157 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17158 # Insert the option either (1) after the last *FLAGS variable, or
17159 # (2) before a word containing "conftest.
", or (3) at the end.
17160 # Note that $ac_compile itself does not contain backslashes and begins
17161 # with a dollar sign (not a hyphen), so the echo should work correctly.
17162 # The option is referenced via a variable to avoid confusing sed.
17163 lt_compile=`echo "$ac_compile" | $SED \
17164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17166 -e 's:$: $lt_compiler_flag:'`
17167 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17168 (eval "$lt_compile" 2>conftest.err)
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17172 if (exit $ac_status) && test -s "$ac_outfile"; then
17173 # The compiler can only warn and ignore the option if not recognized
17174 # So say no if there are warnings other than the usual output.
17175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17178 lt_cv_prog_compiler_pic_works=yes
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
17185 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17187 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17188 case $lt_prog_compiler_pic in
17190 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17193 lt_prog_compiler_pic=
17194 lt_prog_compiler_can_build_shared=no
17205 # Check to make sure the static flag actually works.
17207 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
17209 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
17210 if ${lt_cv_prog_compiler_static_works+:} false; then :
17211 $as_echo_n "(cached
) " >&6
17213 lt_cv_prog_compiler_static_works=no
17214 save_LDFLAGS="$LDFLAGS"
17215 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17216 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17217 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17218 # The linker can only warn and ignore the option if not recognized
17219 # So say no if there are warnings
17220 if test -s conftest.err; then
17221 # Append any errors to the config.log.
17222 cat conftest.err 1>&5
17223 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17225 if diff conftest.exp conftest.er2 >/dev/null; then
17226 lt_cv_prog_compiler_static_works=yes
17229 lt_cv_prog_compiler_static_works=yes
17233 LDFLAGS="$save_LDFLAGS"
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
17237 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17239 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17242 lt_prog_compiler_static=
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17252 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17253 if ${lt_cv_prog_compiler_c_o+:} false; then :
17254 $as_echo_n "(cached
) " >&6
17256 lt_cv_prog_compiler_c_o=no
17257 $RM -r conftest 2>/dev/null
17261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17263 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17264 # Insert the option either (1) after the last *FLAGS variable, or
17265 # (2) before a word containing "conftest.
", or (3) at the end.
17266 # Note that $ac_compile itself does not contain backslashes and begins
17267 # with a dollar sign (not a hyphen), so the echo should work correctly.
17268 lt_compile=`echo "$ac_compile" | $SED \
17269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17271 -e 's:$: $lt_compiler_flag:'`
17272 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17273 (eval "$lt_compile" 2>out/conftest.err)
17275 cat out/conftest.err >&5
17276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17279 # The compiler can only warn and ignore the option if not recognized
17280 # So say no if there are warnings
17281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17284 lt_cv_prog_compiler_c_o=yes
17289 # SGI C++ compiler will create directory out/ii_files/ for
17290 # template instantiation
17291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17292 $RM out/* && rmdir out
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17299 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17307 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17308 if ${lt_cv_prog_compiler_c_o+:} false; then :
17309 $as_echo_n "(cached
) " >&6
17311 lt_cv_prog_compiler_c_o=no
17312 $RM -r conftest 2>/dev/null
17316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17318 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17319 # Insert the option either (1) after the last *FLAGS variable, or
17320 # (2) before a word containing "conftest.
", or (3) at the end.
17321 # Note that $ac_compile itself does not contain backslashes and begins
17322 # with a dollar sign (not a hyphen), so the echo should work correctly.
17323 lt_compile=`echo "$ac_compile" | $SED \
17324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17326 -e 's:$: $lt_compiler_flag:'`
17327 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17328 (eval "$lt_compile" 2>out/conftest.err)
17330 cat out/conftest.err >&5
17331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17332 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17334 # The compiler can only warn and ignore the option if not recognized
17335 # So say no if there are warnings
17336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17337 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17338 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17339 lt_cv_prog_compiler_c_o=yes
17344 # SGI C++ compiler will create directory out/ii_files/ for
17345 # template instantiation
17346 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17347 $RM out/* && rmdir out
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17354 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17359 hard_links="nottested
"
17360 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17361 # do not overwrite the value of need_locks provided by the user
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17363 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17368 ln conftest.a conftest.b 2>&5 || hard_links=no
17369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17371 $as_echo "$hard_links" >&6; }
17372 if test "$hard_links" = no; then
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17374 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17387 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17390 allow_undefined_flag=
17391 always_export_symbols=no
17393 archive_expsym_cmds=
17394 compiler_needs_object=no
17395 enable_shared_with_static_runtimes=no
17396 export_dynamic_flag_spec=
17397 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17398 hardcode_automatic=no
17400 hardcode_direct_absolute=no
17401 hardcode_libdir_flag_spec=
17402 hardcode_libdir_flag_spec_ld=
17403 hardcode_libdir_separator=
17404 hardcode_minus_L=no
17405 hardcode_shlibpath_var=unsupported
17407 link_all_deplibs=unknown
17409 module_expsym_cmds=
17410 old_archive_from_new_cmds=
17411 old_archive_from_expsyms_cmds=
17412 thread_safe_flag_spec=
17413 whole_archive_flag_spec=
17414 # include_expsyms should be a list of space-separated symbols to be *always*
17415 # included in the symbol list
17417 # exclude_expsyms can be an extended regexp of symbols to exclude
17418 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17419 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17420 # as well as any symbol that contains `d'.
17421 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17422 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17423 # platforms (ab)use it in PIC code, but their linkers get confused if
17424 # the symbol is explicitly referenced. Since portable code cannot
17425 # rely on this symbol name, it's probably fine to never include it in
17426 # preloaded symbol tables.
17427 # Exclude shared library initialization/finalization symbols.
17428 extract_expsyms_cmds=
17431 cygwin* | mingw* | pw32* | cegcc*)
17432 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17433 # When not using gcc, we currently assume that we are using
17434 # Microsoft Visual C++.
17435 if test "$GCC" != yes; then
17440 # we just hope/assume this is gcc and not c89 (= MSVC++)
17450 # On some targets, GNU ld is compatible enough with the native linker
17451 # that we're better off using the native interface for both.
17452 lt_use_gnu_ld_interface=no
17453 if test "$with_gnu_ld" = yes; then
17456 # The AIX port of GNU ld has always aspired to compatibility
17457 # with the native linker. However, as the warning in the GNU ld
17458 # block says, versions before 2.19.5* couldn't really create working
17459 # shared libraries, regardless of the interface used.
17460 case `$LD -v 2>&1` in
17461 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17462 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17463 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17465 lt_use_gnu_ld_interface=yes
17470 lt_use_gnu_ld_interface=yes
17475 if test "$lt_use_gnu_ld_interface" = yes; then
17476 # If archive_cmds runs LD, not CC, wlarc should be empty
17479 # Set some defaults for GNU ld with shared library support. These
17480 # are reset later if shared libraries are not supported. Putting them
17481 # here allows them to be overridden if necessary.
17482 runpath_var=LD_RUN_PATH
17483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17484 export_dynamic_flag_spec='${wl}--export-dynamic'
17485 # ancient GNU ld didn't support --whole-archive et. al.
17486 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17487 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17489 whole_archive_flag_spec=
17491 supports_anon_versioning=no
17492 case `$LD -v 2>&1` in
17493 *GNU\ gold*) supports_anon_versioning=yes ;;
17494 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17495 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17496 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17497 *\ 2.11.*) ;; # other 2.11 versions
17498 *) supports_anon_versioning=yes ;;
17501 # See if GNU ld supports shared libraries.
17504 # On AIX/PPC, the GNU linker is very broken
17505 if test "$host_cpu" != ia64; then
17509 *** Warning: the GNU linker, at least up to release 2.19, is reported
17510 *** to be unable to reliably create shared libraries on AIX.
17511 *** Therefore, libtool is disabling shared libraries support. If you
17512 *** really care for shared libraries, you may want to install binutils
17513 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17514 *** You will then need to restart the configuration process.
17523 # see comment about AmigaOS4 .so support
17524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525 archive_expsym_cmds=''
17528 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)'
17529 hardcode_libdir_flag_spec
='-L$libdir'
17530 hardcode_minus_L
=yes
17536 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17537 allow_undefined_flag
=unsupported
17538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17539 # support --undefined. This deserves some investigation. FIXME
17540 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17546 cygwin
* | mingw
* | pw32
* | cegcc
*)
17547 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17548 # as there is no search path for DLLs.
17549 hardcode_libdir_flag_spec
='-L$libdir'
17550 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17551 allow_undefined_flag
=unsupported
17552 always_export_symbols
=no
17553 enable_shared_with_static_runtimes
=yes
17554 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17556 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17557 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17558 # If the export-symbols file already is a .def file (1st line
17559 # is EXPORTS), use it as is; otherwise, prepend...
17560 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17561 cp $export_symbols $output_objdir/$soname.def;
17563 echo EXPORTS > $output_objdir/$soname.def;
17564 cat $export_symbols >> $output_objdir/$soname.def;
17566 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17573 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17574 link_all_deplibs
=yes
17579 hardcode_shlibpath_var
=no
17580 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17581 export_dynamic_flag_spec
='${wl}-E'
17582 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17583 # Instead, shared libraries are loaded at an image base (0x10000000 by
17584 # default) and relocated if they conflict, which is a slow very memory
17585 # consuming and fragmenting process. To avoid this, we pick a random,
17586 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17587 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17588 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17589 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'
17592 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17594 if test "$host_os" = linux-dietlibc
; then
17595 case $cc_basename in
17596 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17599 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17600 && test "$tmp_diet" = no
17602 tmp_addflag
=' $pic_flag'
17603 tmp_sharedflag
='-shared'
17604 case $cc_basename,$host_cpu in
17605 pgcc
*) # Portland Group C compiler
17606 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'
17607 tmp_addflag
=' $pic_flag'
17609 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17610 # Portland Group f77 and f90 compilers
17611 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'
17612 tmp_addflag
=' $pic_flag -Mnomain' ;;
17613 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17614 tmp_addflag
=' -i_dynamic' ;;
17615 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17616 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17617 ifc
* | ifort
*) # Intel Fortran compiler
17618 tmp_addflag
=' -nofor_main' ;;
17619 lf95
*) # Lahey Fortran 8.1
17620 whole_archive_flag_spec
=
17621 tmp_sharedflag
='--shared' ;;
17622 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17623 tmp_sharedflag
='-qmkshrobj'
17625 nvcc
*) # Cuda Compiler Driver 2.2
17626 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'
17627 compiler_needs_object
=yes
17630 case `$CC -V 2>&1 | sed 5q` in
17631 *Sun\ C
*) # Sun C 5.9
17632 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'
17633 compiler_needs_object
=yes
17634 tmp_sharedflag
='-G' ;;
17635 *Sun\ F
*) # Sun Fortran 8.3
17636 tmp_sharedflag
='-G' ;;
17638 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17640 if test "x$supports_anon_versioning" = xyes
; then
17641 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17642 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17643 echo "local: *; };" >> $output_objdir/$libname.ver~
17644 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17647 case $cc_basename in
17648 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17649 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17650 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17651 hardcode_libdir_flag_spec
=
17652 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17653 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17654 if test "x$supports_anon_versioning" = xyes
; then
17655 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17656 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17657 echo "local: *; };" >> $output_objdir/$libname.ver~
17658 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17668 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17669 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17672 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17673 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17678 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17682 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17683 *** create shared libraries on Solaris systems. Therefore, libtool
17684 *** is disabling shared libraries support. We urge you to upgrade GNU
17685 *** binutils to release 2.9.1 or newer. Another option is to modify
17686 *** your PATH or compiler configuration so that the native linker is
17687 *** used, and then restart.
17690 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17691 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17692 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17698 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17699 case `$LD -v 2>&1` in
17700 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17704 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17705 *** reliably create shared libraries on SCO systems. Therefore, libtool
17706 *** is disabling shared libraries support. We urge you to upgrade GNU
17707 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17708 *** your PATH or compiler configuration so that the native linker is
17709 *** used, and then restart.
17714 # For security reasons, it is highly recommended that you always
17715 # use absolute paths for naming shared libraries, and exclude the
17716 # DT_RUNPATH tag from executables and libraries. But doing so
17717 # requires that you compile everything twice, which is a pain.
17718 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17719 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17720 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17721 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17730 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17732 hardcode_direct
=yes
17733 hardcode_shlibpath_var
=no
17737 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17738 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17739 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17746 if test "$ld_shlibs" = no
; then
17748 hardcode_libdir_flag_spec
=
17749 export_dynamic_flag_spec
=
17750 whole_archive_flag_spec
=
17753 # PORTME fill in a description of your system's linker (not GNU ld)
17756 allow_undefined_flag
=unsupported
17757 always_export_symbols
=yes
17758 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'
17759 # Note: this linker hardcodes the directories in LIBPATH if there
17760 # are no directories specified by -L.
17761 hardcode_minus_L
=yes
17762 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17763 # Neither direct hardcoding nor static linking is supported with a
17765 hardcode_direct
=unsupported
17770 if test "$host_cpu" = ia64
; then
17771 # On IA64, the linker does run time linking by default, so we don't
17772 # have to do anything special.
17773 aix_use_runtimelinking
=no
17774 exp_sym_flag
='-Bexport'
17777 # If we're using GNU nm, then we don't want the "-C" option.
17778 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17779 # Also, AIX nm treats weak defined symbols like other global
17780 # defined symbols, whereas GNU nm marks them as "W".
17781 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17782 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'
17784 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'
17786 aix_use_runtimelinking
=no
17788 # Test if we are trying to use run time linking or normal
17789 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17790 # need to do runtime linking.
17791 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17792 for ld_flag
in $LDFLAGS; do
17793 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17794 aix_use_runtimelinking
=yes
17801 exp_sym_flag
='-bexport'
17802 no_entry_flag
='-bnoentry'
17805 # When large executables or shared objects are built, AIX ld can
17806 # have problems creating the table of contents. If linking a library
17807 # or program results in "error TOC overflow" add -mminimal-toc to
17808 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17809 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17812 hardcode_direct
=yes
17813 hardcode_direct_absolute
=yes
17814 hardcode_libdir_separator
=':'
17815 link_all_deplibs
=yes
17816 file_list_spec
='${wl}-f,'
17818 if test "$GCC" = yes; then
17819 case $host_os in aix4.
[012]|aix4.
[012].
*)
17820 # We only want to do this on AIX 4.2 and lower, the check
17821 # below for broken collect2 doesn't work under 4.3+
17822 collect2name
=`${CC} -print-prog-name=collect2`
17823 if test -f "$collect2name" &&
17824 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17826 # We have reworked collect2
17829 # We have old collect2
17830 hardcode_direct
=unsupported
17831 # It fails to find uninstalled libraries when the uninstalled
17832 # path is not listed in the libpath. Setting hardcode_minus_L
17833 # to unsupported forces relinking
17834 hardcode_minus_L
=yes
17835 hardcode_libdir_flag_spec
='-L$libdir'
17836 hardcode_libdir_separator
=
17840 shared_flag
='-shared'
17841 if test "$aix_use_runtimelinking" = yes; then
17842 shared_flag
="$shared_flag "'${wl}-G'
17846 if test "$host_cpu" = ia64
; then
17847 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17848 # chokes on -Wl,-G. The following line is correct:
17851 if test "$aix_use_runtimelinking" = yes; then
17852 shared_flag
='${wl}-G'
17854 shared_flag
='${wl}-bM:SRE'
17859 export_dynamic_flag_spec
='${wl}-bexpall'
17860 # It seems that -bexpall does not export symbols beginning with
17861 # underscore (_), so it is better to generate a list of symbols to export.
17862 always_export_symbols
=yes
17863 if test "$aix_use_runtimelinking" = yes; then
17864 # Warning - without using the other runtime loading flags (-brtl),
17865 # -berok will link without error, but may produce a broken library.
17866 allow_undefined_flag
='-berok'
17867 # Determine the default libpath from the value encoded in an
17868 # empty executable.
17869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h. */
17880 if ac_fn_c_try_link
"$LINENO"; then :
17882 lt_aix_libpath_sed
='
17883 /Import File Strings/,/^$/ {
17889 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17890 # Check for a 64-bit object if we didn't find anything.
17891 if test -z "$aix_libpath"; then
17892 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17895 rm -f core conftest.err conftest.
$ac_objext \
17896 conftest
$ac_exeext conftest.
$ac_ext
17897 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17899 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17900 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"
17902 if test "$host_cpu" = ia64
; then
17903 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17904 allow_undefined_flag
="-z nodefs"
17905 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"
17907 # Determine the default libpath from the value encoded in an
17908 # empty executable.
17909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17920 if ac_fn_c_try_link
"$LINENO"; then :
17922 lt_aix_libpath_sed
='
17923 /Import File Strings/,/^$/ {
17929 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17930 # Check for a 64-bit object if we didn't find anything.
17931 if test -z "$aix_libpath"; then
17932 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17935 rm -f core conftest.err conftest.
$ac_objext \
17936 conftest
$ac_exeext conftest.
$ac_ext
17937 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17939 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17940 # Warning - without using the other run time loading flags,
17941 # -berok will link without error, but may produce a broken library.
17942 no_undefined_flag
=' ${wl}-bernotok'
17943 allow_undefined_flag
=' ${wl}-berok'
17944 if test "$with_gnu_ld" = yes; then
17945 # We only use this code for GNU lds that support --whole-archive.
17946 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17948 # Exported symbols can be pulled into shared objects from archives
17949 whole_archive_flag_spec
='$convenience'
17951 archive_cmds_need_lc
=yes
17952 # This is similar to how AIX traditionally builds its shared libraries.
17953 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'
17961 # see comment about AmigaOS4 .so support
17962 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17963 archive_expsym_cmds
=''
17966 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)'
17967 hardcode_libdir_flag_spec
='-L$libdir'
17968 hardcode_minus_L
=yes
17974 export_dynamic_flag_spec
=-rdynamic
17977 cygwin
* | mingw
* | pw32
* | cegcc
*)
17978 # When not using gcc, we currently assume that we are using
17979 # Microsoft Visual C++.
17980 # hardcode_libdir_flag_spec is actually meaningless, as there is
17981 # no search path for DLLs.
17982 hardcode_libdir_flag_spec
=' '
17983 allow_undefined_flag
=unsupported
17984 # Tell ltmain to make .lib files, not .a files.
17986 # Tell ltmain to make .dll files, not .so files.
17988 # FIXME: Setting linknames here is a bad hack.
17989 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17990 # The linker will automatically build a .lib file if we build a DLL.
17991 old_archive_from_new_cmds
='true'
17992 # FIXME: Should let the user specify the lib program.
17993 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17994 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17995 enable_shared_with_static_runtimes
=yes
17998 darwin
* | rhapsody
*)
18001 archive_cmds_need_lc
=no
18003 hardcode_automatic
=yes
18004 hardcode_shlibpath_var
=unsupported
18005 if test "$lt_cv_ld_force_load" = "yes"; then
18006 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\"`'
18008 whole_archive_flag_spec
=''
18010 link_all_deplibs
=yes
18011 allow_undefined_flag
="$_lt_dar_allow_undefined"
18012 case $cc_basename in
18013 ifort
*) _lt_dar_can_shared
=yes ;;
18014 *) _lt_dar_can_shared
=$GCC ;;
18016 if test "$_lt_dar_can_shared" = "yes"; then
18017 output_verbose_link_cmd
=func_echo_all
18018 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18019 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18020 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}"
18021 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}"
18030 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18031 hardcode_libdir_flag_spec
='-L$libdir'
18032 hardcode_shlibpath_var
=no
18035 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18036 # support. Future versions do this automatically, but an explicit c++rt0.o
18037 # does not break anything, and helps significantly (at the cost of a little
18040 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18041 hardcode_libdir_flag_spec
='-R$libdir'
18042 hardcode_direct
=yes
18043 hardcode_shlibpath_var
=no
18046 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18048 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18049 hardcode_direct
=yes
18050 hardcode_minus_L
=yes
18051 hardcode_shlibpath_var
=no
18054 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18055 freebsd
* | dragonfly
*)
18056 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18057 hardcode_libdir_flag_spec
='-R$libdir'
18058 hardcode_direct
=yes
18059 hardcode_shlibpath_var
=no
18063 if test "$GCC" = yes; then
18064 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'
18066 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'
18068 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18069 hardcode_libdir_separator
=:
18070 hardcode_direct
=yes
18072 # hardcode_minus_L: Not really in the search PATH,
18073 # but as the default location of the library.
18074 hardcode_minus_L
=yes
18075 export_dynamic_flag_spec
='${wl}-E'
18079 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18080 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18082 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18084 if test "$with_gnu_ld" = no
; then
18085 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18086 hardcode_libdir_flag_spec_ld
='+b $libdir'
18087 hardcode_libdir_separator
=:
18088 hardcode_direct
=yes
18089 hardcode_direct_absolute
=yes
18090 export_dynamic_flag_spec
='${wl}-E'
18091 # hardcode_minus_L: Not really in the search PATH,
18092 # but as the default location of the library.
18093 hardcode_minus_L
=yes
18098 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18101 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18104 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18107 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18113 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18116 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18120 # Older versions of the 11.00 compiler do not understand -b yet
18121 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18123 $as_echo_n "checking if $CC understands -b... " >&6; }
18124 if ${lt_cv_prog_compiler__b+:} false
; then :
18125 $as_echo_n "(cached) " >&6
18127 lt_cv_prog_compiler__b
=no
18128 save_LDFLAGS
="$LDFLAGS"
18129 LDFLAGS
="$LDFLAGS -b"
18130 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18131 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18132 # The linker can only warn and ignore the option if not recognized
18133 # So say no if there are warnings
18134 if test -s conftest.err
; then
18135 # Append any errors to the config.log.
18136 cat conftest.err
1>&5
18137 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
18138 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18139 if diff conftest.exp conftest.er2
>/dev
/null
; then
18140 lt_cv_prog_compiler__b
=yes
18143 lt_cv_prog_compiler__b
=yes
18147 LDFLAGS
="$save_LDFLAGS"
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18151 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18153 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
18154 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18156 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18162 if test "$with_gnu_ld" = no
; then
18163 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18164 hardcode_libdir_separator
=:
18169 hardcode_shlibpath_var
=no
18172 hardcode_direct
=yes
18173 hardcode_direct_absolute
=yes
18174 export_dynamic_flag_spec
='${wl}-E'
18176 # hardcode_minus_L: Not really in the search PATH,
18177 # but as the default location of the library.
18178 hardcode_minus_L
=yes
18184 irix5
* | irix6
* | nonstopux
*)
18185 if test "$GCC" = yes; then
18186 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'
18187 # Try to use the -exported_symbol ld option, if it does not
18188 # work, assume that -exports_file does not work either and
18189 # implicitly export all symbols.
18190 save_LDFLAGS
="$LDFLAGS"
18191 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18196 if ac_fn_c_try_link
"$LINENO"; then :
18197 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'
18200 rm -f core conftest.err conftest.
$ac_objext \
18201 conftest
$ac_exeext conftest.
$ac_ext
18202 LDFLAGS
="$save_LDFLAGS"
18204 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'
18205 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'
18207 archive_cmds_need_lc
='no'
18208 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18209 hardcode_libdir_separator
=:
18211 link_all_deplibs
=yes
18215 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18216 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18218 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18220 hardcode_libdir_flag_spec
='-R$libdir'
18221 hardcode_direct
=yes
18222 hardcode_shlibpath_var
=no
18226 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18227 hardcode_direct
=yes
18228 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18229 hardcode_libdir_separator
=:
18230 hardcode_shlibpath_var
=no
18237 if test -f /usr
/libexec
/ld.so
; then
18238 hardcode_direct
=yes
18239 hardcode_shlibpath_var
=no
18240 hardcode_direct_absolute
=yes
18241 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18242 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18243 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18244 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18245 export_dynamic_flag_spec
='${wl}-E'
18248 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18249 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18250 hardcode_libdir_flag_spec
='-R$libdir'
18253 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18254 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18264 hardcode_libdir_flag_spec
='-L$libdir'
18265 hardcode_minus_L
=yes
18266 allow_undefined_flag
=unsupported
18267 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'
18268 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18272 if test "$GCC" = yes; then
18273 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18274 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'
18276 allow_undefined_flag
=' -expect_unresolved \*'
18277 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'
18279 archive_cmds_need_lc
='no'
18280 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18281 hardcode_libdir_separator
=:
18284 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18285 if test "$GCC" = yes; then
18286 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18287 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'
18288 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18290 allow_undefined_flag
=' -expect_unresolved \*'
18291 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'
18292 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~
18293 $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'
18295 # Both c and cxx compiler support -rpath directly
18296 hardcode_libdir_flag_spec
='-rpath $libdir'
18298 archive_cmds_need_lc
='no'
18299 hardcode_libdir_separator
=:
18303 no_undefined_flag
=' -z defs'
18304 if test "$GCC" = yes; then
18306 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18307 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18308 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18310 case `$CC -V 2>&1` in
18313 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18314 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18315 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18319 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18320 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18321 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18325 hardcode_libdir_flag_spec
='-R$libdir'
18326 hardcode_shlibpath_var
=no
18328 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18330 # The compiler driver will combine and reorder linker options,
18331 # but understands `-z linker_flag'. GCC discards it without `$wl',
18332 # but is careful enough not to reorder.
18333 # Supported since Solaris 2.6 (maybe 2.5.1?)
18334 if test "$GCC" = yes; then
18335 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18337 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18341 link_all_deplibs
=yes
18345 if test "x$host_vendor" = xsequent
; then
18346 # Use $CC to link under sequent, because it throws in some extra .o
18347 # files that make .init and .fini sections work.
18348 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18350 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18352 hardcode_libdir_flag_spec
='-L$libdir'
18353 hardcode_direct
=yes
18354 hardcode_minus_L
=yes
18355 hardcode_shlibpath_var
=no
18359 case $host_vendor in
18361 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18362 hardcode_direct
=yes # is this really true???
18365 ## LD is ld it makes a PLAMLIB
18366 ## CC just makes a GrossModule.
18367 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18368 reload_cmds
='$CC -r -o $output$reload_objs'
18372 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18373 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18376 runpath_var
='LD_RUN_PATH'
18377 hardcode_shlibpath_var
=no
18381 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18382 hardcode_shlibpath_var
=no
18383 export_dynamic_flag_spec
='-Bexport'
18387 if test -d /usr
/nec
; then
18388 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18389 hardcode_shlibpath_var
=no
18390 runpath_var
=LD_RUN_PATH
18391 hardcode_runpath_var
=yes
18396 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18397 no_undefined_flag
='${wl}-z,text'
18398 archive_cmds_need_lc
=no
18399 hardcode_shlibpath_var
=no
18400 runpath_var
='LD_RUN_PATH'
18402 if test "$GCC" = yes; then
18403 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18404 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18406 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18407 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18411 sysv5
* | sco3.2v5
* | sco5v6
*)
18412 # Note: We can NOT use -z defs as we might desire, because we do not
18413 # link with -lc, and that would cause any symbols used from libc to
18414 # always be unresolved, which means just about no library would
18415 # ever link correctly. If we're not using GNU ld we use -z text
18416 # though, which does catch some bad symbols but isn't as heavy-handed
18418 no_undefined_flag
='${wl}-z,text'
18419 allow_undefined_flag
='${wl}-z,nodefs'
18420 archive_cmds_need_lc
=no
18421 hardcode_shlibpath_var
=no
18422 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18423 hardcode_libdir_separator
=':'
18424 link_all_deplibs
=yes
18425 export_dynamic_flag_spec
='${wl}-Bexport'
18426 runpath_var
='LD_RUN_PATH'
18428 if test "$GCC" = yes; then
18429 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18430 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18432 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18433 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18438 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18439 hardcode_libdir_flag_spec
='-L$libdir'
18440 hardcode_shlibpath_var
=no
18448 if test x
$host_vendor = xsni
; then
18450 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18451 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18458 $as_echo "$ld_shlibs" >&6; }
18459 test "$ld_shlibs" = no
&& can_build_shared
=no
18461 with_gnu_ld
=$with_gnu_ld
18478 # Do we need to explicitly link libc?
18480 case "x$archive_cmds_need_lc" in
18482 # Assume -lc should be added
18483 archive_cmds_need_lc
=yes
18485 if test "$enable_shared" = yes && test "$GCC" = yes; then
18486 case $archive_cmds in
18488 # FIXME: we may have to deal with multi-command sequences.
18491 # Test whether the compiler implicitly links with -lc since on some
18492 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18493 # to ld, don't add -lc before -lgcc.
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18495 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18496 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18497 $as_echo_n "(cached) " >&6
18500 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18503 (eval $ac_compile) 2>&5
18505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18506 test $ac_status = 0; } 2>conftest.err
; then
18509 libobjs
=conftest.
$ac_objext
18511 wl
=$lt_prog_compiler_wl
18512 pic_flag
=$lt_prog_compiler_pic
18518 lt_save_allow_undefined_flag
=$allow_undefined_flag
18519 allow_undefined_flag
=
18520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18521 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18524 test $ac_status = 0; }
18526 lt_cv_archive_cmds_need_lc
=no
18528 lt_cv_archive_cmds_need_lc
=yes
18530 allow_undefined_flag
=$lt_save_allow_undefined_flag
18532 cat conftest.err
1>&5
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18538 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18539 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18703 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18705 if test "$GCC" = yes; then
18707 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18708 *) lt_awk_arg
="/^libraries:/" ;;
18711 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18712 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18714 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18715 case $lt_search_path_spec in
18717 # if the path contains ";" then we assume it to be the separator
18718 # otherwise default to the standard path separator (i.e. ":") - it is
18719 # assumed that no part of a normal pathname contains ";" but that should
18720 # okay in the real world where ";" in dirpaths is itself problematic.
18721 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18724 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18727 # Ok, now we have the path, separated by spaces, we can step through it
18728 # and add multilib dir if necessary.
18729 lt_tmp_lt_search_path_spec
=
18730 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18731 for lt_sys_path
in $lt_search_path_spec; do
18732 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18733 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18735 test -d "$lt_sys_path" && \
18736 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18739 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18740 BEGIN {RS=" "; FS="/|\n";} {
18743 for (lt_i = NF; lt_i > 0; lt_i--) {
18744 if ($lt_i != "" && $lt_i != ".") {
18745 if ($lt_i == "..") {
18748 if (lt_count == 0) {
18749 lt_foo="/" $lt_i lt_foo;
18756 if (lt_foo != "") { lt_freq[lt_foo]++; }
18757 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18759 # AWK program above erroneously prepends '/' to C:/dos/paths
18762 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18763 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18765 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18767 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18769 library_names_spec
=
18770 libname_spec
='lib$name'
18774 postuninstall_cmds
=
18778 shlibpath_overrides_runpath
=unknown
18780 dynamic_linker
="$host_os ld.so"
18781 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18782 need_lib_prefix
=unknown
18783 hardcode_into_libs
=no
18785 # when you set need_version to no, make sure it does not cause -set_version
18786 # flags to be left without arguments
18787 need_version
=unknown
18792 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18793 shlibpath_var
=LIBPATH
18795 # AIX 3 has no versioning support, so we append a major version to the name.
18796 soname_spec
='${libname}${release}${shared_ext}$major'
18803 hardcode_into_libs
=yes
18804 if test "$host_cpu" = ia64
; then
18805 # AIX 5 supports IA64
18806 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18807 shlibpath_var
=LD_LIBRARY_PATH
18809 # With GCC up to 2.95.x, collect2 would create an import file
18810 # for dependence libraries. The import file would start with
18811 # the line `#! .'. This would cause the generated library to
18812 # depend on `.', always an invalid library. This was fixed in
18813 # development snapshots of GCC prior to 3.0.
18815 aix4 | aix4.
[01] | aix4.
[01].
*)
18816 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18818 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18821 can_build_shared
=no
18825 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18826 # soname into executable. Probably we can add versioning support to
18827 # collect2, so additional links can be useful in future.
18828 if test "$aix_use_runtimelinking" = yes; then
18829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18830 # instead of lib<name>.a to let people know that these are not
18831 # typical AIX shared libraries.
18832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18834 # We preserve .a as extension for shared libraries through AIX4.2
18835 # and later when we are not doing run time linking.
18836 library_names_spec
='${libname}${release}.a $libname.a'
18837 soname_spec
='${libname}${release}${shared_ext}$major'
18839 shlibpath_var
=LIBPATH
18846 # Since July 2007 AmigaOS4 officially supports .so libraries.
18847 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18851 library_names_spec
='$libname.ixlibrary $libname.a'
18852 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18853 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'
18859 library_names_spec
='${libname}${shared_ext}'
18860 dynamic_linker
="$host_os ld.so"
18861 shlibpath_var
=LIBRARY_PATH
18867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868 soname_spec
='${libname}${release}${shared_ext}$major'
18869 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18870 shlibpath_var
=LD_LIBRARY_PATH
18871 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18872 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18873 # the default ld.so.conf also contains /usr/contrib/lib and
18874 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18875 # libtool to hard-code these into programs
18878 cygwin
* | mingw
* | pw32
* | cegcc
*)
18879 version_type
=windows
18884 case $GCC,$host_os in
18885 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18886 library_names_spec
='$libname.dll.a'
18887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18888 postinstall_cmds
='base_file=`basename \${file}`~
18889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18890 dldir=$destdir/`dirname \$dlpath`~
18891 test -d \$dldir || mkdir -p \$dldir~
18892 $install_prog $dir/$dlname \$dldir/$dlname~
18893 chmod a+x \$dldir/$dlname~
18894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18897 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18898 dlpath=$dir/\$dldll~
18900 shlibpath_overrides_runpath
=yes
18904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18905 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18907 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18910 # MinGW DLLs use traditional 'lib' prefix
18911 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18914 # pw32 DLLs use 'pw' prefix rather than 'lib'
18915 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18921 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18924 dynamic_linker
='Win32 ld.exe'
18925 # FIXME: first we should search . and the directory the executable is in
18929 darwin
* | rhapsody
*)
18930 dynamic_linker
="$host_os dyld"
18931 version_type
=darwin
18934 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18935 soname_spec
='${libname}${release}${major}$shared_ext'
18936 shlibpath_overrides_runpath
=yes
18937 shlibpath_var
=DYLD_LIBRARY_PATH
18938 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18940 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18941 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18949 soname_spec
='${libname}${release}${shared_ext}$major'
18950 shlibpath_var
=LD_LIBRARY_PATH
18953 freebsd
* | dragonfly
*)
18954 # DragonFly does not have aout. When/if they implement a new
18955 # versioning mechanism, adjust this.
18956 if test -x /usr
/bin
/objformat
; then
18957 objformat
=`/usr/bin/objformat`
18960 freebsd
[23].
*) objformat
=aout
;;
18961 *) objformat
=elf
;;
18964 version_type
=freebsd-
$objformat
18965 case $version_type in
18967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18972 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18976 shlibpath_var
=LD_LIBRARY_PATH
18979 shlibpath_overrides_runpath
=yes
18981 freebsd3.
[01]* | freebsdelf3.
[01]*)
18982 shlibpath_overrides_runpath
=yes
18983 hardcode_into_libs
=yes
18985 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18986 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18987 shlibpath_overrides_runpath
=no
18988 hardcode_into_libs
=yes
18990 *) # from 4.6 on, and DragonFly
18991 shlibpath_overrides_runpath
=yes
18992 hardcode_into_libs
=yes
19001 dynamic_linker
="$host_os runtime_loader"
19002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19003 soname_spec
='${libname}${release}${shared_ext}$major'
19004 shlibpath_var
=LIBRARY_PATH
19005 shlibpath_overrides_runpath
=yes
19006 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19007 hardcode_into_libs
=yes
19010 hpux9
* | hpux10
* | hpux11
*)
19011 # Give a soname corresponding to the major version so that dld.sl refuses to
19012 # link against other versions.
19019 hardcode_into_libs
=yes
19020 dynamic_linker
="$host_os dld.so"
19021 shlibpath_var
=LD_LIBRARY_PATH
19022 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19024 soname_spec
='${libname}${release}${shared_ext}$major'
19025 if test "X$HPUX_IA64_MODE" = X32
; then
19026 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19028 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19030 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19034 hardcode_into_libs
=yes
19035 dynamic_linker
="$host_os dld.sl"
19036 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19037 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19039 soname_spec
='${libname}${release}${shared_ext}$major'
19040 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19041 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19045 dynamic_linker
="$host_os dld.sl"
19046 shlibpath_var
=SHLIB_PATH
19047 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19048 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19049 soname_spec
='${libname}${release}${shared_ext}$major'
19052 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19053 postinstall_cmds
='chmod 555 $lib'
19054 # or fails outright, so override atomically:
19055 install_override_mode
=555
19062 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19063 soname_spec
='${libname}${release}${shared_ext}$major'
19064 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19065 shlibpath_var
=LD_LIBRARY_PATH
19066 shlibpath_overrides_runpath
=no
19067 hardcode_into_libs
=yes
19070 irix5
* | irix6
* | nonstopux
*)
19072 nonstopux
*) version_type
=nonstopux
;;
19074 if test "$lt_cv_prog_gnu_ld" = yes; then
19082 soname_spec
='${libname}${release}${shared_ext}$major'
19083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19085 irix5
* | nonstopux
*)
19086 libsuff
= shlibsuff
=
19089 case $LD in # libtool.m4 will add one of these switches to LD
19090 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19091 libsuff
= shlibsuff
= libmagic
=32-bit;;
19092 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19093 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19094 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19095 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19096 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19100 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19101 shlibpath_overrides_runpath
=no
19102 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19103 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19104 hardcode_into_libs
=yes
19107 # No shared lib support for Linux oldld, aout, or coff.
19108 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19112 # This must be Linux ELF.
19114 # uclinux* changes (here and below) have been submitted to the libtool
19115 # project, but have not yet been accepted: they are GCC-local changes
19116 # for the time being. (See
19117 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19118 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
19122 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19123 soname_spec
='${libname}${release}${shared_ext}$major'
19124 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19125 shlibpath_var
=LD_LIBRARY_PATH
19126 shlibpath_overrides_runpath
=no
19128 # Some binutils ld are patched to set DT_RUNPATH
19129 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
19130 $as_echo_n "(cached) " >&6
19132 lt_cv_shlibpath_overrides_runpath
=no
19133 save_LDFLAGS
=$LDFLAGS
19134 save_libdir
=$libdir
19135 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19136 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19148 if ac_fn_c_try_link
"$LINENO"; then :
19149 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19150 lt_cv_shlibpath_overrides_runpath
=yes
19153 rm -f core conftest.err conftest.
$ac_objext \
19154 conftest
$ac_exeext conftest.
$ac_ext
19155 LDFLAGS
=$save_LDFLAGS
19156 libdir
=$save_libdir
19160 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19162 # This implies no fast_install, which is unacceptable.
19163 # Some rework will be needed to allow for fast_install
19164 # before this can be enabled.
19165 hardcode_into_libs
=yes
19167 # Append ld.so.conf contents to the search path
19168 if test -f /etc
/ld.so.conf
; then
19169 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' ' '`
19170 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19173 # We used to test for /lib/ld.so.1 and disable shared libraries on
19174 # powerpc, because MkLinux only supported shared libraries with the
19175 # GNU dynamic linker. Since this was broken with cross compilers,
19176 # most powerpc-linux boxes support dynamic linking these days and
19177 # people can always --disable-shared, the test was removed, and we
19178 # assume the GNU/Linux dynamic linker is in use.
19179 dynamic_linker
='GNU/Linux ld.so'
19186 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19188 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19189 dynamic_linker
='NetBSD (a.out) ld.so'
19191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19192 soname_spec
='${libname}${release}${shared_ext}$major'
19193 dynamic_linker
='NetBSD ld.elf_so'
19195 shlibpath_var
=LD_LIBRARY_PATH
19196 shlibpath_overrides_runpath
=yes
19197 hardcode_into_libs
=yes
19202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19203 shlibpath_var
=LD_LIBRARY_PATH
19204 shlibpath_overrides_runpath
=yes
19211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19212 soname_spec
='${libname}${release}${shared_ext}$major'
19213 shlibpath_var
=LD_LIBRARY_PATH
19214 shlibpath_overrides_runpath
=no
19215 hardcode_into_libs
=yes
19216 dynamic_linker
='ldqnx.so'
19221 sys_lib_dlsearch_path_spec
="/usr/lib"
19223 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19225 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19226 *) need_version
=no
;;
19228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19229 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19230 shlibpath_var
=LD_LIBRARY_PATH
19231 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19233 openbsd2.
[89] | openbsd2.
[89].
*)
19234 shlibpath_overrides_runpath
=no
19237 shlibpath_overrides_runpath
=yes
19241 shlibpath_overrides_runpath
=yes
19246 libname_spec
='$name'
19249 library_names_spec
='$libname${shared_ext} $libname.a'
19250 dynamic_linker
='OS/2 ld.exe'
19251 shlibpath_var
=LIBPATH
19254 osf3
* | osf4
* | osf5
*)
19258 soname_spec
='${libname}${release}${shared_ext}$major'
19259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19260 shlibpath_var
=LD_LIBRARY_PATH
19261 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19262 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19273 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19274 soname_spec
='${libname}${release}${shared_ext}$major'
19275 shlibpath_var
=LD_LIBRARY_PATH
19276 shlibpath_overrides_runpath
=yes
19277 hardcode_into_libs
=yes
19278 # ldd complains unless libraries are executable
19279 postinstall_cmds
='chmod +x $lib'
19284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19285 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19286 shlibpath_var
=LD_LIBRARY_PATH
19287 shlibpath_overrides_runpath
=yes
19288 if test "$with_gnu_ld" = yes; then
19296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19297 soname_spec
='${libname}${release}${shared_ext}$major'
19298 shlibpath_var
=LD_LIBRARY_PATH
19299 case $host_vendor in
19301 shlibpath_overrides_runpath
=no
19303 runpath_var
=LD_RUN_PATH
19311 shlibpath_overrides_runpath
=no
19312 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19318 if test -d /usr
/nec
;then
19320 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19321 soname_spec
='$libname${shared_ext}.$major'
19322 shlibpath_var
=LD_LIBRARY_PATH
19326 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19327 version_type
=freebsd-elf
19330 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19331 soname_spec
='${libname}${release}${shared_ext}$major'
19332 shlibpath_var
=LD_LIBRARY_PATH
19333 shlibpath_overrides_runpath
=yes
19334 hardcode_into_libs
=yes
19335 if test "$with_gnu_ld" = yes; then
19336 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19338 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19341 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19345 sys_lib_dlsearch_path_spec
='/usr/lib'
19349 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19354 shlibpath_var
=LD_LIBRARY_PATH
19355 shlibpath_overrides_runpath
=no
19356 hardcode_into_libs
=yes
19361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19362 soname_spec
='${libname}${release}${shared_ext}$major'
19363 shlibpath_var
=LD_LIBRARY_PATH
19366 # Shared libraries for VwWorks, >= 7 only at this stage
19367 # and (fpic) still incompatible with "large" code models
19368 # in a few configurations. Only for RTP mode in any case,
19369 # and upon explicit request at configure time.
19372 case ${with_multisubdir}-${enable_shared} in
19379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19380 soname_spec
='${libname}${release}${shared_ext}$major'
19381 dynamic_linker
="$host_os module_loader"
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19390 $as_echo "$dynamic_linker" >&6; }
19391 test "$dynamic_linker" = no
&& can_build_shared
=no
19393 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19394 if test "$GCC" = yes; then
19395 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19398 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19399 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19401 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19402 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19497 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19499 if test -n "$hardcode_libdir_flag_spec" ||
19500 test -n "$runpath_var" ||
19501 test "X$hardcode_automatic" = "Xyes" ; then
19503 # We can hardcode non-existent directories.
19504 if test "$hardcode_direct" != no
&&
19505 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19506 # have to relink, otherwise we might link with an installed library
19507 # when we should be linking with a yet-to-be-installed one
19508 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19509 test "$hardcode_minus_L" != no
; then
19510 # Linking always hardcodes the temporary library directory.
19511 hardcode_action
=relink
19513 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19514 hardcode_action
=immediate
19517 # We cannot hardcode anything, or else we can only hardcode existing
19519 hardcode_action
=unsupported
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19522 $as_echo "$hardcode_action" >&6; }
19524 if test "$hardcode_action" = relink ||
19525 test "$inherit_rpath" = yes; then
19526 # Fast installation is not supported
19527 enable_fast_install
=no
19528 elif test "$shlibpath_overrides_runpath" = yes ||
19529 test "$enable_shared" = no
; then
19530 # Fast installation is not necessary
19531 enable_fast_install
=needless
19539 if test "x$enable_dlopen" != xyes
; then
19540 enable_dlopen
=unknown
19541 enable_dlopen_self
=unknown
19542 enable_dlopen_self_static
=unknown
19549 lt_cv_dlopen
="load_add_on"
19551 lt_cv_dlopen_self
=yes
19554 mingw
* | pw32
* | cegcc
*)
19555 lt_cv_dlopen
="LoadLibrary"
19560 lt_cv_dlopen
="dlopen"
19565 # if libdl is installed we need to link against it
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19567 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19568 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19569 $as_echo_n "(cached) " >&6
19571 ac_check_lib_save_LIBS
=$LIBS
19573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19576 /* Override any GCC internal prototype to avoid an error.
19577 Use char because int might match the return type of a GCC
19578 builtin and then its argument prototype would still apply. */
19591 if ac_fn_c_try_link
"$LINENO"; then :
19592 ac_cv_lib_dl_dlopen
=yes
19594 ac_cv_lib_dl_dlopen
=no
19596 rm -f core conftest.err conftest.
$ac_objext \
19597 conftest
$ac_exeext conftest.
$ac_ext
19598 LIBS
=$ac_check_lib_save_LIBS
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19601 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19602 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19603 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19606 lt_cv_dlopen
="dyld"
19608 lt_cv_dlopen_self
=yes
19615 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19616 if test "x$ac_cv_func_shl_load" = xyes
; then :
19617 lt_cv_dlopen
="shl_load"
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19620 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19621 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19622 $as_echo_n "(cached) " >&6
19624 ac_check_lib_save_LIBS
=$LIBS
19626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19627 /* end confdefs.h. */
19629 /* Override any GCC internal prototype to avoid an error.
19630 Use char because int might match the return type of a GCC
19631 builtin and then its argument prototype would still apply. */
19639 return shl_load ();
19644 if ac_fn_c_try_link
"$LINENO"; then :
19645 ac_cv_lib_dld_shl_load
=yes
19647 ac_cv_lib_dld_shl_load
=no
19649 rm -f core conftest.err conftest.
$ac_objext \
19650 conftest
$ac_exeext conftest.
$ac_ext
19651 LIBS
=$ac_check_lib_save_LIBS
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19654 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19655 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19656 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19658 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19659 if test "x$ac_cv_func_dlopen" = xyes
; then :
19660 lt_cv_dlopen
="dlopen"
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19663 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19664 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19665 $as_echo_n "(cached) " >&6
19667 ac_check_lib_save_LIBS
=$LIBS
19669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h. */
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19687 if ac_fn_c_try_link
"$LINENO"; then :
19688 ac_cv_lib_dl_dlopen
=yes
19690 ac_cv_lib_dl_dlopen
=no
19692 rm -f core conftest.err conftest.
$ac_objext \
19693 conftest
$ac_exeext conftest.
$ac_ext
19694 LIBS
=$ac_check_lib_save_LIBS
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19697 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19698 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19699 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19702 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19703 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19704 $as_echo_n "(cached) " >&6
19706 ac_check_lib_save_LIBS
=$LIBS
19707 LIBS
="-lsvld $LIBS"
19708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19709 /* end confdefs.h. */
19711 /* Override any GCC internal prototype to avoid an error.
19712 Use char because int might match the return type of a GCC
19713 builtin and then its argument prototype would still apply. */
19726 if ac_fn_c_try_link
"$LINENO"; then :
19727 ac_cv_lib_svld_dlopen
=yes
19729 ac_cv_lib_svld_dlopen
=no
19731 rm -f core conftest.err conftest.
$ac_objext \
19732 conftest
$ac_exeext conftest.
$ac_ext
19733 LIBS
=$ac_check_lib_save_LIBS
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19736 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19737 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19738 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19741 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19742 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19743 $as_echo_n "(cached) " >&6
19745 ac_check_lib_save_LIBS
=$LIBS
19747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19748 /* end confdefs.h. */
19750 /* Override any GCC internal prototype to avoid an error.
19751 Use char because int might match the return type of a GCC
19752 builtin and then its argument prototype would still apply. */
19760 return dld_link ();
19765 if ac_fn_c_try_link
"$LINENO"; then :
19766 ac_cv_lib_dld_dld_link
=yes
19768 ac_cv_lib_dld_dld_link
=no
19770 rm -f core conftest.err conftest.
$ac_objext \
19771 conftest
$ac_exeext conftest.
$ac_ext
19772 LIBS
=$ac_check_lib_save_LIBS
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19775 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19776 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19777 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19798 if test "x$lt_cv_dlopen" != xno
; then
19804 case $lt_cv_dlopen in
19806 save_CPPFLAGS
="$CPPFLAGS"
19807 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19809 save_LDFLAGS
="$LDFLAGS"
19810 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19813 LIBS
="$lt_cv_dlopen_libs $LIBS"
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19816 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19817 if ${lt_cv_dlopen_self+:} false
; then :
19818 $as_echo_n "(cached) " >&6
19820 if test "$cross_compiling" = yes; then :
19821 lt_cv_dlopen_self
=cross
19823 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19824 lt_status
=$lt_dlunknown
19825 cat > conftest.
$ac_ext <<_LT_EOF
19826 #line 19826 "configure"
19827 #include "confdefs.h"
19836 # define LT_DLGLOBAL RTLD_GLOBAL
19839 # define LT_DLGLOBAL DL_GLOBAL
19841 # define LT_DLGLOBAL 0
19845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19846 find out it does not work in some platform. */
19847 #ifndef LT_DLLAZY_OR_NOW
19849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19852 # define LT_DLLAZY_OR_NOW DL_LAZY
19855 # define LT_DLLAZY_OR_NOW RTLD_NOW
19858 # define LT_DLLAZY_OR_NOW DL_NOW
19860 # define LT_DLLAZY_OR_NOW 0
19867 /* When -fvisbility=hidden is used, assume the code has been annotated
19868 correspondingly for the symbols needed. */
19869 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19870 void fnord () __attribute__((visibility("default")));
19873 void fnord () { int i=42; }
19876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19877 int status = $lt_dlunknown;
19881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19884 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19885 else puts (dlerror ());
19887 /* dlclose (self); */
19895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19896 (eval $ac_link) 2>&5
19898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19899 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19900 (.
/conftest
; exit; ) >&5 2>/dev
/null
19902 case x
$lt_status in
19903 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19904 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19905 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19908 # compilation failed
19909 lt_cv_dlopen_self
=no
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19917 $as_echo "$lt_cv_dlopen_self" >&6; }
19919 if test "x$lt_cv_dlopen_self" = xyes
; then
19920 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19922 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19923 if ${lt_cv_dlopen_self_static+:} false
; then :
19924 $as_echo_n "(cached) " >&6
19926 if test "$cross_compiling" = yes; then :
19927 lt_cv_dlopen_self_static
=cross
19929 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19930 lt_status
=$lt_dlunknown
19931 cat > conftest.
$ac_ext <<_LT_EOF
19932 #line 19932 "configure"
19933 #include "confdefs.h"
19942 # define LT_DLGLOBAL RTLD_GLOBAL
19945 # define LT_DLGLOBAL DL_GLOBAL
19947 # define LT_DLGLOBAL 0
19951 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19952 find out it does not work in some platform. */
19953 #ifndef LT_DLLAZY_OR_NOW
19955 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19958 # define LT_DLLAZY_OR_NOW DL_LAZY
19961 # define LT_DLLAZY_OR_NOW RTLD_NOW
19964 # define LT_DLLAZY_OR_NOW DL_NOW
19966 # define LT_DLLAZY_OR_NOW 0
19973 /* When -fvisbility=hidden is used, assume the code has been annotated
19974 correspondingly for the symbols needed. */
19975 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19976 void fnord () __attribute__((visibility("default")));
19979 void fnord () { int i=42; }
19982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19983 int status = $lt_dlunknown;
19987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19990 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19991 else puts (dlerror ());
19993 /* dlclose (self); */
20001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20002 (eval $ac_link) 2>&5
20004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20005 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20006 (.
/conftest
; exit; ) >&5 2>/dev
/null
20008 case x
$lt_status in
20009 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
20010 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
20011 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
20014 # compilation failed
20015 lt_cv_dlopen_self_static
=no
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20023 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20026 CPPFLAGS
="$save_CPPFLAGS"
20027 LDFLAGS
="$save_LDFLAGS"
20032 case $lt_cv_dlopen_self in
20033 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
20034 *) enable_dlopen_self
=unknown
;;
20037 case $lt_cv_dlopen_self_static in
20038 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
20039 *) enable_dlopen_self_static
=unknown
;;
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20062 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20063 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
20064 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
20065 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20067 $as_echo "yes" >&6; }
20069 # FIXME - insert some real tests, host_os isn't really good enough
20072 if test -n "$STRIP" ; then
20073 striplib
="$STRIP -x"
20074 old_striplib
="$STRIP -S"
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20076 $as_echo "yes" >&6; }
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20079 $as_echo "no" >&6; }
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20084 $as_echo "no" >&6; }
20100 # Report which library types will actually be built
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20102 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20104 $as_echo "$can_build_shared" >&6; }
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20107 $as_echo_n "checking whether to build shared libraries... " >&6; }
20108 test "$can_build_shared" = "no" && enable_shared
=no
20110 # On AIX, shared libraries and static libraries use the same namespace, and
20111 # are all built from PIC.
20114 test "$enable_shared" = yes && enable_static
=no
20115 if test -n "$RANLIB"; then
20116 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20117 postinstall_cmds
='$RANLIB $lib'
20122 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20123 test "$enable_shared" = yes && enable_static
=no
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20128 $as_echo "$enable_shared" >&6; }
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20131 $as_echo_n "checking whether to build static libraries... " >&6; }
20132 # Make sure either enable_shared or enable_static is yes.
20133 test "$enable_shared" = yes || enable_static
=yes
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20135 $as_echo "$enable_static" >&6; }
20142 ac_cpp
='$CXXCPP $CPPFLAGS'
20143 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20144 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20145 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20149 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20150 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20151 (test "X$CXX" != "Xg++"))) ; then
20153 ac_cpp
='$CXXCPP $CPPFLAGS'
20154 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20155 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20156 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20158 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20159 if test -z "$CXXCPP"; then
20160 if ${ac_cv_prog_CXXCPP+:} false
; then :
20161 $as_echo_n "(cached) " >&6
20163 # Double quotes because CXXCPP needs to be expanded
20164 for CXXCPP
in "$CXX -E" "/lib/cpp"
20166 ac_preproc_ok
=false
20167 for ac_cxx_preproc_warn_flag
in '' yes
20169 # Use a header file that comes with gcc, so configuring glibc
20170 # with a fresh cross-compiler works.
20171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20172 # <limits.h> exists even on freestanding compilers.
20173 # On the NeXT, cc -E runs the code through the compiler's parser,
20174 # not just through cpp. "Syntax error" is here to catch this case.
20175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20176 /* end confdefs.h. */
20178 # include <limits.h>
20180 # include <assert.h>
20184 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20187 # Broken: fails on valid input.
20190 rm -f conftest.err conftest.i conftest.
$ac_ext
20192 # OK, works on sane cases. Now check whether nonexistent headers
20193 # can be detected and how.
20194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20195 /* end confdefs.h. */
20196 #include <ac_nonexistent.h>
20198 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20199 # Broken: success on invalid input.
20202 # Passes both tests.
20206 rm -f conftest.err conftest.i conftest.
$ac_ext
20209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20210 rm -f conftest.i conftest.err conftest.
$ac_ext
20211 if $ac_preproc_ok; then :
20216 ac_cv_prog_CXXCPP
=$CXXCPP
20219 CXXCPP
=$ac_cv_prog_CXXCPP
20221 ac_cv_prog_CXXCPP
=$CXXCPP
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20224 $as_echo "$CXXCPP" >&6; }
20225 ac_preproc_ok
=false
20226 for ac_cxx_preproc_warn_flag
in '' yes
20228 # Use a header file that comes with gcc, so configuring glibc
20229 # with a fresh cross-compiler works.
20230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20231 # <limits.h> exists even on freestanding compilers.
20232 # On the NeXT, cc -E runs the code through the compiler's parser,
20233 # not just through cpp. "Syntax error" is here to catch this case.
20234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20235 /* end confdefs.h. */
20237 # include <limits.h>
20239 # include <assert.h>
20243 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20246 # Broken: fails on valid input.
20249 rm -f conftest.err conftest.i conftest.
$ac_ext
20251 # OK, works on sane cases. Now check whether nonexistent headers
20252 # can be detected and how.
20253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20254 /* end confdefs.h. */
20255 #include <ac_nonexistent.h>
20257 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20258 # Broken: success on invalid input.
20261 # Passes both tests.
20265 rm -f conftest.err conftest.i conftest.
$ac_ext
20268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20269 rm -f conftest.i conftest.err conftest.
$ac_ext
20270 if $ac_preproc_ok; then :
20273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20275 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20276 See \`config.log' for more details" "$LINENO" 5; }
20280 ac_cpp
='$CXXCPP $CPPFLAGS'
20281 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20282 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20283 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20286 _lt_caught_CXX_error
=yes
20290 ac_cpp
='$CXXCPP $CPPFLAGS'
20291 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20292 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20293 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20295 archive_cmds_need_lc_CXX
=no
20296 allow_undefined_flag_CXX
=
20297 always_export_symbols_CXX
=no
20298 archive_expsym_cmds_CXX
=
20299 compiler_needs_object_CXX
=no
20300 export_dynamic_flag_spec_CXX
=
20301 hardcode_direct_CXX
=no
20302 hardcode_direct_absolute_CXX
=no
20303 hardcode_libdir_flag_spec_CXX
=
20304 hardcode_libdir_flag_spec_ld_CXX
=
20305 hardcode_libdir_separator_CXX
=
20306 hardcode_minus_L_CXX
=no
20307 hardcode_shlibpath_var_CXX
=unsupported
20308 hardcode_automatic_CXX
=no
20309 inherit_rpath_CXX
=no
20311 module_expsym_cmds_CXX
=
20312 link_all_deplibs_CXX
=unknown
20313 old_archive_cmds_CXX
=$old_archive_cmds
20314 reload_flag_CXX
=$reload_flag
20315 reload_cmds_CXX
=$reload_cmds
20316 no_undefined_flag_CXX
=
20317 whole_archive_flag_spec_CXX
=
20318 enable_shared_with_static_runtimes_CXX
=no
20320 # Source file extension for C++ test sources.
20323 # Object file extension for compiled C++ test sources.
20327 # No sense in running all these tests if we already determined that
20328 # the CXX compiler isn't working. Some variables (like enable_shared)
20329 # are currently assumed to apply to all compilers on this platform,
20330 # and will be corrupted by setting them based on a non-working compiler.
20331 if test "$_lt_caught_CXX_error" != yes; then
20332 # Code to be used in simple compile tests
20333 lt_simple_compile_test_code
="int some_variable = 0;"
20335 # Code to be used in simple link tests
20336 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20338 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20345 # If no C compiler was specified, use CC.
20348 # If no C compiler flags were specified, use CFLAGS.
20349 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20351 # Allow CC to be a program name with arguments.
20355 # save warnings/boilerplate of simple test code
20356 ac_outfile
=conftest.
$ac_objext
20357 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20358 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20359 _lt_compiler_boilerplate
=`cat conftest.err`
20362 ac_outfile
=conftest.
$ac_objext
20363 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20364 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20365 _lt_linker_boilerplate
=`cat conftest.err`
20369 # Allow CC to be a program name with arguments.
20374 lt_save_with_gnu_ld
=$with_gnu_ld
20375 lt_save_path_LD
=$lt_cv_path_LD
20376 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20377 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20379 $as_unset lt_cv_prog_gnu_ld
20381 if test -n "${lt_cv_path_LDCXX+set}"; then
20382 lt_cv_path_LD
=$lt_cv_path_LDCXX
20384 $as_unset lt_cv_path_LD
20386 test -z "${LDCXX+set}" || LD
=$LDCXX
20390 for cc_temp
in $compiler""; do
20392 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20393 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20398 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20401 if test -n "$compiler"; then
20402 # We don't want -fno-exception when compiling C++ code, so set the
20403 # no_builtin_flag separately
20404 if test "$GXX" = yes; then
20405 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20407 lt_prog_compiler_no_builtin_flag_CXX
=
20410 if test "$GXX" = yes; then
20411 # Set up default GNU C++ configuration
20415 # Check whether --with-gnu-ld was given.
20416 if test "${with_gnu_ld+set}" = set; then :
20417 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20423 if test "$GCC" = yes; then
20424 # Check if gcc -print-prog-name=ld gives a path.
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20426 $as_echo_n "checking for ld used by $CC... " >&6; }
20429 # gcc leaves a trailing carriage return which upsets mingw
20430 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20432 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20435 # Accept absolute paths.
20437 re_direlt
='/[^/][^/]*/\.\./'
20438 # Canonicalize the pathname of ld
20439 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20440 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20441 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20443 test -z "$LD" && LD
="$ac_prog"
20446 # If it fails, then pretend we aren't using GCC.
20450 # If it is relative, then search for the first ld in PATH.
20451 with_gnu_ld
=unknown
20454 elif test "$with_gnu_ld" = yes; then
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20456 $as_echo_n "checking for GNU ld... " >&6; }
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20459 $as_echo_n "checking for non-GNU ld... " >&6; }
20461 if ${lt_cv_path_LD+:} false
; then :
20462 $as_echo_n "(cached) " >&6
20464 if test -z "$LD"; then
20465 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20466 for ac_dir
in $PATH; do
20468 test -z "$ac_dir" && ac_dir
=.
20469 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20470 lt_cv_path_LD
="$ac_dir/$ac_prog"
20471 # Check to see if the program is GNU ld. I'd rather use --version,
20472 # but apparently some variants of GNU ld only accept -v.
20473 # Break only if it was the GNU/non-GNU ld that we prefer.
20474 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20475 *GNU
* |
*'with BFD'*)
20476 test "$with_gnu_ld" != no
&& break
20479 test "$with_gnu_ld" != yes && break
20486 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20490 LD
="$lt_cv_path_LD"
20491 if test -n "$LD"; then
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20493 $as_echo "$LD" >&6; }
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20496 $as_echo "no" >&6; }
20498 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20500 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20501 if ${lt_cv_prog_gnu_ld+:} false
; then :
20502 $as_echo_n "(cached) " >&6
20504 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20505 case `$LD -v 2>&1 </dev/null` in
20506 *GNU
* |
*'with BFD'*)
20507 lt_cv_prog_gnu_ld
=yes
20510 lt_cv_prog_gnu_ld
=no
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20515 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20516 with_gnu_ld
=$lt_cv_prog_gnu_ld
20524 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20525 # archiving commands below assume that GNU ld is being used.
20526 if test "$with_gnu_ld" = yes; then
20527 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20528 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'
20530 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20531 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20533 # If archive_cmds runs LD, not CC, wlarc should be empty
20534 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20535 # investigate it a little bit more. (MM)
20538 # ancient GNU ld didn't support --whole-archive et. al.
20539 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20540 $GREP 'no-whole-archive' > /dev
/null
; then
20541 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20543 whole_archive_flag_spec_CXX
=
20549 # A generic and very simple default shared library creation
20550 # command for GNU C++ for the case where it uses the native
20551 # linker, instead of GNU ld. If possible, this setting should
20552 # overridden to take advantage of the native linker features on
20553 # the platform it is being used on.
20554 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20557 # Commands to make compiler produce verbose output that lists
20558 # what "hidden" libraries, object files and flags are used when
20559 # linking a shared library.
20560 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20568 # PORTME: fill in a description of your system's C++ link characteristics
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20570 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20574 # FIXME: insert proper C++ library support
20578 if test "$host_cpu" = ia64
; then
20579 # On IA64, the linker does run time linking by default, so we don't
20580 # have to do anything special.
20581 aix_use_runtimelinking
=no
20582 exp_sym_flag
='-Bexport'
20585 aix_use_runtimelinking
=no
20587 # Test if we are trying to use run time linking or normal
20588 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20589 # need to do runtime linking.
20590 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20591 for ld_flag
in $LDFLAGS; do
20594 aix_use_runtimelinking
=yes
20602 exp_sym_flag
='-bexport'
20603 no_entry_flag
='-bnoentry'
20606 # When large executables or shared objects are built, AIX ld can
20607 # have problems creating the table of contents. If linking a library
20608 # or program results in "error TOC overflow" add -mminimal-toc to
20609 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20610 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20612 archive_cmds_CXX
=''
20613 hardcode_direct_CXX
=yes
20614 hardcode_direct_absolute_CXX
=yes
20615 hardcode_libdir_separator_CXX
=':'
20616 link_all_deplibs_CXX
=yes
20617 file_list_spec_CXX
='${wl}-f,'
20619 if test "$GXX" = yes; then
20620 case $host_os in aix4.
[012]|aix4.
[012].
*)
20621 # We only want to do this on AIX 4.2 and lower, the check
20622 # below for broken collect2 doesn't work under 4.3+
20623 collect2name
=`${CC} -print-prog-name=collect2`
20624 if test -f "$collect2name" &&
20625 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20627 # We have reworked collect2
20630 # We have old collect2
20631 hardcode_direct_CXX
=unsupported
20632 # It fails to find uninstalled libraries when the uninstalled
20633 # path is not listed in the libpath. Setting hardcode_minus_L
20634 # to unsupported forces relinking
20635 hardcode_minus_L_CXX
=yes
20636 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20637 hardcode_libdir_separator_CXX
=
20640 shared_flag
='-shared'
20641 if test "$aix_use_runtimelinking" = yes; then
20642 shared_flag
="$shared_flag "'${wl}-G'
20646 if test "$host_cpu" = ia64
; then
20647 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20648 # chokes on -Wl,-G. The following line is correct:
20651 if test "$aix_use_runtimelinking" = yes; then
20652 shared_flag
='${wl}-G'
20654 shared_flag
='${wl}-bM:SRE'
20659 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20660 # It seems that -bexpall does not export symbols beginning with
20661 # underscore (_), so it is better to generate a list of symbols to
20663 always_export_symbols_CXX
=yes
20664 if test "$aix_use_runtimelinking" = yes; then
20665 # Warning - without using the other runtime loading flags (-brtl),
20666 # -berok will link without error, but may produce a broken library.
20667 allow_undefined_flag_CXX
='-berok'
20668 # Determine the default libpath from the value encoded in an empty
20670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20671 /* end confdefs.h. */
20681 if ac_fn_cxx_try_link
"$LINENO"; then :
20683 lt_aix_libpath_sed
='
20684 /Import File Strings/,/^$/ {
20690 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20691 # Check for a 64-bit object if we didn't find anything.
20692 if test -z "$aix_libpath"; then
20693 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20696 rm -f core conftest.err conftest.
$ac_objext \
20697 conftest
$ac_exeext conftest.
$ac_ext
20698 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20700 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20702 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"
20704 if test "$host_cpu" = ia64
; then
20705 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20706 allow_undefined_flag_CXX
="-z nodefs"
20707 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"
20709 # Determine the default libpath from the value encoded in an
20710 # empty executable.
20711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20712 /* end confdefs.h. */
20722 if ac_fn_cxx_try_link
"$LINENO"; then :
20724 lt_aix_libpath_sed
='
20725 /Import File Strings/,/^$/ {
20731 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20732 # Check for a 64-bit object if we didn't find anything.
20733 if test -z "$aix_libpath"; then
20734 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20737 rm -f core conftest.err conftest.
$ac_objext \
20738 conftest
$ac_exeext conftest.
$ac_ext
20739 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20741 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20742 # Warning - without using the other run time loading flags,
20743 # -berok will link without error, but may produce a broken library.
20744 no_undefined_flag_CXX
=' ${wl}-bernotok'
20745 allow_undefined_flag_CXX
=' ${wl}-berok'
20746 if test "$with_gnu_ld" = yes; then
20747 # We only use this code for GNU lds that support --whole-archive.
20748 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20750 # Exported symbols can be pulled into shared objects from archives
20751 whole_archive_flag_spec_CXX
='$convenience'
20753 archive_cmds_need_lc_CXX
=yes
20754 # This is similar to how AIX traditionally builds its shared
20756 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'
20762 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20763 allow_undefined_flag_CXX
=unsupported
20764 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20765 # support --undefined. This deserves some investigation. FIXME
20766 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20773 case $cc_basename in
20775 # FIXME: insert proper C++ library support
20781 cygwin
* | mingw
* | pw32
* | cegcc
*)
20782 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20783 # as there is no search path for DLLs.
20784 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20785 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20786 allow_undefined_flag_CXX
=unsupported
20787 always_export_symbols_CXX
=no
20788 enable_shared_with_static_runtimes_CXX
=yes
20790 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20791 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'
20792 # If the export-symbols file already is a .def file (1st line
20793 # is EXPORTS), use it as is; otherwise, prepend...
20794 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20795 cp $export_symbols $output_objdir/$soname.def;
20797 echo EXPORTS > $output_objdir/$soname.def;
20798 cat $export_symbols >> $output_objdir/$soname.def;
20800 $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'
20805 darwin
* | rhapsody
*)
20808 archive_cmds_need_lc_CXX
=no
20809 hardcode_direct_CXX
=no
20810 hardcode_automatic_CXX
=yes
20811 hardcode_shlibpath_var_CXX
=unsupported
20812 if test "$lt_cv_ld_force_load" = "yes"; then
20813 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\"`'
20815 whole_archive_flag_spec_CXX
=''
20817 link_all_deplibs_CXX
=yes
20818 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20819 case $cc_basename in
20820 ifort
*) _lt_dar_can_shared
=yes ;;
20821 *) _lt_dar_can_shared
=$GCC ;;
20823 if test "$_lt_dar_can_shared" = "yes"; then
20824 output_verbose_link_cmd
=func_echo_all
20825 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}"
20826 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20827 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}"
20828 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}"
20829 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20830 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}"
20831 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}"
20841 case $cc_basename in
20843 # FIXME: insert proper C++ library support
20847 # Green Hills C++ Compiler
20848 # FIXME: insert proper C++ library support
20852 # FIXME: insert proper C++ library support
20859 # C++ shared libraries reported to be fairly broken before
20865 archive_cmds_need_lc_CXX
=no
20868 freebsd
* | dragonfly
*)
20869 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20878 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20879 link_all_deplibs_CXX
=yes
20883 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20884 hardcode_libdir_separator_CXX
=:
20885 export_dynamic_flag_spec_CXX
='${wl}-E'
20886 hardcode_direct_CXX
=yes
20887 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20888 # but as the default
20889 # location of the library.
20891 case $cc_basename in
20893 # FIXME: insert proper C++ library support
20897 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'
20898 # Commands to make compiler produce verbose output that lists
20899 # what "hidden" libraries, object files and flags are used when
20900 # linking a shared library.
20902 # There doesn't appear to be a way to prevent this compiler from
20903 # explicitly linking system object files so we need to strip them
20904 # from the output so that they don't get included in the library
20906 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"'
20909 if test "$GXX" = yes; then
20910 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'
20912 # FIXME: insert proper C++ library support
20920 if test $with_gnu_ld = no
; then
20921 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20922 hardcode_libdir_separator_CXX
=:
20928 export_dynamic_flag_spec_CXX
='${wl}-E'
20934 hardcode_direct_CXX
=no
20935 hardcode_shlibpath_var_CXX
=no
20938 hardcode_direct_CXX
=yes
20939 hardcode_direct_absolute_CXX
=yes
20940 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20941 # but as the default
20942 # location of the library.
20946 case $cc_basename in
20948 # FIXME: insert proper C++ library support
20954 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20957 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20960 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20963 # Commands to make compiler produce verbose output that lists
20964 # what "hidden" libraries, object files and flags are used when
20965 # linking a shared library.
20967 # There doesn't appear to be a way to prevent this compiler from
20968 # explicitly linking system object files so we need to strip them
20969 # from the output so that they don't get included in the library
20971 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"'
20974 if test "$GXX" = yes; then
20975 if test $with_gnu_ld = no
; then
20978 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20981 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20984 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'
20989 # FIXME: insert proper C++ library support
20997 hardcode_direct_CXX
=no
20998 hardcode_shlibpath_var_CXX
=no
20999 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21000 export_dynamic_flag_spec_CXX
='${wl}-E'
21001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21002 # Instead, shared libraries are loaded at an image base (0x10000000 by
21003 # default) and relocated if they conflict, which is a slow very memory
21004 # consuming and fragmenting process. To avoid this, we pick a random,
21005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21007 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'
21008 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'
21011 case $cc_basename in
21014 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'
21016 # Archives containing C++ object files must be created using
21017 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21018 # necessary to make sure instantiated templates are included
21020 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
21023 if test "$GXX" = yes; then
21024 if test "$with_gnu_ld" = no
; then
21025 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'
21027 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'
21030 link_all_deplibs_CXX
=yes
21033 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21034 hardcode_libdir_separator_CXX
=:
21035 inherit_rpath_CXX
=yes
21038 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21039 case $cc_basename in
21041 # Kuck and Associates, Inc. (KAI) C++ Compiler
21043 # KCC will only create a shared library if the output file
21044 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21045 # to its proper name (with version) after linking.
21046 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'
21047 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'
21048 # Commands to make compiler produce verbose output that lists
21049 # what "hidden" libraries, object files and flags are used when
21050 # linking a shared library.
21052 # There doesn't appear to be a way to prevent this compiler from
21053 # explicitly linking system object files so we need to strip them
21054 # from the output so that they don't get included in the library
21056 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"'
21058 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21059 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21061 # Archives containing C++ object files must be created using
21062 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21063 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
21068 # version 8.0 and above of icpc choke on multiply defined symbols
21069 # if we add $predep_objects and $postdep_objects, however 7.1 and
21070 # earlier do not add the objects themselves.
21071 case `$CC -V 2>&1` in
21073 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21074 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'
21076 *) # Version 8.0 or newer
21079 ia64
*) tmp_idyn
=' -i_dynamic';;
21081 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21082 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'
21085 archive_cmds_need_lc_CXX
=no
21086 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21087 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21088 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21091 # Portland Group C++ compiler
21093 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
21094 prelink_cmds_CXX
='tpldir=Template.dir~
21096 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21097 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21098 old_archive_cmds_CXX
='tpldir=Template.dir~
21100 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21101 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21103 archive_cmds_CXX
='tpldir=Template.dir~
21105 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21106 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21107 archive_expsym_cmds_CXX
='tpldir=Template.dir~
21109 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21110 $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'
21112 *) # Version 6 and above use weak symbols
21113 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21114 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'
21118 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
21119 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21120 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'
21124 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21125 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'
21127 runpath_var
=LD_RUN_PATH
21128 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21129 hardcode_libdir_separator_CXX
=:
21131 # Commands to make compiler produce verbose output that lists
21132 # what "hidden" libraries, object files and flags are used when
21133 # linking a shared library.
21135 # There doesn't appear to be a way to prevent this compiler from
21136 # explicitly linking system object files so we need to strip them
21137 # from the output so that they don't get included in the library
21139 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'
21141 xl
* | mpixl
* | bgxl
*)
21142 # IBM XL 8.0 on PPC, with GNU ld
21143 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21144 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21145 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21146 if test "x$supports_anon_versioning" = xyes
; then
21147 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
21148 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21149 echo "local: *; };" >> $output_objdir/$libname.ver~
21150 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21154 case `$CC -V 2>&1 | sed 5q` in
21157 no_undefined_flag_CXX
=' -zdefs'
21158 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21159 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'
21160 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21161 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'
21162 compiler_needs_object_CXX
=yes
21164 # Not sure whether something based on
21165 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21167 output_verbose_link_cmd
='func_echo_all'
21169 # Archives containing C++ object files must be created using
21170 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21171 # necessary to make sure instantiated templates are included
21173 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21181 # FIXME: insert proper C++ library support
21186 # FIXME: insert proper C++ library support
21191 case $cc_basename in
21193 # FIXME: insert proper C++ library support
21197 # FIXME: insert proper C++ library support
21204 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21205 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21207 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21208 hardcode_direct_CXX
=yes
21209 hardcode_shlibpath_var_CXX
=no
21211 # Workaround some broken pre-1.5 toolchains
21212 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21220 # C++ shared libraries are fairly broken
21225 if test -f /usr
/libexec
/ld.so
; then
21226 hardcode_direct_CXX
=yes
21227 hardcode_shlibpath_var_CXX
=no
21228 hardcode_direct_absolute_CXX
=yes
21229 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21230 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21232 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21233 export_dynamic_flag_spec_CXX
='${wl}-E'
21234 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21236 output_verbose_link_cmd
=func_echo_all
21242 osf3
* | osf4
* | osf5
*)
21243 case $cc_basename in
21245 # Kuck and Associates, Inc. (KAI) C++ Compiler
21247 # KCC will only create a shared library if the output file
21248 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21249 # to its proper name (with version) after linking.
21250 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'
21252 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21253 hardcode_libdir_separator_CXX
=:
21255 # Archives containing C++ object files must be created using
21256 # the KAI C++ compiler.
21258 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
21259 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21263 # Rational C++ 2.4.1
21264 # FIXME: insert proper C++ library support
21270 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21271 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'
21272 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21275 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21276 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'
21277 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21278 echo "-hidden">> $lib.exp~
21279 $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~
21281 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21285 hardcode_libdir_separator_CXX
=:
21287 # Commands to make compiler produce verbose output that lists
21288 # what "hidden" libraries, object files and flags are used when
21289 # linking a shared library.
21291 # There doesn't appear to be a way to prevent this compiler from
21292 # explicitly linking system object files so we need to strip them
21293 # from the output so that they don't get included in the library
21295 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"'
21298 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21299 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21302 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'
21305 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'
21309 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21310 hardcode_libdir_separator_CXX
=:
21312 # Commands to make compiler produce verbose output that lists
21313 # what "hidden" libraries, object files and flags are used when
21314 # linking a shared library.
21315 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21318 # FIXME: insert proper C++ library support
21326 # FIXME: insert proper C++ library support
21331 case $cc_basename in
21334 # FIXME: insert proper C++ library support
21339 # FIXME: insert proper C++ library support
21343 # FIXME: insert proper C++ library support
21350 case $cc_basename in
21352 # Sun C++ 4.2, 5.x and Centerline C++
21353 archive_cmds_need_lc_CXX
=yes
21354 no_undefined_flag_CXX
=' -zdefs'
21355 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21356 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21357 $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'
21359 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21360 hardcode_shlibpath_var_CXX
=no
21362 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21364 # The compiler driver will combine and reorder linker options,
21365 # but understands `-z linker_flag'.
21366 # Supported since Solaris 2.6 (maybe 2.5.1?)
21367 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21370 link_all_deplibs_CXX
=yes
21372 output_verbose_link_cmd
='func_echo_all'
21374 # Archives containing C++ object files must be created using
21375 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21376 # necessary to make sure instantiated templates are included
21378 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21381 # Green Hills C++ Compiler
21382 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21384 # The C++ compiler must be used to create the archive.
21385 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21388 # GNU C++ compiler with Solaris linker
21389 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21390 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21391 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21392 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21393 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21394 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21396 # Commands to make compiler produce verbose output that lists
21397 # what "hidden" libraries, object files and flags are used when
21398 # linking a shared library.
21399 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21401 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21403 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21404 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21405 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21407 # Commands to make compiler produce verbose output that lists
21408 # what "hidden" libraries, object files and flags are used when
21409 # linking a shared library.
21410 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21413 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21415 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21417 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21425 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21426 no_undefined_flag_CXX
='${wl}-z,text'
21427 archive_cmds_need_lc_CXX
=no
21428 hardcode_shlibpath_var_CXX
=no
21429 runpath_var
='LD_RUN_PATH'
21431 case $cc_basename in
21433 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21434 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21437 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21438 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21443 sysv5
* | sco3.2v5
* | sco5v6
*)
21444 # Note: We can NOT use -z defs as we might desire, because we do not
21445 # link with -lc, and that would cause any symbols used from libc to
21446 # always be unresolved, which means just about no library would
21447 # ever link correctly. If we're not using GNU ld we use -z text
21448 # though, which does catch some bad symbols but isn't as heavy-handed
21450 no_undefined_flag_CXX
='${wl}-z,text'
21451 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21452 archive_cmds_need_lc_CXX
=no
21453 hardcode_shlibpath_var_CXX
=no
21454 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21455 hardcode_libdir_separator_CXX
=':'
21456 link_all_deplibs_CXX
=yes
21457 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21458 runpath_var
='LD_RUN_PATH'
21460 case $cc_basename in
21462 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21463 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21464 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21465 '"$old_archive_cmds_CXX"
21466 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21467 '"$reload_cmds_CXX"
21470 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21471 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21477 case $cc_basename in
21479 # NonStop-UX NCC 3.20
21480 # FIXME: insert proper C++ library support
21484 # FIXME: insert proper C++ library support
21491 # For VxWorks ports, we assume the use of a GNU linker with
21492 # standard elf conventions.
21497 # FIXME: insert proper C++ library support
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21503 $as_echo "$ld_shlibs_CXX" >&6; }
21504 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21510 ## There is no encapsulation within the following macros, do not change
21511 ## the running order or otherwise move them around unless you know exactly
21512 ## what you are doing...
21513 # Dependencies to place before and after the object being linked:
21514 predep_objects_CXX
=
21515 postdep_objects_CXX
=
21518 compiler_lib_search_path_CXX
=
21520 cat > conftest.
$ac_ext <<_LT_EOF
21524 Foo (void) { a = 0; }
21530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21531 (eval $ac_compile) 2>&5
21533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21534 test $ac_status = 0; }; then
21535 # Parse the compiler output and extract the necessary
21536 # objects, libraries and library flags.
21538 # Sentinel used to keep track of whether or not we are before
21539 # the conftest object file.
21540 pre_test_object_deps_done
=no
21542 for p
in `eval "$output_verbose_link_cmd"`; do
21546 # Some compilers place space between "-{L,R}" and the path.
21547 # Remove the space.
21548 if test $p = "-L" ||
21549 test $p = "-R"; then
21556 if test "$pre_test_object_deps_done" = no
; then
21559 # Internal compiler library paths should come after those
21560 # provided the user. The postdeps already come after the
21561 # user supplied libs so there is no need to process them.
21562 if test -z "$compiler_lib_search_path_CXX"; then
21563 compiler_lib_search_path_CXX
="${prev}${p}"
21565 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21568 # The "-l" case would never come before the object being
21569 # linked, so don't bother handling this case.
21572 if test -z "$postdeps_CXX"; then
21573 postdeps_CXX
="${prev}${p}"
21575 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21581 # This assumes that the test object file only shows up
21582 # once in the compiler output.
21583 if test "$p" = "conftest.$objext"; then
21584 pre_test_object_deps_done
=yes
21588 if test "$pre_test_object_deps_done" = no
; then
21589 if test -z "$predep_objects_CXX"; then
21590 predep_objects_CXX
="$p"
21592 predep_objects_CXX
="$predep_objects_CXX $p"
21595 if test -z "$postdep_objects_CXX"; then
21596 postdep_objects_CXX
="$p"
21598 postdep_objects_CXX
="$postdep_objects_CXX $p"
21603 *) ;; # Ignore the rest.
21611 echo "libtool.m4: error: problem compiling CXX test program"
21614 $RM -f confest.
$objext
21616 # PORTME: override above test on systems where it is broken
21619 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21620 # hack all around it, let's just trust "g++" to DTRT.
21621 predep_objects_CXX
=
21622 postdep_objects_CXX
=
21627 case `$CC -V 2>&1 | sed 5q` in
21631 # The more standards-conforming stlport4 library is
21632 # incompatible with the Cstd library. Avoid specifying
21633 # it if it's in CXXFLAGS. Ignore libCrun as
21634 # -library=stlport4 depends on it.
21635 case " $CXX $CXXFLAGS " in
21636 *" -library=stlport4 "*)
21637 solaris_use_stlport4
=yes
21641 if test "$solaris_use_stlport4" != yes; then
21642 postdeps_CXX
='-library=Cstd -library=Crun'
21649 case $cc_basename in
21651 # The more standards-conforming stlport4 library is
21652 # incompatible with the Cstd library. Avoid specifying
21653 # it if it's in CXXFLAGS. Ignore libCrun as
21654 # -library=stlport4 depends on it.
21655 case " $CXX $CXXFLAGS " in
21656 *" -library=stlport4 "*)
21657 solaris_use_stlport4
=yes
21661 # Adding this requires a known-good setup of shared libraries for
21662 # Sun compiler versions before 5.6, else PIC objects from an old
21663 # archive will be linked into the output, leading to subtle bugs.
21664 if test "$solaris_use_stlport4" != yes; then
21665 postdeps_CXX
='-library=Cstd -library=Crun'
21673 case " $postdeps_CXX " in
21674 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21676 compiler_lib_search_dirs_CXX
=
21677 if test -n "${compiler_lib_search_path_CXX}"; then
21678 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21711 lt_prog_compiler_wl_CXX
=
21712 lt_prog_compiler_pic_CXX
=
21713 lt_prog_compiler_static_CXX
=
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21716 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21718 # C++ specific cases for pic, static, wl, etc.
21719 if test "$GXX" = yes; then
21720 lt_prog_compiler_wl_CXX
='-Wl,'
21721 lt_prog_compiler_static_CXX
='-static'
21725 # All AIX code is PIC.
21726 if test "$host_cpu" = ia64
; then
21727 # AIX 5 now supports IA64 processor
21728 lt_prog_compiler_static_CXX
='-Bstatic'
21730 lt_prog_compiler_pic_CXX
='-fPIC'
21736 # see comment about AmigaOS4 .so support
21737 lt_prog_compiler_pic_CXX
='-fPIC'
21740 # FIXME: we need at least 68020 code to build shared libraries, but
21741 # adding the `-m68020' flag to GCC prevents building anything better,
21743 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21748 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21749 # PIC is the default for these OSes.
21751 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21752 # This hack is so that the source file can tell whether it is being
21753 # built for inclusion in a dll (and should export symbols for example).
21754 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21755 # (--disable-auto-import) libraries
21756 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21758 darwin
* | rhapsody
*)
21759 # PIC is the default on this platform
21760 # Common symbols not allowed in MH_DYLIB files
21761 lt_prog_compiler_pic_CXX
='-fno-common'
21764 # DJGPP does not support shared libraries at all
21765 lt_prog_compiler_pic_CXX
=
21768 # PIC is the default for Haiku.
21769 # The "-static" flag exists, but is broken.
21770 lt_prog_compiler_static_CXX
=
21773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21774 # Instead, we relocate shared libraries at runtime.
21777 if test -d /usr
/nec
; then
21778 lt_prog_compiler_pic_CXX
=-Kconform_pic
21782 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21783 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21784 # sets the default TLS model and affects inlining.
21789 lt_prog_compiler_pic_CXX
='-fPIC'
21794 # QNX uses GNU C++, but need to define -shared option too, otherwise
21795 # it will coredump.
21796 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21799 lt_prog_compiler_pic_CXX
='-fPIC'
21805 # All AIX code is PIC.
21806 if test "$host_cpu" = ia64
; then
21807 # AIX 5 now supports IA64 processor
21808 lt_prog_compiler_static_CXX
='-Bstatic'
21810 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21814 case $cc_basename in
21816 # Green Hills C++ Compiler
21817 # _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"
21822 case $cc_basename in
21824 lt_prog_compiler_pic_CXX
='-KPIC'
21827 # Green Hills C++ Compiler
21828 lt_prog_compiler_pic_CXX
='-pic'
21834 freebsd
* | dragonfly
*)
21835 # FreeBSD uses GNU C++
21837 hpux9
* | hpux10
* | hpux11
*)
21838 case $cc_basename in
21840 lt_prog_compiler_wl_CXX
='-Wl,'
21841 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21842 if test "$host_cpu" != ia64
; then
21843 lt_prog_compiler_pic_CXX
='+Z'
21847 lt_prog_compiler_wl_CXX
='-Wl,'
21848 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21854 lt_prog_compiler_pic_CXX
='+Z'
21863 # This is c89, which is MS Visual C++ (no shared libs)
21864 # Anyone wants to do a port?
21866 irix5
* | irix6
* | nonstopux
*)
21867 case $cc_basename in
21869 lt_prog_compiler_wl_CXX
='-Wl,'
21870 lt_prog_compiler_static_CXX
='-non_shared'
21871 # CC pic flag -KPIC is the default.
21877 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21878 case $cc_basename in
21881 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21882 lt_prog_compiler_pic_CXX
='-fPIC'
21885 # old Intel C++ for x86_64 which still supported -KPIC.
21886 lt_prog_compiler_wl_CXX
='-Wl,'
21887 lt_prog_compiler_pic_CXX
='-KPIC'
21888 lt_prog_compiler_static_CXX
='-static'
21891 # Intel C++, used to be incompatible with GCC.
21892 # ICC 10 doesn't accept -KPIC any more.
21893 lt_prog_compiler_wl_CXX
='-Wl,'
21894 lt_prog_compiler_pic_CXX
='-fPIC'
21895 lt_prog_compiler_static_CXX
='-static'
21898 # Portland Group C++ compiler
21899 lt_prog_compiler_wl_CXX
='-Wl,'
21900 lt_prog_compiler_pic_CXX
='-fpic'
21901 lt_prog_compiler_static_CXX
='-Bstatic'
21905 # Make sure the PIC flag is empty. It appears that all Alpha
21906 # Linux and Compaq Tru64 Unix objects are PIC.
21907 lt_prog_compiler_pic_CXX
=
21908 lt_prog_compiler_static_CXX
='-non_shared'
21910 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21911 # IBM XL 8.0, 9.0 on PPC and BlueGene
21912 lt_prog_compiler_wl_CXX
='-Wl,'
21913 lt_prog_compiler_pic_CXX
='-qpic'
21914 lt_prog_compiler_static_CXX
='-qstaticlink'
21917 case `$CC -V 2>&1 | sed 5q` in
21920 lt_prog_compiler_pic_CXX
='-KPIC'
21921 lt_prog_compiler_static_CXX
='-Bstatic'
21922 lt_prog_compiler_wl_CXX
='-Qoption ld '
21933 case $cc_basename in
21935 lt_prog_compiler_pic_CXX
='-W c,exportall'
21944 # QNX uses GNU C++, but need to define -shared option too, otherwise
21945 # it will coredump.
21946 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21948 osf3
* | osf4
* | osf5
*)
21949 case $cc_basename in
21951 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21954 # Rational C++ 2.4.1
21955 lt_prog_compiler_pic_CXX
='-pic'
21958 # Digital/Compaq C++
21959 lt_prog_compiler_wl_CXX
='-Wl,'
21960 # Make sure the PIC flag is empty. It appears that all Alpha
21961 # Linux and Compaq Tru64 Unix objects are PIC.
21962 lt_prog_compiler_pic_CXX
=
21963 lt_prog_compiler_static_CXX
='-non_shared'
21972 case $cc_basename in
21974 # Sun C++ 4.2, 5.x and Centerline C++
21975 lt_prog_compiler_pic_CXX
='-KPIC'
21976 lt_prog_compiler_static_CXX
='-Bstatic'
21977 lt_prog_compiler_wl_CXX
='-Qoption ld '
21980 # Green Hills C++ Compiler
21981 lt_prog_compiler_pic_CXX
='-PIC'
21988 case $cc_basename in
21991 lt_prog_compiler_pic_CXX
='-pic'
21992 lt_prog_compiler_static_CXX
='-Bstatic'
21996 lt_prog_compiler_pic_CXX
='-pic'
22002 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
22003 case $cc_basename in
22005 lt_prog_compiler_wl_CXX
='-Wl,'
22006 lt_prog_compiler_pic_CXX
='-KPIC'
22007 lt_prog_compiler_static_CXX
='-Bstatic'
22012 case $cc_basename in
22014 # NonStop-UX NCC 3.20
22015 lt_prog_compiler_pic_CXX
='-KPIC'
22024 lt_prog_compiler_can_build_shared_CXX
=no
22030 # For platforms which do not support PIC, -DPIC is meaningless:
22032 lt_prog_compiler_pic_CXX
=
22035 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22039 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22044 # Check to make sure the PIC flag actually works.
22046 if test -n "$lt_prog_compiler_pic_CXX"; then
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22048 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22049 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
22050 $as_echo_n "(cached) " >&6
22052 lt_cv_prog_compiler_pic_works_CXX
=no
22053 ac_outfile
=conftest.
$ac_objext
22054 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22055 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
22056 # Insert the option either (1) after the last *FLAGS variable, or
22057 # (2) before a word containing "conftest.", or (3) at the end.
22058 # Note that $ac_compile itself does not contain backslashes and begins
22059 # with a dollar sign (not a hyphen), so the echo should work correctly.
22060 # The option is referenced via a variable to avoid confusing sed.
22061 lt_compile
=`echo "$ac_compile" | $SED \
22062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22064 -e 's:$: $lt_compiler_flag:'`
22065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22066 (eval "$lt_compile" 2>conftest.err
)
22068 cat conftest.err
>&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 if (exit $ac_status) && test -s "$ac_outfile"; then
22071 # The compiler can only warn and ignore the option if not recognized
22072 # So say no if there are warnings other than the usual output.
22073 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
22074 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22075 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
22076 lt_cv_prog_compiler_pic_works_CXX
=yes
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22083 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22085 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
22086 case $lt_prog_compiler_pic_CXX in
22088 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
22091 lt_prog_compiler_pic_CXX
=
22092 lt_prog_compiler_can_build_shared_CXX
=no
22100 # Check to make sure the static flag actually works.
22102 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22104 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22105 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
22106 $as_echo_n "(cached) " >&6
22108 lt_cv_prog_compiler_static_works_CXX
=no
22109 save_LDFLAGS
="$LDFLAGS"
22110 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
22111 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
22112 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
22113 # The linker can only warn and ignore the option if not recognized
22114 # So say no if there are warnings
22115 if test -s conftest.err
; then
22116 # Append any errors to the config.log.
22117 cat conftest.err
1>&5
22118 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
22119 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22120 if diff conftest.exp conftest.er2
>/dev
/null
; then
22121 lt_cv_prog_compiler_static_works_CXX
=yes
22124 lt_cv_prog_compiler_static_works_CXX
=yes
22128 LDFLAGS
="$save_LDFLAGS"
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22132 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22134 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
22137 lt_prog_compiler_static_CXX
=
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22145 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22146 $as_echo_n "(cached) " >&6
22148 lt_cv_prog_compiler_c_o_CXX
=no
22149 $RM -r conftest
2>/dev
/null
22153 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22155 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22156 # Insert the option either (1) after the last *FLAGS variable, or
22157 # (2) before a word containing "conftest.", or (3) at the end.
22158 # Note that $ac_compile itself does not contain backslashes and begins
22159 # with a dollar sign (not a hyphen), so the echo should work correctly.
22160 lt_compile
=`echo "$ac_compile" | $SED \
22161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22163 -e 's:$: $lt_compiler_flag:'`
22164 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22165 (eval "$lt_compile" 2>out
/conftest.err
)
22167 cat out
/conftest.err
>&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22171 # The compiler can only warn and ignore the option if not recognized
22172 # So say no if there are warnings
22173 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22174 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22175 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22176 lt_cv_prog_compiler_c_o_CXX
=yes
22181 # SGI C++ compiler will create directory out/ii_files/ for
22182 # template instantiation
22183 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22184 $RM out
/* && rmdir out
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22191 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22196 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22197 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22198 $as_echo_n "(cached) " >&6
22200 lt_cv_prog_compiler_c_o_CXX
=no
22201 $RM -r conftest
2>/dev
/null
22205 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22207 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22208 # Insert the option either (1) after the last *FLAGS variable, or
22209 # (2) before a word containing "conftest.", or (3) at the end.
22210 # Note that $ac_compile itself does not contain backslashes and begins
22211 # with a dollar sign (not a hyphen), so the echo should work correctly.
22212 lt_compile
=`echo "$ac_compile" | $SED \
22213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22215 -e 's:$: $lt_compiler_flag:'`
22216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22217 (eval "$lt_compile" 2>out
/conftest.err
)
22219 cat out
/conftest.err
>&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22223 # The compiler can only warn and ignore the option if not recognized
22224 # So say no if there are warnings
22225 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22226 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22227 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22228 lt_cv_prog_compiler_c_o_CXX
=yes
22233 # SGI C++ compiler will create directory out/ii_files/ for
22234 # template instantiation
22235 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22236 $RM out
/* && rmdir out
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22243 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22248 hard_links
="nottested"
22249 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
22250 # do not overwrite the value of need_locks provided by the user
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22252 $as_echo_n "checking if we can lock with hard links... " >&6; }
22255 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22257 ln conftest.a conftest.b
2>&5 || hard_links
=no
22258 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22260 $as_echo "$hard_links" >&6; }
22261 if test "$hard_links" = no
; then
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22263 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22275 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22278 # If we're using GNU nm, then we don't want the "-C" option.
22279 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22280 # Also, AIX nm treats weak defined symbols like other global defined
22281 # symbols, whereas GNU nm marks them as "W".
22282 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22283 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'
22285 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'
22289 export_symbols_cmds_CXX
="$ltdll_cmds"
22291 cygwin
* | mingw
* | cegcc
*)
22292 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'
22295 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22298 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22301 $as_echo "$ld_shlibs_CXX" >&6; }
22302 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22304 with_gnu_ld_CXX
=$with_gnu_ld
22312 # Do we need to explicitly link libc?
22314 case "x$archive_cmds_need_lc_CXX" in
22316 # Assume -lc should be added
22317 archive_cmds_need_lc_CXX
=yes
22319 if test "$enable_shared" = yes && test "$GCC" = yes; then
22320 case $archive_cmds_CXX in
22322 # FIXME: we may have to deal with multi-command sequences.
22325 # Test whether the compiler implicitly links with -lc since on some
22326 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22327 # to ld, don't add -lc before -lgcc.
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22329 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22330 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22331 $as_echo_n "(cached) " >&6
22334 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22337 (eval $ac_compile) 2>&5
22339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22340 test $ac_status = 0; } 2>conftest.err
; then
22343 libobjs
=conftest.
$ac_objext
22345 wl
=$lt_prog_compiler_wl_CXX
22346 pic_flag
=$lt_prog_compiler_pic_CXX
22352 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22353 allow_undefined_flag_CXX
=
22354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22355 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22358 test $ac_status = 0; }
22360 lt_cv_archive_cmds_need_lc_CXX
=no
22362 lt_cv_archive_cmds_need_lc_CXX
=yes
22364 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22366 cat conftest.err
1>&5
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22372 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22373 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22444 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22446 library_names_spec
=
22447 libname_spec
='lib$name'
22451 postuninstall_cmds
=
22455 shlibpath_overrides_runpath
=unknown
22457 dynamic_linker
="$host_os ld.so"
22458 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22459 need_lib_prefix
=unknown
22460 hardcode_into_libs
=no
22462 # when you set need_version to no, make sure it does not cause -set_version
22463 # flags to be left without arguments
22464 need_version
=unknown
22469 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22470 shlibpath_var
=LIBPATH
22472 # AIX 3 has no versioning support, so we append a major version to the name.
22473 soname_spec
='${libname}${release}${shared_ext}$major'
22480 hardcode_into_libs
=yes
22481 if test "$host_cpu" = ia64
; then
22482 # AIX 5 supports IA64
22483 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22484 shlibpath_var
=LD_LIBRARY_PATH
22486 # With GCC up to 2.95.x, collect2 would create an import file
22487 # for dependence libraries. The import file would start with
22488 # the line `#! .'. This would cause the generated library to
22489 # depend on `.', always an invalid library. This was fixed in
22490 # development snapshots of GCC prior to 3.0.
22492 aix4 | aix4.
[01] | aix4.
[01].
*)
22493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22495 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22498 can_build_shared
=no
22502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22503 # soname into executable. Probably we can add versioning support to
22504 # collect2, so additional links can be useful in future.
22505 if test "$aix_use_runtimelinking" = yes; then
22506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22507 # instead of lib<name>.a to let people know that these are not
22508 # typical AIX shared libraries.
22509 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22511 # We preserve .a as extension for shared libraries through AIX4.2
22512 # and later when we are not doing run time linking.
22513 library_names_spec
='${libname}${release}.a $libname.a'
22514 soname_spec
='${libname}${release}${shared_ext}$major'
22516 shlibpath_var
=LIBPATH
22523 # Since July 2007 AmigaOS4 officially supports .so libraries.
22524 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22528 library_names_spec
='$libname.ixlibrary $libname.a'
22529 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22530 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'
22536 library_names_spec
='${libname}${shared_ext}'
22537 dynamic_linker
="$host_os ld.so"
22538 shlibpath_var
=LIBRARY_PATH
22544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22545 soname_spec
='${libname}${release}${shared_ext}$major'
22546 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22547 shlibpath_var
=LD_LIBRARY_PATH
22548 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22549 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22550 # the default ld.so.conf also contains /usr/contrib/lib and
22551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22552 # libtool to hard-code these into programs
22555 cygwin
* | mingw
* | pw32
* | cegcc
*)
22556 version_type
=windows
22561 case $GCC,$host_os in
22562 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22563 library_names_spec
='$libname.dll.a'
22564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22565 postinstall_cmds
='base_file=`basename \${file}`~
22566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22567 dldir=$destdir/`dirname \$dlpath`~
22568 test -d \$dldir || mkdir -p \$dldir~
22569 $install_prog $dir/$dlname \$dldir/$dlname~
22570 chmod a+x \$dldir/$dlname~
22571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22574 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22575 dlpath=$dir/\$dldll~
22577 shlibpath_overrides_runpath
=yes
22581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22582 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22586 # MinGW DLLs use traditional 'lib' prefix
22587 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22590 # pw32 DLLs use 'pw' prefix rather than 'lib'
22591 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22597 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22600 dynamic_linker
='Win32 ld.exe'
22601 # FIXME: first we should search . and the directory the executable is in
22605 darwin
* | rhapsody
*)
22606 dynamic_linker
="$host_os dyld"
22607 version_type
=darwin
22610 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22611 soname_spec
='${libname}${release}${major}$shared_ext'
22612 shlibpath_overrides_runpath
=yes
22613 shlibpath_var
=DYLD_LIBRARY_PATH
22614 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22616 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22623 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22624 soname_spec
='${libname}${release}${shared_ext}$major'
22625 shlibpath_var
=LD_LIBRARY_PATH
22628 freebsd
* | dragonfly
*)
22629 # DragonFly does not have aout. When/if they implement a new
22630 # versioning mechanism, adjust this.
22631 if test -x /usr
/bin
/objformat
; then
22632 objformat
=`/usr/bin/objformat`
22635 freebsd
[23].
*) objformat
=aout
;;
22636 *) objformat
=elf
;;
22639 version_type
=freebsd-
$objformat
22640 case $version_type in
22642 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22647 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22651 shlibpath_var
=LD_LIBRARY_PATH
22654 shlibpath_overrides_runpath
=yes
22656 freebsd3.
[01]* | freebsdelf3.
[01]*)
22657 shlibpath_overrides_runpath
=yes
22658 hardcode_into_libs
=yes
22660 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22661 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22662 shlibpath_overrides_runpath
=no
22663 hardcode_into_libs
=yes
22665 *) # from 4.6 on, and DragonFly
22666 shlibpath_overrides_runpath
=yes
22667 hardcode_into_libs
=yes
22676 dynamic_linker
="$host_os runtime_loader"
22677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22678 soname_spec
='${libname}${release}${shared_ext}$major'
22679 shlibpath_var
=LIBRARY_PATH
22680 shlibpath_overrides_runpath
=yes
22681 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22682 hardcode_into_libs
=yes
22685 hpux9
* | hpux10
* | hpux11
*)
22686 # Give a soname corresponding to the major version so that dld.sl refuses to
22687 # link against other versions.
22694 hardcode_into_libs
=yes
22695 dynamic_linker
="$host_os dld.so"
22696 shlibpath_var
=LD_LIBRARY_PATH
22697 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22699 soname_spec
='${libname}${release}${shared_ext}$major'
22700 if test "X$HPUX_IA64_MODE" = X32
; then
22701 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22703 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22705 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22709 hardcode_into_libs
=yes
22710 dynamic_linker
="$host_os dld.sl"
22711 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22712 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22714 soname_spec
='${libname}${release}${shared_ext}$major'
22715 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22716 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22720 dynamic_linker
="$host_os dld.sl"
22721 shlibpath_var
=SHLIB_PATH
22722 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22723 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22724 soname_spec
='${libname}${release}${shared_ext}$major'
22727 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22728 postinstall_cmds
='chmod 555 $lib'
22729 # or fails outright, so override atomically:
22730 install_override_mode
=555
22737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22738 soname_spec
='${libname}${release}${shared_ext}$major'
22739 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22740 shlibpath_var
=LD_LIBRARY_PATH
22741 shlibpath_overrides_runpath
=no
22742 hardcode_into_libs
=yes
22745 irix5
* | irix6
* | nonstopux
*)
22747 nonstopux
*) version_type
=nonstopux
;;
22749 if test "$lt_cv_prog_gnu_ld" = yes; then
22757 soname_spec
='${libname}${release}${shared_ext}$major'
22758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22760 irix5
* | nonstopux
*)
22761 libsuff
= shlibsuff
=
22764 case $LD in # libtool.m4 will add one of these switches to LD
22765 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22766 libsuff
= shlibsuff
= libmagic
=32-bit;;
22767 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22768 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22769 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22770 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22771 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22775 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22776 shlibpath_overrides_runpath
=no
22777 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22778 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22779 hardcode_into_libs
=yes
22782 # No shared lib support for Linux oldld, aout, or coff.
22783 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22787 # This must be Linux ELF.
22789 # uclinux* changes (here and below) have been submitted to the libtool
22790 # project, but have not yet been accepted: they are GCC-local changes
22791 # for the time being. (See
22792 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22793 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22798 soname_spec
='${libname}${release}${shared_ext}$major'
22799 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22800 shlibpath_var
=LD_LIBRARY_PATH
22801 shlibpath_overrides_runpath
=no
22803 # Some binutils ld are patched to set DT_RUNPATH
22804 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22805 $as_echo_n "(cached) " >&6
22807 lt_cv_shlibpath_overrides_runpath
=no
22808 save_LDFLAGS
=$LDFLAGS
22809 save_libdir
=$libdir
22810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22813 /* end confdefs.h. */
22823 if ac_fn_cxx_try_link
"$LINENO"; then :
22824 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22825 lt_cv_shlibpath_overrides_runpath
=yes
22828 rm -f core conftest.err conftest.
$ac_objext \
22829 conftest
$ac_exeext conftest.
$ac_ext
22830 LDFLAGS
=$save_LDFLAGS
22831 libdir
=$save_libdir
22835 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22837 # This implies no fast_install, which is unacceptable.
22838 # Some rework will be needed to allow for fast_install
22839 # before this can be enabled.
22840 hardcode_into_libs
=yes
22842 # Append ld.so.conf contents to the search path
22843 if test -f /etc
/ld.so.conf
; then
22844 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' ' '`
22845 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22848 # We used to test for /lib/ld.so.1 and disable shared libraries on
22849 # powerpc, because MkLinux only supported shared libraries with the
22850 # GNU dynamic linker. Since this was broken with cross compilers,
22851 # most powerpc-linux boxes support dynamic linking these days and
22852 # people can always --disable-shared, the test was removed, and we
22853 # assume the GNU/Linux dynamic linker is in use.
22854 dynamic_linker
='GNU/Linux ld.so'
22861 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22863 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22864 dynamic_linker
='NetBSD (a.out) ld.so'
22866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22867 soname_spec
='${libname}${release}${shared_ext}$major'
22868 dynamic_linker
='NetBSD ld.elf_so'
22870 shlibpath_var
=LD_LIBRARY_PATH
22871 shlibpath_overrides_runpath
=yes
22872 hardcode_into_libs
=yes
22877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22878 shlibpath_var
=LD_LIBRARY_PATH
22879 shlibpath_overrides_runpath
=yes
22886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887 soname_spec
='${libname}${release}${shared_ext}$major'
22888 shlibpath_var
=LD_LIBRARY_PATH
22889 shlibpath_overrides_runpath
=no
22890 hardcode_into_libs
=yes
22891 dynamic_linker
='ldqnx.so'
22896 sys_lib_dlsearch_path_spec
="/usr/lib"
22898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22900 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22901 *) need_version
=no
;;
22903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22904 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22905 shlibpath_var
=LD_LIBRARY_PATH
22906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22908 openbsd2.
[89] | openbsd2.
[89].
*)
22909 shlibpath_overrides_runpath
=no
22912 shlibpath_overrides_runpath
=yes
22916 shlibpath_overrides_runpath
=yes
22921 libname_spec
='$name'
22924 library_names_spec
='$libname${shared_ext} $libname.a'
22925 dynamic_linker
='OS/2 ld.exe'
22926 shlibpath_var
=LIBPATH
22929 osf3
* | osf4
* | osf5
*)
22933 soname_spec
='${libname}${release}${shared_ext}$major'
22934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22935 shlibpath_var
=LD_LIBRARY_PATH
22936 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22937 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22949 soname_spec
='${libname}${release}${shared_ext}$major'
22950 shlibpath_var
=LD_LIBRARY_PATH
22951 shlibpath_overrides_runpath
=yes
22952 hardcode_into_libs
=yes
22953 # ldd complains unless libraries are executable
22954 postinstall_cmds
='chmod +x $lib'
22959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22960 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22961 shlibpath_var
=LD_LIBRARY_PATH
22962 shlibpath_overrides_runpath
=yes
22963 if test "$with_gnu_ld" = yes; then
22971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22972 soname_spec
='${libname}${release}${shared_ext}$major'
22973 shlibpath_var
=LD_LIBRARY_PATH
22974 case $host_vendor in
22976 shlibpath_overrides_runpath
=no
22978 runpath_var
=LD_RUN_PATH
22986 shlibpath_overrides_runpath
=no
22987 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22993 if test -d /usr
/nec
;then
22995 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22996 soname_spec
='$libname${shared_ext}.$major'
22997 shlibpath_var
=LD_LIBRARY_PATH
23001 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23002 version_type
=freebsd-elf
23005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23006 soname_spec
='${libname}${release}${shared_ext}$major'
23007 shlibpath_var
=LD_LIBRARY_PATH
23008 shlibpath_overrides_runpath
=yes
23009 hardcode_into_libs
=yes
23010 if test "$with_gnu_ld" = yes; then
23011 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23013 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23016 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23020 sys_lib_dlsearch_path_spec
='/usr/lib'
23024 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23029 shlibpath_var
=LD_LIBRARY_PATH
23030 shlibpath_overrides_runpath
=no
23031 hardcode_into_libs
=yes
23036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23037 soname_spec
='${libname}${release}${shared_ext}$major'
23038 shlibpath_var
=LD_LIBRARY_PATH
23041 # Shared libraries for VwWorks, >= 7 only at this stage
23042 # and (fpic) still incompatible with "large" code models
23043 # in a few configurations. Only for RTP mode in any case,
23044 # and upon explicit request at configure time.
23047 case ${with_multisubdir}-${enable_shared} in
23054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23055 soname_spec
='${libname}${release}${shared_ext}$major'
23056 dynamic_linker
="$host_os module_loader"
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23065 $as_echo "$dynamic_linker" >&6; }
23066 test "$dynamic_linker" = no
&& can_build_shared
=no
23068 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23069 if test "$GCC" = yes; then
23070 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23073 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23074 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
23076 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23077 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23118 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23119 hardcode_action_CXX
=
23120 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23121 test -n "$runpath_var_CXX" ||
23122 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23124 # We can hardcode non-existent directories.
23125 if test "$hardcode_direct_CXX" != no
&&
23126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23127 # have to relink, otherwise we might link with an installed library
23128 # when we should be linking with a yet-to-be-installed one
23129 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23130 test "$hardcode_minus_L_CXX" != no
; then
23131 # Linking always hardcodes the temporary library directory.
23132 hardcode_action_CXX
=relink
23134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23135 hardcode_action_CXX
=immediate
23138 # We cannot hardcode anything, or else we can only hardcode existing
23140 hardcode_action_CXX
=unsupported
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23143 $as_echo "$hardcode_action_CXX" >&6; }
23145 if test "$hardcode_action_CXX" = relink ||
23146 test "$inherit_rpath_CXX" = yes; then
23147 # Fast installation is not supported
23148 enable_fast_install
=no
23149 elif test "$shlibpath_overrides_runpath" = yes ||
23150 test "$enable_shared" = no
; then
23151 # Fast installation is not necessary
23152 enable_fast_install
=needless
23161 fi # test -n "$compiler"
23167 with_gnu_ld
=$lt_save_with_gnu_ld
23168 lt_cv_path_LDCXX
=$lt_cv_path_LD
23169 lt_cv_path_LD
=$lt_save_path_LD
23170 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
23171 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
23172 fi # test "$_lt_caught_CXX_error" != yes
23175 ac_cpp
='$CXXCPP $CPPFLAGS'
23176 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23177 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23178 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23195 # Only expand once:
23201 # Identify the assembler which will work hand-in-glove with the newly
23202 # built GCC, so that we can examine its features. This is the assembler
23203 # which will be driven by the driver program.
23205 # If build != host, and we aren't building gas in-tree, we identify a
23206 # build->target assembler and hope that it will have the same features
23207 # as the host->target assembler we'll be using.
23208 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23210 if ${gcc_cv_as+:} false
; then :
23214 if test -x "$DEFAULT_ASSEMBLER"; then
23215 gcc_cv_as
="$DEFAULT_ASSEMBLER"
23216 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23217 && test -f ..
/gas
/Makefile \
23218 && test x
$build = x
$host; then
23219 gcc_cv_as
=..
/gas
/as-new
$build_exeext
23220 elif test -x as
$build_exeext; then
23221 # Build using assembler in the current directory.
23222 gcc_cv_as
=.
/as
$build_exeext
23223 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
23224 gcc_cv_as
="$AS_FOR_TARGET"
23226 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23227 set dummy
$AS_FOR_TARGET; ac_word
=$2
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23229 $as_echo_n "checking for $ac_word... " >&6; }
23230 if ${ac_cv_path_gcc_cv_as+:} false
; then :
23231 $as_echo_n "(cached) " >&6
23235 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
23238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23239 for as_dir
in $PATH
23242 test -z "$as_dir" && as_dir
=.
23243 for ac_exec_ext
in '' $ac_executable_extensions; do
23244 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23245 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
23246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23256 gcc_cv_as
=$ac_cv_path_gcc_cv_as
23257 if test -n "$gcc_cv_as"; then
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23259 $as_echo "$gcc_cv_as" >&6; }
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23262 $as_echo "no" >&6; }
23269 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
23271 case "$ORIGINAL_AS_FOR_TARGET" in
23272 .
/as | .
/as
$build_exeext) ;;
23273 *) ac_config_files
="$ac_config_files as:exec-tool.in"
23278 # Check whether --enable-ld was given.
23279 if test "${enable_ld+set}" = set; then :
23280 enableval
=$enable_ld; case "${enableval}" in
23288 install_gold_as_default
=no
23289 # Check whether --enable-gold was given.
23290 if test "${enable_gold+set}" = set; then :
23291 enableval
=$enable_gold; case "${enableval}" in
23293 install_gold_as_default
=yes
23296 if test x
${default_ld} != x
; then
23297 install_gold_as_default
=yes
23303 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23309 # Identify the linker which will work hand-in-glove with the newly
23310 # built GCC, so that we can examine its features. This is the linker
23311 # which will be driven by the driver program.
23313 # If build != host, and we aren't building gas in-tree, we identify a
23314 # build->target linker and hope that it will have the same features
23315 # as the host->target linker we'll be using.
23316 gcc_cv_gld_major_version
=
23317 gcc_cv_gld_minor_version
=
23318 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23319 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23320 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23322 if ${gcc_cv_ld+:} false
; then :
23326 if test -x "$DEFAULT_LINKER"; then
23327 gcc_cv_ld
="$DEFAULT_LINKER"
23328 elif test $install_gold_as_default = yes \
23329 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23330 && test -f ..
/gold
/Makefile \
23331 && test x
$build = x
$host; then
23332 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23333 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23334 && test -f ..
/ld
/Makefile \
23335 && test x
$build = x
$host; then
23336 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23337 elif test -x collect-ld
$build_exeext; then
23338 # Build using linker in the current directory.
23339 gcc_cv_ld
=.
/collect-ld
$build_exeext
23340 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23341 gcc_cv_ld
="$LD_FOR_TARGET"
23343 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23344 set dummy
$LD_FOR_TARGET; ac_word
=$2
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23346 $as_echo_n "checking for $ac_word... " >&6; }
23347 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23348 $as_echo_n "(cached) " >&6
23352 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23356 for as_dir
in $PATH
23359 test -z "$as_dir" && as_dir
=.
23360 for ac_exec_ext
in '' $ac_executable_extensions; do
23361 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23362 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23373 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23374 if test -n "$gcc_cv_ld"; then
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23376 $as_echo "$gcc_cv_ld" >&6; }
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23379 $as_echo "no" >&6; }
23386 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23387 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23388 # if the PLUGIN_LD is set ld-new, just have it as ld
23389 # as that is the installed named.
23390 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23391 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23392 PLUGIN_LD_SUFFIX
=ld
23395 # Check whether --with-plugin-ld was given.
23396 if test "${with_plugin_ld+set}" = set; then :
23397 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23398 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23399 PLUGIN_LD_SUFFIX
="$withval"
23405 cat >>confdefs.h
<<_ACEOF
23406 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23410 # Check to see if we are using gold instead of ld
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23412 $as_echo_n "checking whether we are using gold... " >&6; }
23414 if test x
$gcc_cv_ld != x
; then
23415 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23416 |
grep "GNU gold" > /dev
/null
; then
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23421 $as_echo "$ld_is_gold" >&6; }
23423 # Check to see if we are using mold instead of ld
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23425 $as_echo_n "checking whether we are using mold... " >&6; }
23427 if test x
$gcc_cv_ld != x
; then
23428 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23429 |
grep "mold" > /dev
/null
; then
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23434 $as_echo "$ld_is_mold" >&6; }
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23438 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23439 # Check to see if default ld is not gold, but gold is
23440 # available and has support for split stack. If gcc was configured
23441 # with gold then no checking is done.
23443 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23445 # For platforms other than powerpc64*, enable as appropriate.
23447 gold_non_default
=no
23448 ld_gold
=`which ${gcc_cv_ld}.gold`
23449 # Make sure this gold has minimal split stack support
23450 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23451 ld_vers
=`$ld_gold --version | sed 1q`
23452 gold_vers
=`echo $ld_vers | sed -n \
23453 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23455 # check that the gold version contains the complete split stack support
23456 # on powerpc64 big and little endian
23458 case "$gold_vers" in
23459 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23461 *) gold_non_default
=no
23467 if test $gold_non_default = yes; then
23469 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23474 $as_echo "$gold_non_default" >&6; }
23476 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23478 case "$ORIGINAL_LD_FOR_TARGET" in
23479 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23480 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23485 $as_echo_n "checking what linker to use... " >&6; }
23486 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23487 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23488 # Single tree build which includes ld. We want to prefer it
23489 # over whatever linker top-level may have detected, since
23490 # we'll use what we're building after installation anyway.
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23492 $as_echo "newly built ld" >&6; }
23494 in_tree_ld_is_elf
=no
23495 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23496 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23497 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23498 in_tree_ld_is_elf
=yes
23499 elif test "$ld_is_gold" = yes; then
23500 in_tree_ld_is_elf
=yes
23502 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
23504 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23505 if test x
$gcc_cv_gld_version != x
; then
23509 case $gcc_cv_gld_version in
23511 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23513 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23514 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23515 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23516 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23519 $as_echo "$gcc_cv_ld" >&6; }
23521 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23522 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23523 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23529 # Figure out what nm we will be using.
23530 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23531 if ${gcc_cv_nm+:} false
; then :
23535 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23536 && test -f ..
/binutils
/Makefile \
23537 && test x
$build = x
$host; then
23538 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23539 elif test -x nm
$build_exeext; then
23540 gcc_cv_nm
=.
/nm
$build_exeext
23541 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23542 gcc_cv_nm
="$NM_FOR_TARGET"
23544 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23545 set dummy
$NM_FOR_TARGET; ac_word
=$2
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23547 $as_echo_n "checking for $ac_word... " >&6; }
23548 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23549 $as_echo_n "(cached) " >&6
23553 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23557 for as_dir
in $PATH
23560 test -z "$as_dir" && as_dir
=.
23561 for ac_exec_ext
in '' $ac_executable_extensions; do
23562 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23563 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23574 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23575 if test -n "$gcc_cv_nm"; then
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23577 $as_echo "$gcc_cv_nm" >&6; }
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23580 $as_echo "no" >&6; }
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23588 $as_echo_n "checking what nm to use... " >&6; }
23589 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23590 # Single tree build which includes binutils.
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23592 $as_echo "newly built nm" >&6; }
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23596 $as_echo "$gcc_cv_nm" >&6; }
23600 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23602 case "$ORIGINAL_NM_FOR_TARGET" in
23603 .
/nm | .
/nm
$build_exeext) ;;
23604 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23609 # Figure out what objdump we will be using.
23610 if ${gcc_cv_objdump+:} false
; then :
23614 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23615 && test -f ..
/binutils
/Makefile \
23616 && test x
$build = x
$host; then
23617 # Single tree build which includes binutils.
23618 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23619 elif test -x objdump
$build_exeext; then
23620 gcc_cv_objdump
=.
/objdump
$build_exeext
23621 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23622 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23624 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23625 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23627 $as_echo_n "checking for $ac_word... " >&6; }
23628 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23629 $as_echo_n "(cached) " >&6
23631 case $gcc_cv_objdump in
23633 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23637 for as_dir
in $PATH
23640 test -z "$as_dir" && as_dir
=.
23641 for ac_exec_ext
in '' $ac_executable_extensions; do
23642 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23643 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23654 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23655 if test -n "$gcc_cv_objdump"; then
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23657 $as_echo "$gcc_cv_objdump" >&6; }
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23660 $as_echo "no" >&6; }
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23668 $as_echo_n "checking what objdump to use... " >&6; }
23669 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23670 # Single tree build which includes binutils.
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23672 $as_echo "newly built objdump" >&6; }
23673 elif test x
$gcc_cv_objdump = x
; then
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23675 $as_echo "not found" >&6; }
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23678 $as_echo "$gcc_cv_objdump" >&6; }
23681 # Figure out what readelf we will be using.
23682 if ${gcc_cv_readelf+:} false
; then :
23686 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23687 && test -f ..
/binutils
/Makefile \
23688 && test x
$build = x
$host; then
23689 # Single tree build which includes binutils.
23690 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23691 elif test -x readelf
$build_exeext; then
23692 gcc_cv_readelf
=.
/readelf
$build_exeext
23693 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23694 gcc_cv_readelf
="$READELF_FOR_TARGET"
23696 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23697 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23699 $as_echo_n "checking for $ac_word... " >&6; }
23700 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23701 $as_echo_n "(cached) " >&6
23703 case $gcc_cv_readelf in
23705 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23709 for as_dir
in $PATH
23712 test -z "$as_dir" && as_dir
=.
23713 for ac_exec_ext
in '' $ac_executable_extensions; do
23714 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23715 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23726 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23727 if test -n "$gcc_cv_readelf"; then
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23729 $as_echo "$gcc_cv_readelf" >&6; }
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23732 $as_echo "no" >&6; }
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23740 $as_echo_n "checking what readelf to use... " >&6; }
23741 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23742 # Single tree build which includes binutils.
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23744 $as_echo "newly built readelf" >&6; }
23745 elif test x
$gcc_cv_readelf = x
; then
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23747 $as_echo "not found" >&6; }
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23750 $as_echo "$gcc_cv_readelf" >&6; }
23753 # Figure out what otool we will be using.
23754 if ${gcc_cv_otool+:} false
; then :
23758 if test -x otool
$build_exeext; then
23759 gcc_cv_otool
=.
/otool
$build_exeext
23760 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23761 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23763 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23764 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23766 $as_echo_n "checking for $ac_word... " >&6; }
23767 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23768 $as_echo_n "(cached) " >&6
23770 case $gcc_cv_otool in
23772 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23776 for as_dir
in $PATH
23779 test -z "$as_dir" && as_dir
=.
23780 for ac_exec_ext
in '' $ac_executable_extensions; do
23781 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23782 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23793 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23794 if test -n "$gcc_cv_otool"; then
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23796 $as_echo "$gcc_cv_otool" >&6; }
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23799 $as_echo "no" >&6; }
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23807 $as_echo_n "checking what otool to use... " >&6; }
23808 if test x
$gcc_cv_otool = x
; then
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23810 $as_echo "not found" >&6; }
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23813 $as_echo "$gcc_cv_otool" >&6; }
23816 # Figure out the dsymutil we will use.
23817 if ${gcc_cv_dsymutil+:} false
; then :
23821 if test -x "$DEFAULT_DSYMUTIL"; then
23822 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
23823 elif test -x dsymutil
$build_exeext; then
23824 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
23825 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
23826 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
23827 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
23828 gcc_cv_dsymutil
=$DSYMUTIL
23830 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23831 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23833 $as_echo_n "checking for $ac_word... " >&6; }
23834 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
23835 $as_echo_n "(cached) " >&6
23837 case $gcc_cv_dsymutil in
23839 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
23842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23843 for as_dir
in $PATH
23846 test -z "$as_dir" && as_dir
=.
23847 for ac_exec_ext
in '' $ac_executable_extensions; do
23848 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23849 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
23850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23860 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
23861 if test -n "$gcc_cv_dsymutil"; then
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23863 $as_echo "$gcc_cv_dsymutil" >&6; }
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23866 $as_echo "no" >&6; }
23873 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
23875 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23876 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
23877 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
23881 # Figure out what assembler alignment features are present.
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23883 $as_echo_n "checking assembler flags... " >&6; }
23884 if ${gcc_cv_as_flags+:} false
; then :
23885 $as_echo_n "(cached) " >&6
23888 i
[34567]86-*-linux*)
23889 gcc_cv_as_flags
=--32
23891 x86_64-
*-linux-gnux32)
23892 gcc_cv_as_flags
=--x32
23895 gcc_cv_as_flags
=--64
23897 powerpc
*-*-darwin*)
23898 gcc_cv_as_flags
="-arch ppc"
23901 gcc_cv_as_flags
=" "
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23906 $as_echo "$gcc_cv_as_flags" >&6; }
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23909 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23910 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23911 $as_echo_n "(cached) " >&6
23913 gcc_cv_as_balign_and_p2align
=no
23914 if test x
$gcc_cv_as != x
; then
23915 $as_echo '.balign 4
23916 .p2align 2' > conftest.s
23917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23919 (eval $ac_try) 2>&5
23921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23922 test $ac_status = 0; }; }
23924 gcc_cv_as_balign_and_p2align
=yes
23926 echo "configure: failed program was" >&5
23929 rm -f conftest.o conftest.s
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23933 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23934 if test $gcc_cv_as_balign_and_p2align = yes; then
23936 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23942 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23943 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23944 $as_echo_n "(cached) " >&6
23946 gcc_cv_as_max_skip_p2align
=no
23947 if test x
$gcc_cv_as != x
; then
23948 $as_echo '.p2align 4,,7' > conftest.s
23949 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23951 (eval $ac_try) 2>&5
23953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23954 test $ac_status = 0; }; }
23956 gcc_cv_as_max_skip_p2align
=yes
23958 echo "configure: failed program was" >&5
23961 rm -f conftest.o conftest.s
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23965 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23966 if test $gcc_cv_as_max_skip_p2align = yes; then
23968 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23974 $as_echo_n "checking assembler for .literal16... " >&6; }
23975 if ${gcc_cv_as_literal16+:} false
; then :
23976 $as_echo_n "(cached) " >&6
23978 gcc_cv_as_literal16
=no
23979 if test x
$gcc_cv_as != x
; then
23980 $as_echo '.literal16' > conftest.s
23981 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23983 (eval $ac_try) 2>&5
23985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23986 test $ac_status = 0; }; }
23988 gcc_cv_as_literal16
=yes
23990 echo "configure: failed program was" >&5
23993 rm -f conftest.o conftest.s
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23997 $as_echo "$gcc_cv_as_literal16" >&6; }
23998 if test $gcc_cv_as_literal16 = yes; then
24000 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24006 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24007 if ${gcc_cv_as_subsection_m1+:} false
; then :
24008 $as_echo_n "(cached) " >&6
24010 gcc_cv_as_subsection_m1
=no
24011 if test x
$gcc_cv_as != x
; then
24012 $as_echo 'conftest_label1: .word 0
24014 conftest_label2: .word 0
24015 .previous' > conftest.s
24016 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24018 (eval $ac_try) 2>&5
24020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24021 test $ac_status = 0; }; }
24023 if test x
$gcc_cv_nm != x
; then
24024 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
24025 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
24026 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
24028 else gcc_cv_as_subsection_m1
=yes
24030 rm -f conftest.nm1 conftest.nm2
24033 echo "configure: failed program was" >&5
24036 rm -f conftest.o conftest.s
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24040 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24041 if test $gcc_cv_as_subsection_m1 = yes; then
24043 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24049 $as_echo_n "checking assembler for .weak... " >&6; }
24050 if ${gcc_cv_as_weak+:} false
; then :
24051 $as_echo_n "(cached) " >&6
24054 if test x
$gcc_cv_as != x
; then
24055 $as_echo ' .weak foobar' > conftest.s
24056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24058 (eval $ac_try) 2>&5
24060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24061 test $ac_status = 0; }; }
24065 echo "configure: failed program was" >&5
24068 rm -f conftest.o conftest.s
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24072 $as_echo "$gcc_cv_as_weak" >&6; }
24073 if test $gcc_cv_as_weak = yes; then
24075 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24081 $as_echo_n "checking assembler for .weakref... " >&6; }
24082 if ${gcc_cv_as_weakref+:} false
; then :
24083 $as_echo_n "(cached) " >&6
24085 gcc_cv_as_weakref
=no
24086 if test x
$gcc_cv_as != x
; then
24087 $as_echo ' .weakref foobar, barfnot' > conftest.s
24088 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24090 (eval $ac_try) 2>&5
24092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24093 test $ac_status = 0; }; }
24095 gcc_cv_as_weakref
=yes
24097 echo "configure: failed program was" >&5
24100 rm -f conftest.o conftest.s
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24104 $as_echo "$gcc_cv_as_weakref" >&6; }
24105 if test $gcc_cv_as_weakref = yes; then
24107 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24113 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24114 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
24115 $as_echo_n "(cached) " >&6
24117 gcc_cv_as_nsubspa_comdat
=no
24118 if test x
$gcc_cv_as != x
; then
24119 $as_echo ' .SPACE $TEXT$
24120 .NSUBSPA $CODE$,COMDAT' > conftest.s
24121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24123 (eval $ac_try) 2>&5
24125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24126 test $ac_status = 0; }; }
24128 gcc_cv_as_nsubspa_comdat
=yes
24130 echo "configure: failed program was" >&5
24133 rm -f conftest.o conftest.s
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24137 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24138 if test $gcc_cv_as_nsubspa_comdat = yes; then
24140 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24145 # .hidden needs to be supported in both the assembler and the linker,
24146 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24147 # This is irritatingly difficult to feature test for; we have to check the
24148 # date string after the version number. If we've got an in-tree
24149 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24151 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24152 case "${target}" in
24154 conftest_s
=' .globl foobar,hidden'
24157 conftest_s
=' .hidden foobar
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24162 $as_echo_n "checking assembler for .hidden... " >&6; }
24163 if ${gcc_cv_as_hidden+:} false
; then :
24164 $as_echo_n "(cached) " >&6
24166 gcc_cv_as_hidden
=no
24167 if test x
$gcc_cv_as != x
; then
24168 $as_echo "$conftest_s" > conftest.s
24169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; }
24176 gcc_cv_as_hidden
=yes
24178 echo "configure: failed program was" >&5
24181 rm -f conftest.o conftest.s
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24185 $as_echo "$gcc_cv_as_hidden" >&6; }
24188 case "${target}" in
24190 # Darwin as has some visibility support, though with a different syntax.
24191 gcc_cv_as_hidden
=yes
24195 # gnu_indirect_function type is an extension proposed at
24196 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24197 # selection of function implementation
24198 # Check whether --enable-gnu-indirect-function was given.
24199 if test "${enable_gnu_indirect_function+set}" = set; then :
24200 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24202 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24203 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24206 enable_gnu_indirect_function
="$default_gnu_indirect_function"
24210 case "${target}" in
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24213 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24214 cat > conftest.s
<<EOF
24216 .type foo_resolver, @function
24219 .size foo_resolver, .-foo_resolver
24222 .type foo, %gnu_indirect_function
24223 .set foo, foo_resolver
24226 .type bar, @function
24232 if test x
$gcc_cv_as != x \
24233 && test x
$gcc_cv_ld != x \
24234 && test x
$gcc_cv_readelf != x \
24235 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24236 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24237 && $gcc_cv_readelf --relocs --wide conftest \
24238 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
24239 enable_gnu_indirect_function
=yes
24241 rm -f conftest conftest.o conftest.s
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24243 $as_echo "$enable_gnu_indirect_function" >&6; }
24247 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24249 cat >>confdefs.h
<<_ACEOF
24250 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24255 if test $in_tree_ld != yes ; then
24256 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24257 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24258 if test x
"$ld_is_gold" = xyes
; then
24259 # GNU gold --version looks like this:
24261 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24263 # We extract the binutils version which is more familiar and specific
24264 # than the gold version.
24265 ld_vers
=`echo $ld_ver | sed -n \
24266 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24268 # GNU ld --version looks like this:
24270 # GNU ld (GNU Binutils) 2.21.51.20110225
24271 ld_vers
=`echo $ld_ver | sed -n \
24272 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24274 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'`
24275 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24276 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24277 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24279 case "${target}" in
24281 # Solaris 2 ld -V output looks like this for a regular version:
24283 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24285 # but test versions add stuff at the end:
24287 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24289 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24290 # numbers can be used in ld.so.1 feature checks even if a different
24291 # linker is configured.
24292 ld_ver
=`$gcc_cv_ld -V 2>&1`
24293 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
24294 ld_vers
=`echo $ld_ver | sed -n \
24295 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24296 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24297 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24305 $as_echo_n "checking linker for .hidden support... " >&6; }
24306 if ${gcc_cv_ld_hidden+:} false
; then :
24307 $as_echo_n "(cached) " >&6
24309 if test $in_tree_ld = yes ; then
24310 gcc_cv_ld_hidden
=no
24311 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 \
24312 && test $in_tree_ld_is_elf = yes; then
24313 gcc_cv_ld_hidden
=yes
24316 gcc_cv_ld_hidden
=yes
24317 if test x
"$ld_is_gold" = xyes
; then
24319 elif test x
"$ld_is_mold" = xyes
; then
24321 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24322 if test 0"$ld_date" -lt 20020404; then
24323 if test -n "$ld_date"; then
24324 # If there was date string, but was earlier than 2002-04-04, fail
24325 gcc_cv_ld_hidden
=no
24326 elif test -z "$ld_vers"; then
24327 # If there was no date string nor ld version number, something is wrong
24328 gcc_cv_ld_hidden
=no
24330 test -z "$ld_vers_patch" && ld_vers_patch
=0
24331 if test "$ld_vers_major" -lt 2; then
24332 gcc_cv_ld_hidden
=no
24333 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24334 gcc_cv_ld_hidden
="no"
24335 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24336 gcc_cv_ld_hidden
=no
24341 case "${target}" in
24343 gcc_cv_ld_hidden
=yes
24346 # Darwin ld has some visibility support.
24347 gcc_cv_ld_hidden
=yes
24349 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24350 gcc_cv_ld_hidden
=yes
24353 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24354 # .symbolic was only added in Solaris 9 12/02.
24355 gcc_cv_ld_hidden
=yes
24358 gcc_cv_ld_hidden
=no
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24365 $as_echo "$gcc_cv_ld_hidden" >&6; }
24366 libgcc_visibility
=no
24369 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24370 libgcc_visibility
=yes
24372 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24377 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24378 gcc_cv_ld_ro_rw_mix
=unknown
24379 if test $in_tree_ld = yes ; then
24380 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 \
24381 && test $in_tree_ld_is_elf = yes; then
24382 gcc_cv_ld_ro_rw_mix
=read-write
24384 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24385 echo '.section myfoosect, "a"' > conftest1.s
24386 echo '.section myfoosect, "aw"' > conftest2.s
24387 echo '.byte 1' >> conftest2.s
24388 echo '.section myfoosect, "a"' > conftest3.s
24389 echo '.byte 0' >> conftest3.s
24390 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24391 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24392 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
24393 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24394 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24395 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24396 | sed -e '/myfoosect/!d' -e N`
24397 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24398 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24399 gcc_cv_ld_ro_rw_mix
=read-only
24401 gcc_cv_ld_ro_rw_mix
=read-write
24405 rm -f conftest.
* conftest
[123].
*
24407 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24409 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24413 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24415 # Check whether --enable-initfini-array was given.
24416 if test "${enable_initfini_array+set}" = set; then :
24417 enableval
=$enable_initfini_array;
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24421 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24422 if ${gcc_cv_initfini_array+:} false
; then :
24423 $as_echo_n "(cached) " >&6
24425 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24426 case "${target}" in
24428 if test "$cross_compiling" = yes; then :
24429 gcc_cv_initfini_array
=no
24431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24432 /* end confdefs.h. */
24435 #error Not an ELF OS
24437 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24438 if it can be used. */
24440 int main (void) { return x; }
24441 int foo (void) { x = 0; }
24442 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24445 if ac_fn_cxx_try_run
"$LINENO"; then :
24446 gcc_cv_initfini_array
=yes
24448 gcc_cv_initfini_array
=no
24450 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24451 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24455 gcc_cv_initfini_array
=no
24456 if test $in_tree_ld = yes ; then
24457 if test "$gcc_cv_gld_major_version" -eq 2 \
24458 -a "$gcc_cv_gld_minor_version" -ge 22 \
24459 -o "$gcc_cv_gld_major_version" -gt 2 \
24460 && test $in_tree_ld_is_elf = yes; then
24461 gcc_cv_initfini_array
=yes
24463 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24464 case $target:$gas in
24467 sh_type
='%progbits'
24469 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24471 sh_type
='@progbits'
24473 sparc
*-*-solaris2*:no
)
24475 sh_type
='#progbits'
24479 case "$target:$gnu_ld" in
24481 cat > conftest.s
<<EOF
24482 .section .dtors,$sh_flags,$sh_type
24484 .byte 'A', 'A', 'A', 'A'
24485 .section .ctors,$sh_flags,$sh_type
24487 .byte 'B', 'B', 'B', 'B'
24488 .section .fini_array.65530,$sh_flags,$sh_type
24490 .byte 'C', 'C', 'C', 'C'
24491 .section .init_array.65530,$sh_flags,$sh_type
24493 .byte 'D', 'D', 'D', 'D'
24494 .section .dtors.64528,$sh_flags,$sh_type
24496 .byte 'E', 'E', 'E', 'E'
24497 .section .ctors.64528,$sh_flags,$sh_type
24499 .byte 'F', 'F', 'F', 'F'
24500 .section .fini_array.01005,$sh_flags,$sh_type
24502 .byte 'G', 'G', 'G', 'G'
24503 .section .init_array.01005,$sh_flags,$sh_type
24505 .byte 'H', 'H', 'H', 'H'
24510 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24511 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24512 && $gcc_cv_objdump -s -j .init_array conftest \
24513 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24514 && $gcc_cv_objdump -s -j .fini_array conftest \
24515 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24516 gcc_cv_initfini_array
=yes
24520 # When Solaris ld added constructor priority support, it was
24521 # decided to only handle .init_array.N/.fini_array.N since
24522 # there was no need for backwards compatibility with
24523 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24524 # sections with correct execution order resp. to
24525 # .init_array/.fini_array, while gld merges them into
24526 # .init_array/.fini_array.
24527 cat > conftest.s
<<EOF
24528 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24530 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24531 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24533 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24534 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24536 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24537 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24539 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24544 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24545 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24546 && $gcc_cv_objdump -s -j .init_array conftest \
24547 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24548 && $gcc_cv_objdump -s -j .fini_array conftest \
24549 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24550 gcc_cv_initfini_array
=yes
24554 rm -f conftest conftest.
*
24556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24557 /* end confdefs.h. */
24560 # error Not an ELF OS
24562 #include <stdlib.h>
24563 #if defined __GLIBC_PREREQ
24564 # if __GLIBC_PREREQ (2, 4)
24566 # error GLIBC 2.4 required
24569 # if defined __sun__ && defined __svr4__
24570 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24572 # error The C library not known to support .init_array/.fini_array
24577 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24580 gcc_cv_initfini_array
=no
24582 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24585 case "${target}" in
24586 aarch64
*-linux-gnu*)
24587 # AArch64 postdates glibc support for .init_array/.fini_array,
24588 # so we don't need the preprocessor test above.
24589 gcc_cv_initfini_array
=yes
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24594 $as_echo_n "checking cross compile... guessing... " >&6; }
24595 gcc_cv_initfini_array
=no
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24601 $as_echo "$gcc_cv_initfini_array" >&6; }
24602 enable_initfini_array
=$gcc_cv_initfini_array
24607 cat >>confdefs.h
<<_ACEOF
24608 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24613 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24614 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24615 # these directives, even when they appear to accept them.
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24617 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24618 if ${gcc_cv_as_leb128+:} false
; then :
24619 $as_echo_n "(cached) " >&6
24621 gcc_cv_as_leb128
=no
24622 if test x
$gcc_cv_as != x
; then
24629 .uleb128 0x8000000000000000
24631 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24633 (eval $ac_try) 2>&5
24635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24636 test $ac_status = 0; }; }
24639 if test "x$gcc_cv_objdump" != x
; then
24640 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24641 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24642 gcc_cv_as_leb128
=yes
24644 elif test "x$gcc_cv_otool" != x
; then
24645 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24646 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24647 gcc_cv_as_leb128
=yes
24650 # play safe, assume the assembler is broken.
24655 echo "configure: failed program was" >&5
24658 rm -f conftest.o conftest.s
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24662 $as_echo "$gcc_cv_as_leb128" >&6; }
24663 if test $gcc_cv_as_leb128 = yes; then
24665 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24668 if test $gcc_cv_as_leb128 != yes; then
24670 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24674 # Determine if an .eh_frame section is read-only.
24675 gcc_fn_eh_frame_ro
() {
24676 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24677 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24678 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24681 # Check if we have assembler support for unwind directives.
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24683 $as_echo_n "checking assembler for cfi directives... " >&6; }
24684 if ${gcc_cv_as_cfi_directive+:} false
; then :
24685 $as_echo_n "(cached) " >&6
24687 gcc_cv_as_cfi_directive
=no
24688 if test x
$gcc_cv_as != x
; then
24694 .cfi_escape 1, 2, 3, 4, 5
24695 .cfi_endproc' > conftest.s
24696 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24698 (eval $ac_try) 2>&5
24700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24701 test $ac_status = 0; }; }
24705 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24706 # read-only and read-write sections, we need to make sure that the
24707 # assembler used emits read-write .eh_frame sections.
24708 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24709 gcc_cv_as_cfi_directive
=yes
24710 elif test "x$gcc_cv_objdump" = x
; then
24711 # No objdump, err on the side of caution.
24712 gcc_cv_as_cfi_directive
=no
24714 if test x
$gas = xyes
; then
24722 sparc
*-*-solaris2.
*)
24723 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24724 if gcc_fn_eh_frame_ro
$as_32_opt \
24725 || gcc_fn_eh_frame_ro
$as_64_opt; then
24726 gcc_cv_as_cfi_directive
=no
24728 gcc_cv_as_cfi_directive
=yes
24731 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24732 # On Solaris/x86, make sure that GCC and assembler agree on using
24733 # read-only .eh_frame sections for 64-bit.
24734 if gcc_fn_eh_frame_ro
$as_32_opt; then
24735 gcc_cv_as_cfi_directive
=no
24736 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24737 gcc_cv_as_cfi_directive
=yes
24739 gcc_cv_as_cfi_directive
=no
24746 gcc_cv_as_cfi_directive
=yes
24750 echo "configure: failed program was" >&5
24753 rm -f conftest.o conftest.s
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24757 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24760 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24762 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24763 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24764 $as_echo_n "(cached) " >&6
24766 gcc_cv_as_cfi_advance_working
=no
24767 if test x
$gcc_cv_as != x
; then
24770 .cfi_adjust_cfa_offset 64
24772 .cfi_adjust_cfa_offset 128
24773 .cfi_endproc' > conftest.s
24774 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24776 (eval $ac_try) 2>&5
24778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24779 test $ac_status = 0; }; }
24782 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24783 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24784 gcc_cv_as_cfi_advance_working
=yes
24788 echo "configure: failed program was" >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24795 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24799 # no objdump, err on the side of caution
24800 gcc_cv_as_cfi_advance_working
=no
24804 cat >>confdefs.h
<<_ACEOF
24805 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24806 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24812 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24813 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24814 $as_echo_n "(cached) " >&6
24816 gcc_cv_as_cfi_personality_directive
=no
24817 if test x
$gcc_cv_as != x
; then
24820 .cfi_personality 0, symbol
24821 .cfi_endproc' > conftest.s
24822 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24824 (eval $ac_try) 2>&5
24826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24827 test $ac_status = 0; }; }
24829 gcc_cv_as_cfi_personality_directive
=yes
24831 echo "configure: failed program was" >&5
24834 rm -f conftest.o conftest.s
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24838 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24842 cat >>confdefs.h
<<_ACEOF
24843 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24848 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24849 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24850 $as_echo_n "(cached) " >&6
24852 gcc_cv_as_cfi_sections_directive
=no
24853 if test x
$gcc_cv_as != x
; then
24855 .cfi_sections .debug_frame, .eh_frame
24857 .cfi_endproc' > conftest.s
24858 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24860 (eval $ac_try) 2>&5
24862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24863 test $ac_status = 0; }; }
24866 win32 | pe | cygwin
* | mingw32
*)
24867 # Need to check that we generated the correct relocation for the
24868 # .debug_frame section. This was fixed for binutils 2.21.
24869 gcc_cv_as_cfi_sections_directive
=no
24870 if test "x$gcc_cv_objdump" != x
; then
24871 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24872 grep -i secrel
> /dev
/null
; then
24873 gcc_cv_as_cfi_sections_directive
=yes
24878 gcc_cv_as_cfi_sections_directive
=yes
24882 echo "configure: failed program was" >&5
24885 rm -f conftest.o conftest.s
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24889 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24894 cat >>confdefs.h
<<_ACEOF
24895 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24899 # GAS versions up to and including 2.11.0 may mis-optimize
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24902 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24903 if ${gcc_cv_as_eh_frame+:} false
; then :
24904 $as_echo_n "(cached) " >&6
24906 gcc_cv_as_eh_frame
=no
24907 if test x
$gcc_cv_as != x
; then
24914 .section .eh_frame,"aw",@progbits
24916 .4byte .LECIE1-.LSCIE1
24930 .4byte .LEFDE1-.LASFDE1
24932 .4byte .LASFDE1-__FRAME_BEGIN__
24939 .LEFDE1:' > conftest.s
24940 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24942 (eval $ac_try) 2>&5
24944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24945 test $ac_status = 0; }; }
24947 cat > conftest.lit
<<EOF
24948 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24949 0010 01000000 12000000 18000000 00000000 ................
24950 0020 08000000 04080000 0044 .........D
24952 cat > conftest.big
<<EOF
24953 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24954 0010 00000001 00000012 00000018 00000000 ................
24955 0020 00000008 04000000 0844 .........D
24957 # If the assembler didn't choke, and we can objdump,
24958 # and we got the correct data, then succeed.
24959 # The text in the here-document typically retains its unix-style line
24960 # endings, while the output of objdump will use host line endings.
24961 # Therefore, use diff -b for the comparisons.
24962 if test x
$gcc_cv_objdump != x \
24963 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24964 |
tail -3 > conftest.got \
24965 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24966 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24968 gcc_cv_as_eh_frame
=yes
24969 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24971 (eval $ac_try) 2>&5
24973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24974 test $ac_status = 0; }; }; then
24975 gcc_cv_as_eh_frame
=buggy
24977 # Uh oh, what do we do now?
24978 gcc_cv_as_eh_frame
=no
24981 echo "configure: failed program was" >&5
24984 rm -f conftest.o conftest.s
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24988 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24992 if test $gcc_cv_as_eh_frame = buggy
; then
24994 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24998 # Test if the assembler supports the section flag 'e' or #exclude for
24999 # specifying an excluded section.
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25001 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25002 if ${gcc_cv_as_section_exclude_e+:} false
; then :
25003 $as_echo_n "(cached) " >&6
25005 gcc_cv_as_section_exclude_e
=no
25006 if test x
$gcc_cv_as != x
; then
25007 $as_echo '.section foo1,"e"
25008 .byte 0,0,0,0' > conftest.s
25009 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25011 (eval $ac_try) 2>&5
25013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25014 test $ac_status = 0; }; }
25016 gcc_cv_as_section_exclude_e
=yes
25018 echo "configure: failed program was" >&5
25021 rm -f conftest.o conftest.s
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25025 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25028 if test $gcc_cv_as_section_exclude_e = no
; then
25029 case "${target}" in
25030 # Solaris as uses #exclude instead.
25032 case "${target}" in
25033 sparc
*-*-solaris2*)
25034 conftest_s
='.section "foo1", #exclude'
25036 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25037 conftest_s
='.section foo1, #exclude'
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25043 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25044 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
25045 $as_echo_n "(cached) " >&6
25047 gcc_cv_as_section_exclude_hash
=no
25048 if test x
$gcc_cv_as != x
; then
25049 $as_echo "$conftest_s
25050 .byte 0,0,0,0" > conftest.s
25051 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25053 (eval $ac_try) 2>&5
25055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25056 test $ac_status = 0; }; }
25058 gcc_cv_as_section_exclude_hash
=yes
25060 echo "configure: failed program was" >&5
25063 rm -f conftest.o conftest.s
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25067 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25072 cat >>confdefs.h
<<_ACEOF
25073 #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`
25077 # Test if the assembler supports the section flag 'R' for specifying
25078 # section with SHF_GNU_RETAIN.
25079 case "${target}" in
25080 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25081 # assembler supports the section flag 'R', it doesn't mean that
25082 # Solairs ld supports it.
25084 gcc_cv_as_shf_gnu_retain
=no
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25088 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25089 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
25090 $as_echo_n "(cached) " >&6
25092 gcc_cv_as_shf_gnu_retain
=no
25093 if test x
$gcc_cv_as != x
; then
25094 $as_echo '.section .foo,"awR",%progbits
25095 .byte 0' > conftest.s
25096 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25098 (eval $ac_try) 2>&5
25100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25101 test $ac_status = 0; }; }
25103 gcc_cv_as_shf_gnu_retain
=yes
25105 echo "configure: failed program was" >&5
25108 rm -f conftest.o conftest.s
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25112 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25118 cat >>confdefs.h
<<_ACEOF
25119 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25123 # Test if the assembler supports the section flag 'o' for specifying
25124 # section with link-order.
25125 case "${target}" in
25126 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25127 # assembler supports the section flag 'o', it doesn't mean that
25128 # Solairs ld supports it.
25130 gcc_cv_as_section_link_order
=no
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25134 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25135 if ${gcc_cv_as_section_link_order+:} false
; then :
25136 $as_echo_n "(cached) " >&6
25138 gcc_cv_as_section_link_order
=no
25139 if test x
$gcc_cv_as != x
; then
25140 $as_echo '.section .foo,"a"
25142 .section __patchable_function_entries,"awo",%progbits,.foo
25143 .byte 0' > conftest.s
25144 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25146 (eval $ac_try) 2>&5
25148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25149 test $ac_status = 0; }; }
25151 gcc_cv_as_section_link_order
=yes
25153 echo "configure: failed program was" >&5
25156 rm -f conftest.o conftest.s
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25160 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25166 cat >>confdefs.h
<<_ACEOF
25167 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25172 $as_echo_n "checking assembler for section merging support... " >&6; }
25173 if ${gcc_cv_as_shf_merge+:} false
; then :
25174 $as_echo_n "(cached) " >&6
25176 gcc_cv_as_shf_merge
=no
25177 if test x
$gcc_cv_as != x
; then
25178 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25179 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25181 (eval $ac_try) 2>&5
25183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25184 test $ac_status = 0; }; }
25186 gcc_cv_as_shf_merge
=yes
25188 echo "configure: failed program was" >&5
25191 rm -f conftest.o conftest.s
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25195 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25198 if test $gcc_cv_as_shf_merge = no
; then
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25200 $as_echo_n "checking assembler for section merging support... " >&6; }
25201 if ${gcc_cv_as_shf_merge+:} false
; then :
25202 $as_echo_n "(cached) " >&6
25204 gcc_cv_as_shf_merge
=no
25205 if test x
$gcc_cv_as != x
; then
25206 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25209 (eval $ac_try) 2>&5
25211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25212 test $ac_status = 0; }; }
25214 gcc_cv_as_shf_merge
=yes
25216 echo "configure: failed program was" >&5
25219 rm -f conftest.o conftest.s
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25223 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25228 cat >>confdefs.h
<<_ACEOF
25229 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25233 gcc_cv_ld_aligned_shf_merge
=yes
25235 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25237 sparc
*-*-solaris2.11
*)
25238 if test x
"$gnu_ld" = xno \
25239 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25240 gcc_cv_ld_aligned_shf_merge
=no
25245 cat >>confdefs.h
<<_ACEOF
25246 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25251 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25252 if ${gcc_cv_as_comdat_group+:} false
; then :
25253 $as_echo_n "(cached) " >&6
25255 gcc_cv_as_comdat_group
=no
25256 if test x
$gcc_cv_as != x
; then
25257 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25258 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25260 (eval $ac_try) 2>&5
25262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25263 test $ac_status = 0; }; }
25265 gcc_cv_as_comdat_group
=yes
25267 echo "configure: failed program was" >&5
25270 rm -f conftest.o conftest.s
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25274 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25277 if test $gcc_cv_as_comdat_group = yes; then
25278 gcc_cv_as_comdat_group_percent
=no
25279 gcc_cv_as_comdat_group_group
=no
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25282 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25283 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25284 $as_echo_n "(cached) " >&6
25286 gcc_cv_as_comdat_group_percent
=no
25287 if test x
$gcc_cv_as != x
; then
25288 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25296 gcc_cv_as_comdat_group_percent
=yes
25298 echo "configure: failed program was" >&5
25301 rm -f conftest.o conftest.s
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25305 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25308 if test $gcc_cv_as_comdat_group_percent = yes; then
25309 gcc_cv_as_comdat_group_group
=no
25311 case "${target}" in
25312 # Sun as uses a completely different syntax.
25314 case "${target}" in
25315 sparc
*-*-solaris2*)
25317 .group foo,".text%foo",#comdat
25318 .section ".text%foo", #alloc,#execinstr,#progbits
25323 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25325 .group foo,.text%foo,#comdat
25326 .section .text%foo, "ax", @progbits
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25333 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25334 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25335 $as_echo_n "(cached) " >&6
25337 gcc_cv_as_comdat_group_group
=no
25338 if test x
$gcc_cv_as != x
; then
25339 $as_echo "$conftest_s" > conftest.s
25340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25347 gcc_cv_as_comdat_group_group
=yes
25349 echo "configure: failed program was" >&5
25352 rm -f conftest.o conftest.s
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25356 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25361 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25362 gcc_cv_as_comdat_group_group
=no
25366 if test x
"$ld_is_gold" = xyes
; then
25368 elif test x
"$ld_is_mold" = xyes
; then
25370 elif test $in_tree_ld = yes ; then
25372 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 \
25373 && test $in_tree_ld_is_elf = yes; then
25376 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25378 if test 0"$ld_date" -lt 20050308; then
25379 if test -n "$ld_date"; then
25380 # If there was date string, but was earlier than 2005-03-08, fail
25382 elif test "$ld_vers_major" -lt 2; then
25384 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25389 case "${target}" in
25390 *-*-solaris2.1
[1-9]*)
25392 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25393 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25396 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25397 # least ld version 1.2267.
25398 if test "$ld_vers_major" -gt 1; then
25400 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25402 elif test "$ld_vers_minor" -ge 2267; then
25407 # Assume linkers other than GNU ld don't support COMDAT group.
25412 # Allow overriding the automatic COMDAT group tests above.
25413 # Check whether --enable-comdat was given.
25414 if test "${enable_comdat+set}" = set; then :
25415 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25418 if test $comdat_group = no
; then
25419 gcc_cv_as_comdat_group
=no
25420 gcc_cv_as_comdat_group_percent
=no
25421 gcc_cv_as_comdat_group_group
=no
25424 cat >>confdefs.h
<<_ACEOF
25425 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25426 || test $gcc_cv_as_comdat_group_percent = yes \
25427 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25431 # Restrict this test to Solaris/x86: other targets define this statically.
25432 case "${target}" in
25433 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25435 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25436 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25437 hidden_linkonce
=yes
25439 case "${target}" in
25440 # Full support for hidden thunks in linkonce sections only appeared in
25441 # Solaris 11/OpenSolaris.
25442 *-*-solaris2.1
[1-9]*)
25443 hidden_linkonce
=yes
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25451 $as_echo "$hidden_linkonce" >&6; }
25453 cat >>confdefs.h
<<_ACEOF
25454 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25461 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25462 if ${gcc_cv_as_is_stmt+:} false
; then :
25463 $as_echo_n "(cached) " >&6
25465 gcc_cv_as_is_stmt
=no
25466 if test x
$gcc_cv_as != x
; then
25469 .loc 1 1 0 is_stmt 1' > conftest.s
25470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25472 (eval $ac_try) 2>&5
25474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25475 test $ac_status = 0; }; }
25477 gcc_cv_as_is_stmt
=yes
25479 echo "configure: failed program was" >&5
25482 rm -f conftest.o conftest.s
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25486 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25487 if test $gcc_cv_as_is_stmt = yes; then
25489 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25495 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25496 if ${gcc_cv_as_discriminator+:} false
; then :
25497 $as_echo_n "(cached) " >&6
25499 gcc_cv_as_discriminator
=no
25500 if test x
$gcc_cv_as != x
; then
25503 .loc 1 1 0 discriminator 1' > conftest.s
25504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25506 (eval $ac_try) 2>&5
25508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25509 test $ac_status = 0; }; }
25511 gcc_cv_as_discriminator
=yes
25513 echo "configure: failed program was" >&5
25516 rm -f conftest.o conftest.s
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25520 $as_echo "$gcc_cv_as_discriminator" >&6; }
25521 if test $gcc_cv_as_discriminator = yes; then
25523 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25528 # Catch the newlib flag of the same name so we can gate GCC features on it.
25529 # Check whether --enable-newlib-nano-formatted-io was given.
25530 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25531 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25535 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25541 # Thread-local storage - the check is heavily parameterized.
25547 .section ".tdata","awT",@progbits
25550 ldq $27,__tls_get_addr($29) !literal!1
25551 lda $16,foo($29) !tlsgd!1
25552 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25553 ldq $27,__tls_get_addr($29) !literal!2
25554 lda $16,foo($29) !tlsldm!2
25555 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25556 ldq $1,foo($29) !gotdtprel
25557 ldah $2,foo($29) !dtprelhi
25558 lda $3,foo($2) !dtprello
25559 lda $4,foo($29) !dtprel
25560 ldq $1,foo($29) !gottprel
25561 ldah $2,foo($29) !tprelhi
25562 lda $3,foo($2) !tprello
25563 lda $4,foo($29) !tprel'
25564 tls_as_opt
=--fatal-warnings
25568 add_s r0,r0, @foo@tpoff'
25570 cris-
*-*|crisv32-
*-*)
25572 .section ".tdata","awT",@progbits
25577 tls_as_opt
=--fatal-warnings
25581 .section ".tdata","awT",@progbits
25584 call #gettlsoff(x)'
25591 .section ".tdata","awT",@progbits
25595 addil LT%foo-$tls_gdidx$,gp
25596 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25599 addil LT%foo-$tls_ldidx$,gp
25601 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25602 addil LR%foo-$tls_dtpoff$,%ret0
25603 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25605 addil LT%foo-$tls_ieoff$,gp
25606 ldw RT%foo-$tls_ieoff$(%r1),%t2
25609 addil LR%foo-$tls_leoff$,%t1
25610 ldo RR%foo-$tls_leoff$(%r1),%t2'
25611 tls_as_opt
=--fatal-warnings
25615 .section ".tdata","awT",%progbits
25618 .word foo(gottpoff)
25624 i
[34567]86-*-* | x86_64-
*-*)
25626 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25633 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25635 .section .tdata,"awt",@progbits'
25638 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25642 .section ".tdata","awT",@progbits'
25644 tls_as_opt
="--fatal-warnings"
25648 if test x
$on_solaris = xyes
; then
25650 yes) tls_as_opt
="$tls_as_opt --32" ;;
25653 conftest_s
="$conftest_s
25657 leal foo@tlsgd(,%ebx,1), %eax
25658 leal foo@tlsldm(%ebx), %eax
25659 leal foo@dtpoff(%eax), %edx
25660 movl foo@gottpoff(%ebx), %eax
25661 subl foo@gottpoff(%ebx), %eax
25662 addl foo@gotntpoff(%ebx), %eax
25663 movl foo@indntpoff, %eax
25664 movl \$foo@tpoff, %eax
25665 subl \$foo@tpoff, %eax
25666 leal foo@ntpoff(%ecx), %eax"
25669 if test x
$on_solaris = xyes
; then
25671 yes) tls_as_opt
="$tls_as_opt --64" ;;
25672 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25675 conftest_s
="$conftest_s
25679 leaq foo@tlsgd(%rip), %rdi
25680 leaq foo@tlsld(%rip), %rdi
25681 leaq foo@dtpoff(%rax), %rdx
25682 movq foo@gottpoff(%rip), %rax
25683 movq \$foo@tpoff, %rax"
25689 .section ".tdata","awT",@progbits
25692 addl r16 = @ltoff(@dtpmod(foo#)), gp
25693 addl r17 = @ltoff(@dtprel(foo#)), gp
25694 addl r18 = @ltoff(@tprel(foo#)), gp
25695 addl r19 = @dtprel(foo#), gp
25696 adds r21 = @dtprel(foo#), r13
25697 movl r23 = @dtprel(foo#)
25698 addl r20 = @tprel(foo#), gp
25699 adds r22 = @tprel(foo#), r13
25700 movl r24 = @tprel(foo#)'
25701 tls_as_opt
=--fatal-warnings
25705 .section .tdata,"awT",@progbits
25712 tls_as_opt
='--fatal-warnings'
25716 .section .tdata,"awT",@progbits
25720 addik r5,r20,x@TLSGD
25721 addik r5,r20,x@TLSLDM'
25722 tls_as_opt
='--fatal-warnings'
25726 .section .tdata,"awT",@progbits
25730 addiu $4, $28, %tlsgd(x)
25731 addiu $4, $28, %tlsldm(x)
25732 lui $4, %dtprel_hi(x)
25733 addiu $4, $4, %dtprel_lo(x)
25734 lw $4, %gottprel(x)($28)
25735 lui $4, %tprel_hi(x)
25736 addiu $4, $4, %tprel_lo(x)'
25737 tls_as_opt
='-32 --fatal-warnings'
25741 .section .tdata,"awT",@progbits
25746 move.l x@TLSGD(%a5),%a0
25747 move.l x@TLSLDM(%a5),%a0
25748 move.l x@TLSLDO(%a5),%a0
25749 move.l x@TLSIE(%a5),%a0
25750 move.l x@TLSLE(%a5),%a0'
25751 tls_as_opt
='--fatal-warnings'
25755 .section ".tdata","awT",@progbits'
25756 tls_as_opt
="--fatal-warnings"
25760 .section ".tdata","awT",%progbits
25764 add x0, x0, #:tlsgd_lo12:x
25767 tls_as_opt
='--fatal-warnings'
25771 .section ".tdata","awT",@progbits
25774 l.movhi r3, tpoffha(foo)
25776 l.lwz r4, tpofflo(foo)(r3)'
25777 tls_as_opt
=--fatal-warnings
25781 .extern __get_tpointer
25797 .section ".tdata","awT",@progbits
25805 addi 3,2,ld0@got@tlsgd
25811 addi 3,2,x1@got@tlsld
25817 addis 9,3,x2@dtprel@ha
25818 addi 9,9,x2@dtprel@l
25821 ld 9,x3@got@dtprel(2)
25825 tls_as_opt
="-a64 --fatal-warnings"
25829 .section ".tdata","awT",@progbits
25837 addi 3,31,ld0@got@tlsgd
25839 addi 3,31,x1@got@tlsld
25842 addis 9,3,x2@dtprel@ha
25843 addi 9,9,x2@dtprel@l
25844 lwz 9,x3@got@tprel(31)
25847 addis 9,2,x2@tprel@ha
25848 addi 9,9,x2@tprel@l'
25849 tls_as_opt
="-a32 --fatal-warnings"
25853 .section .tdata,"awT",@progbits
25857 call __tls_get_addr'
25858 tls_as_opt
='--fatal-warnings'
25862 .section ".tdata","awT",@progbits
25869 .long foo@GOTNTPOFF
25870 .long foo@INDNTPOFF
25871 l %r1,foo@GOTNTPOFF(%r12)
25872 l %r1,0(%r1):tls_load:foo
25873 bas %r14,0(%r1,%r13):tls_gdcall:foo
25874 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25875 tls_as_opt
="-m31 --fatal-warnings"
25879 .section ".tdata","awT",@progbits
25886 .quad foo@GOTNTPOFF
25887 lg %r1,foo@GOTNTPOFF(%r12)
25888 larl %r1,foo@INDNTPOFF
25889 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25890 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25891 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25893 sh-
*-* | sh
[123456789lbe
]*-*-*)
25895 .section ".tdata","awT",@progbits
25903 tls_as_opt
=--fatal-warnings
25907 sparc
*-sun-solaris2.
*)
25914 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25916 .section ".tdata",#alloc,#write,#tls'
25919 .section ".tdata","awT",@progbits'
25920 tls_as_opt
="-32 --fatal-warnings"
25922 conftest_s
="$conftest_s
25925 sethi %tgd_hi22(foo), %o0
25926 add %o0, %tgd_lo10(foo), %o1
25927 add %l7, %o1, %o0, %tgd_add(foo)
25928 call __tls_get_addr, %tgd_call(foo)
25929 sethi %tldm_hi22(foo), %l1
25930 add %l1, %tldm_lo10(foo), %l2
25931 add %l7, %l2, %o0, %tldm_add(foo)
25932 call __tls_get_addr, %tldm_call(foo)
25933 sethi %tldo_hix22(foo), %l3
25934 xor %l3, %tldo_lox10(foo), %l4
25935 add %o0, %l4, %l5, %tldo_add(foo)
25936 sethi %tie_hi22(foo), %o3
25937 add %o3, %tie_lo10(foo), %o3
25938 ld [%l7 + %o3], %o2, %tie_ld(foo)
25939 add %g7, %o2, %o4, %tie_add(foo)
25940 sethi %tle_hix22(foo), %l1
25941 xor %l1, %tle_lox10(foo), %o5
25942 ld [%g7 + %o5], %o1"
25946 .section ".tdata","awT",@progbits
25949 movi a8, foo@TLSFUNC
25950 movi a10, foo@TLSARG
25951 callx8.tls a8, foo@TLSCALL'
25955 if test "x$enable_tls" = xno
; then
25956 : # TLS explicitly disabled.
25957 elif test "x$enable_tls" = xyes
; then
25958 set_have_as_tls
=yes # TLS explicitly enabled.
25959 elif test -z "$conftest_s"; then
25960 : # If we don't have a check, assume no support.
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25963 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25964 if ${gcc_cv_as_tls+:} false
; then :
25965 $as_echo_n "(cached) " >&6
25968 if test x
$gcc_cv_as != x
; then
25969 $as_echo "$conftest_s" > conftest.s
25970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25972 (eval $ac_try) 2>&5
25974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25975 test $ac_status = 0; }; }
25979 echo "configure: failed program was" >&5
25982 rm -f conftest.o conftest.s
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25986 $as_echo "$gcc_cv_as_tls" >&6; }
25987 if test $gcc_cv_as_tls = yes; then
25988 set_have_as_tls
=yes
25992 if test $set_have_as_tls = yes ; then
25994 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25998 # Target-specific assembler checks.
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26001 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26002 gcc_cv_ld_static_dynamic
=no
26003 gcc_cv_ld_static_option
='-Bstatic'
26004 gcc_cv_ld_dynamic_option
='-Bdynamic'
26005 if test $in_tree_ld = yes ; then
26006 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
26007 gcc_cv_ld_static_dynamic
=yes
26009 elif test x
$gcc_cv_ld != x
; then
26010 # Check if linker supports -Bstatic/-Bdynamic option
26011 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
26012 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
26013 gcc_cv_ld_static_dynamic
=yes
26016 # AIX ld uses -b flags
26017 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
26018 gcc_cv_ld_static_dynamic
=yes
26019 gcc_cv_ld_static_option
="-bstatic"
26020 gcc_cv_ld_dynamic_option
="-bdynamic"
26022 # HP-UX ld uses -a flags to select between shared and archive.
26024 if test x
"$gnu_ld" = xno
; then
26025 gcc_cv_ld_static_dynamic
=yes
26026 gcc_cv_ld_static_option
="-aarchive_shared"
26027 gcc_cv_ld_dynamic_option
="-adefault"
26030 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26032 gcc_cv_ld_static_dynamic
=yes
26037 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
26039 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26042 cat >>confdefs.h
<<_ACEOF
26043 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26047 cat >>confdefs.h
<<_ACEOF
26048 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26053 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26056 $as_echo_n "checking linker --version-script option... " >&6; }
26057 gcc_cv_ld_version_script
=no
26058 ld_version_script_option
=''
26059 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26060 gcc_cv_ld_version_script
=yes
26061 ld_version_script_option
='--version-script'
26062 elif test x
$gcc_cv_ld != x
; then
26064 # Solaris 2 ld always supports -M. It also supports a subset of
26065 # --version-script since Solaris 11.4, but requires
26066 # -z gnu-version-script-compat to activate.
26068 gcc_cv_ld_version_script
=yes
26069 ld_version_script_option
='-M'
26073 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26075 $as_echo "$gcc_cv_ld_version_script" >&6; }
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26079 $as_echo_n "checking linker soname option... " >&6; }
26080 gcc_cv_ld_soname
=no
26081 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26082 gcc_cv_ld_soname
=yes
26083 ld_soname_option
='-soname'
26084 elif test x
$gcc_cv_ld != x
; then
26087 gcc_cv_ld_soname
=yes
26088 ld_soname_option
='-install_name'
26090 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26091 # ld compatiblity since some Solaris 10 update.
26093 gcc_cv_ld_soname
=yes
26094 ld_soname_option
='-h'
26098 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26100 $as_echo "$gcc_cv_ld_soname" >&6; }
26103 if test x
"$demangler_in_ld" = xyes
; then
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26105 $as_echo_n "checking linker --demangle support... " >&6; }
26106 gcc_cv_ld_demangle
=no
26107 if test $in_tree_ld = yes; then
26108 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 \
26109 gcc_cv_ld_demangle
=yes
26111 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
26112 # Check if the GNU linker supports --demangle option
26113 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
26114 gcc_cv_ld_demangle
=yes
26117 if test x
"$gcc_cv_ld_demangle" = xyes
; then
26119 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26123 $as_echo "$gcc_cv_ld_demangle" >&6; }
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26127 $as_echo_n "checking linker plugin support... " >&6; }
26128 gcc_cv_lto_plugin
=0
26129 if test -f liblto_plugin.la
; then
26130 save_ld_ver
="$ld_ver"
26131 save_ld_vers_major
="$ld_vers_major"
26132 save_ld_vers_minor
="$ld_vers_minor"
26133 save_ld_is_gold
="$ld_is_gold"
26137 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
26139 # FIXME: ld_is_gold?
26140 ld_vers_major
="$gcc_cv_gld_major_version"
26141 ld_vers_minor
="$gcc_cv_gld_minor_version"
26143 # Determine plugin linker version.
26144 # FIXME: Partial duplicate from above, generalize.
26145 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26146 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26147 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
26149 ld_vers
=`echo $ld_ver | sed -n \
26150 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26152 ld_vers
=`echo $ld_ver | sed -n \
26153 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26155 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26156 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26160 # Determine plugin support.
26161 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26162 # Require GNU ld or gold 2.21+ for plugin support by default.
26163 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26164 gcc_cv_lto_plugin
=2
26165 elif test "$ld_is_mold" = yes; then
26166 gcc_cv_lto_plugin
=2
26167 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26168 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26169 gcc_cv_lto_plugin
=1
26173 ld_ver
="$save_ld_ver"
26174 ld_vers_major
="$save_ld_vers_major"
26175 ld_vers_minor
="$save_ld_vers_minor"
26176 ld_is_gold
="$save_ld_is_gold"
26179 cat >>confdefs.h
<<_ACEOF
26180 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26184 $as_echo "$gcc_cv_lto_plugin" >&6; }
26186 # Target OS-specific assembler checks.
26188 case "$target_os" in
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26191 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26192 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26193 $as_echo_n "(cached) " >&6
26195 gcc_cv_as_mmacosx_version_min
=no
26196 if test x
$gcc_cv_as != x
; then
26197 $as_echo '.text' > conftest.s
26198 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26200 (eval $ac_try) 2>&5
26202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26203 test $ac_status = 0; }; }
26205 gcc_cv_as_mmacosx_version_min
=yes
26207 echo "configure: failed program was" >&5
26210 rm -f conftest.o conftest.s
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26214 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26215 if test $gcc_cv_as_mmacosx_version_min = yes; then
26217 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26224 # Target CPU-specific assembler checks.
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26229 $as_echo_n "checking assembler for -mabi option... " >&6; }
26230 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26231 $as_echo_n "(cached) " >&6
26233 gcc_cv_as_aarch64_mabi
=no
26234 if test x
$gcc_cv_as != x
; then
26235 $as_echo '.text' > conftest.s
26236 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26238 (eval $ac_try) 2>&5
26240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26241 test $ac_status = 0; }; }
26243 gcc_cv_as_aarch64_mabi
=yes
26245 echo "configure: failed program was" >&5
26248 rm -f conftest.o conftest.s
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26252 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26255 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26257 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26260 if test x
$with_abi = xilp32
; then
26261 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26262 Upgrade the Assembler." "$LINENO" 5
26264 if test x
"$with_multilib_list" = xdefault
; then
26265 TM_MULTILIB_CONFIG
=lp64
26267 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26268 for aarch64_multilib
in ${aarch64_multilibs}; do
26269 case ${aarch64_multilib} in
26271 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26272 Upgrade the Assembler." "$LINENO" 5
26280 # Check if we have binutils support for relocations types needed by -fpic
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26282 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26283 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26284 $as_echo_n "(cached) " >&6
26286 gcc_cv_as_aarch64_picreloc
=no
26287 if test x
$gcc_cv_as != x
; then
26290 ldr x0, [x2, #:gotpage_lo15:globalsym]
26292 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26294 (eval $ac_try) 2>&5
26296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26297 test $ac_status = 0; }; }
26299 gcc_cv_as_aarch64_picreloc
=yes
26301 echo "configure: failed program was" >&5
26304 rm -f conftest.o conftest.s
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26308 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26309 if test $gcc_cv_as_aarch64_picreloc = yes; then
26311 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26315 # Enable Branch Target Identification Mechanism and Return Address
26316 # Signing by default.
26317 # Check whether --enable-standard-branch-protection was given.
26318 if test "${enable_standard_branch_protection+set}" = set; then :
26319 enableval
=$enable_standard_branch_protection;
26322 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26327 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26328 Valid choices are 'yes' and 'no'." "$LINENO" 5
26334 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26335 # Check whether --enable-fix-cortex-a53-835769 was given.
26336 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26337 enableval
=$enable_fix_cortex_a53_835769;
26340 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26345 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26346 Valid choices are 'yes' and 'no'." "$LINENO" 5
26353 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26354 # Check whether --enable-fix-cortex-a53-843419 was given.
26355 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26356 enableval
=$enable_fix_cortex_a53_843419;
26359 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26364 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26365 Valid choices are 'yes' and 'no'." "$LINENO" 5
26374 # All TARGET_ABI_OSF targets.
26375 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26377 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26378 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26379 $as_echo_n "(cached) " >&6
26381 gcc_cv_as_alpha_explicit_relocs
=no
26382 if test x
$gcc_cv_as != x
; then
26383 $as_echo ' .set nomacro
26385 extbl $3, $2, $3 !lituse_bytoff!1
26386 ldq $2, a($29) !literal!1
26387 ldq $4, b($29) !literal!2
26388 ldq_u $3, 0($2) !lituse_base!1
26389 ldq $27, f($29) !literal!5
26390 jsr $26, ($27), f !lituse_jsr!5
26391 ldah $29, 0($26) !gpdisp!3
26392 lda $0, c($29) !gprel
26393 ldah $1, d($29) !gprelhigh
26394 lda $1, d($1) !gprellow
26395 lda $29, 0($29) !gpdisp!3' > conftest.s
26396 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26398 (eval $ac_try) 2>&5
26400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26401 test $ac_status = 0; }; }
26403 gcc_cv_as_alpha_explicit_relocs
=yes
26405 echo "configure: failed program was" >&5
26408 rm -f conftest.o conftest.s
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26412 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26413 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26415 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26420 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26421 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26422 $as_echo_n "(cached) " >&6
26424 gcc_cv_as_alpha_jsrdirect_relocs
=no
26425 if test x
$gcc_cv_as != x
; then
26426 $as_echo ' .set nomacro
26428 ldq $27, a($29) !literal!1
26429 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26430 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26432 (eval $ac_try) 2>&5
26434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26435 test $ac_status = 0; }; }
26437 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26439 echo "configure: failed program was" >&5
26442 rm -f conftest.o conftest.s
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26446 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26447 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26449 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26457 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26458 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26459 $as_echo_n "(cached) " >&6
26461 gcc_cv_as_avr_mlink_relax
=no
26462 if test x
$gcc_cv_as != x
; then
26463 $as_echo '.text' > conftest.s
26464 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26466 (eval $ac_try) 2>&5
26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; }
26471 gcc_cv_as_avr_mlink_relax
=yes
26473 echo "configure: failed program was" >&5
26476 rm -f conftest.o conftest.s
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26480 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26481 if test $gcc_cv_as_avr_mlink_relax = yes; then
26483 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26489 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26490 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26491 $as_echo_n "(cached) " >&6
26493 gcc_cv_as_avr_mrmw
=no
26494 if test x
$gcc_cv_as != x
; then
26495 $as_echo '.text' > conftest.s
26496 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26498 (eval $ac_try) 2>&5
26500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501 test $ac_status = 0; }; }
26503 gcc_cv_as_avr_mrmw
=yes
26505 echo "configure: failed program was" >&5
26508 rm -f conftest.o conftest.s
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26512 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26513 if test $gcc_cv_as_avr_mrmw = yes; then
26515 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26521 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26522 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26523 $as_echo_n "(cached) " >&6
26525 gcc_cv_as_avr_mgccisr
=no
26526 if test x
$gcc_cv_as != x
; then
26532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26534 (eval $ac_try) 2>&5
26536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26537 test $ac_status = 0; }; }
26539 gcc_cv_as_avr_mgccisr
=yes
26541 echo "configure: failed program was" >&5
26544 rm -f conftest.o conftest.s
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26548 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26549 if test $gcc_cv_as_avr_mgccisr = yes; then
26551 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26556 # Check how default linker description file implements .rodata for
26557 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26558 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26560 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26561 cat > conftest.s
<<EOF
26562 .section .rodata,"a",@progbits
26564 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26569 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26571 (eval $ac_try) 2>&5
26573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26574 test $ac_status = 0; }; }
26575 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26577 (eval $ac_try) 2>&5
26579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26580 test $ac_status = 0; }; }
26581 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26583 (eval $ac_try) 2>&5
26585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26586 test $ac_status = 0; }; }
26587 if test -s conftest.nm
26589 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26591 $as_echo "yes" >&6; }
26593 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26597 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26598 echo "$as_me: nm output was" >&5
26599 cat conftest.nm
>&5
26600 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26601 { $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
26602 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26606 $as_echo "test failed" >&6; }
26607 echo "$as_me: failed program was" >&5
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26610 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26612 rm -f conftest.s conftest.o conftest.elf conftest.nm
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26617 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26618 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26619 $as_echo_n "(cached) " >&6
26621 gcc_cv_as_cris_no_mul_bug
=no
26622 if test x
$gcc_cv_as != x
; then
26623 $as_echo '.text' > conftest.s
26624 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26626 (eval $ac_try) 2>&5
26628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26629 test $ac_status = 0; }; }
26631 gcc_cv_as_cris_no_mul_bug
=yes
26633 echo "configure: failed program was" >&5
26636 rm -f conftest.o conftest.s
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26640 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26641 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26643 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26651 $as_echo_n "checking assembler for -relax option... " >&6; }
26652 if ${gcc_cv_as_sparc_relax+:} false
; then :
26653 $as_echo_n "(cached) " >&6
26655 gcc_cv_as_sparc_relax
=no
26656 if test x
$gcc_cv_as != x
; then
26657 $as_echo '.text' > conftest.s
26658 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26660 (eval $ac_try) 2>&5
26662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26663 test $ac_status = 0; }; }
26665 gcc_cv_as_sparc_relax
=yes
26667 echo "configure: failed program was" >&5
26670 rm -f conftest.o conftest.s
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26674 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26675 if test $gcc_cv_as_sparc_relax = yes; then
26677 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26683 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26684 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26685 $as_echo_n "(cached) " >&6
26687 gcc_cv_as_sparc_gotdata_op
=no
26688 if test x
$gcc_cv_as != x
; then
26694 sethi %gdop_hix22(foo), %g1
26695 xor %g1, %gdop_lox10(foo), %g1
26696 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26699 (eval $ac_try) 2>&5
26701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26702 test $ac_status = 0; }; }
26704 if test x
$gcc_cv_ld != x \
26705 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26706 if test x
$gcc_cv_objdump != x
; then
26707 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26708 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26709 gcc_cv_as_sparc_gotdata_op
=no
26711 gcc_cv_as_sparc_gotdata_op
=yes
26717 echo "configure: failed program was" >&5
26720 rm -f conftest.o conftest.s
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26724 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26725 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26727 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26733 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26734 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26735 $as_echo_n "(cached) " >&6
26737 gcc_cv_as_sparc_ua_pcrel
=no
26738 if test x
$gcc_cv_as != x
; then
26745 .uaword %r_disp32(foo)' > conftest.s
26746 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26748 (eval $ac_try) 2>&5
26750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26751 test $ac_status = 0; }; }
26753 if test x
$gcc_cv_ld != x \
26754 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26755 gcc_cv_as_sparc_ua_pcrel
=yes
26759 echo "configure: failed program was" >&5
26762 rm -f conftest.o conftest.s
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26766 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26767 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26769 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26773 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26774 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26775 $as_echo_n "(cached) " >&6
26777 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26778 if test x
$gcc_cv_as != x
; then
26782 .uaword %r_disp32(foo)
26783 .byte 0x32, 0x33, 0x34
26787 .skip 4' > conftest.s
26788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26790 (eval $ac_try) 2>&5
26792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26793 test $ac_status = 0; }; }
26795 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26796 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26797 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26798 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26799 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26800 |
grep 'DISP32' > /dev
/null
2>&1; then
26803 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26808 echo "configure: failed program was" >&5
26811 rm -f conftest.o conftest.s
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26815 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26816 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26818 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26824 # unaligned pcrel relocs
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26827 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26828 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26829 $as_echo_n "(cached) " >&6
26831 gcc_cv_as_sparc_offsetable_lo10
=no
26832 if test x
$gcc_cv_as != x
; then
26834 or %g1, %lo(ab) + 12, %g1
26835 or %g1, %lo(ab + 12), %g1' > conftest.s
26836 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26838 (eval $ac_try) 2>&5
26840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26841 test $ac_status = 0; }; }
26843 if test x
$gcc_cv_objdump != x \
26844 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26845 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26846 gcc_cv_as_sparc_offsetable_lo10
=yes
26849 echo "configure: failed program was" >&5
26852 rm -f conftest.o conftest.s
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26856 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26857 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26859 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26865 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26866 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26867 $as_echo_n "(cached) " >&6
26869 gcc_cv_as_sparc_fmaf
=no
26870 if test x
$gcc_cv_as != x
; then
26872 .register %g2, #scratch
26873 .register %g3, #scratch
26875 fmaddd %f0, %f2, %f4, %f6
26876 addxccc %g1, %g2, %g3
26877 fsrl32 %f2, %f4, %f8
26878 fnaddd %f10, %f12, %f14' > conftest.s
26879 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26881 (eval $ac_try) 2>&5
26883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; }
26886 gcc_cv_as_sparc_fmaf
=yes
26888 echo "configure: failed program was" >&5
26891 rm -f conftest.o conftest.s
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26895 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26896 if test $gcc_cv_as_sparc_fmaf = yes; then
26898 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26904 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26905 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26906 $as_echo_n "(cached) " >&6
26908 gcc_cv_as_sparc_sparc4
=no
26909 if test x
$gcc_cv_as != x
; then
26911 .register %g2, #scratch
26912 .register %g3, #scratch
26915 1: cwbneg %g2, %g3, 1f
26918 aes_kexpand0 %f4, %f6, %f8
26919 des_round %f38, %f40, %f42, %f44
26920 camellia_f %f54, %f56, %f58, %f60
26921 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26922 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26924 (eval $ac_try) 2>&5
26926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26927 test $ac_status = 0; }; }
26929 gcc_cv_as_sparc_sparc4
=yes
26931 echo "configure: failed program was" >&5
26934 rm -f conftest.o conftest.s
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26938 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26939 if test $gcc_cv_as_sparc_sparc4 = yes; then
26941 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26947 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26948 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26949 $as_echo_n "(cached) " >&6
26951 gcc_cv_as_sparc_sparc5
=no
26952 if test x
$gcc_cv_as != x
; then
26954 .register %g2, #scratch
26955 .register %g3, #scratch
26957 subxc %g1, %g2, %g3
26958 fpadd8 %f0, %f2, %f4' > conftest.s
26959 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26961 (eval $ac_try) 2>&5
26963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26964 test $ac_status = 0; }; }
26966 gcc_cv_as_sparc_sparc5
=yes
26968 echo "configure: failed program was" >&5
26971 rm -f conftest.o conftest.s
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26975 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26976 if test $gcc_cv_as_sparc_sparc5 = yes; then
26978 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26984 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26985 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26986 $as_echo_n "(cached) " >&6
26988 gcc_cv_as_sparc_sparc6
=no
26989 if test x
$gcc_cv_as != x
; then
26991 .register %g2, #scratch
26992 .register %g3, #scratch
26995 fpsll64x %f0, %f2, %f4' > conftest.s
26996 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26998 (eval $ac_try) 2>&5
27000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27001 test $ac_status = 0; }; }
27003 gcc_cv_as_sparc_sparc6
=yes
27005 echo "configure: failed program was" >&5
27008 rm -f conftest.o conftest.s
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27012 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27013 if test $gcc_cv_as_sparc_sparc6 = yes; then
27015 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27021 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27022 if ${gcc_cv_as_sparc_leon+:} false
; then :
27023 $as_echo_n "(cached) " >&6
27025 gcc_cv_as_sparc_leon
=no
27026 if test x
$gcc_cv_as != x
; then
27028 .register %g2, #scratch
27029 .register %g3, #scratch
27033 casa [%g2] 0xb, %g3, %g1' > conftest.s
27034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27036 (eval $ac_try) 2>&5
27038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27039 test $ac_status = 0; }; }
27041 gcc_cv_as_sparc_leon
=yes
27043 echo "configure: failed program was" >&5
27046 rm -f conftest.o conftest.s
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27050 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27051 if test $gcc_cv_as_sparc_leon = yes; then
27053 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27059 i
[34567]86-*-* | x86_64-
*-*)
27062 # Full C++ conformance when using a shared libstdc++-v3 requires some
27063 # support from the Cygwin DLL, which in more recent versions exports
27064 # wrappers to aid in interposing and redirecting operators new, delete,
27065 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27066 # are configuring for a version of Cygwin that exports the wrappers.
27067 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
27068 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27069 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
27070 gcc_ac_cygwin_dll_wrappers
=yes
27072 gcc_ac_cygwin_dll_wrappers
=no
27076 # Can't check presence of libc functions during cross-compile, so
27077 # we just have to assume we're building for an up-to-date target.
27078 gcc_ac_cygwin_dll_wrappers
=yes
27081 cat >>confdefs.h
<<_ACEOF
27082 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27087 cygwin
* | pe | mingw32
*)
27088 # Recent binutils allows the three-operand form of ".comm" on PE. This
27089 # definition is used unconditionally to initialise the default state of
27090 # the target option variable that governs usage of the feature.
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27092 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27093 if ${gcc_cv_as_comm_has_align+:} false
; then :
27094 $as_echo_n "(cached) " >&6
27096 gcc_cv_as_comm_has_align
=no
27097 if test x
$gcc_cv_as != x
; then
27098 $as_echo '.comm foo,1,32' > conftest.s
27099 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27101 (eval $ac_try) 2>&5
27103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27104 test $ac_status = 0; }; }
27106 gcc_cv_as_comm_has_align
=yes
27108 echo "configure: failed program was" >&5
27111 rm -f conftest.o conftest.s
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27115 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27119 cat >>confdefs.h
<<_ACEOF
27120 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27123 # Used for DWARF 2 in PE
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27125 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27126 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
27127 $as_echo_n "(cached) " >&6
27129 gcc_cv_as_ix86_pe_secrel32
=no
27130 if test x
$gcc_cv_as != x
; then
27134 .secrel32 foo' > conftest.s
27135 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27137 (eval $ac_try) 2>&5
27139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27140 test $ac_status = 0; }; }
27142 if test x
$gcc_cv_ld != x \
27143 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
27144 gcc_cv_as_ix86_pe_secrel32
=yes
27148 echo "configure: failed program was" >&5
27151 rm -f conftest.o conftest.s
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27155 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27156 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27158 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27162 # Test if the assembler supports the extended form of the .section
27163 # directive that specifies section alignment. LTO support uses this,
27164 # but normally only after installation, so we warn but don't fail the
27165 # configure if LTO is enabled but the assembler does not support it.
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27167 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27168 if ${gcc_cv_as_section_has_align+:} false
; then :
27169 $as_echo_n "(cached) " >&6
27171 gcc_cv_as_section_has_align
=no
27172 if test x
$gcc_cv_as != x
; then
27173 $as_echo '.section lto_test,"dr0"' > conftest.s
27174 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27176 (eval $ac_try) 2>&5
27178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27179 test $ac_status = 0; }; }
27181 gcc_cv_as_section_has_align
=yes
27183 echo "configure: failed program was" >&5
27186 rm -f conftest.o conftest.s
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27190 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27193 if test x
$gcc_cv_as_section_has_align != xyes
; then
27194 case ",$enable_languages," in
27196 { $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
27197 $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;}
27204 darwin2
* | darwin19
*)
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27206 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27207 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
27208 $as_echo_n "(cached) " >&6
27210 gcc_cv_as_mllvm_x86_pad_for_align
=no
27211 if test x
$gcc_cv_as != x
; then
27212 $as_echo '.text' > conftest.s
27213 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27215 (eval $ac_try) 2>&5
27217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27218 test $ac_status = 0; }; }
27220 gcc_cv_as_mllvm_x86_pad_for_align
=yes
27222 echo "configure: failed program was" >&5
27225 rm -f conftest.o conftest.s
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27229 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27230 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27232 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27240 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27241 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27242 $as_echo_n "(cached) " >&6
27244 gcc_cv_as_ix86_xbrace_comment
=no
27245 if test x
$gcc_cv_as != x
; then
27246 $as_echo '.text' > conftest.s
27247 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27249 (eval $ac_try) 2>&5
27251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27252 test $ac_status = 0; }; }
27254 gcc_cv_as_ix86_xbrace_comment
=yes
27256 echo "configure: failed program was" >&5
27259 rm -f conftest.o conftest.s
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27263 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27264 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27266 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27272 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27273 if ${gcc_cv_as_ix86_filds+:} false
; then :
27274 $as_echo_n "(cached) " >&6
27276 gcc_cv_as_ix86_filds
=no
27277 if test x
$gcc_cv_as != x
; then
27278 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27281 (eval $ac_try) 2>&5
27283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27284 test $ac_status = 0; }; }
27286 gcc_cv_as_ix86_filds
=yes
27288 echo "configure: failed program was" >&5
27291 rm -f conftest.o conftest.s
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27295 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27296 if test $gcc_cv_as_ix86_filds = yes; then
27298 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27304 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27305 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27306 $as_echo_n "(cached) " >&6
27308 gcc_cv_as_ix86_fildq
=no
27309 if test x
$gcc_cv_as != x
; then
27310 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27311 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27313 (eval $ac_try) 2>&5
27315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27316 test $ac_status = 0; }; }
27318 gcc_cv_as_ix86_fildq
=yes
27320 echo "configure: failed program was" >&5
27323 rm -f conftest.o conftest.s
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27327 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27328 if test $gcc_cv_as_ix86_fildq = yes; then
27330 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27336 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27337 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27338 $as_echo_n "(cached) " >&6
27340 gcc_cv_as_ix86_cmov_sun_syntax
=no
27341 if test x
$gcc_cv_as != x
; then
27342 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27343 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27345 (eval $ac_try) 2>&5
27347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27348 test $ac_status = 0; }; }
27350 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27352 echo "configure: failed program was" >&5
27355 rm -f conftest.o conftest.s
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27359 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27360 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27362 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27368 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27369 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27370 $as_echo_n "(cached) " >&6
27372 gcc_cv_as_ix86_ffreep
=no
27373 if test x
$gcc_cv_as != x
; then
27374 $as_echo 'ffreep %st(1)' > conftest.s
27375 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27377 (eval $ac_try) 2>&5
27379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27380 test $ac_status = 0; }; }
27382 gcc_cv_as_ix86_ffreep
=yes
27384 echo "configure: failed program was" >&5
27387 rm -f conftest.o conftest.s
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27391 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27392 if test $gcc_cv_as_ix86_ffreep = yes; then
27394 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27400 $as_echo_n "checking assembler for .quad directive... " >&6; }
27401 if ${gcc_cv_as_ix86_quad+:} false
; then :
27402 $as_echo_n "(cached) " >&6
27404 gcc_cv_as_ix86_quad
=no
27405 if test x
$gcc_cv_as != x
; then
27406 $as_echo '.quad 0' > conftest.s
27407 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27409 (eval $ac_try) 2>&5
27411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27412 test $ac_status = 0; }; }
27414 gcc_cv_as_ix86_quad
=yes
27416 echo "configure: failed program was" >&5
27419 rm -f conftest.o conftest.s
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27423 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27424 if test $gcc_cv_as_ix86_quad = yes; then
27426 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27432 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27433 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27434 $as_echo_n "(cached) " >&6
27436 gcc_cv_as_ix86_sahf
=no
27437 if test x
$gcc_cv_as != x
; then
27440 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27442 (eval $ac_try) 2>&5
27444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27445 test $ac_status = 0; }; }
27447 gcc_cv_as_ix86_sahf
=yes
27449 echo "configure: failed program was" >&5
27452 rm -f conftest.o conftest.s
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27456 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27457 if test $gcc_cv_as_ix86_sahf = yes; then
27459 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27465 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27466 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27467 $as_echo_n "(cached) " >&6
27469 gcc_cv_as_ix86_interunit_movq
=no
27470 if test x
$gcc_cv_as != x
; then
27473 movq %rax, %xmm0' > conftest.s
27474 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27476 (eval $ac_try) 2>&5
27478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27479 test $ac_status = 0; }; }
27481 gcc_cv_as_ix86_interunit_movq
=yes
27483 echo "configure: failed program was" >&5
27486 rm -f conftest.o conftest.s
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27490 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27494 cat >>confdefs.h
<<_ACEOF
27495 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27500 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27501 if ${gcc_cv_as_ix86_hle+:} false
; then :
27502 $as_echo_n "(cached) " >&6
27504 gcc_cv_as_ix86_hle
=no
27505 if test x
$gcc_cv_as != x
; then
27506 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27509 (eval $ac_try) 2>&5
27511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27512 test $ac_status = 0; }; }
27514 gcc_cv_as_ix86_hle
=yes
27516 echo "configure: failed program was" >&5
27519 rm -f conftest.o conftest.s
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27523 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27524 if test $gcc_cv_as_ix86_hle = yes; then
27526 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27532 $as_echo_n "checking assembler for swap suffix... " >&6; }
27533 if ${gcc_cv_as_ix86_swap+:} false
; then :
27534 $as_echo_n "(cached) " >&6
27536 gcc_cv_as_ix86_swap
=no
27537 if test x
$gcc_cv_as != x
; then
27538 $as_echo 'movl.s %esp, %ebp' > conftest.s
27539 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27541 (eval $ac_try) 2>&5
27543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27544 test $ac_status = 0; }; }
27546 gcc_cv_as_ix86_swap
=yes
27548 echo "configure: failed program was" >&5
27551 rm -f conftest.o conftest.s
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27555 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27556 if test $gcc_cv_as_ix86_swap = yes; then
27558 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27564 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27565 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27566 $as_echo_n "(cached) " >&6
27568 gcc_cv_as_ix86_diff_sect_delta
=no
27569 if test x
$gcc_cv_as != x
; then
27570 $as_echo '.section .rodata
27576 .L2: nop' > conftest.s
27577 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27579 (eval $ac_try) 2>&5
27581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27582 test $ac_status = 0; }; }
27584 gcc_cv_as_ix86_diff_sect_delta
=yes
27586 echo "configure: failed program was" >&5
27589 rm -f conftest.o conftest.s
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27593 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27594 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27596 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27602 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27603 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27604 $as_echo_n "(cached) " >&6
27606 gcc_cv_as_ix86_rep_lock_prefix
=no
27607 if test x
$gcc_cv_as != x
; then
27608 $as_echo 'rep movsl
27613 lock addl %edi, (%eax,%esi)
27614 lock orl $0, (%esp)' > conftest.s
27615 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27617 (eval $ac_try) 2>&5
27619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27620 test $ac_status = 0; }; }
27622 gcc_cv_as_ix86_rep_lock_prefix
=yes
27624 echo "configure: failed program was" >&5
27627 rm -f conftest.o conftest.s
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27631 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27632 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27634 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27640 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27641 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27642 $as_echo_n "(cached) " >&6
27644 gcc_cv_as_ix86_ud2
=no
27645 if test x
$gcc_cv_as != x
; then
27646 $as_echo 'ud2' > conftest.s
27647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27649 (eval $ac_try) 2>&5
27651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27652 test $ac_status = 0; }; }
27654 gcc_cv_as_ix86_ud2
=yes
27656 echo "configure: failed program was" >&5
27659 rm -f conftest.o conftest.s
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27663 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27664 if test $gcc_cv_as_ix86_ud2 = yes; then
27666 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27671 # Enforce 32-bit output with gas and gld.
27672 if test x
$gas = xyes
; then
27673 as_ix86_gas_32_opt
="--32"
27675 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27676 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27677 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27679 ld_ix86_gld_32_opt
="-melf_i386"
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27684 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27685 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27686 $as_echo_n "(cached) " >&6
27688 gcc_cv_as_ix86_tlsgdplt
=no
27689 if test x
$gcc_cv_as != x
; then
27690 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27693 (eval $ac_try) 2>&5
27695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27696 test $ac_status = 0; }; }
27698 if test x
$gcc_cv_ld != x \
27699 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27700 gcc_cv_as_ix86_tlsgdplt
=yes
27704 echo "configure: failed program was" >&5
27707 rm -f conftest.o conftest.s
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27711 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27712 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27714 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27720 .section .tdata,"aw'$tls_section_flag'",@progbits
27722 .section .text,"ax",@progbits
27723 call tls_ld@tlsldmplt'
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27726 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27727 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27728 $as_echo_n "(cached) " >&6
27730 gcc_cv_as_ix86_tlsldmplt
=no
27731 if test x
$gcc_cv_as != x
; then
27732 $as_echo "$conftest_s" > conftest.s
27733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27735 (eval $ac_try) 2>&5
27737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27738 test $ac_status = 0; }; }
27740 if test x
$gcc_cv_ld != x \
27741 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27742 gcc_cv_as_ix86_tlsldmplt
=yes
27746 echo "configure: failed program was" >&5
27749 rm -f conftest.o conftest.s
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27753 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27757 cat >>confdefs.h
<<_ACEOF
27758 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27763 .section .text,"ax",@progbits
27765 .type _start, @function
27767 leal value@tlsldm(%ebx), %eax
27768 call ___tls_get_addr@plt
27770 .section .tdata,"aw'$tls_section_flag'",@progbits
27771 .type value, @object
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27774 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27775 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27776 $as_echo_n "(cached) " >&6
27778 gcc_cv_as_ix86_tlsldm
=no
27779 if test x
$gcc_cv_as != x
; then
27780 $as_echo "$conftest_s" > conftest.s
27781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27783 (eval $ac_try) 2>&5
27785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27786 test $ac_status = 0; }; }
27788 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27789 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27790 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27791 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27792 gcc_cv_as_ix86_tlsldm
=yes
27797 echo "configure: failed program was" >&5
27800 rm -f conftest.o conftest.s
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27804 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27808 cat >>confdefs.h
<<_ACEOF
27809 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27823 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27824 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27825 $as_echo_n "(cached) " >&6
27827 gcc_cv_as_ix86_got32x
=no
27828 if test x
$gcc_cv_as != x
; then
27829 $as_echo "$conftest_s" > conftest.s
27830 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27832 (eval $ac_try) 2>&5
27834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27835 test $ac_status = 0; }; }
27837 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27838 && test x
$gcc_cv_readelf != x \
27839 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27840 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27841 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27842 if $gcc_cv_objdump -dw conftest
2>&1 \
27843 |
grep 0xffffff > /dev
/null
2>&1; then
27844 gcc_cv_as_ix86_got32x
=no
27846 gcc_cv_as_ix86_got32x
=yes
27851 echo "configure: failed program was" >&5
27854 rm -f conftest.o conftest.s
27857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27858 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27862 cat >>confdefs.h
<<_ACEOF
27863 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27868 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27869 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27870 $as_echo_n "(cached) " >&6
27872 gcc_cv_as_ix86_gotoff_in_data
=no
27873 if test x
$gcc_cv_as != x
; then
27878 .long .L0@GOTOFF' > conftest.s
27879 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27881 (eval $ac_try) 2>&5
27883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27884 test $ac_status = 0; }; }
27886 gcc_cv_as_ix86_gotoff_in_data
=yes
27888 echo "configure: failed program was" >&5
27891 rm -f conftest.o conftest.s
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27895 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27899 cat >>confdefs.h
<<_ACEOF
27900 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27905 .section .text,"ax",@progbits
27907 .type _start, @function
27909 leal ld@tlsldm(%ecx), %eax
27910 call *___tls_get_addr@GOT(%ecx)
27911 leal gd@tlsgd(%ecx), %eax
27912 call *___tls_get_addr@GOT(%ecx)
27914 .section .tdata,"aw'$tls_section_flag'",@progbits
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27923 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27924 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27925 $as_echo_n "(cached) " >&6
27927 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27928 if test x
$gcc_cv_as != x
; then
27929 $as_echo "$conftest_s" > conftest.s
27930 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27932 (eval $ac_try) 2>&5
27934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27935 test $ac_status = 0; }; }
27937 if test x
$gcc_cv_ld != x \
27938 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27939 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27943 echo "configure: failed program was" >&5
27946 rm -f conftest.o conftest.s
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27950 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27954 cat >>confdefs.h
<<_ACEOF
27955 #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`
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27962 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27963 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27964 $as_echo_n "(cached) " >&6
27966 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27967 if test x
$gcc_cv_as != x
; then
27969 addl r15 = @ltoffx(x#), gp
27971 ld8.mov r16 = [r15], x#
27973 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27975 (eval $ac_try) 2>&5
27977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27978 test $ac_status = 0; }; }
27980 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27982 echo "configure: failed program was" >&5
27985 rm -f conftest.o conftest.s
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27989 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27990 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27992 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28004 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28005 if ${gcc_cv_as_machine_directive+:} false
; then :
28006 $as_echo_n "(cached) " >&6
28008 gcc_cv_as_machine_directive
=no
28009 if test x
$gcc_cv_as != x
; then
28010 $as_echo ' .machine ppc7400' > conftest.s
28011 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28013 (eval $ac_try) 2>&5
28015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28016 test $ac_status = 0; }; }
28018 gcc_cv_as_machine_directive
=yes
28020 echo "configure: failed program was" >&5
28023 rm -f conftest.o conftest.s
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28027 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28030 if test x
$gcc_cv_as_machine_directive != xyes
; then
28031 echo "*** This target requires an assembler supporting \".machine\"" >&2
28032 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
28033 test x
$build = x
$target && exit 1
28039 *-*-aix*) conftest_s
=' .machine "pwr5"
28042 *-*-darwin*) conftest_s
=' .text
28044 *) conftest_s
=' .machine power4
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28050 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28051 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
28052 $as_echo_n "(cached) " >&6
28054 gcc_cv_as_powerpc_mfcrf
=no
28055 if test x
$gcc_cv_as != x
; then
28056 $as_echo "$conftest_s" > conftest.s
28057 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28059 (eval $ac_try) 2>&5
28061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28062 test $ac_status = 0; }; }
28064 gcc_cv_as_powerpc_mfcrf
=yes
28066 echo "configure: failed program was" >&5
28069 rm -f conftest.o conftest.s
28072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28073 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28074 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28076 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28082 *-*-aix*) conftest_s
=' .csect .text[PR]
28084 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28088 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28089 *) conftest_s
=' .text
28091 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28095 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28096 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
28097 $as_echo_n "(cached) " >&6
28099 gcc_cv_as_powerpc_rel16
=no
28100 if test x
$gcc_cv_as != x
; then
28101 $as_echo "$conftest_s" > conftest.s
28102 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28104 (eval $ac_try) 2>&5
28106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28107 test $ac_status = 0; }; }
28109 gcc_cv_as_powerpc_rel16
=yes
28111 echo "configure: failed program was" >&5
28114 rm -f conftest.o conftest.s
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28118 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28119 if test $gcc_cv_as_powerpc_rel16 = yes; then
28121 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28127 *-*-aix*) conftest_s
=' .machine "pwr7"
28130 *) conftest_s
=' .machine power7
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28136 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28137 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
28138 $as_echo_n "(cached) " >&6
28140 gcc_cv_as_powerpc_vsx
=no
28141 if test x
$gcc_cv_as != x
; then
28142 $as_echo "$conftest_s" > conftest.s
28143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28145 (eval $ac_try) 2>&5
28147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28148 test $ac_status = 0; }; }
28150 gcc_cv_as_powerpc_vsx
=yes
28152 echo "configure: failed program was" >&5
28155 rm -f conftest.o conftest.s
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28159 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28160 if test $gcc_cv_as_powerpc_vsx = yes; then
28162 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28168 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28169 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28170 $as_echo_n "(cached) " >&6
28172 gcc_cv_as_powerpc_gnu_attribute
=no
28173 if test x
$gcc_cv_as != x
; then
28174 $as_echo '.gnu_attribute 4,1' > conftest.s
28175 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28177 (eval $ac_try) 2>&5
28179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28180 test $ac_status = 0; }; }
28182 gcc_cv_as_powerpc_gnu_attribute
=yes
28184 echo "configure: failed program was" >&5
28187 rm -f conftest.o conftest.s
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28191 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28192 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28194 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28200 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28201 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28202 $as_echo_n "(cached) " >&6
28204 gcc_cv_as_powerpc_entry_markers
=no
28205 if test x
$gcc_cv_as != x
; then
28206 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28209 (eval $ac_try) 2>&5
28211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28212 test $ac_status = 0; }; }
28214 gcc_cv_as_powerpc_entry_markers
=yes
28216 echo "configure: failed program was" >&5
28219 rm -f conftest.o conftest.s
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28223 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28224 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28226 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28232 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28233 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28234 $as_echo_n "(cached) " >&6
28236 gcc_cv_as_powerpc_pltseq_markers
=no
28237 if test x
$gcc_cv_as != x
; then
28238 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28239 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28241 (eval $ac_try) 2>&5
28243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28244 test $ac_status = 0; }; }
28246 gcc_cv_as_powerpc_pltseq_markers
=yes
28248 echo "configure: failed program was" >&5
28251 rm -f conftest.o conftest.s
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28255 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28256 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28258 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28266 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28267 if ${gcc_cv_as_aix_ref+:} false
; then :
28268 $as_echo_n "(cached) " >&6
28270 gcc_cv_as_aix_ref
=no
28271 if test x
$gcc_cv_as != x
; then
28272 $as_echo ' .csect stuff[rw]
28278 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28280 (eval $ac_try) 2>&5
28282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28283 test $ac_status = 0; }; }
28285 gcc_cv_as_aix_ref
=yes
28287 echo "configure: failed program was" >&5
28290 rm -f conftest.o conftest.s
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28294 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28295 if test $gcc_cv_as_aix_ref = yes; then
28297 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28303 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28304 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28305 $as_echo_n "(cached) " >&6
28307 gcc_cv_as_aix_dwloc
=no
28308 if test x
$gcc_cv_as != x
; then
28309 $as_echo ' .dwsect 0xA0000
28313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28315 (eval $ac_try) 2>&5
28317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28318 test $ac_status = 0; }; }
28320 gcc_cv_as_aix_dwloc
=yes
28322 echo "configure: failed program was" >&5
28325 rm -f conftest.o conftest.s
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28329 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28330 if test $gcc_cv_as_aix_dwloc = yes; then
28332 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28342 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28343 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28344 $as_echo_n "(cached) " >&6
28346 gcc_cv_as_mips_explicit_relocs
=no
28347 if test x
$gcc_cv_as != x
; then
28348 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28351 (eval $ac_try) 2>&5
28353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28354 test $ac_status = 0; }; }
28356 gcc_cv_as_mips_explicit_relocs
=yes
28358 echo "configure: failed program was" >&5
28361 rm -f conftest.o conftest.s
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28365 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28366 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28367 if test x
$target_cpu_default = x
28368 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28369 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28375 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28376 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28377 $as_echo_n "(cached) " >&6
28379 gcc_cv_as_mips_no_shared
=no
28380 if test x
$gcc_cv_as != x
; then
28381 $as_echo 'nop' > conftest.s
28382 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28384 (eval $ac_try) 2>&5
28386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28387 test $ac_status = 0; }; }
28389 gcc_cv_as_mips_no_shared
=yes
28391 echo "configure: failed program was" >&5
28394 rm -f conftest.o conftest.s
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28398 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28399 if test $gcc_cv_as_mips_no_shared = yes; then
28401 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28407 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28408 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28409 $as_echo_n "(cached) " >&6
28411 gcc_cv_as_mips_gnu_attribute
=no
28412 if test x
$gcc_cv_as != x
; then
28413 $as_echo '.gnu_attribute 4,1' > conftest.s
28414 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28416 (eval $ac_try) 2>&5
28418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28419 test $ac_status = 0; }; }
28421 gcc_cv_as_mips_gnu_attribute
=yes
28423 echo "configure: failed program was" >&5
28426 rm -f conftest.o conftest.s
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28430 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28431 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28433 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28439 $as_echo_n "checking assembler for .module support... " >&6; }
28440 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28441 $as_echo_n "(cached) " >&6
28443 gcc_cv_as_mips_dot_module
=no
28444 if test x
$gcc_cv_as != x
; then
28445 $as_echo '.module mips2
28446 .module fp=xx' > conftest.s
28447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28449 (eval $ac_try) 2>&5
28451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28452 test $ac_status = 0; }; }
28454 gcc_cv_as_mips_dot_module
=yes
28456 echo "configure: failed program was" >&5
28459 rm -f conftest.o conftest.s
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28463 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28464 if test $gcc_cv_as_mips_dot_module = yes; then
28466 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28470 if test x
$gcc_cv_as_mips_dot_module = xno \
28471 && test x
$with_fp_32 != x
; then
28472 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28476 $as_echo_n "checking assembler for .micromips support... " >&6; }
28477 if ${gcc_cv_as_micromips_support+:} false
; then :
28478 $as_echo_n "(cached) " >&6
28480 gcc_cv_as_micromips_support
=no
28481 if test x
$gcc_cv_as != x
; then
28482 $as_echo '.set micromips' > conftest.s
28483 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28485 (eval $ac_try) 2>&5
28487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28488 test $ac_status = 0; }; }
28490 gcc_cv_as_micromips_support
=yes
28492 echo "configure: failed program was" >&5
28495 rm -f conftest.o conftest.s
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28499 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28500 if test $gcc_cv_as_micromips_support = yes; then
28502 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28508 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28509 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28510 $as_echo_n "(cached) " >&6
28512 gcc_cv_as_mips_dtprelword
=no
28513 if test x
$gcc_cv_as != x
; then
28514 $as_echo '.section .tdata,"awT",@progbits
28518 .dtprelword x+0x8000' > conftest.s
28519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28521 (eval $ac_try) 2>&5
28523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28524 test $ac_status = 0; }; }
28526 gcc_cv_as_mips_dtprelword
=yes
28528 echo "configure: failed program was" >&5
28531 rm -f conftest.o conftest.s
28534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28535 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28536 if test $gcc_cv_as_mips_dtprelword = yes; then
28538 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28544 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28545 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28546 $as_echo_n "(cached) " >&6
28548 gcc_cv_as_mips_dspr1_mult
=no
28549 if test x
$gcc_cv_as != x
; then
28550 $as_echo ' .set mips32r2
28558 multu $ac3,$4,$5' > conftest.s
28559 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28561 (eval $ac_try) 2>&5
28563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28564 test $ac_status = 0; }; }
28566 gcc_cv_as_mips_dspr1_mult
=yes
28568 echo "configure: failed program was" >&5
28571 rm -f conftest.o conftest.s
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28575 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28576 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28578 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28584 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28585 gcc_cv_as_ld_jalr_reloc
=no
28586 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28587 if test $in_tree_ld = yes ; then
28588 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 \
28589 && test $in_tree_ld_is_elf = yes; then
28590 gcc_cv_as_ld_jalr_reloc
=yes
28592 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28593 echo ' .ent x' > conftest.s
28594 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28595 echo ' lw $25,%call16(y)($28)' >> conftest.s
28596 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28597 echo '1: jalr $25' >> conftest.s
28598 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28599 echo '1: jalr $25' >> conftest.s
28600 echo ' .end x' >> conftest.s
28601 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28602 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28603 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28604 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28605 gcc_cv_as_ld_jalr_reloc
=yes
28611 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28612 if test x
$target_cpu_default = x
; then
28613 target_cpu_default
=MASK_RELAX_PIC_CALLS
28615 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28619 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28622 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28623 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28624 $as_echo_n "(cached) " >&6
28626 gcc_cv_ld_mips_personality_relaxation
=no
28627 if test $in_tree_ld = yes ; then
28628 if test "$gcc_cv_gld_major_version" -eq 2 \
28629 -a "$gcc_cv_gld_minor_version" -ge 21 \
28630 -o "$gcc_cv_gld_major_version" -gt 2; then
28631 gcc_cv_ld_mips_personality_relaxation
=yes
28633 elif test x
$gcc_cv_as != x \
28634 -a x
$gcc_cv_ld != x \
28635 -a x
$gcc_cv_readelf != x
; then
28636 cat > conftest.s
<<EOF
28638 .cfi_personality 0x80,indirect_ptr
28645 .section .data,"aw",@progbits
28649 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28650 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28651 if $gcc_cv_readelf -d conftest
2>&1 \
28652 |
grep TEXTREL
> /dev
/null
2>&1; then
28654 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28655 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28658 gcc_cv_ld_mips_personality_relaxation
=yes
28662 rm -f conftest.s conftest.o conftest
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28665 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28666 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28668 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28673 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28674 if ${gcc_cv_as_mips_nan+:} false
; then :
28675 $as_echo_n "(cached) " >&6
28677 gcc_cv_as_mips_nan
=no
28678 if test x
$gcc_cv_as != x
; then
28679 $as_echo '' > conftest.s
28680 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28682 (eval $ac_try) 2>&5
28684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28685 test $ac_status = 0; }; }
28687 gcc_cv_as_mips_nan
=yes
28689 echo "configure: failed program was" >&5
28692 rm -f conftest.o conftest.s
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28696 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28697 if test $gcc_cv_as_mips_nan = yes; then
28699 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28703 if test x
$gcc_cv_as_mips_nan = xno \
28704 && test x
$with_nan != x
; then
28705 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28709 # Earlier GAS versions generically support .gnu_attribute, but the
28710 # msp430 assembler will not do anything with it.
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28712 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28713 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28714 $as_echo_n "(cached) " >&6
28716 gcc_cv_as_msp430_gnu_attribute
=no
28717 if test x
$gcc_cv_as != x
; then
28718 $as_echo '.gnu_attribute 4,1' > conftest.s
28719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28721 (eval $ac_try) 2>&5
28723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28724 test $ac_status = 0; }; }
28726 gcc_cv_as_msp430_gnu_attribute
=yes
28728 echo "configure: failed program was" >&5
28731 rm -f conftest.o conftest.s
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28735 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28736 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28738 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28743 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28744 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28745 $as_echo_n "(cached) " >&6
28747 gcc_cv_as_msp430_mspabi_attribute
=no
28748 if test x
$gcc_cv_as != x
; then
28749 $as_echo '.mspabi_attribute 4,2' > conftest.s
28750 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28752 (eval $ac_try) 2>&5
28754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28755 test $ac_status = 0; }; }
28757 gcc_cv_as_msp430_mspabi_attribute
=yes
28759 echo "configure: failed program was" >&5
28762 rm -f conftest.o conftest.s
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28766 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28767 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28769 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28773 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28775 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28780 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28781 # syntax that is documented in the ABI specification.
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28783 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28784 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28785 $as_echo_n "(cached) " >&6
28787 gcc_cv_as_nios2_gotoff_relocation
=no
28788 if test x
$gcc_cv_as != x
; then
28789 $as_echo ' .extern foo
28791 .long %gotoff(foo)' > conftest.s
28792 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28794 (eval $ac_try) 2>&5
28796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28797 test $ac_status = 0; }; }
28799 gcc_cv_as_nios2_gotoff_relocation
=yes
28801 echo "configure: failed program was" >&5
28804 rm -f conftest.o conftest.s
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28808 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28809 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28811 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28818 $as_echo_n "checking assembler for .attribute support... " >&6; }
28819 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28820 $as_echo_n "(cached) " >&6
28822 gcc_cv_as_riscv_attribute
=no
28823 if test x
$gcc_cv_as != x
; then
28824 $as_echo '.attribute stack_align,4' > conftest.s
28825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28827 (eval $ac_try) 2>&5
28829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28830 test $ac_status = 0; }; }
28832 gcc_cv_as_riscv_attribute
=yes
28834 echo "configure: failed program was" >&5
28837 rm -f conftest.o conftest.s
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28841 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28842 if test $gcc_cv_as_riscv_attribute = yes; then
28844 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28849 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28850 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
28851 $as_echo_n "(cached) " >&6
28853 gcc_cv_as_riscv_isa_spec
=no
28854 if test x
$gcc_cv_as != x
; then
28855 $as_echo '' > conftest.s
28856 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28858 (eval $ac_try) 2>&5
28860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28861 test $ac_status = 0; }; }
28863 gcc_cv_as_riscv_isa_spec
=yes
28865 echo "configure: failed program was" >&5
28868 rm -f conftest.o conftest.s
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28872 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28873 if test $gcc_cv_as_riscv_isa_spec = yes; then
28875 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28880 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28881 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
28882 $as_echo_n "(cached) " >&6
28884 gcc_cv_as_riscv_march_zifencei
=no
28885 if test x
$gcc_cv_as != x
; then
28886 $as_echo '' > conftest.s
28887 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28889 (eval $ac_try) 2>&5
28891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28892 test $ac_status = 0; }; }
28894 gcc_cv_as_riscv_march_zifencei
=yes
28896 echo "configure: failed program was" >&5
28899 rm -f conftest.o conftest.s
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28903 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28904 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28906 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28913 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28914 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
28915 $as_echo_n "(cached) " >&6
28917 gcc_cv_as_loongarch_dtprelword
=no
28918 if test x
$gcc_cv_as != x
; then
28919 $as_echo '' > conftest.s
28920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28922 (eval $ac_try) 2>&5
28924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28925 test $ac_status = 0; }; }
28927 .section .tdata
,"awT",@progbits
28931 .dtprelword x
+0x8000
28933 echo "configure: failed program was" >&5
28936 rm -f conftest.o conftest.s
28939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28940 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28942 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28944 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28948 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28949 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
28950 $as_echo_n "(cached) " >&6
28952 gcc_cv_as_loongarch_explicit_relocs
=no
28953 if test x
$gcc_cv_as != x
; then
28954 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28957 (eval $ac_try) 2>&5
28959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960 test $ac_status = 0; }; }
28962 gcc_cv_as_loongarch_explicit_relocs
=yes
28964 echo "configure: failed program was" >&5
28967 rm -f conftest.o conftest.s
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28971 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28972 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28974 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28979 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28980 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
28981 $as_echo_n "(cached) " >&6
28983 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
28984 if test x
$gcc_cv_as != x
; then
28985 $as_echo '.cfi_startproc
28986 .cfi_personality 0x9b,a
28988 .cfi_endproc' > conftest.s
28989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28991 (eval $ac_try) 2>&5
28993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28994 test $ac_status = 0; }; }
28996 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
28998 echo "configure: failed program was" >&5
29001 rm -f conftest.o conftest.s
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29005 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29006 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29008 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29015 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29016 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
29017 $as_echo_n "(cached) " >&6
29019 gcc_cv_as_s390_gnu_attribute
=no
29020 if test x
$gcc_cv_as != x
; then
29021 $as_echo '.gnu_attribute 8,1' > conftest.s
29022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29024 (eval $ac_try) 2>&5
29026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29027 test $ac_status = 0; }; }
29029 gcc_cv_as_s390_gnu_attribute
=yes
29031 echo "configure: failed program was" >&5
29034 rm -f conftest.o conftest.s
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29038 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29039 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29041 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29046 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29047 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
29048 $as_echo_n "(cached) " >&6
29050 gcc_cv_as_s390_machine_machinemode
=no
29051 if test x
$gcc_cv_as != x
; then
29052 $as_echo ' .machinemode push
29055 .machine pop' > conftest.s
29056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29058 (eval $ac_try) 2>&5
29060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29061 test $ac_status = 0; }; }
29063 gcc_cv_as_s390_machine_machinemode
=yes
29065 echo "configure: failed program was" >&5
29068 rm -f conftest.o conftest.s
29071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29072 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29073 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29075 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29080 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29081 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
29082 $as_echo_n "(cached) " >&6
29084 gcc_cv_as_s390_architecture_modifiers
=no
29085 if test x
$gcc_cv_as != x
; then
29086 $as_echo ' .machine z13+vx ' > conftest.s
29087 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29089 (eval $ac_try) 2>&5
29091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29092 test $ac_status = 0; }; }
29094 gcc_cv_as_s390_architecture_modifiers
=yes
29096 echo "configure: failed program was" >&5
29099 rm -f conftest.o conftest.s
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29103 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29104 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29106 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29111 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29112 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
29113 $as_echo_n "(cached) " >&6
29115 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
29116 if test x
$gcc_cv_as != x
; then
29117 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29120 (eval $ac_try) 2>&5
29122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29123 test $ac_status = 0; }; }
29125 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
29127 echo "configure: failed program was" >&5
29130 rm -f conftest.o conftest.s
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29134 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29135 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29137 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29142 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29143 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
29144 $as_echo_n "(cached) " >&6
29146 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
29147 if test x
$gcc_cv_as != x
; then
29148 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29151 (eval $ac_try) 2>&5
29153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29154 test $ac_status = 0; }; }
29156 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
29158 echo "configure: failed program was" >&5
29161 rm -f conftest.o conftest.s
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29165 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29166 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29168 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29176 # Mips, LoongArch and HP-UX need the GNU assembler.
29177 # Linux on IA64 might be able to use the Intel assembler.
29180 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
29181 if test x
$gas_flag = xyes \
29182 ||
test x
"$host" != x
"$build" \
29183 ||
test ! -x "$gcc_cv_as" \
29184 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29187 echo "*** This configuration requires the GNU assembler" >&2
29193 # AMD GCN needs the LLVM assembler and linker.
29194 # Test that LLVM is at least 13.0.1.
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29198 $as_echo_n "checking llvm assembler version... " >&6; }
29199 gcc_cv_as_version
="unknown"
29200 if test x
$gcc_cv_as != x
; then
29201 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29202 case "$gcc_cv_as_version" in
29203 13.0.
[1-9]*) ;; # 13.0.1+
29204 13.
[1-9]*) ;; # 13.1+
29205 1[4-9]*) ;; # 14..19
29206 [2-9][0-9]*) ;; # 20..99
29207 [1-9][0-9][0-9]*) ;; # 100+
29208 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
29209 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29213 $as_echo "$gcc_cv_as_version, ok" >&6; }
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29220 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29221 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
29222 $as_echo_n "(cached) " >&6
29224 gcc_cv_as_arm_option_extensions
=no
29225 if test x
$gcc_cv_as != x
; then
29229 vmov.f32 s0, s1' > conftest.s
29230 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29232 (eval $ac_try) 2>&5
29234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29235 test $ac_status = 0; }; }
29237 gcc_cv_as_arm_option_extensions
=yes
29239 echo "configure: failed program was" >&5
29242 rm -f conftest.o conftest.s
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29246 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29247 if test $gcc_cv_as_arm_option_extensions = yes; then
29249 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29255 # ??? Not all targets support dwarf2 debug_line, even within a version
29256 # of gas. Moreover, we need to emit a valid instruction to trigger any
29257 # info to the output file. So, as supported targets are added to gas 2.11,
29258 # add some instruction here to (also) show we expect this might work.
29259 # ??? Once 2.11 is released, probably need to add first known working
29260 # version to the per-target configury.
29261 case "$cpu_type" in
29262 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29263 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29264 | visium | xstormy16 | xtensa
)
29274 if test x
"$insn" != x
; then
29276 .file 1 \"conftest.s\"
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29280 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29281 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29282 $as_echo_n "(cached) " >&6
29284 gcc_cv_as_dwarf2_debug_line
=no
29285 if test x
$gcc_cv_as != x
; then
29286 $as_echo "$conftest_s" > conftest.s
29287 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29289 (eval $ac_try) 2>&5
29291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29292 test $ac_status = 0; }; }
29294 if test x
$gcc_cv_objdump != x \
29295 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29296 |
grep debug_line
> /dev
/null
2>&1; then
29297 gcc_cv_as_dwarf2_debug_line
=yes
29298 elif test x
$gcc_cv_otool != x \
29299 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29300 |
grep debug_line
> /dev
/null
2>&1; then
29301 gcc_cv_as_dwarf2_debug_line
=yes
29304 echo "configure: failed program was" >&5
29307 rm -f conftest.o conftest.s
29310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29311 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29315 # The .debug_line file table must be in the exact order that
29316 # we specified the files, since these indices are also used
29317 # by DW_AT_decl_file. Approximate this test by testing if
29318 # the assembler bitches if the same index is assigned twice.
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29320 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29321 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29322 $as_echo_n "(cached) " >&6
29324 gcc_cv_as_dwarf2_file_buggy
=no
29325 if test x
$gcc_cv_as != x
; then
29326 $as_echo ' .file 1 "foo.s"
29327 .file 1 "bar.s"' > conftest.s
29328 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29330 (eval $ac_try) 2>&5
29332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29333 test $ac_status = 0; }; }
29335 gcc_cv_as_dwarf2_file_buggy
=yes
29337 echo "configure: failed program was" >&5
29340 rm -f conftest.o conftest.s
29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29344 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29348 if test $gcc_cv_as_dwarf2_debug_line = yes \
29349 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29351 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29354 if test $gcc_cv_as_leb128 = yes; then
29356 .file 1 \"conftest.s\"
29357 .loc 1 3 0 view .LVU1
29363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29364 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29365 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29366 $as_echo_n "(cached) " >&6
29368 gcc_cv_as_dwarf2_debug_view
=no
29369 if test x
$gcc_cv_as != x
; then
29370 $as_echo "$conftest_s" > conftest.s
29371 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29373 (eval $ac_try) 2>&5
29375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29376 test $ac_status = 0; }; }
29378 gcc_cv_as_dwarf2_debug_view
=yes
29380 echo "configure: failed program was" >&5
29383 rm -f conftest.o conftest.s
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29387 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29388 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29390 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29398 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29399 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29400 $as_echo_n "(cached) " >&6
29402 gcc_cv_as_gdwarf2_flag
=no
29403 if test x
$gcc_cv_as != x
; then
29404 $as_echo "$insn" > conftest.s
29405 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29407 (eval $ac_try) 2>&5
29409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29410 test $ac_status = 0; }; }
29412 gcc_cv_as_gdwarf2_flag
=yes
29414 echo "configure: failed program was" >&5
29417 rm -f conftest.o conftest.s
29420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29421 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29422 if test $gcc_cv_as_gdwarf2_flag = yes; then
29424 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29430 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29431 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29432 $as_echo_n "(cached) " >&6
29434 gcc_cv_as_gdwarf_5_flag
=no
29435 if test x
$gcc_cv_as != x
; then
29436 $as_echo "$insn" > conftest.s
29437 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29439 (eval $ac_try) 2>&5
29441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29442 test $ac_status = 0; }; }
29444 if test x
$gcc_cv_objdump != x \
29445 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29446 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29447 gcc_cv_as_gdwarf_5_flag
=yes;
29450 echo "configure: failed program was" >&5
29453 rm -f conftest.o conftest.s
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29457 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29458 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29460 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29466 win32 | pe | cygwin
* | mingw32
*)
29467 section_flags
=\"dr
\"
29468 function_type
=".def foo; .scl 2; .type 32; .endef"
29471 section_flags
=\"\",%progbits
29472 function_type
=".type foo, %function"
29473 function_size
=".size foo, .-foo";;
29475 dwarf4_debug_info_size
=0x46
29476 dwarf4_high_pc_form
=7
29477 dwarf4_debug_aranges_size
=0x2c
29479 for dwarf4_addr_size
in 8 4; do
29495 .section .debug_info,$section_flags
29497 .4byte $dwarf4_debug_info_size
29499 .4byte .Ldebug_abbrev0
29500 .byte 0x$dwarf4_addr_size
29502 .ascii \"GNU C17\\0\"
29506 .${dwarf4_addr_size}byte .Ltext0
29507 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29508 .4byte .Ldebug_line0
29514 .${dwarf4_addr_size}byte .LFB0
29515 .${dwarf4_addr_size}byte .LFE0-.LFB0
29519 .section .debug_abbrev,$section_flags
29535 .byte 0x$dwarf4_high_pc_form
29556 .byte 0x$dwarf4_high_pc_form
29562 .section .debug_aranges,$section_flags
29563 .4byte $dwarf4_debug_aranges_size
29565 .4byte .Ldebug_info0
29570 .${dwarf4_addr_size}byte .Ltext0
29571 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29572 .${dwarf4_addr_size}byte 0
29573 .${dwarf4_addr_size}byte 0
29574 .section .debug_line,$section_flags
29576 .4byte .LELT0-.LSLT0
29579 .4byte .LELTP0-.LASLTP0
29607 .byte 0x$dwarf4_line_sz
29609 .${dwarf4_addr_size}byte .LM1
29614 .byte 0x$dwarf4_line_sz
29616 .${dwarf4_addr_size}byte .LM2
29621 .byte 0x$dwarf4_line_sz
29623 .${dwarf4_addr_size}byte .Letext0
29628 .section .debug_str,$section_flags
29632 if test $dwarf4_addr_size = 4; then
29633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29634 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29635 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29636 $as_echo_n "(cached) " >&6
29638 gcc_cv_as_debug_line_32_flag
=no
29639 if test x
$gcc_cv_as != x
; then
29640 $as_echo "$conftest_s" > conftest.s
29641 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29643 (eval $ac_try) 2>&5
29645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29646 test $ac_status = 0; }; }
29648 gcc_cv_as_debug_line_32_flag
=yes
29650 echo "configure: failed program was" >&5
29653 rm -f conftest.o conftest.s
29656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29657 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29658 if test $gcc_cv_as_debug_line_32_flag = yes; then
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29664 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29665 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
29666 $as_echo_n "(cached) " >&6
29668 gcc_cv_as_debug_line_64_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_64_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_64_flag" >&5
29687 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29688 if test $gcc_cv_as_debug_line_64_flag = yes; then
29693 if test $dwarf4_success = yes; then
29695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29696 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29697 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
29698 $as_echo_n "(cached) " >&6
29700 gcc_cv_as_dwarf_4_debug_line_flag
=no
29701 if test x
$gcc_cv_as != x
; then
29702 $as_echo "$conftest_s" > conftest.s
29703 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29705 (eval $ac_try) 2>&5
29707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29708 test $ac_status = 0; }; }
29710 gcc_cv_as_dwarf_4_debug_line_flag
=yes
29712 echo "configure: failed program was" >&5
29715 rm -f conftest.o conftest.s
29718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29719 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29720 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29726 dwarf4_debug_info_size
=0x36
29727 dwarf4_high_pc_form
=6
29728 dwarf4_debug_aranges_size
=0x1c
29732 if test $dwarf4_success = yes; then
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29751 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29752 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
29753 $as_echo_n "(cached) " >&6
29755 gcc_cv_as_dwarf_4_app_flag
=no
29756 if test x
$gcc_cv_as != x
; then
29757 $as_echo "$conftest_s" > conftest.s
29758 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29760 (eval $ac_try) 2>&5
29762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29763 test $ac_status = 0; }; }
29765 gcc_cv_as_dwarf_4_app_flag
=yes
29767 echo "configure: failed program was" >&5
29770 rm -f conftest.o conftest.s
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29774 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29775 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29781 if test $dwarf4_success = yes; then
29791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29792 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29793 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
29794 $as_echo_n "(cached) " >&6
29796 gcc_cv_as_working_gdwarf_n_flag
=no
29797 if test x
$gcc_cv_as != x
; then
29798 $as_echo "$conftest_s" > conftest.s
29799 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29801 (eval $ac_try) 2>&5
29803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29804 test $ac_status = 0; }; }
29806 if test x
$gcc_cv_objdump != x \
29807 && $gcc_cv_objdump -W conftest.o
2>&1 \
29808 |
grep conftest.s
> /dev
/null
2>&1; then
29809 gcc_cv_as_working_gdwarf_n_flag
=no
29811 gcc_cv_as_working_gdwarf_n_flag
=yes
29814 echo "configure: failed program was" >&5
29817 rm -f conftest.o conftest.s
29820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29821 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29824 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29826 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29832 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29833 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
29834 $as_echo_n "(cached) " >&6
29836 gcc_cv_as_debug_prefix_map_flag
=no
29837 if test x
$gcc_cv_as != x
; then
29838 $as_echo "$insn" > conftest.s
29839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29841 (eval $ac_try) 2>&5
29843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29844 test $ac_status = 0; }; }
29846 gcc_cv_as_debug_prefix_map_flag
=yes
29848 echo "configure: failed program was" >&5
29851 rm -f conftest.o conftest.s
29854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29855 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29856 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29858 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29865 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29866 if ${gcc_cv_as_compress_debug+:} false
; then :
29867 $as_echo_n "(cached) " >&6
29869 gcc_cv_as_compress_debug
=no
29870 if test x
$gcc_cv_as != x
; then
29871 $as_echo '' > conftest.s
29872 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29874 (eval $ac_try) 2>&5
29876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29877 test $ac_status = 0; }; }
29879 # gas compiled without zlib cannot compress debug sections and warns
29880 # about it, but still exits successfully. So check for this, too.
29881 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
29883 gcc_cv_as_compress_debug
=0
29884 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
29886 gcc_cv_as_compress_debug
=1
29887 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29888 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29889 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29890 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
29892 gcc_cv_as_compress_debug
=2
29895 gcc_cv_as_compress_debug
=0
29898 echo "configure: failed program was" >&5
29901 rm -f conftest.o conftest.s
29904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29905 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29909 cat >>confdefs.h
<<_ACEOF
29910 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29914 cat >>confdefs.h
<<_ACEOF
29915 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29919 cat >>confdefs.h
<<_ACEOF
29920 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29925 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29926 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
29927 $as_echo_n "(cached) " >&6
29929 gcc_cv_as_lcomm_with_alignment
=no
29930 if test x
$gcc_cv_as != x
; then
29931 $as_echo '.lcomm bar,4,16' > conftest.s
29932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29934 (eval $ac_try) 2>&5
29936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29937 test $ac_status = 0; }; }
29939 gcc_cv_as_lcomm_with_alignment
=yes
29941 echo "configure: failed program was" >&5
29944 rm -f conftest.o conftest.s
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29948 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29949 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29951 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29956 if test x
$with_sysroot = x
&& test x
$host = x
$target \
29957 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29958 && test "$prefix" != "NONE"; then
29960 cat >>confdefs.h
<<_ACEOF
29961 #define PREFIX_INCLUDE_DIR "$prefix/include"
29966 # Determine the version of glibc, if any, used on the target.
29967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29968 $as_echo_n "checking for target glibc version... " >&6; }
29970 # Check whether --with-glibc-version was given.
29971 if test "${with_glibc_version+set}" = set; then :
29972 withval
=$with_glibc_version;
29973 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29974 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29975 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29977 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
29981 glibc_version_major
=0
29982 glibc_version_minor
=0
29983 if test -f $target_header_dir/features.h \
29984 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29985 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29986 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29987 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29992 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29994 cat >>confdefs.h
<<_ACEOF
29995 #define TARGET_GLIBC_MAJOR $glibc_version_major
29999 cat >>confdefs.h
<<_ACEOF
30000 #define TARGET_GLIBC_MINOR $glibc_version_minor
30004 # Check whether --enable-gnu-unique-object was given.
30005 if test "${enable_gnu_unique_object+set}" = set; then :
30006 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30008 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30009 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30013 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30014 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
30015 $as_echo_n "(cached) " >&6
30017 gcc_cv_as_gnu_unique_object
=no
30018 if test x
$gcc_cv_as != x
; then
30019 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30020 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30022 (eval $ac_try) 2>&5
30024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30025 test $ac_status = 0; }; }
30027 gcc_cv_as_gnu_unique_object
=yes
30029 echo "configure: failed program was" >&5
30032 rm -f conftest.o conftest.s
30035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30036 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30037 if test $gcc_cv_as_gnu_unique_object = yes; then
30038 # We need to unquote above to to use the definition from config.gcc.
30039 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30041 if test $glibc_version_major -gt 2 \
30042 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30043 enable_gnu_unique_object
=yes
30050 if test x
$enable_gnu_unique_object = xyes
; then
30052 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30057 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30058 if ${gcc_cv_as_line_zero+:} false
; then :
30059 $as_echo_n "(cached) " >&6
30061 gcc_cv_as_line_zero
=no
30062 if test "x$gcc_cv_as" != x
; then
30063 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30064 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30066 (eval $ac_try) 2>&5
30068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30069 test $ac_status = 0; }; } &&
30070 test "x`cat conftest.out`" = x
30072 gcc_cv_as_line_zero
=yes
30074 echo "configure: failed program was" >&5
30076 echo "configure: error output was" >&5
30077 cat conftest.out
>&5
30079 rm -f conftest.o conftest.s conftest.out
30082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30083 $as_echo "$gcc_cv_as_line_zero" >&6; }
30084 if test "x$gcc_cv_as_line_zero" = xyes
; then
30086 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30091 $as_echo_n "checking support for thin archives... " >&6; }
30092 thin_archive_support
=no
30093 echo 'int main (void) { return 0; }' > conftest.c
30094 if ($AR --version |
sed 1q |
grep "GNU ar" \
30095 && $CC $CFLAGS -c conftest.c \
30096 && $AR rcT conftest.a conftest.o \
30097 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
30098 thin_archive_support
=yes
30100 rm -f conftest.c conftest.o conftest.a conftest
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30102 $as_echo "$thin_archive_support" >&6; }
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30106 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30107 gcc_cv_ld_eh_frame_hdr
=no
30108 if test $in_tree_ld = yes ; then
30109 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 \
30110 && test $in_tree_ld_is_elf = yes; then
30111 gcc_cv_ld_eh_frame_hdr
=yes
30113 elif test x
$gcc_cv_ld != x
; then
30114 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30115 # Check if linker supports --eh-frame-hdr option
30116 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
30117 gcc_cv_ld_eh_frame_hdr
=yes
30122 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30123 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
30124 gcc_cv_ld_eh_frame_hdr
=yes
30131 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
30133 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30137 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30140 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30141 gcc_cv_ld_eh_frame_ciev3
=no
30142 if test $in_tree_ld = yes ; then
30143 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 \
30144 && test $in_tree_ld_is_elf = yes; then
30145 gcc_cv_ld_eh_frame_ciev3
=yes
30147 elif test x
$gcc_cv_ld != x
; then
30148 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30149 gcc_cv_ld_eh_frame_ciev3
=yes
30150 if test 0"$ld_date" -lt 20040513; then
30151 if test -n "$ld_date"; then
30152 # If there was date string, but was earlier than 2004-05-13, fail
30153 gcc_cv_ld_eh_frame_ciev3
=no
30154 elif test "$ld_vers_major" -lt 2; then
30155 gcc_cv_ld_eh_frame_ciev3
=no
30156 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30157 gcc_cv_ld_eh_frame_ciev3
=no
30163 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30164 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30165 gcc_cv_ld_eh_frame_ciev3
=yes
30172 cat >>confdefs.h
<<_ACEOF
30173 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30177 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30180 $as_echo_n "checking linker position independent executable support... " >&6; }
30182 if test $in_tree_ld = yes ; then
30184 # Full PIE support on Solaris was only introduced in gld 2.26.
30185 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30186 *) gcc_gld_pie_min_version
=15 ;;
30188 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 \
30189 && test $in_tree_ld_is_elf = yes; then
30192 elif test x
$gcc_cv_ld != x
; then
30193 # Check if linker supports -pie option
30194 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30198 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30199 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30206 *-*-solaris2.1
[1-9]*)
30207 # Solaris 11.3 added PIE support.
30208 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30215 if test x
"$gcc_cv_ld_pie" = xyes
; then
30217 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30221 $as_echo "$gcc_cv_ld_pie" >&6; }
30223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30224 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30225 gcc_cv_ld_pie_copyreloc
=no
30226 if test $gcc_cv_ld_pie = yes ; then
30227 if test $in_tree_ld = yes ; then
30228 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
30229 gcc_cv_ld_pie_copyreloc
=yes
30231 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30232 # Check if linker supports -pie option with copy reloc
30234 i?
86-*-linux* | x86_64-
*-linux*)
30235 cat > conftest1.s
<<EOF
30238 .type a_glob, @object
30243 cat > conftest2.s
<<EOF
30246 .type main, @function
30248 movl %eax, a_glob(%rip)
30251 .section .data.rel,"aw",@progbits
30256 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30257 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30258 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30259 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30260 gcc_cv_ld_pie_copyreloc
=yes
30262 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30268 cat >>confdefs.h
<<_ACEOF
30269 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30273 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30276 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30277 gcc_cv_ld_eh_gc_sections
=no
30278 if test $in_tree_ld = yes ; then
30279 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 \
30280 && test $in_tree_ld_is_elf = yes; then
30281 gcc_cv_ld_eh_gc_sections
=yes
30283 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30284 cat > conftest.s
<<EOF
30287 .type _start, @function
30290 .size _start, .-_start
30291 .section .text.foo,"ax",@progbits
30292 .type foo, @function
30296 .section .gcc_except_table.foo,"a",@progbits
30299 .section .eh_frame,"a",@progbits
30302 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30303 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30304 |
grep "gc-sections option ignored" > /dev
/null
; then
30305 gcc_cv_ld_eh_gc_sections
=no
30306 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30307 |
grep gcc_except_table
> /dev
/null
; then
30308 gcc_cv_ld_eh_gc_sections
=yes
30309 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30310 if test x
$gcc_cv_as_comdat_group != xyes
; then
30311 gcc_cv_ld_eh_gc_sections
=no
30312 cat > conftest.s
<<EOF
30315 .type _start, @function
30318 .size _start, .-_start
30319 .section .gnu.linkonce.t.foo,"ax",@progbits
30320 .type foo, @function
30324 .section .gcc_except_table.foo,"a",@progbits
30327 .section .eh_frame,"a",@progbits
30330 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30331 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30332 |
grep "gc-sections option ignored" > /dev
/null
; then
30333 gcc_cv_ld_eh_gc_sections
=no
30334 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30335 |
grep gcc_except_table
> /dev
/null
; then
30336 gcc_cv_ld_eh_gc_sections
=yes
30342 rm -f conftest.s conftest.o conftest
30346 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30347 gcc_cv_ld_eh_gc_sections
=no
30350 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30352 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30356 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30359 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30360 gcc_cv_ld_eh_gc_sections_bug
=no
30361 if test $in_tree_ld = yes ; then
30362 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 \
30363 && test $in_tree_ld_is_elf = yes; then
30364 gcc_cv_ld_eh_gc_sections_bug
=yes
30366 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
30367 gcc_cv_ld_eh_gc_sections_bug
=yes
30368 cat > conftest.s
<<EOF
30371 .type _start, @function
30374 .size _start, .-_start
30375 .section .text.startup.foo,"ax",@progbits
30376 .type foo, @function
30380 .section .gcc_except_table.foo,"a",@progbits
30383 .section .eh_frame,"a",@progbits
30386 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30387 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30388 |
grep "gc-sections option ignored" > /dev
/null
; then
30390 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30391 |
grep gcc_except_table
> /dev
/null
; then
30392 gcc_cv_ld_eh_gc_sections_bug
=no
30395 rm -f conftest.s conftest.o conftest
30397 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30399 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30403 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30406 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30407 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30408 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
30409 gcc_cv_ld_compress_debug
=1
30410 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30411 # Detect zstd debug section compression support
30412 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
30413 gcc_cv_ld_compress_debug
=2
30416 case "${target}" in
30418 # Introduced in Solaris 11.2.
30419 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30420 gcc_cv_ld_compress_debug
=1
30421 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30423 gcc_cv_ld_compress_debug
=0
30427 # Assume linkers other than GNU ld don't support compessed debug
30429 gcc_cv_ld_compress_debug
=0
30434 cat >>confdefs.h
<<_ACEOF
30435 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30439 cat >>confdefs.h
<<_ACEOF
30440 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30444 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30446 if test x
"$ld64_flag" = x
"yes"; then
30448 # Set defaults for possibly untestable items.
30449 gcc_cv_ld64_export_dynamic
=0
30450 gcc_cv_ld64_platform_version
=0
30452 if test "$build" = "$host"; then
30458 # On Darwin, because of FAT library support, it is often possible to execute
30459 # exes from compatible archs even when the host differs from the build system.
30460 case "$build","$host" in
30461 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30462 darwin_try_test
=1;;
30466 # If the configurer specified a minimum ld64 version to be supported, then use
30467 # that to determine feature support.
30468 if test x
"${gcc_cv_ld64_version}" != x
; then
30469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30470 $as_echo_n "checking ld64 specified version... " >&6; }
30471 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30473 $as_echo "$gcc_cv_ld64_major" >&6; }
30474 if test "$gcc_cv_ld64_major" -ge 236; then
30475 gcc_cv_ld64_export_dynamic
=1
30477 if test "$gcc_cv_ld64_major" -ge 512; then
30478 gcc_cv_ld64_platform_version
=1
30480 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30481 # If the version was not specified, try to find it.
30482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30483 $as_echo_n "checking linker version... " >&6; }
30484 if test x
"${gcc_cv_ld64_version}" = x
; then
30485 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30488 $as_echo "$gcc_cv_ld64_version" >&6; }
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30491 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30492 gcc_cv_ld64_export_dynamic
=1
30493 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30494 gcc_cv_ld64_export_dynamic
=0
30496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30497 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30500 $as_echo_n "checking linker for -platform_version support... " >&6; }
30501 gcc_cv_ld64_platform_version
=1
30502 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30503 gcc_cv_ld64_platform_version
=0
30505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30506 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30509 if test x
"${gcc_cv_ld64_version}" != x
; then
30511 cat >>confdefs.h
<<_ACEOF
30512 #define LD64_VERSION "${gcc_cv_ld64_version}"
30518 cat >>confdefs.h
<<_ACEOF
30519 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30524 cat >>confdefs.h
<<_ACEOF
30525 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30530 if test x
"$dsymutil_flag" = x
"yes"; then
30532 # If the user specified a dsymutil path, then we will already have the
30533 # version string, otherwise, pick it up.
30534 if test x
"$gcc_cv_dsymutil" = x
; then
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30536 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30537 dsymutil_vers
="tool unspecified"
30538 elif test x
"$dsymutil_vers" = x
; then
30539 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30542 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30544 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30545 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30546 dsymutil_kind
=DWARFUTILS
30547 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30548 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30549 dsymutil_kind
=CLANG
30550 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30551 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30553 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30555 dsymutil_kind
=UNKNOWN
30556 dsymutil_vers
="0.0"
30558 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30559 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30560 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30561 if test x
"${dsymutil_minor}" = x
; then
30564 if test x
"${dsymutil_tiny}" = x
; then
30568 cat >>confdefs.h
<<_ACEOF
30569 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30573 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30577 win32 | pe | cygwin* | mingw32*)
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
30579 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
30580 gcc_cv_ld_broken_pe_dwarf5=yes
30581 if test $in_tree_ld = yes ; then
30582 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30583 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30584 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30585 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30586 gcc_cv_ld_broken_pe_dwarf5=no
30589 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30590 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30591 gcc_cv_ld_broken_pe_dwarf5=no
30594 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30596 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30600 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30603 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30604 gcc_cv_ld_disable_dynamicbase
=no
30605 if test $in_tree_ld = yes; then
30606 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 \
30607 gcc_cv_ld_disable_dynamicbase
=yes
30610 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
30611 gcc_cv_ld_disable_dynamicbase
=yes
30614 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
30616 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30620 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30629 $as_echo_n "checking linker --as-needed support... " >&6; }
30630 if ${gcc_cv_ld_as_needed+:} false
; then :
30631 $as_echo_n "(cached) " >&6
30633 gcc_cv_ld_as_needed
=no
30634 gcc_cv_ld_as_needed_option
='--as-needed'
30635 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30636 if test $in_tree_ld = yes ; then
30637 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 \
30638 && test $in_tree_ld_is_elf = yes; then
30639 gcc_cv_ld_as_needed
=yes
30640 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30641 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30642 gcc_cv_ld_no_as_needed_option
='--pop-state'
30645 elif test x
$gcc_cv_ld != x
; then
30646 # Check if linker supports --as-needed and --no-as-needed options
30647 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30648 gcc_cv_ld_as_needed
=yes
30649 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30650 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30651 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30652 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30653 # Use these options only when both ld.bfd and ld.gold support
30654 # --push-state/--pop-state, which unfortunately wasn't added
30655 # at the same time.
30656 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30657 gcc_cv_ld_no_as_needed_option
='--pop-state'
30660 case "$target:$gnu_ld" in
30662 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30664 gcc_cv_ld_as_needed
=yes
30665 gcc_cv_ld_as_needed_option
="-z ignore"
30666 gcc_cv_ld_no_as_needed_option
="-z record"
30670 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30671 # dl_iterate_phdr, i.e. since Solaris 11.
30673 *-*-solaris2.1
[1-9]*)
30675 i?
86-*-* | x86_64-
*-*)
30676 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30677 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30678 gcc_cv_ld_as_needed
=no
30684 gcc_cv_ld_as_needed
=no
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30690 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30691 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30693 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30696 cat >>confdefs.h
<<_ACEOF
30697 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30701 cat >>confdefs.h
<<_ACEOF
30702 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30708 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30709 saved_LDFLAGS
="$LDFLAGS"
30710 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30711 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30713 /* end confdefs.h. */
30714 int main(void) {return 0;}
30716 if ac_fn_cxx_try_link
"$LINENO"; then :
30717 gcc_cv_ld_clearcap
=yes; break
30719 gcc_cv_ld_clearcap
=no
30721 rm -f core conftest.err conftest.
$ac_objext \
30722 conftest
$ac_exeext conftest.
$ac_ext
30724 LDFLAGS
="$saved_LDFLAGS"
30725 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30727 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30729 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30733 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30739 emul_name
="-melf32lppc"
30742 emul_name
="-melf32ppc"
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30746 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30747 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30748 $as_echo_n "(cached) " >&6
30750 gcc_cv_ld_ppc_attr
=no
30751 if test x
"$ld_is_gold" = xyes
; then
30752 gcc_cv_ld_ppc_attr
=yes
30753 elif test $in_tree_ld = yes ; then
30754 if test "$gcc_cv_gld_major_version" -eq 2 \
30755 -a "$gcc_cv_gld_minor_version" -ge 28 \
30756 -o "$gcc_cv_gld_major_version" -gt 2; then
30757 gcc_cv_ld_ppc_attr
=yes
30759 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30760 # check that merging the long double .gnu_attribute doesn't warn
30761 cat > conftest1.s
<<EOF
30764 cat > conftest2.s
<<EOF
30767 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30768 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30769 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
30770 && test ! -s conftest.err
; then
30771 gcc_cv_ld_ppc_attr
=yes
30773 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30778 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30779 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
30781 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30787 case "$target:$tm_file" in
30788 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
30791 emul_name
="-melf64lppc"
30794 emul_name
="-melf64ppc"
30797 emul_name
="-melf64lppc_fbsd"
30800 emul_name
="-melf64ppc_fbsd"
30803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30804 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30805 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
30806 $as_echo_n "(cached) " >&6
30808 gcc_cv_ld_no_dot_syms
=no
30809 if test x
"$ld_is_gold" = xyes
; then
30810 gcc_cv_ld_no_dot_syms
=yes
30811 elif test $in_tree_ld = yes ; then
30812 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
30813 gcc_cv_ld_no_dot_syms
=yes
30815 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30816 cat > conftest1.s
<<EOF
30820 cat > conftest2.s
<<EOF
30821 .section ".opd","aw"
30824 .type foo,@function
30826 .quad .LEfoo,.TOC.@tocbase,0
30832 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30833 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30834 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
30835 gcc_cv_ld_no_dot_syms
=yes
30837 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30842 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30843 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
30845 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30850 $as_echo_n "checking linker large toc support... " >&6; }
30851 if ${gcc_cv_ld_large_toc+:} false
; then :
30852 $as_echo_n "(cached) " >&6
30854 gcc_cv_ld_large_toc
=no
30855 if test x
"$ld_is_gold" = xyes
; then
30856 gcc_cv_ld_large_toc
=yes
30857 elif test $in_tree_ld = yes ; then
30858 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
30859 gcc_cv_ld_large_toc
=yes
30861 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30862 cat > conftest.s
<<EOF
30863 .section ".tbss","awT",@nobits
30869 addis 9,13,ie0@got@tprel@ha
30870 ld 9,ie0@got@tprel@l(9)
30872 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30873 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
30874 gcc_cv_ld_large_toc
=yes
30876 rm -f conftest conftest.o conftest.s
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30881 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30882 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30884 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30889 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30890 if ${gcc_cv_ld_toc_align+:} false
; then :
30891 $as_echo_n "(cached) " >&6
30893 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
30894 cat > conftest.s
<<EOF
30899 .section .data.rel.ro,"aw",@progbits
30904 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30905 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
30906 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)) }'`
30908 rm -f conftest conftest.o conftest.s
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30913 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30914 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30916 cat >>confdefs.h
<<_ACEOF
30917 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30927 $as_echo_n "checking linker large toc support... " >&6; }
30928 if ${gcc_cv_ld_large_toc+:} false
; then :
30929 $as_echo_n "(cached) " >&6
30931 gcc_cv_ld_large_toc
=no
30932 if test x
$gcc_cv_as != x
; then
30933 cat > conftest.s
<<EOF
30943 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
30944 gcc_cv_ld_large_toc
=yes
30946 rm -f conftest conftest.o conftest.s
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30951 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30952 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30954 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30961 $as_echo_n "checking linker --build-id support... " >&6; }
30962 if ${gcc_cv_ld_buildid+:} false
; then :
30963 $as_echo_n "(cached) " >&6
30965 gcc_cv_ld_buildid
=no
30966 if test $in_tree_ld = yes ; then
30967 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30968 "$gcc_cv_gld_minor_version" -ge 18 -o \
30969 "$gcc_cv_gld_major_version" -gt 2 \
30970 && test $in_tree_ld_is_elf = yes; then
30971 gcc_cv_ld_buildid
=yes
30973 elif test x
$gcc_cv_ld != x
; then
30974 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
30975 gcc_cv_ld_buildid
=yes
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30980 $as_echo "$gcc_cv_ld_buildid" >&6; }
30981 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30983 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30987 # Check whether --enable-linker-build-id was given.
30988 if test "${enable_linker_build_id+set}" = set; then :
30989 enableval
=$enable_linker_build_id;
30991 enable_linker_build_id
=no
30995 if test x
"$enable_linker_build_id" = xyes
; then
30996 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30998 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31002 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31006 # In binutils 2.21, GNU ld gained support for new emulations fully
31007 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31009 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31010 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
31011 $as_echo_n "(cached) " >&6
31013 gcc_cv_ld_sol2_emulation
=no
31014 if test $in_tree_ld = yes ; then
31015 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31016 "$gcc_cv_gld_minor_version" -ge 21 -o \
31017 "$gcc_cv_gld_major_version" -gt 2 \
31018 && test $in_tree_ld_is_elf = yes; then
31019 gcc_cv_ld_sol2_emulation
=yes
31021 elif test x
$gcc_cv_ld != x
; then
31022 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
31023 grep _sol2
> /dev
/null
; then
31024 gcc_cv_ld_sol2_emulation
=yes
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31029 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31030 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
31032 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31037 $as_echo_n "checking linker --sysroot support... " >&6; }
31038 if ${gcc_cv_ld_sysroot+:} false
; then :
31039 $as_echo_n "(cached) " >&6
31041 gcc_cv_ld_sysroot
=no
31042 if test $in_tree_ld = yes ; then
31043 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
31044 gcc_cv_ld_sysroot
=yes
31046 elif test x
$gcc_cv_ld != x
; then
31047 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
31048 gcc_cv_ld_sysroot
=yes
31052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31053 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31054 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
31056 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31062 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31064 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31065 if ${gcc_cv_solaris_crts+:} false
; then :
31066 $as_echo_n "(cached) " >&6
31068 gcc_cv_solaris_crts
=no
31069 if test x
$host != x
$target; then
31070 if test "x$with_sysroot" = xyes
; then
31071 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
31073 target_sysroot
="${with_sysroot}"
31076 target_libdir
="$target_sysroot/usr/lib"
31077 # At the time they were added, gcrt1.o became a symlink for backwards
31078 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31080 i?
86-*-solaris2* | x86_64-
*-solaris2*)
31081 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
31083 sparc
*-*-solaris2*)
31084 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
31088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31089 $as_echo "$gcc_cv_solaris_crts" >&6; }
31092 if test x
$gcc_cv_solaris_crts = xyes
; then
31094 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31098 # Check whether --enable-libssp was given.
31099 if test "${enable_libssp+set}" = set; then :
31100 enableval
=$enable_libssp; case "${enableval}" in
31104 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
31110 # Test for stack protector support in target C library.
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31112 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31113 if ${gcc_cv_libc_provides_ssp+:} false
; then :
31114 $as_echo_n "(cached) " >&6
31116 gcc_cv_libc_provides_ssp
=no
31117 if test "x$enable_libssp" = "xno"; then
31118 gcc_cv_libc_provides_ssp
=yes
31119 elif test "x$enable_libssp" = "xyes"; then
31120 gcc_cv_libc_provides_ssp
=no
31124 # All versions of musl provide stack protector
31125 gcc_cv_libc_provides_ssp
=yes;;
31126 *-*-linux* |
*-*-kfreebsd*-gnu)
31127 # glibc 2.4 and later provides __stack_chk_fail and
31128 # either __stack_chk_guard, or TLS access to stack guard canary.
31130 if test $glibc_version_major -gt 2 \
31131 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31132 gcc_cv_libc_provides_ssp
=yes
31135 if test -f $target_header_dir/features.h \
31136 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31137 $target_header_dir/features.h
> /dev
/null
; then
31138 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31139 $target_header_dir/features.h
> /dev
/null
&& \
31140 test -f $target_header_dir/bits
/uClibc_config.h
&& \
31141 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31142 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
31143 gcc_cv_libc_provides_ssp
=yes
31145 # all versions of Bionic support stack protector
31146 elif test -f $target_header_dir/sys
/cdefs.h \
31147 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31148 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
31149 gcc_cv_libc_provides_ssp
=yes
31154 # Avoid complicated tests (see
31155 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31156 # simply assert that glibc does provide this, which is true for all
31157 # realistically usable GNU/Hurd configurations.
31158 # All supported versions of musl provide it as well
31159 gcc_cv_libc_provides_ssp
=yes;;
31160 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31161 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31162 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31163 gcc_cv_libc_provides_ssp
=yes
31165 echo "no __stack_chk_fail on this target"
31169 *) gcc_cv_libc_provides_ssp
=no
;;
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31174 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31176 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31178 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31182 # Check whether --enable-default-ssp was given.
31183 # Check whether --enable-default-ssp was given.
31184 if test "${enable_default_ssp+set}" = set; then :
31185 enableval
=$enable_default_ssp;
31186 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31188 ia64
*-*-*) enable_default_ssp
=no
;;
31189 *) enable_default_ssp
=$enableval ;;
31192 enable_default_ssp
=no
31195 enable_default_ssp
=no
31198 if test x
$enable_default_ssp = xyes
; then
31200 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31205 # Test for <sys/sdt.h> on the target.
31207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31208 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31209 if ${gcc_cv_sys_sdt_h+:} false
; then :
31210 $as_echo_n "(cached) " >&6
31213 gcc_cv_sys_sdt_h
=no
31214 if test -f $target_header_dir/sys
/sdt.h
; then
31215 gcc_cv_sys_sdt_h
=yes
31219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31220 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31221 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
31224 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31229 # Check if TFmode long double should be used by default or not.
31230 # Some glibc targets used DFmode long double, but with glibc 2.4
31231 # and later they can use TFmode.
31233 powerpc
*-*-linux* | \
31234 sparc
*-*-linux* | \
31238 # Check whether --with-long-double-128 was given.
31239 if test "${with_long_double_128+set}" = set; then :
31240 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31244 s390
*-*-linux-musl*)
31245 gcc_cv_target_ldbl128
=yes
31247 powerpc
*-*-linux-musl*)
31248 gcc_cv_target_ldbl128
=no
31252 if test $glibc_version_major -gt 2 \
31253 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31254 gcc_cv_target_ldbl128
=yes
31257 gcc_cv_target_ldbl128
=no
31258 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31259 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31260 && gcc_cv_target_ldbl128
=yes
31271 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31273 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31277 # Check if TFmode long double target should use the IBM extended double or IEEE
31278 # 128-bit floating point formats if long doubles are 128-bits long. The long
31279 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31280 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31283 # Check whether --with-long-double-format was given.
31284 if test "${with_long_double_format+set}" = set; then :
31285 withval
=$with_long_double_format;
31286 case "$target:$with_long_double_format" in
31287 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31290 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31291 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31292 case "$with_cpu" in
31293 power7 | power8 | power9 | power1
*)
31297 as_fn_error $?
"Configuration option --with-long-double-format is only \
31298 supported if the default cpu is power7 or newer" "$LINENO" 5
31299 with_long_double_format
=""
31303 powerpc64
*-*-linux*:*)
31304 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31305 with_long_double_format
=""
31308 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31309 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31310 with_long_double_format
=""
31316 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31317 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31318 gcc_cv_libc_provides_hwcap_in_tcb
=no
31322 if test $glibc_version_major -gt 2 \
31323 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31324 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31328 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31330 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31334 # Check if the target LIBC handles PT_GNU_STACK.
31335 gcc_cv_libc_gnustack
=unknown
31337 mips
*-*-linux-musl*)
31338 gcc_cv_libc_gnustack
=yes
31342 if test $glibc_version_major -gt 2 \
31343 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31344 gcc_cv_libc_gnustack
=yes
31348 if test x
$gcc_cv_libc_gnustack = xyes
; then
31350 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31355 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31356 gcc_cv_target_dl_iterate_phdr
=unknown
31359 # <link.h> needs both a dl_iterate_phdr declaration and support for
31360 # compilation with largefile support.
31361 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31362 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31363 gcc_cv_target_dl_iterate_phdr
=yes
31365 gcc_cv_target_dl_iterate_phdr
=no
31368 *-*-dragonfly* |
*-*-freebsd*)
31369 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31370 gcc_cv_target_dl_iterate_phdr
=yes
31372 gcc_cv_target_dl_iterate_phdr
=no
31376 gcc_cv_target_dl_iterate_phdr
=yes
31380 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31382 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31386 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31388 # We no longer support different GC mechanisms. Emit an error if
31389 # the user configures with --with-gc.
31391 # Check whether --with-gc was given.
31392 if test "${with_gc+set}" = set; then :
31393 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31397 # Libraries to use on the host. This will normally be set by the top
31398 # level Makefile. Here we simply capture the value for our Makefile.
31399 if test -z "${HOST_LIBS+set}"; then
31404 # Use the system's zlib library.
31406 # Use the system's zlib library.
31407 zlibdir
="-L\$(top_builddir)/../zlib"
31408 zlibinc
="-I\$(top_srcdir)/../zlib"
31410 # Check whether --with-system-zlib was given.
31411 if test "${with_system_zlib+set}" = set; then :
31412 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31425 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31426 # Check whether --enable-maintainer-mode was given.
31427 if test "${enable_maintainer_mode+set}" = set; then :
31428 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31435 $as_echo "$maintainer_mode" >&6; }
31437 if test "$maintainer_mode" = "yes"; then
31443 if test -z "$CTAGS"; then
31447 if test -z "$ETAGS"; then
31451 if test -z "$CSCOPE"; then
31457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31458 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31459 # Check whether --enable-link-mutex was given.
31460 if test "${enable_link_mutex+set}" = set; then :
31461 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31467 $as_echo "$do_link_mutex" >&6; }
31469 if test "$do_link_mutex" = "yes"; then
31471 { $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
31472 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31474 DO_LINK_MUTEX
=false
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31480 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31481 # Check whether --enable-link-serialization was given.
31482 if test "${enable_link_serialization+set}" = set; then :
31483 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31485 do_link_serialization
=no
31488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31489 $as_echo "$do_link_serialization" >&6; }
31491 case "$do_link_serialization" in
31493 DO_LINK_SERIALIZATION
=1;;
31494 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31495 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31497 DO_LINK_SERIALIZATION
=;;
31499 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31507 # Make empty files to contain the specs and options for each language.
31508 # Then add #include lines to for a compiler that has specs and/or options.
31514 # These (without "all_") are set in each config-lang.in.
31515 # `language' must be a single word so is spelled singularly.
31518 all_outputs
='Makefile'
31519 # List of language configure and makefile fragments.
31520 all_lang_configurefrags
=
31521 all_lang_makefrags
=
31522 # Additional files for gengtype
31523 all_gtfiles
="$target_gtfiles"
31525 # These are the languages that are set in --enable-languages,
31526 # and are available in the GCC tree.
31527 all_selected_languages
=
31529 # Add the language fragments.
31530 # Languages are added via two mechanisms. Some information must be
31531 # recorded in makefile variables, these are defined in config-lang.in.
31532 # We accumulate them and plug them into the main Makefile.
31533 # The other mechanism is a set of hooks for each of the main targets
31534 # like `clean', `install', etc.
31536 language_hooks
="Make-hooks"
31538 for lang
in ${srcdir}/*/config-lang.
in
31540 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31542 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31543 if test "x$lang_alias" = x
31545 echo "$lang doesn't set \$language." 1>&2
31548 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31549 subdirs
="$subdirs $subdir"
31551 # $gcc_subdir is where the gcc integration files are to be found
31552 # for a language, both for internal compiler purposes (compiler
31553 # sources implementing front-end to GCC tree converters), and for
31554 # build infrastructure purposes (Make-lang.in, etc.)
31556 # This will be <subdir> (relative to $srcdir) if a line like
31557 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31558 # is found in <langdir>/config-lang.in, and will remain <langdir>
31561 # Except for the language alias (fetched above), the regular
31562 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31563 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31564 # only this and the language alias.
31566 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31567 if [ "$gcc_subdir" = "" ]; then
31568 gcc_subdir
="$subdir"
31571 case ",$enable_languages," in
31573 all_selected_languages
="$all_selected_languages $lang_alias"
31574 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31575 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31586 .
${srcdir}/$gcc_subdir/config-lang.
in
31587 if test "x$language" = x
31589 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31594 case ",$enable_languages," in
31595 *,$lang_alias,*) ;;
31597 for i
in $subdir_requires; do
31598 test -f "${srcdir}/$i/config-lang.in" && continue
31606 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31607 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31608 # Put c/Make-lang.in fragment first to match serialization languages order.
31609 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31611 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31613 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31614 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31615 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31617 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31618 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31620 all_languages
="$all_languages $language"
31621 all_compilers
="$all_compilers $compilers"
31622 all_outputs
="$all_outputs $outputs"
31623 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31624 case ",$enable_languages," in
31627 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31637 for language
in $all_selected_languages
31639 check_languages
="$check_languages check-$language"
31642 selftest_languages
=
31643 for language
in $all_selected_languages
31645 selftest_languages
="$selftest_languages selftest-$language"
31648 # We link each language in with a set of hooks, reached indirectly via
31649 # lang.${target}. Only do so for selected languages.
31653 target_list
="all.cross start.encap rest.encap tags \
31654 install-common install-man install-info install-dvi install-pdf \
31655 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31656 mostlyclean clean distclean maintainer-clean install-plugin"
31658 for t
in $target_list
31661 for lang
in $all_selected_languages
31665 echo "lang.$t: $x" >> Make-hooks
31668 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31669 echo "SERIAL_LIST =" >> Make-hooks
31670 echo else >> Make-hooks
31674 serialization_languages
=c
31675 for lang
in $all_selected_languages
31677 test $lang = c
&& continue
31678 if test $lang = lto
; then
31679 serialization_languages
="$serialization_languages lto1 lto2"
31681 serialization_languages
="$serialization_languages $lang"
31684 for lang
in $serialization_languages
31686 test $lang = c
&& continue
31687 lang_cnt
=`expr $lang_cnt + 1`
31688 lang_list
=" $prev$lang_list"
31691 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31692 echo endif
>> Make-hooks
31693 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31694 echo "INDEX.c = 0" >> Make-hooks
31696 for lang
in $serialization_languages
31698 test $lang = c
&& continue
31699 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31700 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31701 lang_cnt
=`expr $lang_cnt - 1`
31702 lang_idx
=`expr $lang_idx + 1`
31706 # Option include files
31709 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31710 option_includes
="option-includes.mk"
31719 echo "dir ." > .gdbinit
31720 echo "dir ${srcdir}" >> .gdbinit
31721 if test x
$gdb_needs_out_file_path = xyes
31723 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31725 if test "x$subdirs" != x
; then
31728 echo "dir ${srcdir}/$s" >> .gdbinit
31731 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31732 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31734 # Put a breakpoint on __asan_report_error to help with debugging buffer
31737 *-fsanitize=address
*)
31738 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31742 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31746 # Find a directory in which to install a shared libgcc.
31748 # Check whether --enable-version-specific-runtime-libs was given.
31749 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31750 enableval
=$enable_version_specific_runtime_libs;
31754 # Substitute configuration variables
31825 if test x
${build} = x
${host} ; then
31826 if test x
${host} = x
${target} ; then
31827 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31829 echo "Links are now set up to build a cross-compiler" 1>&2
31830 echo " from ${host} to ${target}." 1>&2
31833 if test x
${host} = x
${target} ; then
31834 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31835 echo " for ${target}." 1>&2
31837 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31838 echo " from ${host} to ${target}." 1>&2
31847 if test "x${ISLLIBS}" != "x" ; then
31849 $as_echo "#define HAVE_isl 1" >>confdefs.h
31853 # Check for plugin support
31854 # Check whether --enable-plugin was given.
31855 if test "${enable_plugin+set}" = set; then :
31856 enableval
=$enable_plugin; enable_plugin
=$enableval
31858 enable_plugin
=yes; default_plugin
=yes
31867 # Since plugin support under MinGW is not as straightforward as on
31868 # other platforms (e.g., we have to link import library, etc), we
31869 # only enable it if explicitly requested.
31870 if test x
"$default_plugin" = x
"yes"; then
31872 elif test x
"$enable_plugin" = x
"yes"; then
31873 # Use make's target variable to derive import library name.
31874 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31879 if test x
$build = x
$host; then
31880 export_sym_check
="nm${exeext} -g"
31881 elif test x
$host = x
$target; then
31882 export_sym_check
="$gcc_cv_nm -g"
31888 if test x
$build = x
$host; then
31889 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
31890 elif test x
$host = x
$target; then
31891 export_sym_check
="$gcc_cv_objdump -T"
31898 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
31900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31901 $as_echo_n "checking for exported symbols... " >&6; }
31902 if test "x$export_sym_check" != x
; then
31903 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31904 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31905 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31906 : # No need to use a flag
31907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31908 $as_echo "yes" >&6; }
31910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31911 $as_echo "yes" >&6; }
31912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31913 $as_echo_n "checking for -rdynamic... " >&6; }
31914 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31915 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31916 plugin_rdynamic
=yes
31917 pluginlibs
="-rdynamic"
31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31923 $as_echo "$plugin_rdynamic" >&6; }
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31927 $as_echo "unable to check" >&6; }
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31933 $as_echo_n "checking for library containing dlopen... " >&6; }
31934 if ${ac_cv_search_dlopen+:} false
; then :
31935 $as_echo_n "(cached) " >&6
31937 ac_func_search_save_LIBS
=$LIBS
31938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31939 /* end confdefs.h. */
31941 /* Override any GCC internal prototype to avoid an error.
31942 Use char because int might match the return type of a GCC
31943 builtin and then its argument prototype would still apply. */
31956 for ac_lib
in '' dl
; do
31957 if test -z "$ac_lib"; then
31958 ac_res
="none required"
31961 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31963 if ac_fn_cxx_try_link
"$LINENO"; then :
31964 ac_cv_search_dlopen
=$ac_res
31966 rm -f core conftest.err conftest.
$ac_objext \
31968 if ${ac_cv_search_dlopen+:} false
; then :
31972 if ${ac_cv_search_dlopen+:} false
; then :
31975 ac_cv_search_dlopen
=no
31977 rm conftest.
$ac_ext
31978 LIBS
=$ac_func_search_save_LIBS
31980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31981 $as_echo "$ac_cv_search_dlopen" >&6; }
31982 ac_res
=$ac_cv_search_dlopen
31983 if test "$ac_res" != no
; then :
31984 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
31988 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
31989 pluginlibs
="$pluginlibs -ldl"
31993 # Check that we can build shared objects with -fPIC -shared
31994 saved_LDFLAGS
="$LDFLAGS"
31995 saved_CFLAGS
="$CFLAGS"
31996 saved_CXXFLAGS
="$CXXFLAGS"
31999 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32000 CFLAGS
="$CFLAGS -fPIC"
32001 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32002 CXXFLAGS
="$CXXFLAGS -fPIC"
32003 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
32006 CFLAGS
="$CFLAGS -fPIC"
32007 CXXFLAGS
="$CXXFLAGS -fPIC"
32008 LDFLAGS
="$LDFLAGS -fPIC -shared"
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32012 $as_echo_n "checking for -fPIC -shared... " >&6; }
32013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32014 /* end confdefs.h. */
32024 if ac_fn_cxx_try_link
"$LINENO"; then :
32025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32026 $as_echo "yes" >&6; }; have_pic_shared
=yes
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32029 $as_echo "no" >&6; }; have_pic_shared
=no
32031 rm -f core conftest.err conftest.
$ac_objext \
32032 conftest
$ac_exeext conftest.
$ac_ext
32033 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
32037 LDFLAGS
="$saved_LDFLAGS"
32038 CFLAGS
="$saved_CFLAGS"
32039 CXXFLAGS
="$saved_CXXFLAGS"
32041 # If plugin support had been requested but not available, fail.
32042 if test x
"$enable_plugin" = x
"no" ; then
32043 if test x
"$default_plugin" != x
"yes"; then
32045 Building GCC with plugin support requires a host that supports
32046 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32053 if test x
"$enable_plugin" = x
"yes"; then
32055 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32060 # Enable --enable-host-shared
32061 # Check whether --enable-host-shared was given.
32062 if test "${enable_host_shared+set}" = set; then :
32063 enableval
=$enable_host_shared; PICFLAG
=-fPIC
32072 # Check whether --enable-libquadmath-support was given.
32073 if test "${enable_libquadmath_support+set}" = set; then :
32074 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
32076 ENABLE_LIBQUADMATH_SUPPORT
=yes
32079 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32081 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32086 # Specify what hash style to use by default.
32088 # Check whether --with-linker-hash-style was given.
32089 if test "${with_linker_hash_style+set}" = set; then :
32090 withval
=$with_linker_hash_style; case x
"$withval" in
32092 LINKER_HASH_STYLE
=sysv
32095 LINKER_HASH_STYLE
=gnu
32098 LINKER_HASH_STYLE
=both
32101 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32105 LINKER_HASH_STYLE
=''
32108 if test x
"${LINKER_HASH_STYLE}" != x
; then
32110 cat >>confdefs.h
<<_ACEOF
32111 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32116 # Specify what should be the default of -fdiagnostics-color option.
32118 # Check whether --with-diagnostics-color was given.
32119 if test "${with_diagnostics_color+set}" = set; then :
32120 withval
=$with_diagnostics_color; case x
"$withval" in
32122 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
32125 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32128 DIAGNOSTICS_COLOR_DEFAULT
=-1
32131 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
32134 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32138 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32142 cat >>confdefs.h
<<_ACEOF
32143 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32147 # Specify what should be the default of -fdiagnostics-urls option.
32149 # Check whether --with-diagnostics-urls was given.
32150 if test "${with_diagnostics_urls+set}" = set; then :
32151 withval
=$with_diagnostics_urls; case x
"$withval" in
32153 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
32156 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32159 DIAGNOSTICS_URLS_DEFAULT
=-1
32162 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
32165 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32169 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32173 cat >>confdefs.h
<<_ACEOF
32174 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32178 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32179 # of jit/jit-playback.cc.
32180 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32181 echo "gcc_driver_version: ${gcc_driver_version}"
32182 cat > gcc-driver-name.h
<<EOF
32183 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32186 # Check whether --enable-default-pie was given.
32187 # Check whether --enable-default-pie was given.
32188 if test "${enable_default_pie+set}" = set; then :
32189 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32191 enable_default_pie
=no
32194 if test x
$enable_default_pie = xyes
; then
32196 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32201 # Check if -fno-PIE works.
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32203 $as_echo_n "checking for -fno-PIE option... " >&6; }
32204 if ${gcc_cv_c_no_fpie+:} false
; then :
32205 $as_echo_n "(cached) " >&6
32207 saved_CXXFLAGS
="$CXXFLAGS"
32208 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32210 /* end confdefs.h. */
32211 int main(void) {return 0;}
32213 if ac_fn_cxx_try_compile
"$LINENO"; then :
32214 gcc_cv_c_no_fpie
=yes
32216 gcc_cv_c_no_fpie
=no
32218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32219 CXXFLAGS
="$saved_CXXFLAGS"
32221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32222 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32223 if test "$gcc_cv_c_no_fpie" = "yes"; then
32224 NO_PIE_CFLAGS
="-fno-PIE"
32228 # Check if -no-pie works.
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32230 $as_echo_n "checking for -no-pie option... " >&6; }
32231 if ${gcc_cv_no_pie+:} false
; then :
32232 $as_echo_n "(cached) " >&6
32234 saved_LDFLAGS
="$LDFLAGS"
32235 LDFLAGS
="$LDFLAGS -no-pie"
32236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32237 /* end confdefs.h. */
32238 int main(void) {return 0;}
32240 if ac_fn_cxx_try_link
"$LINENO"; then :
32245 rm -f core conftest.err conftest.
$ac_objext \
32246 conftest
$ac_exeext conftest.
$ac_ext
32247 LDFLAGS
="$saved_LDFLAGS"
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32250 $as_echo "$gcc_cv_no_pie" >&6; }
32251 if test "$gcc_cv_no_pie" = "yes"; then
32252 NO_PIE_FLAG
="-no-pie"
32256 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32257 # Check whether --enable-cet was given.
32258 if test "${enable_cet+set}" = set; then :
32259 enableval
=$enable_cet;
32260 case "$enableval" in
32262 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32271 $as_echo_n "checking for CET support... " >&6; }
32274 i
[34567]86-*-linux* | x86_64-
*-linux*)
32276 cet_save_CFLAGS
="$CFLAGS"
32277 CFLAGS
="$CFLAGS -fcf-protection"
32278 case "$enable_cet" in
32280 # Check if target supports multi-byte NOPs
32281 # and if compiler and assembler support CET.
32282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32283 /* end confdefs.h. */
32289 #if !defined(__SSE2__)
32290 #error target does not support multi-byte NOPs
32299 if ac_fn_cxx_try_compile
"$LINENO"; then :
32304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32307 # Check if compiler and assembler support CET.
32308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32309 /* end confdefs.h. */
32319 if ac_fn_cxx_try_compile
"$LINENO"; then :
32324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32325 if test $support_cet = "no"; then
32326 if test x
$enable_bootstrap != xno \
32327 && test -z "${with_build_subdir}" \
32328 && (test ! -f ..
/stage_current \
32329 ||
test `cat ../stage_current` != "stage1"); then
32330 # Require CET support only for the final GCC build.
32331 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32333 # Don't enable CET without CET support for non-bootstrap
32334 # build, in stage1 nor for build support.
32340 CFLAGS
="$cet_save_CFLAGS"
32348 cet_save_CFLAGS
="$CFLAGS"
32349 CFLAGS
="$CFLAGS -fcf-protection=none"
32350 cet_save_LDFLAGS
="$LDFLAGS"
32351 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32352 if test x
$may_have_cet = xyes
; then
32353 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32355 /* end confdefs.h. */
32365 if ac_fn_cxx_try_link
"$LINENO"; then :
32370 rm -f core conftest.err conftest.
$ac_objext \
32371 conftest
$ac_exeext conftest.
$ac_ext
32374 if test x
$may_have_cet = xyes
; then
32375 if test x
$cross_compiling = xno
; then
32376 if test "$cross_compiling" = yes; then :
32377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32379 as_fn_error $?
"cannot run test program while cross compiling
32380 See \`config.log' for more details" "$LINENO" 5; }
32382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32383 /* end confdefs.h. */
32393 if ac_fn_cxx_try_run
"$LINENO"; then :
32394 have_multi_byte_nop
=yes
32396 have_multi_byte_nop
=no
32398 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32399 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32403 if test x
$have_multi_byte_nop = xyes
; then
32404 if test "$cross_compiling" = yes; then :
32405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32407 as_fn_error $?
"cannot run test program while cross compiling
32408 See \`config.log' for more details" "$LINENO" 5; }
32410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32411 /* end confdefs.h. */
32419 __attribute__ ((noinline, noclone))
32420 xxx (void (*f) (void))
32426 __attribute__ ((noinline, noclone))
32440 if ac_fn_cxx_try_run
"$LINENO"; then :
32445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32450 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32451 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32455 # Enable CET in cross compiler if possible so that it will run on both
32456 # CET and non-CET hosts.
32459 if test x
$enable_cet = xyes
; then
32460 CET_HOST_FLAGS
="-fcf-protection"
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32462 $as_echo "yes" >&6; }
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32465 $as_echo "no" >&6; }
32467 CFLAGS
="$cet_save_CFLAGS"
32468 LDFLAGS
="$cet_save_LDFLAGS"
32470 case x
$enable_languages in
32479 # Check linker supports '-z bndplt'
32480 ld_bndplt_support
=no
32481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32482 $as_echo_n "checking linker -z bndplt option... " >&6; }
32483 if test x
"$ld_is_gold" = xno
; then
32484 if test $in_tree_ld = yes ; then
32485 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
32486 ld_bndplt_support
=yes
32488 elif test x
$gcc_cv_ld != x
; then
32489 # Check if linker supports -a bndplt option
32490 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32491 ld_bndplt_support
=yes
32495 if test x
"$ld_bndplt_support" = xyes
; then
32497 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32501 $as_echo "$ld_bndplt_support" >&6; }
32503 # Check linker supports '--push-state'/'--pop-state'
32504 ld_pushpopstate_support
=no
32505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32506 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32507 if test x
"$ld_is_gold" = xno
; then
32508 if test $in_tree_ld = yes ; then
32509 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
32510 ld_pushpopstate_support
=yes
32512 elif test x
$gcc_cv_ld != x
; then
32513 # Check if linker supports --push-state/--pop-state options
32514 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32515 ld_pushpopstate_support
=yes
32519 if test x
"$ld_pushpopstate_support" = xyes
; then
32521 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32525 $as_echo "$ld_pushpopstate_support" >&6; }
32527 # On s390, float_t has historically been statically defined as double for no
32528 # good reason. To comply with the C standard in the light of this definition,
32529 # gcc has evaluated float expressions in double precision when in
32530 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32531 # a smooth transition towards the new model used by most architectures, where
32532 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32533 # float_t from that, this behavior can be configured with
32534 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32535 # the old model. When omitted, native builds and cross compiles that have target
32536 # libc headers will detect whether libc clamps float_t to double and in that
32537 # case maintain the old model. Otherwise, they will default to the new model.
32538 # Check whether --enable-s390-excess-float-precision was given.
32539 if test "${enable_s390_excess_float_precision+set}" = set; then :
32540 enableval
=$enable_s390_excess_float_precision;
32542 enable_s390_excess_float_precision
=auto
32548 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32549 # Can we autodetect the behavior of the target libc?
32550 if test "$target" = "$host" -a "$host" = "$build"; then
32551 enable_s390_excess_float_precision
=autodetect
32552 elif test "x$with_headers" != xno
; then
32553 # cross build. are target headers available?
32554 # carefully coerce the build-system compiler to use target headers
32555 saved_CXXFLAGS
="$CXXFLAGS"
32556 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32557 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32558 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32560 /* end confdefs.h. */
32565 if ac_fn_cxx_try_compile
"$LINENO"; then :
32566 enable_s390_excess_float_precision
=autodetect
32568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32569 CXXFLAGS
="$saved_CXXFLAGS"
32572 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32573 saved_CXXFLAGS
="$CXXFLAGS"
32574 if ! test "$target" = "$host" -a "$host" = "$build"; then
32575 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32576 unset CROSS_TEST_CXXFLAGS
32578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32579 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32580 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32581 $as_echo_n "(cached) " >&6
32584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32585 /* end confdefs.h. */
32587 #define __FLT_EVAL_METHOD__ 0
32589 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32592 if ac_fn_cxx_try_compile
"$LINENO"; then :
32593 gcc_cv_float_t_clamped_to_double
=yes
32595 gcc_cv_float_t_clamped_to_double
=no
32597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32600 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32601 CXXFLAGS
="$saved_CXXFLAGS"
32602 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
32604 # no way to detect behavior of target libc, default to new model
32605 enable_s390_excess_float_precision
=no
32610 if test x
"$enable_s390_excess_float_precision" = xyes
; then
32612 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32618 # Configure the subdirectories
32619 # AC_CONFIG_SUBDIRS($subdirs)
32621 # Create the Makefile
32622 # and configure language subdirectories
32623 ac_config_files
="$ac_config_files $all_outputs"
32626 ac_config_commands
="$ac_config_commands default"
32628 cat >confcache
<<\_ACEOF
32629 # This file is a shell script that caches the results of configure
32630 # tests run on this system so they can be shared between configure
32631 # scripts and configure runs, see configure's option --config-cache.
32632 # It is not useful on other systems. If it contains results you don't
32633 # want to keep, you may remove or edit it.
32635 # config.status only pays attention to the cache file if you give it
32636 # the --recheck option to rerun configure.
32638 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32639 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32640 # following values.
32644 # The following way of writing the cache mishandles newlines in values,
32645 # but we know of no workaround that is simple, portable, and efficient.
32646 # So, we kill variables containing newlines.
32647 # Ultrix sh set writes to stderr and can't be redirected directly,
32648 # and sets the high bit in the cache file unless we assign to the vars.
32650 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32651 eval ac_val
=\$
$ac_var
32655 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32656 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32659 _ | IFS | as_nl
) ;; #(
32660 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32661 *) { eval $ac_var=; unset $ac_var;} ;;
32667 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32668 *${as_nl}ac_space
=\
*)
32669 # `set' does not quote correctly, so add quotes: double-quote
32670 # substitution turns \\\\ into \\, and sed turns \\ into \.
32673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32676 # `set' quotes correctly as required by POSIX, so do not add quotes.
32677 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32688 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32690 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32691 if test -w "$cache_file"; then
32692 if test "x$cache_file" != "x/dev/null"; then
32693 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32694 $as_echo "$as_me: updating cache $cache_file" >&6;}
32695 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32696 cat confcache
>"$cache_file"
32698 case $cache_file in #(
32700 mv -f confcache
"$cache_file"$$
&&
32701 mv -f "$cache_file"$$
"$cache_file" ;; #(
32703 mv -f confcache
"$cache_file" ;;
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32709 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32714 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32715 # Let make expand exec_prefix.
32716 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32718 DEFS
=-DHAVE_CONFIG_H
32723 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32724 # 1. Remove the extension, and $U if already installed.
32725 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32726 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32727 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32728 # will be set to the directory where LIBOBJS objects are built.
32729 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32730 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32732 LIBOBJS
=$ac_libobjs
32734 LTLIBOBJS
=$ac_ltlibobjs
32739 : "${CONFIG_STATUS=./config.status}"
32741 ac_clean_files_save
=$ac_clean_files
32742 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32743 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32744 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32746 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32748 # Generated by $as_me.
32749 # Run this file to recreate the current configuration.
32750 # Compiler output produced by configure, useful for debugging
32751 # configure, is in config.log if it exists.
32754 ac_cs_recheck=false
32757 SHELL=\${CONFIG_SHELL-$SHELL}
32760 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32761 ## -------------------- ##
32762 ## M4sh Initialization. ##
32763 ## -------------------- ##
32765 # Be more Bourne compatible
32766 DUALCASE
=1; export DUALCASE
# for MKS sh
32767 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32770 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32771 # is contrary to our usage. Disable this feature.
32772 alias -g '${1+"$@"}'='"$@"'
32773 setopt NO_GLOB_SUBST
32775 case `(set -o) 2>/dev/null` in #(
32787 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32788 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32789 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32790 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32791 # Prefer a ksh shell builtin over an external printf program on Solaris,
32792 # but without wasting forks for bash or zsh.
32793 if test -z "$BASH_VERSION$ZSH_VERSION" \
32794 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32795 as_echo='print
-r --'
32796 as_echo_n='print
-rn --'
32797 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32798 as_echo='printf %s
\n'
32799 as_echo_n='printf %s
'
32801 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32802 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32803 as_echo_n='/usr
/ucb
/echo -n'
32805 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32806 as_echo_n_body='eval
32810 expr "X$arg" : "X\\(.*\\)$as_nl";
32811 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32813 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32815 export as_echo_n_body
32816 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32818 export as_echo_body
32819 as_echo='sh
-c $as_echo_body as_echo
'
32822 # The user is always right.
32823 if test "${PATH_SEPARATOR+set}" != set; then
32825 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32826 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32833 # We need space, tab and new line, in precisely that order. Quoting is
32834 # there to prevent editors from complaining about space-tab.
32835 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32836 # splitting by setting IFS to empty value.)
32839 # Find who we are. Look in the path if we contain no directory separator.
32842 *[\\/]* ) as_myself=$0 ;;
32843 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32844 for as_dir in $PATH
32847 test -z "$as_dir" && as_dir=.
32848 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32854 # We did not find ourselves, most probably we were run as `sh COMMAND'
32855 # in which case we are not to be found in the path.
32856 if test "x$as_myself" = x
; then
32859 if test ! -f "$as_myself"; then
32860 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32864 # Unset variables that we do not need and which cause bugs (e.g. in
32865 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32866 # suppresses any "Segmentation fault" message there. '((' could
32867 # trigger a bug in pdksh 5.2.14.
32868 for as_var
in BASH_ENV ENV MAIL MAILPATH
32869 do eval test x\
${$as_var+set} = xset \
32870 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32883 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32886 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32887 # ----------------------------------------
32888 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32889 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32890 # script with STATUS, using 1 if that was 0.
32893 as_status
=$1; test $as_status -eq 0 && as_status
=1
32895 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32896 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32898 $as_echo "$as_me: error: $2" >&2
32899 as_fn_exit
$as_status
32903 # as_fn_set_status STATUS
32904 # -----------------------
32905 # Set $? to STATUS, without forking.
32906 as_fn_set_status
()
32909 } # as_fn_set_status
32911 # as_fn_exit STATUS
32912 # -----------------
32913 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32917 as_fn_set_status
$1
32923 # Portably unset VAR.
32926 { eval $1=; unset $1;}
32928 as_unset
=as_fn_unset
32929 # as_fn_append VAR VALUE
32930 # ----------------------
32931 # Append the text in VALUE to the end of the definition contained in VAR. Take
32932 # advantage of any shell optimizations that allow amortized linear growth over
32933 # repeated appends, instead of the typical quadratic growth present in naive
32935 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32936 eval 'as_fn_append ()
32947 # as_fn_arith ARG...
32948 # ------------------
32949 # Perform arithmetic evaluation on the ARGs, and store the result in the
32950 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32951 # must be portable across $(()) and expr.
32952 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
32953 eval 'as_fn_arith ()
32960 as_val
=`expr "$@" || test $? -eq 1`
32965 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32966 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32972 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32973 as_basename
=basename
32978 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
32984 as_me
=`$as_basename -- "$0" ||
32985 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32986 X"$0" : 'X\(//\)$' \| \
32987 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32989 sed '/^.*\/\([^/][^/]*\)\/*$/{
33003 # Avoid depending upon Character Ranges.
33004 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33005 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33006 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33007 as_cr_digits
='0123456789'
33008 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33010 ECHO_C
= ECHO_N
= ECHO_T
=
33011 case `echo -n x` in #(((((
33013 case `echo 'xy\c'` in
33014 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33016 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
33023 rm -f conf$$ conf$$.exe conf$$.
file
33024 if test -d conf$$.dir
; then
33025 rm -f conf$$.dir
/conf$$.
file
33028 mkdir conf$$.dir
2>/dev
/null
33030 if (echo >conf$$.
file) 2>/dev
/null
; then
33031 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33033 # ... but there are two gotchas:
33034 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33035 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33036 # In both cases, we have to default to `cp -pR'.
33037 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33039 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33047 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33048 rmdir conf$$.dir
2>/dev
/null
33053 # Create "$as_dir" as a directory, including parents if necessary.
33058 -*) as_dir
=.
/$as_dir;;
33060 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33064 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33065 *) as_qdir
=$as_dir;;
33067 as_dirs
="'$as_qdir' $as_dirs"
33068 as_dir
=`$as_dirname -- "$as_dir" ||
33069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33070 X"$as_dir" : 'X\(//\)[^/]' \| \
33071 X"$as_dir" : 'X\(//\)$' \| \
33072 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33073 $as_echo X"$as_dir" |
33074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33078 /^X\(\/\/\)[^/].*/{
33091 test -d "$as_dir" && break
33093 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33094 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33098 if mkdir
-p .
2>/dev
/null
; then
33099 as_mkdir_p
='mkdir -p "$as_dir"'
33101 test -d .
/-p && rmdir .
/-p
33106 # as_fn_executable_p FILE
33107 # -----------------------
33108 # Test if FILE is an executable regular file.
33109 as_fn_executable_p
()
33111 test -f "$1" && test -x "$1"
33112 } # as_fn_executable_p
33113 as_test_x
='test -x'
33114 as_executable_p
=as_fn_executable_p
33116 # Sed expression to map a string onto a valid CPP name.
33117 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33119 # Sed expression to map a string onto a valid variable name.
33120 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33124 ## ----------------------------------- ##
33125 ## Main body of $CONFIG_STATUS script. ##
33126 ## ----------------------------------- ##
33128 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33131 # Save the log message, to keep $0 and so on meaningful, and to
33132 # report actual input values of CONFIG_FILES etc. instead of their
33133 # values after options handling.
33135 This file was extended by $as_me, which was
33136 generated by GNU Autoconf 2.69. Invocation command line was
33138 CONFIG_FILES = $CONFIG_FILES
33139 CONFIG_HEADERS = $CONFIG_HEADERS
33140 CONFIG_LINKS = $CONFIG_LINKS
33141 CONFIG_COMMANDS = $CONFIG_COMMANDS
33144 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33149 case $ac_config_files in *"
33150 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33153 case $ac_config_headers in *"
33154 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33159 # Files that config.status was made for.
33160 config_files="$ac_config_files"
33161 config_headers="$ac_config_headers"
33162 config_links="$ac_config_links"
33163 config_commands="$ac_config_commands"
33167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33169 \`$as_me' instantiates files and other configuration actions
33170 from templates according to the current configuration. Unless the files
33171 and actions are specified as TAGs, all are instantiated by default.
33173 Usage: $0 [OPTION]... [TAG]...
33175 -h, --help print this help, then exit
33176 -V, --version print version number and configuration settings, then exit
33177 --config print configuration, then exit
33178 -q, --quiet, --silent
33179 do not print progress messages
33180 -d, --debug don't remove temporary files
33181 --recheck update $as_me by reconfiguring in the same conditions
33182 --file=FILE[:TEMPLATE]
33183 instantiate the configuration file FILE
33184 --header=FILE[:TEMPLATE]
33185 instantiate the configuration header FILE
33187 Configuration files:
33190 Configuration headers:
33193 Configuration links:
33196 Configuration commands:
33199 Report bugs to the package provider."
33202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33203 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33206 configured by $0, generated by GNU Autoconf 2.69,
33207 with options \\"\$ac_cs_config\\"
33209 Copyright (C) 2012 Free Software Foundation, Inc.
33210 This config.status script is free software; the Free Software Foundation
33211 gives unlimited permission to copy, distribute and modify it."
33216 test -n "\$AWK" || AWK=awk
33219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33220 # The default lists apply if the user does not specify any file.
33226 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33227 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33231 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33243 # Handling of the options.
33244 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33246 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33247 $as_echo "$ac_cs_version"; exit ;;
33248 --config |
--confi |
--conf |
--con |
--co |
--c )
33249 $as_echo "$ac_cs_config"; exit ;;
33250 --debug |
--debu |
--deb |
--de |
--d |
-d )
33252 --file |
--fil |
--fi |
--f )
33255 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33256 '') as_fn_error $?
"missing file argument" ;;
33258 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33259 ac_need_defaults
=false
;;
33260 --header |
--heade |
--head |
--hea )
33263 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33265 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33266 ac_need_defaults
=false
;;
33268 # Conflict between --help and --header
33269 as_fn_error $?
"ambiguous option: \`$1'
33270 Try \`$0 --help' for more information.";;
33271 --help |
--hel |
-h )
33272 $as_echo "$ac_cs_usage"; exit ;;
33273 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33274 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33277 # This is an error.
33278 -*) as_fn_error $?
"unrecognized option: \`$1'
33279 Try \`$0 --help' for more information." ;;
33281 *) as_fn_append ac_config_targets
" $1"
33282 ac_need_defaults
=false
;;
33288 ac_configure_extra_args
=
33290 if $ac_cs_silent; then
33292 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33297 if \$ac_cs_recheck; then
33298 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33300 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33301 CONFIG_SHELL='$SHELL'
33302 export CONFIG_SHELL
33307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33312 ## Running $as_me. ##
33318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33322 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33323 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33330 # Handling of arguments.
33331 for ac_config_target
in $ac_config_targets
33333 case $ac_config_target in
33334 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33335 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33336 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33337 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33338 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33339 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33340 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33341 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33342 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33343 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33345 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33350 # If the user did not use the arguments to specify the items to instantiate,
33351 # then the envvar interface is used. Set only those that are not.
33352 # We use the long form for the default assignment because of an extremely
33353 # bizarre bug on SunOS 4.1.3.
33354 if $ac_need_defaults; then
33355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33357 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33358 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33361 # Have a temporary directory for convenience. Make it in the build tree
33362 # simply because there is no reason against having it here, and in addition,
33363 # creating and moving files from /tmp can sometimes cause problems.
33364 # Hook for its removal unless debugging.
33365 # Note that there is a small window in which the directory will not be cleaned:
33366 # after its creation but before its name has been assigned to `$tmp'.
33370 trap 'exit_status=$?
33371 : "${ac_tmp:=$tmp}"
33372 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33374 trap 'as_fn_exit 1' 1 2 13 15
33376 # Create a (secure) tmp directory for tmp files.
33379 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33383 tmp
=.
/conf$$
-$RANDOM
33384 (umask 077 && mkdir
"$tmp")
33385 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33388 # Set up the scripts for CONFIG_FILES section.
33389 # No need to generate them if there are no CONFIG_FILES.
33390 # This happens for instance with `./config.status config.h'.
33391 if test -n "$CONFIG_FILES"; then
33393 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33394 ac_cs_awk_getline
=:
33395 ac_cs_awk_pipe_init
=
33396 ac_cs_awk_read_file
='
33397 while ((getline aline < (F[key])) > 0)
33400 ac_cs_awk_pipe_fini
=
33402 ac_cs_awk_getline
=false
33403 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33404 ac_cs_awk_read_file
='
33406 print "cat " F[key] " &&"
33407 '$ac_cs_awk_pipe_init
33408 # The final `:' finishes the AND list.
33409 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33411 ac_cr
=`echo X | tr X '\015'`
33412 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33413 # But we know of no other shell where ac_cr would be empty at this
33414 # point, so we can use a bashism as a fallback.
33415 if test "x$ac_cr" = x
; then
33416 eval ac_cr
=\$
\'\\r
\'
33418 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33419 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33422 ac_cs_awk_cr
=$ac_cr
33425 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33428 # Create commands to substitute file output variables.
33430 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33431 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33432 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33435 } >conf$
$files.sh
&&
33436 . .
/conf$
$files.sh ||
33437 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33438 rm -f conf$
$files.sh
33441 echo "cat >conf$$subs.awk <<_ACEOF" &&
33442 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33444 } >conf$$subs.sh ||
33445 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33446 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33448 for ac_last_try in false false false false false :; do
33449 . ./conf$$subs.sh ||
33450 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33452 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33453 if test $ac_delim_n = $ac_delim_num; then
33455 elif $ac_last_try; then
33456 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33458 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33461 rm -f conf$$subs.sh
33463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33464 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33468 s/^/S["/; s
/!.
*/"]=/
33478 s/\(.\{148\}\)..*/\1/
33480 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33485 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33492 s/\(.\{148\}\)..*/\1/
33494 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33498 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33503 ' <conf$$subs.awk | sed '
33508 ' >>$CONFIG_STATUS || ac_write_fail=1
33509 rm -f conf$$subs.awk
33510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33512 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33513 for (key in S) S_is_set[key] = 1
33515 \$ac_cs_awk_pipe_init
33519 nfields = split(line, field, "@
")
33521 len = length(field[1])
33522 for (i = 2; i < nfields; i++) {
33524 keylen = length(key)
33525 if (S_is_set[key]) {
33527 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33528 len += length(value) + length(field[++i])
33533 if (nfields == 3 && !substed) {
33535 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33536 \$ac_cs_awk_read_file
33542 \$ac_cs_awk_pipe_fini
33545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33546 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33547 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33550 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33551 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33554 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33555 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33556 # trailing colons and then remove the whole line if VPATH becomes empty
33557 # (actually we leave an empty line to preserve line numbers).
33558 if test "x
$srcdir" = x.; then
33559 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33578 fi # test -n "$CONFIG_FILES"
33580 # Set up the scripts for CONFIG_HEADERS section.
33581 # No need to generate them if there are no CONFIG_HEADERS.
33582 # This happens for instance with `./config.status Makefile'.
33583 if test -n "$CONFIG_HEADERS"; then
33584 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33588 # Transform confdefs.h into an awk script `defines.awk', embedded as
33589 # here-document in config.status, that substitutes the proper values into
33590 # config.h.in to produce config.h.
33592 # Create a delimiter string that does not exist in confdefs.h, to ease
33593 # handling of long lines.
33595 for ac_last_try in false false :; do
33596 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33597 if test -z "$ac_tt"; then
33599 elif $ac_last_try; then
33600 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33602 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33606 # For the awk script, D is an array of macro values keyed by name,
33607 # likewise P contains macro parameters if any. Preserve backslash
33608 # newline sequences.
33610 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33612 s/.\{148\}/&'"$ac_delim"'/g
33615 s/^[ ]*#[ ]*define[ ][ ]*/ /
33622 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33624 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33628 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33629 D["\
1"]=" \
3\\\\\\n
"\\/p
33631 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33636 s/.\{148\}/&'"$ac_delim"'/g
33641 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33644 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33646 ' <confdefs.h | sed '
33647 s/'"$ac_delim"'/"\\\
33648 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33651 for (key in D) D_is_set[key] = 1
33654 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33656 split(line, arg, " ")
33657 if (arg[1] == "#") {
33661 defundef
= substr
(arg
[1], 2)
33664 split(mac1
, mac2
, "(") #)
33666 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33667 if (D_is_set
[macro
]) {
33668 # Preserve the white space surrounding the "#".
33669 print prefix
"define", macro P
[macro
] D
[macro
]
33672 # Replace #undef with comments. This is necessary, for example,
33673 # in the case of _POSIX_SOURCE, which is predefined and required
33674 # on some systems where configure will not decide to define it.
33675 if (defundef
== "undef") {
33676 print
"/*", prefix defundef
, macro
, "*/"
33684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33685 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33686 fi # test -n "$CONFIG_HEADERS"
33689 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33694 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33696 case $ac_mode$ac_tag in
33698 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33699 :[FH
]-) ac_tag
=-:-;;
33700 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33717 -) ac_f
="$ac_tmp/stdin";;
33718 *) # Look for the file first in the build tree, then in the source tree
33719 # (if the path is not absolute). The absolute path cannot be DOS-style,
33720 # because $ac_f cannot contain `:'.
33724 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33726 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33728 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33729 as_fn_append ac_file_inputs
" '$ac_f'"
33732 # Let's still pretend it is `configure' which instantiates (i.e., don't
33733 # use $as_me), people would be surprised to read:
33734 # /* config.h. Generated by config.status. */
33735 configure_input
='Generated from '`
33736 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33738 if test x
"$ac_file" != x-
; then
33739 configure_input
="$ac_file. $configure_input"
33740 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33741 $as_echo "$as_me: creating $ac_file" >&6;}
33743 # Neutralize special characters interpreted by sed in replacement strings.
33744 case $configure_input in #(
33745 *\
&* |
*\|
* |
*\\* )
33746 ac_sed_conf_input
=`$as_echo "$configure_input" |
33747 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33748 *) ac_sed_conf_input
=$configure_input;;
33752 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33753 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33758 ac_dir
=`$as_dirname -- "$ac_file" ||
33759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33760 X"$ac_file" : 'X\(//\)[^/]' \| \
33761 X"$ac_file" : 'X\(//\)$' \| \
33762 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33763 $as_echo X"$ac_file" |
33764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33768 /^X\(\/\/\)[^/].*/{
33781 as_dir
="$ac_dir"; as_fn_mkdir_p
33785 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33787 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33788 # A ".." for each directory in $ac_dir_suffix.
33789 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33790 case $ac_top_builddir_sub in
33791 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33792 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33795 ac_abs_top_builddir
=$ac_pwd
33796 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33797 # for backward compatibility:
33798 ac_top_builddir
=$ac_top_build_prefix
33801 .
) # We are building in place.
33803 ac_top_srcdir
=$ac_top_builddir_sub
33804 ac_abs_top_srcdir
=$ac_pwd ;;
33805 [\\/]* | ?
:[\\/]* ) # Absolute name.
33806 ac_srcdir
=$srcdir$ac_dir_suffix;
33807 ac_top_srcdir
=$srcdir
33808 ac_abs_top_srcdir
=$srcdir ;;
33809 *) # Relative name.
33810 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33811 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33812 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33814 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33826 # If the template does not know about datarootdir, expand it.
33827 # FIXME: This hack should be removed a few years after 2.60.
33828 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33839 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33840 *datarootdir
*) ac_datarootdir_seen
=yes;;
33841 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33843 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33846 ac_datarootdir_hack='
33847 s&@datadir@&$datadir&g
33848 s&@docdir@&$docdir&g
33849 s&@infodir@&$infodir&g
33850 s&@localedir@&$localedir&g
33851 s&@mandir@&$mandir&g
33852 s&\\\${datarootdir}&$datarootdir&g' ;;
33856 # Neutralize VPATH when `$srcdir' = `.'.
33857 # Shell code in configure.ac might set extrasub.
33858 # FIXME: do we really want to maintain this feature?
33859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33860 ac_sed_extra="$ac_vpsub
33863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33865 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33866 s|@configure_input@|
$ac_sed_conf_input|
;t t
33867 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33868 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33869 s
&@srcdir@
&$ac_srcdir&;t t
33870 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33871 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33872 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33873 s
&@builddir@
&$ac_builddir&;t t
33874 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33875 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33876 $ac_datarootdir_hack
33878 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33879 if $ac_cs_awk_getline; then
33880 $AWK -f "$ac_tmp/subs.
awk"
33882 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
33884 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33887 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33889 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33891 which seems to be undefined. Please make sure it is defined" >&5
33892 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33893 which seems to be undefined. Please make sure it is defined" >&2;}
33895 rm -f "$ac_tmp/stdin"
33897 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33898 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33906 if test x"$ac_file" != x-; then
33908 $as_echo "/* $configure_input */" \
33909 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33910 } >"$ac_tmp/config.h" \
33911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33912 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33913 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33914 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33917 mv "$ac_tmp/config.h" "$ac_file" \
33918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33921 $as_echo "/* $configure_input */" \
33922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33923 || as_fn_error $? "could not create -" "$LINENO" 5
33931 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
33934 # Prefer the file from the source tree if names are identical.
33935 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33936 ac_source=$srcdir/$ac_source
33939 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33940 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33942 if test ! -r "$ac_source"; then
33943 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33947 # Try a relative symlink, then a hard link, then a copy.
33949 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33950 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33952 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33953 ln "$ac_source" "$ac_file" 2>/dev/null ||
33954 cp -p "$ac_source" "$ac_file" ||
33955 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33958 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33959 $as_echo "$as_me: executing $ac_file commands" >&6;}
33964 case $ac_file$ac_mode in
33965 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33967 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33968 for lang in $subdirs c-family common analyzer rtl-ssa
33970 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33972 "as":F) chmod +x as ;;
33973 "collect-ld":F) chmod +x collect-ld ;;
33974 "nm":F) chmod +x nm ;;
33975 "dsymutil":F) chmod +x dsymutil ;;
33977 case ${CONFIG_HEADERS} in
33978 *auto-host.h:config.in*)
33981 # Make sure all the subdirs exist.
33982 for d in $subdirs doc build common c-family
33984 test -d $d || mkdir $d
33994 ac_clean_files=$ac_clean_files_save
33996 test $ac_write_fail = 0 ||
33997 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34000 # configure is writing to config.log, and then calls config.status.
34001 # config.status does its own redirection, appending to config.log.
34002 # Unfortunately, on DOS this fails, as config.log is still kept open
34003 # by configure, so config.status won't be able to
write to it
; its
34004 # output is simply discarded. So we exec the FD to /dev/null,
34005 # effectively closing config.log, so it can be properly (re)opened and
34006 # appended to by config.status. When coming back to configure, we
34007 # need to make the FD available again.
34008 if test "$no_create" != yes; then
34010 ac_config_status_args
=
34011 test "$silent" = yes &&
34012 ac_config_status_args
="$ac_config_status_args --quiet"
34014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34017 # would make configure fail if this is the last instruction.
34018 $ac_cs_success || as_fn_exit
1
34020 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34022 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}